/* _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: #ffffff;
            min-height: 100vh;
            color: #111111;
            padding: 2rem 1rem;
            position: relative;
            overflow-x: hidden;
            font-size: 1.25rem;
            line-height: 1.9;
        }

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

        header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .page-title {
            font-size: clamp(1.6rem, 4vw, 2.4rem);
            font-weight: 900;
            color: #111;
            margin-bottom: 1.5rem;
            letter-spacing: 0.05em;
            text-align: center;
        }

        .chapter-title {
            font-size: clamp(1.6rem, 4vw, 2.4rem);
            font-weight: 900;
            color: #111;
            margin-bottom: 1.5rem;
            letter-spacing: 0.05em;
            text-align: center;
        }

        h1 {
            font-size: 2.4rem;
            font-weight: 900;
            margin-top: 2rem;
            margin-bottom: 1.75rem;
            display: flex;
            align-items: center;
            gap: 0.7rem;
            letter-spacing: 0.05em;
        }

        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
            text-decoration: none;
            color: #111;
        }

        h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
            color: #000;
        }

        h2 {
            font-size: 2.2rem;
            font-weight: 700;
            color: #111;
            margin-bottom: 1.75rem;
            margin-top: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.7rem;
            letter-spacing: 0.05em;
        }

        h3 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #111;
            margin-top: 1.5rem;
            margin-bottom: 1.25rem;
        }

        h4 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #111;
            margin-top: 1.25rem;
            margin-bottom: 1rem;
        }

        h5,
        h6 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #111;
            margin-top: 1rem;
            margin-bottom: 0.75rem;
        }


        h2::before {
            content: '◆';
            color: #667eea;
            font-size: 0.8em;
        }

        
        

        

        

        p {
            margin: 1em 0;
            line-height: 1.9;
        }

        a {
            color: #0056b3;
            text-decoration: none;
            transition: all 0.3s ease;
            border-bottom: 1px solid transparent;
        }

        a:hover {
            color: #003d80;
            border-bottom-color: #003d80;
        }

        hr {
            border: none;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            margin: 2em 0;
        }

        ul, ol {
            margin: 1em 0;
            padding-left: 2em;
        }

        li {
            margin: 0.5em 0;
            line-height: 1.9;
        }

        b, strong {
            font-weight: 700;
            color: #111;
        }

        .content-card {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 20px;
            padding: 2.5rem;
            margin: 2rem 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

        .content-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 0.1875rem;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }

        .content-card:hover::before {
            transform: scaleX(1);
        }

        .links-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding-left: 0;
        }

        .links-list li {
            position: relative;
            padding-left: 1.6rem;
        }

        .links-list li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: #667eea;
            transition: transform 0.3s ease;
        }

        .links-list li:hover::before {
            transform: translateX(3px);
        }

        .links-list a {
            color: #333;
            text-decoration: none;
            font-size: 1.25rem;
            line-height: 1.9;
            transition: all 0.3s ease;
            display: inline-block;
            position: relative;
            border-bottom: none;
        }

        .links-list a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 0.125rem;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transition: width 0.3s ease;
        }

        .links-list a:hover {
            color: #000;
            transform: translateX(3px);
        }

        .links-list a:hover::after {
            width: 100%;
        }
        
        .back-link {
          display: inline-flex;
          align-items: center;
          gap: 0.5rem;
          padding: 0.85rem 1.75rem;
          background: #f5f5f7;
          border: 1px solid rgba(0, 0, 0, 0.1);
          border-radius: 50px;
          color: #333;
          text-decoration: none;
          font-weight: 600;
          font-size: 1.05rem;
          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
          margin-top: 1rem;
        }
        
        .back-link:hover {
          background: #e0e0e0;
          transform: translateY(-2px);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .content-section {
          background: #ffffff;
          border-radius: 24px;
          padding: 3rem;
          margin-bottom: 4rem;
          border: 1px solid rgba(0, 0, 0, 0.05);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
        }

        .section-card {
            background: #f9f9f9;
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }

        .section-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
            border-color: rgba(102, 126, 234, 0.5);
        }

        .chapter a {
            color: #333;
            text-decoration: none;
            font-size: 1.25rem;
            line-height: 1.9;
            transition: all 0.3s ease;
            display: inline-block;
            position: relative;
        }
        
        .chapter a:hover {
            color: #000;
        }

        /* 聖書の節リンク用スタイル（既存のものを保持） */
        a.verse-link {
            color: #d32f2f;
            text-decoration: none;
            font-weight: bold;
            border-bottom: none;
        }

        a.verse-link:hover {
            text-decoration: underline;
            color: #b71c1c;
            border-bottom-color: transparent;
        }

        [id^="v"]:target {
            background-color: #fff3cd;
            padding: 0.1em 0.2em;
            border-radius: 3px;
            
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 48rem) {
            body {
                padding: 1rem 0.75rem;
                font-size: 1.1rem;
            }

            .content-card {
                padding: 2rem;
            }

            .page-title {
                font-size: clamp(1.4rem, 5vw, 1.9rem);
            }

            .chapter-title {
                font-size: clamp(1.4rem, 4vw, 2.2rem);
            }

            h1 {
                font-size: 2.0rem;
            }

            h2 {
                font-size: 1.8rem;
            }

            .links-list a {
                font-size: 1.15rem;
            }
        }

        @media (max-width: 30rem) {
            body {
                font-size: 1rem;
            }

            h2 {
                font-size: 1.6rem;
            }

            .links-list a {
                font-size: 1.05rem;
            }
        }

        /* 折りたたみ可能な目次のスタイル */
        .toc-collapsible {
            margin: 2.5rem 0;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 16px;
            padding: 1.5rem 2rem;
            background: #fbfbfb;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        }

        .toc-header {
            font-size: 1.8rem;
            font-weight: 700;
            cursor: pointer;
            list-style: none;
            user-select: none;
            color: #111;
            margin: 0;
            padding: 0.5rem 0;
        }

        .toc-header::-webkit-details-marker {
            display: none;
        }

        .toc-header::before {
            content: '▶ ';
            transition: transform 0.3s ease;
            display: inline-block;
            color: #667eea;
            margin-right: 0.5rem;
        }

        details[open].toc-collapsible .toc-header::before {
            transform: rotate(90deg);
        }

        .toc-nav {
            margin-top: 1.25rem;
        }

        .toc-nav ul {
            margin: 0;
            padding-left: 0;
            list-style: none;
        }

        .toc-nav li {
            margin: 0.2rem 0;
            padding-left: 0;
            position: relative;
        }

        .toc-nav ul ul {
            padding-left: 1.5rem;
            margin-top: 0.2rem;
            margin-bottom: 0.5rem;
            border-left: 1px solid rgba(0, 0, 0, 0.05);
        }

        .toc-nav a {
            color: #444;
            text-decoration: none;
            transition: all 0.2s ease;
            display: block;
            padding: 0.6rem 0.8rem;
            border-radius: 8px;
            font-size: 1.15rem;
            line-height: 1.4;
        }

        .toc-nav a:hover {
            color: #667eea;
            background: rgba(102, 126, 234, 0.08);
            transform: translateX(4px);
        }
    
  .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); }
  .typo-box[open] { padding-bottom: 1.5rem; }

        *[id] {
            scroll-margin-top: 6rem;
        }
        .no1 {
            margin-bottom: 1.5rem;
        }
        h2 .no1, h3 .no1 {
            margin-bottom: 0;
        }

        /* --- Refined Expandable Sticky Header Styles --- */
        .stacked-header-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 3000;
            pointer-events: none;
            display: flex;
            flex-direction: column;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .breadcrumb-view {
            height: 28px;
            pointer-events: auto;
            background: rgba(255, 255, 255, 0.45);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            padding: 0 1.2rem;
            display: flex;
            align-items: center;
            font-size: 0.75rem;
            color: #777;
            font-family: "Hiragino Mincho ProN", "BIZ UDPMincho", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", serif;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(-100%);
            visibility: hidden;
        }

        .breadcrumb-view.visible {
            opacity: 1;
            transform: translateY(0);
            visibility: visible;
        }

        .breadcrumb-view:hover {
            background: rgba(255, 255, 255, 0.7);
            color: #333;
        }

        .breadcrumb-view .separator {
            margin: 0 0.5rem;
            color: #aaa;
            font-weight: 300;
        }

        .stacked-view {
            pointer-events: auto;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.85);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .stacked-header-container.is-expanded .stacked-view {
            max-height: 100vh;
            opacity: 1;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .stack-bar {
            height: 32px;
            line-height: 32px;
            padding: 0 1.5rem;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #444;
            font-size: 0.85rem;
            font-weight: 600;
            font-family: "Hiragino Mincho ProN", "BIZ UDPMincho", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", serif;
            display: flex;
            align-items: center;
            transition: background 0.2s ease, padding-left 0.3s ease;
        }

        .stack-bar:hover {
            background: rgba(102, 126, 234, 0.08);
            color: #667eea;
        }

        /* Hierarchy-based Indentation for Expanded State */
        .stack-bar[data-level="1"] { padding-left: 1.5rem; }
        .stack-bar[data-level="2"] { padding-left: 3.0rem; }
        .stack-bar[data-level="3"] { padding-left: 4.5rem; }
        .stack-bar[data-level="4"] { padding-left: 6.0rem; }
        .stack-bar[data-level="5"] { padding-left: 7.5rem; }
        .stack-bar[data-level="6"] { padding-left: 9.0rem; }

        .stack-bar::before {
            content: '▸';
            margin-right: 0.5rem;
            color: #667eea;
            font-size: 0.7rem;
        }
        .stack-bar[data-level='1']::before { content: '◆'; font-size: 0.9rem; }

        @media (max-width: 48rem) {
            .breadcrumb-view { height: 24px; font-size: 0.7rem; padding: 0 0.8rem; }
            .stack-bar { height: 30px; font-size: 0.8rem; }
            .stack-bar[data-level="1"] { padding-left: 1rem; }
        .stack-bar[data-level="2"] { padding-left: 1.8rem; }
        .stack-bar[data-level="3"] { padding-left: 2.6rem; }
        .stack-bar[data-level="4"] { padding-left: 3.4rem; }
        .stack-bar[data-level="5"] { padding-left: 4.2rem; }
        .stack-bar[data-level="6"] { padding-left: 5.0rem; }
        }
