/* === OC-BOOK Service Page Styles === */

/* base.cssのスクロールアニメーションをこのページでは無効化 */
.book-page .scroll-fade-up,
.book-page .scroll-fade-left,
.book-page .scroll-fade-right,
.book-page .scroll-scale-up,
.book-page .scroll-stagger > * {
    opacity: 1 !important;
    transform: none !important;
}

/* フォント: デジタルサービス系ページはゴシック体 */
.book-page {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    line-height: 1.8;
    font-size: 16px;
}
/* ヘッダー・フッターはbase.cssの明朝体を維持 */
.book-page .header,
.book-page .footer {
    font-family: "游明朝体", Yu Mincho, YuMincho, "ヒラギノ明朝 Pro", Hiragino Mincho Pro, "MS P明朝", MS PMincho, serif;
    line-height: 1.6;
    font-size: inherit;
}

.book-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.book-section { padding: 80px 0; }
.book-section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 20px; color: #1a1a1a; letter-spacing: 0.02em; position: relative; padding-bottom: 16px; }
.book-section-title::after { content: ''; display: block; width: 40px; height: 3px; background: #2d5a87; margin: 12px auto 0; border-radius: 2px; }
.book-section-subtitle { text-align: center; color: #666; font-size: 15px; margin-bottom: 48px; }
.accent { color: #2d5a87; }

/* Top (Hero) */
.book-top {
    background: #f8f9fa url('../media/oc-book/book-hero-bg.jpg') center / cover no-repeat;
    padding: 20px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}
.book-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 250, 0.85);
    z-index: 0;
}
.book-top .book-container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }

