/* =====================================================
   learn.css — 防災学習サイト専用スタイル
   ・防災モニター（css/style.css）とは完全に独立。読み込まない・依存しない。
   ・学習コンテンツ向けに、文字は大きめ・行間広めの読みやすさ優先デザイン。
   ===================================================== */

:root {
    --l-bg:        #fbf8f2;   /* 温かみのあるオフホワイト */
    --l-bg-card:   #ffffff;
    --l-text:      #2b2620;
    --l-text-sub:  #6b6154;
    --l-accent:    #e8792c;   /* 防災オレンジ（4koma-plan.md のテーマに合わせる） */
    --l-accent-dim: #f5c9a3;
    --l-border:    #e7dfd0;
    --l-shadow:    0 2px 10px rgba(60, 40, 10, 0.08);
    --l-radius:    12px;
    --l-font:      'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
    --l-max-width: 720px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --l-bg:        #1c1712;
        --l-bg-card:   #262019;
        --l-text:      #f2ece0;
        --l-text-sub:  #b8ac98;
        --l-accent:    #ff9c4d;
        --l-accent-dim: #6b4322;
        --l-border:    #3a3226;
        --l-shadow:    0 2px 10px rgba(0, 0, 0, 0.35);
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--l-bg);
    color: var(--l-text);
    font-family: var(--l-font);
    line-height: 1.9;
    -webkit-text-size-adjust: 100%;
}

.l-wrap {
    max-width: var(--l-max-width);
    margin: 0 auto;
    padding: 20px 16px 60px;
}

a { color: var(--l-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- ヘッダー ---------- */
.l-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: var(--l-bg-card);
    border-bottom: 1px solid var(--l-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.l-header-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--l-text);
}

.l-header-title a { color: inherit; }

.l-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--l-accent);
    background: var(--l-accent-dim);
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
}

.l-menu-btn:active { opacity: 0.8; }

/* ---------- 学習トップ: コンテンツカード ---------- */
.l-lead {
    font-size: 14px;
    color: var(--l-text-sub);
    margin: 4px 0 24px;
}

.l-card {
    display: block;
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    box-shadow: var(--l-shadow);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.l-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--l-text);
    margin: 0 0 6px;
}

.l-card-desc {
    font-size: 13px;
    color: var(--l-text-sub);
    margin: 0;
}

.l-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--l-accent);
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

/* ---------- 目次 ---------- */
.l-toc-group { margin-bottom: 22px; }

.l-toc-group h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--l-accent);
    border-left: 4px solid var(--l-accent);
    padding-left: 8px;
    margin: 0 0 10px;
}

.l-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    overflow: hidden;
}

.l-toc-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--l-text);
    border-bottom: 1px solid var(--l-border);
    font-size: 14px;
}

.l-toc-item:last-child a { border-bottom: none; }
.l-toc-item a:hover { background: var(--l-accent-dim); text-decoration: none; }

.l-toc-num {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--l-accent);
    background: var(--l-accent-dim);
    border-radius: 4px;
    padding: 2px 6px;
    min-width: 28px;
    text-align: center;
}

.l-toc-pending {
    flex: none;
    font-size: 10px;
    color: var(--l-text-sub);
    border: 1px solid var(--l-border);
    border-radius: 4px;
    padding: 1px 5px;
}

/* ---------- 個別ページ ---------- */
.l-page-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--l-accent);
    letter-spacing: 0.5px;
}

/* 元データの管理コード（DIS-001等）。目立たせすぎない補足表示。 */
.l-page-code {
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 400;
    color: var(--l-text-sub);
    border: 1px solid var(--l-border);
    border-radius: 3px;
    letter-spacing: 0;
}

.l-page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0 18px;
    line-height: 1.5;
}

