/* _tools/root/extract_inline_css.py が書き出した。直すときは、これを直接直してよい */
        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: "Hiragino Mincho ProN", "BIZ UDPMincho", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", serif;
            background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
            min-height: 100vh;
            color: #e0e0e0;
            padding: 2rem 1rem;
            position: relative;
            overflow-x: hidden;
            font-size: 1.2rem;
            line-height: 2;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        h1 {
            font-size: clamp(1.6rem, 4vw, 2.2rem);
            font-weight: 900;
            letter-spacing: 0.12em;
            text-align: center;
            margin-bottom: 0.4rem;
        }

        h1 a {
            text-decoration: none;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .chapter-head {
            text-align: center;
            margin: 2.5rem 0 1rem;
        }

        .chapter-head .label {
            display: block;
            font-size: 1rem;
            letter-spacing: 0.4em;
            opacity: 0.7;
            margin-bottom: 0.4rem;
        }

        .chapter-head h2 {
            font-size: clamp(2rem, 6vw, 3rem);
            font-weight: 900;
            letter-spacing: 0.15em;
            color: #fff;
        }

        .toc {
            margin: 2rem 0 3rem;
            padding: 1.5rem 1.8rem;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .toc h3 {
            font-size: 1.05rem;
            letter-spacing: 0.2em;
            margin-bottom: 0.8rem;
            opacity: 0.85;
        }

        .toc ul { list-style: none; }

        .toc li { margin: 0.1rem 0; }

        .toc a {
            display: block;
            padding: 0.3em 0.4em 0.3em 1.2em;
            text-indent: -1.2em;
            border-radius: 6px;
            font-size: 1rem;
            line-height: 1.7;
            text-decoration: none;
        }

        .toc a::before { content: '・'; margin-right: 0.2em; }

        .toc .t1 { font-weight: 700; margin-top: 0.6rem; }
        .toc .t2 { margin-left: 1.4rem; font-size: 0.97rem; }
        .toc .t3 { margin-left: 2.8rem; font-size: 0.94rem; opacity: 0.9; }

        .content-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 2.5rem 2.2rem;
        }

        .content-card p {
            margin-bottom: 1.4rem;
            text-indent: 1em;
        }

        .content-card p.subhead {
            text-indent: 0;
            margin: 2.4rem 0 1rem;
            font-weight: 700;
            font-size: 1.1rem;
            color: #fff;
            border-left: 4px solid rgba(240, 147, 251, 0.6);
            padding-left: 0.8em;
        }

        .content-card p.cols {
            text-indent: 0;
            white-space: pre-wrap;
            font-family: inherit;
        }

        .content-card h3, .content-card h4, .content-card h5 { color: #fff; }

        .content-card h3 a, .content-card h4 a, .content-card h5 a {
            color: inherit !important;
            text-decoration: none;
        }

        .content-card h3.lv1 {
            font-size: 1.7rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            margin: 3.5rem 0 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid rgba(102, 126, 234, 0.5);
        }

        .content-card h4.lv2 {
            font-size: 1.4rem;
            font-weight: 700;
            margin: 2.8rem 0 1.2rem;
            padding-left: 0.7em;
            border-left: 6px solid rgba(102, 126, 234, 0.7);
        }

        .content-card h5.lv3 {
            font-size: 1.2rem;
            font-weight: 700;
            margin: 2.2rem 0 1rem;
            opacity: 0.95;
        }

        .content-card h3.lv1:first-child,
        .content-card h4.lv2:first-child { margin-top: 0; }

        .fig {
            margin: 2rem auto;
            text-align: center;
        }

        .fig img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            background: #fff;
            padding: 0.6rem;
        }

        [id]:target {
            scroll-margin-top: 1.5rem;
        }

        .source-note {
            margin: 3rem 0 1rem;
            font-size: 0.92rem;
            line-height: 1.8;
            opacity: 0.7;
            text-align: center;
        }

        @media (max-width: 600px) {
            body { padding: 1.2rem 0.7rem; font-size: 1.08rem; }
            .content-card { padding: 1.4rem 1.1rem; }
            .toc { padding: 1.1rem 1rem; }
            .toc .t2 { margin-left: 0.8rem; }
            .toc .t3 { margin-left: 1.6rem; }
        }

.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
    width: 100%;
}

.nav-btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    color: #fff;
}

.nav-btn span { font-size: 1.2rem; line-height: 1; }

.typo-box {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}
.typo-title { cursor: pointer; margin: 0 0 .5rem 0; font-size: 1.1rem; font-weight: 700; }
.typo-desc { margin: 0 0 1.2rem 0; opacity: .7; font-size: 0.95rem; }
.typo-label { display: block; font-weight: 600; margin: .8rem 0 .4rem 0; font-size: 0.9rem; }
.typo-textarea, .typo-input {
    width: 100%;
    box-sizing: border-box;
    padding: .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font: inherit;
    line-height: 1.6;
    resize: vertical;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}
.typo-row { margin-top: 1.2rem; display: flex; gap: 1rem; align-items: center; }
.typo-btn {
    padding: .7rem 1.5rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}
.typo-btn[disabled] { opacity: .5; cursor: not-allowed; }
.typo-status { font-size: .95rem; opacity: .9; }
.typo-box summary { cursor: pointer; list-style: none; outline: none; }
.typo-box summary::-webkit-details-marker { display: none; }
.typo-box summary::before { content: '▶'; display: inline-block; margin-right: 0.5rem; transition: transform 0.2s; font-size: 0.8em; }
.typo-box[open] summary::before { transform: rotate(90deg); }