/* Floating Pages Animation (Hero background) */
.book-pages {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.book-page-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(45, 90, 135, 0.12);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.book-pf1 { width: 45px; height: 60px; top: 10%; left: 8%; animation: bookPageFloat1 22s ease-in-out infinite; }
.book-pf2 { width: 35px; height: 48px; top: 18%; right: 10%; animation: bookPageFloat2 18s ease-in-out infinite; }
.book-pf3 { width: 55px; height: 72px; bottom: 15%; left: 12%; animation: bookPageFloat3 25s ease-in-out infinite; }
.book-pf4 { width: 30px; height: 42px; top: 55%; right: 15%; animation: bookPageFloat1 20s ease-in-out infinite reverse; }
.book-pf5 { width: 40px; height: 55px; bottom: 25%; right: 32%; animation: bookPageFloat2 23s ease-in-out infinite; }
.book-pf6 { width: 50px; height: 65px; top: 5%; left: 42%; animation: bookPageFloat3 19s ease-in-out infinite reverse; }
.book-pf7 { width: 28px; height: 38px; top: 65%; left: 5%; animation: bookPageFloat1 21s ease-in-out infinite; }

@keyframes bookPageFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    25% { transform: translate(12px, -18px) rotate(3deg); }
    50% { transform: translate(-8px, -30px) rotate(-5deg); }
    75% { transform: translate(-15px, -8px) rotate(2deg); }
}
@keyframes bookPageFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(1deg); }
    33% { transform: translate(-15px, 20px) rotate(-3deg); }
    66% { transform: translate(12px, -12px) rotate(4deg); }
}
@keyframes bookPageFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(-1deg); }
    20% { transform: translate(10px, 12px) rotate(3deg); }
    40% { transform: translate(-12px, 5px) rotate(-4deg); }
    60% { transform: translate(8px, -20px) rotate(2deg); }
    80% { transform: translate(-8px, -6px) rotate(-2deg); }
}
.book-top-text { flex: 1; }
.book-top-label { display: inline-block; background: #f0f4f8; color: #2d5a87; font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 6px; margin-bottom: 20px; letter-spacing: 0.02em; border: 1px solid #dde4ed; }
.book-top-title { font-size: 36px; font-weight: 800; line-height: 1.4; color: #1a1a1a; margin-bottom: 20px; }
.book-top-desc { font-size: 16px; color: #666; margin-bottom: 32px; line-height: 1.9; }
.book-top-cta { display: inline-flex; align-items: center; gap: 10px; background: #2d5a87; color: #fff; font-size: 15px; font-weight: 600; padding: 14px 32px; border-radius: 8px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap; box-shadow: 0 4px 14px rgba(45,90,135,0.25); }
.book-top-cta:hover { background: #1a4068; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,90,135,0.35); }
.book-top-cta svg { transition: transform 0.2s; }
.book-top-cta:hover svg { transform: translateX(3px); }
.book-top-visual { flex: 0 0 510px; }
.book-top-img { width: 480px; margin: 30px auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); display: block; }

/* About */
.book-about { background: #fff; }
.book-about-content { display: flex; align-items: center; gap: 48px; max-width: 900px; margin: 0 auto; }
.book-about-text { flex: 1; }
.book-about-text p { font-size: 15px; color: #666; line-height: 2; margin-bottom: 16px; }
.book-about-visual { flex: 0 0 420px; text-align: center; }
.book-about-visual img { width: 390px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

/* Features - 横並びリスト */
.book-features { background: #f8f9fa; }
.book-features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.book-feature-row { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 10px; padding: 16px 20px; border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; }
.book-feature-row:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.book-feature-icon { width: 44px; height: 44px; min-width: 44px; background: #f0f4f8; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #dde4ed; }
.book-feature-icon svg { width: 22px; height: 22px; fill: #2d5a87; }
.book-feature-text { flex: 1; }
.book-feature-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #1a1a1a; }
.book-feature-desc { font-size: 13px; color: #666; line-height: 1.6; }

/* Use Cases - 横並びリスト */
.book-usecases { background: #fff; }
.book-usecases-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.book-usecase-row { display: flex; align-items: center; gap: 16px; background: #f8f9fa; border-radius: 10px; padding: 16px 20px; border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; }
.book-usecase-row:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.book-usecase-icon { width: 44px; height: 44px; min-width: 44px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }
.book-usecase-icon svg { width: 22px; height: 22px; fill: #2d5a87; }
.book-usecase-text { flex: 1; }
.book-usecase-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.book-usecase-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 10px; }
.book-tag-school { background: #f0f4f8; color: #2d5a87; }
.book-tag-biz { background: #f0f0f0; color: #555; }
.book-tag-gov { background: #f0f8f4; color: #3a7a5a; }
.book-tag-event { background: #fff8f0; color: #a06030; }
.book-usecase-title { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.book-usecase-desc { font-size: 13px; color: #666; line-height: 1.6; }

/* Comparison - 2カラム比較 */
.book-comparison { background: #f8f9fa; }
.book-compare-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.book-compare-col { border-radius: 12px; padding: 28px 24px; }
.book-compare-good { background: #f0f6ff; border: 2px solid #2d5a87; }
.book-compare-bad { background: #fff; border: 1px solid #e0e0e0; }
.book-compare-col-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.book-compare-good .book-compare-col-title { color: #2d5a87; }
.book-compare-bad .book-compare-col-title { color: #999; }
.book-compare-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.book-compare-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.6; color: #333; }
.book-compare-list .check { color: #2d5a87; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.book-compare-list .cross { color: #ccc; font-size: 16px; flex-shrink: 0; }

/* Flow - ステップバー型 */
.book-flow { background: #fff; }
.book-flow-steps { display: flex; justify-content: center; max-width: 820px; margin: 0 auto; position: relative; counter-reset: step; }
.book-flow-steps::before { content: ''; position: absolute; top: 36px; left: 12%; right: 12%; height: 3px; background: #dde4ed; z-index: 0; }
.book-flow-item { text-align: center; flex: 1; position: relative; z-index: 1; }
.book-flow-circle { width: 72px; height: 72px; background: #fff; border: 3px solid #2d5a87; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.book-flow-circle svg { width: 34px; height: 34px; fill: #2d5a87; }
.book-flow-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: #1a1a1a; }
.book-flow-desc { font-size: 13px; color: #888; line-height: 1.6; }

/* Plans - 料金表風2カラム */
.book-plans { background: #f8f9fa; }
.book-plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; align-items: start; }
.book-plan-card { background: #fff; border-radius: 12px; border: 1px solid #e0e0e0; overflow: hidden; position: relative; }
.book-plan-featured { border: 2px solid #2d5a87; transform: scale(1.03); box-shadow: 0 8px 30px rgba(45,90,135,0.12); }
.book-plan-ribbon { position: absolute; top: 16px; right: -32px; background: #2d5a87; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 40px; transform: rotate(45deg); letter-spacing: 0.05em; }
.book-plan-header { padding: 28px 24px 20px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.book-plan-header-featured { background: #f0f6ff; border-bottom: 1px solid #dde4ed; }
.book-plan-name { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.book-plan-featured .book-plan-name { color: #2d5a87; }
.book-plan-catch { font-size: 13px; color: #888; }
.book-plan-list { list-style: none; padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.book-plan-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #333; }
.book-plan-list li svg { width: 18px; height: 18px; fill: #2d5a87; flex-shrink: 0; }
.book-plan-list-disabled { color: #ccc !important; }
.book-plan-list-disabled svg { fill: #ccc !important; }
.book-plan-list-highlight { font-weight: 600; background: #f0f6ff; margin: 0 -24px; padding: 0 24px; border-radius: 0; }
.book-plan-list-highlight svg { fill: #2d5a87; }
.book-plan-footer { padding: 0 24px 28px; text-align: center; }
.book-plan-btn { display: inline-block; padding: 12px 36px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 2px solid #2d5a87; color: #2d5a87; transition: all 0.2s; }
.book-plan-btn:hover { background: #f0f6ff; }
.book-plan-btn-featured { background: #2d5a87; color: #fff; border-color: #2d5a87; }
.book-plan-btn-featured:hover { background: #1a4068; }

/* CTA */
.book-cta-section { background: linear-gradient(135deg, #192a45 0%, #2d5a87 100%); color: #fff; text-align: center; padding: 28px 0; }
.book-cta-title { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.book-cta-desc { font-size: 16px; color: #aaa; margin-bottom: 36px; line-height: 1.8; }
.book-cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.book-cta-tel { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.08); padding: 16px 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); transition: background 0.2s; }
.book-cta-tel:hover { background: rgba(255,255,255,0.1); }
.book-cta-tel svg { width: 24px; height: 24px; fill: #fff; }
.book-cta-tel-number { font-size: 24px; font-weight: 700; }
.book-cta-tel-note { font-size: 12px; color: #aaa; }
.book-cta-mail { display: flex; align-items: center; gap: 12px; background: #2d5a87; color: #fff; padding: 16px 32px; border-radius: 8px; font-weight: 600; font-size: 16px; transition: background 0.2s, transform 0.2s; }
.book-cta-mail:hover { background: #1a4068; transform: translateY(-2px); }
.book-cta-mail svg { width: 20px; height: 20px; fill: #fff; }

/* スクロールアニメーション: 下からふわっと */
.book-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.book-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* カードは順番にディレイをつける */
.book-fade-up.delay-1 { transition-delay: 0.1s; }
.book-fade-up.delay-2 { transition-delay: 0.2s; }
.book-fade-up.delay-3 { transition-delay: 0.3s; }
.book-fade-up.delay-4 { transition-delay: 0.4s; }
.book-fade-up.delay-5 { transition-delay: 0.5s; }
.book-fade-up.delay-6 { transition-delay: 0.6s; }
.book-fade-up.delay-7 { transition-delay: 0.7s; }
.book-fade-up.delay-8 { transition-delay: 0.8s; }
.book-fade-up.delay-9 { transition-delay: 0.9s; }
.book-fade-up.delay-10 { transition-delay: 1.0s; }

/* Responsive */
@media (max-width: 768px) {
    .book-top .book-container { flex-direction: column; gap: 40px; text-align: center; }
    .book-top-title { font-size: 26px; }
    .book-top-visual { flex: none; }
    .book-top-img { width: 100%; max-width: 400px; }
    .book-top { margin-top: 60px; }
    .book-section { padding: 60px 0; }
    .book-section-title { font-size: 22px; }
    .book-features-list { grid-template-columns: 1fr; }
    .book-usecases-list { grid-template-columns: 1fr; }
    .book-about-content { flex-direction: column; text-align: center; }
    .book-about-visual { flex: none; }
    .book-about-visual img { width: 100%; max-width: 340px; }
    .book-flow-steps { flex-wrap: wrap; gap: 20px 0; }
    .book-flow-steps::before { top: 28px; left: 15%; right: 15%; }
    .book-flow-item { flex: 0 0 50%; }
    .book-compare-columns { grid-template-columns: 1fr; }
    .book-cta-title { font-size: 22px; }
    .book-plans-grid { grid-template-columns: 1fr; max-width: 400px; }
    .book-plan-featured { transform: none; }
}