.l-manga {
    width: 100%;
    max-width: 480px;
    /* HTMLのwidth/height属性（data.phpが実画像サイズから算出）はレイアウトの
       ガタつき防止に使うが、heightを明示しないとスマホ幅で縮んだ時も高さだけ
       固定値のまま残り、縦に間延びして見える。height:autoで幅に応じて高さも追従させる。 */
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: var(--l-radius);
    box-shadow: var(--l-shadow);
}

.l-manga-pending {
    max-width: 480px;
    margin: 0 auto 20px;
    padding: 40px 16px;
    text-align: center;
    color: var(--l-text-sub);
    font-size: 13px;
    background: var(--l-bg-card);
    border: 1px dashed var(--l-border);
    border-radius: var(--l-radius);
}

.l-body-card {
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    box-shadow: var(--l-shadow);
    padding: 18px 20px;
    font-size: 15px;
    line-height: 2;
}

/* ---------- ページ送り ---------- */
.l-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}

.l-pager-btn {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid var(--l-border);
    background: var(--l-bg-card);
    color: var(--l-text);
}

.l-pager-btn:hover { background: var(--l-accent-dim); text-decoration: none; }

.l-pager-toc {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--l-accent);
    border-radius: 8px;
    padding: 12px 14px;
    white-space: nowrap;
}

.l-pager-toc:hover { opacity: 0.9; text-decoration: none; }

.l-pager-spacer { visibility: hidden; }

/* ---------- サイドメニュー（目次のスライドイン） ---------- */
.l-side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 6, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 30;
}

.l-side-overlay.is-open { opacity: 1; visibility: visible; }

.l-side-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: var(--l-bg);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 31;
    overflow-y: auto;
    padding: 16px;
}

.l-side-menu.is-open { transform: translateX(0); }

.l-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.l-side-head h2 { font-size: 15px; margin: 0; }

.l-side-close {
    font-size: 20px;
    line-height: 1;
    background: none;
    border: none;
    color: var(--l-text-sub);
    cursor: pointer;
    padding: 4px 8px;
}

.l-side-menu .l-toc-group h2 { font-size: 12px; }
.l-side-menu .l-toc-item a { font-size: 13px; padding: 9px 10px; }

.l-side-current a {
    background: var(--l-accent-dim);
    font-weight: 700;
}

.l-side-top-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    text-align: center;
}
.l-side-top-link:hover { text-decoration: none; }

/* 学習トップへ＝サブ導線（枠線ボタン） */
.l-side-top-link.l-btn-outline {
    color: var(--l-text);
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
}
.l-side-top-link.l-btn-outline:hover { background: var(--l-accent-dim); }

/* 防災モニターへ＝別サイトへの主要導線（塗りボタン） */
.l-side-top-link.l-btn-fill {
    color: #fff;
    background: var(--l-accent);
    border: 1px solid var(--l-accent);
}
.l-side-top-link.l-btn-fill:hover { opacity: 0.9; }

.l-side-top-link:last-child { margin-bottom: 0; }
.l-side-top-link.l-btn-outline:first-of-type { margin-top: 0; }

/* サイドメニュー下部の戻るボタン群は一覧と少し間隔を空ける */
.l-side-menu > .l-side-top-link:nth-last-child(2) { margin-top: 18px; }

/* ---------- フッター ---------- */
.l-footer {
    text-align: center;
    font-size: 11px;
    color: var(--l-text-sub);
    padding: 30px 16px 16px;
}

.l-back-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto 16px;
}

.l-back-link {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 8px;
    text-align: center;
}
.l-back-link:hover { text-decoration: none; }

.l-back-link.l-btn-outline {
    color: var(--l-text);
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
}
.l-back-link.l-btn-outline:hover { background: var(--l-accent-dim); }

.l-back-link.l-btn-fill {
    color: #fff;
    background: var(--l-accent);
    border: 1px solid var(--l-accent);
}
.l-back-link.l-btn-fill:hover { opacity: 0.9; }

