.glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

/* 章番号バッジ */
.chapter-num {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.chapter-num::before {
    content: '';
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
}

/* セクションヒーロー画像枠 */
.feature-image {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem;
}
.feature-image img {
    border-radius: 1.1rem;
    display: block;
    width: 100%;
    height: auto;
}

/* ページタイトルのグロー */
.title-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* 縦の進行ライン */
.progress-rail {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22d3ee);
    z-index: 200;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* 引用風コールアウト */
.callout {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid;
    border-image: linear-gradient(180deg, #3b82f6, #8b5cf6) 1;
}

/* 番号バッジ（カード用） */
.num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-weight: 900;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* アンカー目次のホバー */
.toc-link {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}
.toc-link:hover {
    color: #fff;
    border-left-color: #3b82f6;
    padding-left: 1.25rem;
}

/* ヘッダ下の余白を確保 */
main { padding-top: 3rem; }

/* ------------------------------------------------------------
 * 概要ページのスライド(figure.reveal-slide)
 * 1枚ごとに「黒 / 気持ちグレーの黒」の帯を交互に敷き、ページの切り替わり目を見せる。
 * figure は max-w-5xl のコンテナ内にあるため、box-shadow の spread と clip-path で
 * 帯だけを画面幅いっぱいに広げている(レイアウト幅は変えないので横スクロールは出ない)。
 * ------------------------------------------------------------ */
main figure.reveal-slide {
    --slide-band: #000;
    margin: 0 !important;                      /* 帯同士を隙間なく連続させる */
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    border-radius: 0;                          /* 角丸は img 側へ移す */
    overflow: visible;                         /* overflow-hidden だと帯(box-shadow)が消える */
    background: var(--slide-band);
    box-shadow: 0 0 0 100vmax var(--slide-band);
    clip-path: inset(0 -100vmax);              /* 上下は要素内に留め、左右だけ画面外まで */
    /* reveal のフェードは帯ではなく img に掛ける(帯が動くと縞が乱れるため) */
    opacity: 1;
    transform: none;
    transition: none;
}
main figure.reveal-slide:nth-of-type(even) {
    --slide-band: #141414;
}
main figure.reveal-slide img {
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
main figure.reveal-slide.active img {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    main figure.reveal-slide img {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 章タイトル */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
}