/* =====================================================
   119番通報のかけ方（learn/119/）専用
   ・クラス名はすべて c119- で始める（既存コンテンツと混ざらないように）
   ・色は必ず var(--l-*) を使う。生の色コードを書くとダークモードで読めなくなる
     （例外はオレンジ塗りの上に載せる白文字だけ。既存の .l-pager-toc と同じ扱い）
   ・正誤は色だけで示さない。必ず「○」「△」の文字も添える
     （色の見え方には個人差があるため）
   ===================================================== */

/* ---------- 見出し ---------- */
.c119-h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--l-text);
    border-left: 5px solid var(--l-accent);
    padding-left: 10px;
    margin: 34px 0 12px;
    scroll-margin-top: 60px;   /* 目次から飛んだとき、固定ヘッダーに隠れないように */
}

.c119-h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--l-text);
    margin: 24px 0 10px;
}

.c119-sub {
    font-size: 13px;
    color: var(--l-text-sub);
    margin: 0 0 14px;
    line-height: 1.8;
}

/* ---------- 練習用ページであることの注意帯 ---------- */
.c119-notice {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: var(--l-accent-dim);
    border: 1px solid var(--l-accent);
    border-radius: var(--l-radius);
    padding: 12px 14px;
    margin: 18px 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--l-text);
}

.c119-notice-icon { flex: none; font-size: 15px; }
.c119-notice-sub { font-size: 12px; color: var(--l-text-sub); }

/* ---------- ページ内目次 ---------- */
.c119-anchor-nav { margin: 20px 0 8px; }

/* ---------- 大原則 ---------- */
.c119-principle {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    box-shadow: var(--l-shadow);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.c119-principle-num {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--l-accent);
    color: #fff;              /* オレンジ塗りの上の白文字（既存と同じ扱い） */
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c119-principle-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.6;
}

.c119-principle-why {
    font-size: 12px;
    color: var(--l-text-sub);
    margin: 0;
    line-height: 1.7;
}

/* 補足の吹き出し（安心してくださいの一文など） */
.c119-callout {
    background: var(--l-bg-card);
    border-left: 4px solid var(--l-accent);
    border-radius: 0 var(--l-radius) var(--l-radius) 0;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.9;
    color: var(--l-text);
}

/* ---------- 通報の流れ 4ステップ ---------- */
.c119-flow {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c119-flow-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    position: relative;
}

/* 上から下へ流れることを示す小さな矢印 */
.c119-flow-item:not(:last-child)::after {
    content: '↓';
    position: absolute;
    left: 27px;
    bottom: -14px;
    font-size: 12px;
    color: var(--l-accent);
    line-height: 1;
}

.c119-flow-num {
    flex: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--l-accent);
    width: 24px;
    text-align: center;
}

.c119-flow-body { min-width: 0; }

.c119-flow-ask {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}

.c119-flow-ex {
    font-size: 12px;
    color: var(--l-text-sub);
    margin: 0;
    line-height: 1.8;
}

/* ---------- 模擬通報 ---------- */
.c119-sim {
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    box-shadow: var(--l-shadow);
    padding: 18px 16px;
    margin: 16px 0;
}

/* --- コース選択 --- */
.c119-pick-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: center;
}
.c119-pick-title:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 3px; }

.c119-pick-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c119-pick-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--l-bg);
    border: 2px solid var(--l-border);
    border-radius: var(--l-radius);
    padding: 14px 16px;
    cursor: pointer;
    font-family: inherit;
    color: var(--l-text);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.c119-pick-btn:hover,
.c119-pick-btn:focus-visible {
    border-color: var(--l-accent);
    background: var(--l-accent-dim);
}

.c119-pick-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.c119-pick-lead {
    display: block;
    font-size: 12px;
    color: var(--l-text-sub);
    line-height: 1.6;
}

/* --- 読み上げトグル ---
   練習中でもいつでもON/OFFできるよう、シミュレーターの一番上に固定で置く。
   （コース選択の中に入れると、コースを選んだ瞬間に一緒に隠れてしまう） */
.c119-voice-wrap {
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--l-border);
    text-align: center;
}

.c119-voice-toggle {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--l-text);
    background: var(--l-bg);
    border: 1px solid var(--l-border);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
}

.c119-voice-toggle[aria-pressed="true"] {
    background: var(--l-accent);
    border-color: var(--l-accent);
    color: #fff;              /* オレンジ塗りの上の白文字 */
}

.c119-voice-note {
    font-size: 11px;
    color: var(--l-text-sub);
    margin: 8px 0 0;
    line-height: 1.7;
}

/* --- コース本体 --- */
.c119-course-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
}
.c119-course-title:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 3px; }

.c119-course-lead {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--l-text-sub);
    margin-top: 3px;
}

/* --- 進捗（色だけに頼らず文字も出す） --- */
.c119-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.c119-progress-bar {
    flex: 1 1 auto;
    height: 6px;
    background: var(--l-border);
    border-radius: 999px;
    overflow: hidden;
}

.c119-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--l-accent);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.c119-progress-text {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--l-text-sub);
}

/* --- 吹き出し --- */
.c119-turn {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.c119-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--l-accent-dim);
    border: 1px solid var(--l-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.c119-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 絵がまだ無いときは「指令」の文字を出す。
   絵が入ったら、その画像が上に重なって文字は見えなくなる。 */
.c119-avatar-text {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    color: var(--l-accent);
}
.c119-avatar-img + .c119-avatar-text { display: none; }
/* 挿絵ヘルパーが「準備中」の枠を返した場合、アイコンの中では邪魔なので隠す */
.c119-avatar .l-manga-pending { display: none; }

.c119-bubble {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: var(--l-radius);
    padding: 12px 14px;
}

.c119-bubble-op {
    background: var(--l-bg);
    border: 1px solid var(--l-border);
}

.c119-bubble-who {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--l-text-sub);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.c119-bubble-text {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}
.c119-bubble-text:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 3px; }

/* --- 「声に出して」の促し --- */
.c119-prompt {
    font-size: 13px;
    line-height: 1.8;
    color: var(--l-text);
    background: var(--l-accent-dim);
    border-radius: var(--l-radius);
    padding: 10px 14px;
    margin: 0 0 12px;
}

/* --- 選択肢 --- */
.c119-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c119-choice {
    display: block;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    color: var(--l-text);
    background: var(--l-bg);
    border: 2px solid var(--l-border);
    border-radius: var(--l-radius);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.c119-choice:hover:not(:disabled),
.c119-choice:focus-visible {
    border-color: var(--l-accent);
    background: var(--l-accent-dim);
}

.c119-choice:disabled { cursor: default; opacity: 0.75; }

/* 正しい答え。色に加えて「✓」の印も付ける */
.c119-choice.is-correct {
    border-color: var(--l-accent);
    background: var(--l-accent-dim);
    opacity: 1;
    font-weight: 700;
}
.c119-choice.is-correct::before {
    content: '✓ ';
    color: var(--l-accent);
    font-weight: 700;
}

/* 選んだけれど違ったもの。責める色は使わず、控えめに示す */
.c119-choice.is-wrong {
    border-style: dashed;
    border-color: var(--l-text-sub);
    background: var(--l-bg);
}
.c119-choice.is-wrong::before {
    content: '△ ';
    color: var(--l-text-sub);
}

/* --- 判定と解説 --- */
.c119-feedback {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--l-border);
}

.c119-feedback-head {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}
.c119-feedback-head.is-correct { color: var(--l-accent); }
.c119-feedback-head.is-wrong { color: var(--l-text-sub); }

.c119-feedback-tip {
    font-size: 13px;
    line-height: 1.9;
    color: var(--l-text-sub);
    margin: 0 0 14px;
}

/* --- 声に出すカード（このページで一番大事な部分） --- */
.c119-say {
    background: var(--l-accent-dim);
    border: 2px solid var(--l-accent);
    border-radius: var(--l-radius);
    padding: 14px 16px;
    text-align: center;
}

.c119-say-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--l-text-sub);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.c119-say-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--l-text);
    margin: 0;
}

/* --- ボタン並び --- */
.c119-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.c119-actions .l-pager-btn,
.c119-actions .l-pager-toc {
    flex: 0 1 auto;
    min-width: 140px;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--l-border);
}
.c119-actions .l-pager-toc { border-color: var(--l-accent); }

/* --- 終わりの画面 --- */
.c119-done { text-align: center; }

.c119-done-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--l-accent);
    margin: 18px 0 6px;
}
.c119-done-title:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 3px; }

.c119-done-sub {
    font-size: 13px;
    line-height: 1.9;
    color: var(--l-text-sub);
    margin: 0 0 16px;
}

.c119-log {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    counter-reset: c119log;
    text-align: left;
}

.c119-log-item {
    counter-increment: c119log;
    position: relative;
    background: var(--l-bg);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    padding: 10px 14px 10px 40px;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.7;
}

.c119-log-item::before {
    content: counter(c119log);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--l-accent);
    color: #fff;              /* オレンジ塗りの上の白文字 */
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c119-review-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
}

.c119-review {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--l-text-sub);
    line-height: 2;
}
.c119-review li::before { content: '□ '; color: var(--l-accent); }

/* ---------- ありがちな失敗 ---------- */
.c119-mistakes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c119-mistake {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    padding: 12px 14px;
    margin-bottom: 8px;
}

.c119-mistake-mark {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--l-text-sub);
}

.c119-mistake-text {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.c119-mistake-note {
    font-size: 12px;
    color: var(--l-accent);
    font-weight: 700;
    margin: 4px 0 0;
}

/* ---------- 周辺の仕組み（折りたたみ） ---------- */
.c119-details {
    background: var(--l-bg-card);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    padding: 0;
    margin-bottom: 8px;
    overflow: hidden;
}

.c119-details summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 14px;
    list-style-position: inside;
}

.c119-details summary:focus-visible { outline: 2px solid var(--l-accent); outline-offset: -2px; }
.c119-details[open] summary { border-bottom: 1px solid var(--l-border); }

.c119-details-body {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--l-text-sub);
}

/* ---------- 2人で練習する ---------- */
.c119-roleplay {
    margin: 0 0 18px;
    padding-left: 1.4em;
    font-size: 14px;
    line-height: 2;
}

.c119-script { margin-bottom: 12px; }

.c119-script-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--l-accent);
    margin: 0 0 10px;
}

.c119-script-line {
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 6px;
    padding-left: 44px;
    text-indent: -44px;
}

.c119-script-me { color: var(--l-text-sub); }

.c119-script-who {
    display: inline-block;
    width: 36px;
    margin-right: 8px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    color: var(--l-text-sub);
    border: 1px solid var(--l-border);
    border-radius: 3px;
    text-indent: 0;
    vertical-align: 2px;
}

/* ---------- 出典 ---------- */
.c119-source { font-size: 13px; line-height: 1.9; }
.c119-source-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--l-text-sub);
}

/* ---------- スマホ ---------- */
@media (max-width: 480px) {
    .c119-sim { padding: 14px 12px; }
    .c119-say-text { font-size: 18px; }
    .c119-actions .l-pager-btn,
    .c119-actions .l-pager-toc { flex: 1 1 100%; min-width: 0; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
    .l-side-menu, .l-side-overlay { transition: none; }

    /* 119番のページ: 進捗バーの伸びと、画面切替のふわっとした動きを止める */
    .c119-progress-fill { transition: none; }
    .c119-pick-btn, .c119-choice { transition: none; }

    ::view-transition-old(root),
    ::view-transition-new(root) { animation: none !important; }
}
