@charset "UTF-8";
/* @generated site_skeleton gen */

/*
 * サイトの型の main.css（2026-11-23。hengakugaika の main.css が土台）
 *
 * 土台から変えたのは、この先頭の説明と、読み物の表の枠（.table-scroll と .data-table）を足したことだけ。問題ページの部分は回3 で足す。
 * 正本は tools の tpl_src にあり、生成ツールが資格ごとの css フォルダに書き出す。
 * 外部フレームワーク・Webフォント・アイコンフォント・JavaScriptを使わない。
 * このファイルのコメントには、パスや、コメントを閉じる記号の並びを書かない。
 */

:root {
    --text: #222;          /* 本文（黒に近いグレー） */
    --muted: #666;         /* 区分など控えめな要素 */
    --line: #cccccc;       /* 罫線・枠線 */
    --line-strong: #999999;
    --accent: #b3141b;     /* アクセント赤（ページ見出し .page-title と解答ボタンのみ） */
    --accent-hover: #8f0f15;
    --emphasis: #ff0000;   /* 本文強調 .red 用（アクセント赤とは別用途） */
    --bg: #ffffff;
    --th-bg: #f5f5f5;      /* 試験概要の表の見出しセル（2026-09-30） */
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0 auto;
    padding: 16px;
    max-width: 700px;
    font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
        "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
}

/* ------- 見出し ------- */
/*
 * 2026-09-30（SEO 統合改修）: ロゴの h1 を廃止し、h1 は各ページ固有の見出し1つにした。
 *   - ページを識別する見出し → h1.page-title（赤）。mondai / mondai_top / 記事 / sitemap
 *   - トップページの見出し → bare h1（本文見出しの bare h2 と同じ見た目）
 *   - 本文中の見出し → bare h2（章トップの「この章の要点」、記事の節見出し、トップの各節など）
 * h2.page-title は互換のため残す（現在は使っていない）。
 */
h1,
h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    line-height: 1.4;
}

h1.page-title,
h2.page-title {
    margin: 0 0 24px;
    font-size: 1.35rem;
    color: var(--accent);
}

h3 {
    margin: 28px 0 8px;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* h4（sitemap.php の「第N章」の見出し。h3 より階層が下） */
h4 {
    margin: 20px 0 6px;
    font-size: 1rem;
    line-height: 1.4;
}

/* リード文（静的ページの見出し直後の概要。h2 より目立たせない・赤は使わない） */
.lead {
    margin: 0 0 20px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
}

.lawdate {
    margin: 0 0 20px;
    font-size: 0.9rem;
}

/*
 * 試験概要の表（トップ・記事。2026-09-30 SEO 統合改修）。
 * 罫線は .waku と同系。スマホでは横スクロールせず折り返す（white-space: nowrap を当てない）。
 */
.exam-table {
    width: 100%;
    margin: 0 0 12px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.exam-table th,
.exam-table td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.exam-table th {
    width: 7.5em;
    background: var(--th-bg);
    font-weight: 700;
}

/* 読み物の表（サイトの型で足した。sonnpo の値を土台に、色はこのファイルの変数に合わせた）。全部を横スクロールの枠で包む */
.table-scroll {
    margin: 0 0 12px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 34em;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table caption {
    padding: 0 0 6px;
    text-align: left;
    font-weight: 600;
}

.data-table th,
.data-table td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--th-bg);
    font-weight: 600;
}

/* 表の下の出典 */
.source {
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* トップの章一覧の要約（章リンクの下の1行） */
.chapter-list li {
    margin: 8px 0;
}

.chapter-list .summary {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

/* 問題ページ末尾・章トップ・記事末尾の関連リンク */
.related {
    margin: 16px 0 0;
    font-size: 0.95rem;
}

p {
    margin: 0 0 14px;
}

ul {
    margin: 0 0 16px;
    padding-left: 1.4em;
}

li {
    margin: 4px 0;
}

/* 本文中の強調（旧サイトの .red を踏襲。色はアクセント赤とは別） */
.red {
    color: var(--emphasis);
    font-weight: 700;
}

/* index.php「-サイトの使い方-」の見出し（旧実装の .fw-6 を踏襲） */
.fw-6 {
    font-weight: 700;
}

/* 囲みボックス（index / about / tokutyo / study / point1〜5） */
.waku {
    margin: 20px 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.waku > :last-child {
    margin-bottom: 0;
}

/* ------- 枝（section。mondai.php） ------- */
section {
    margin: 0 0 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

section:last-of-type {
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

section p {
    margin: 0 0 12px;
}

/* ------- 区分（控えめ・小さめ。mondai.php） ------- */
p.meta {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--muted);
}

/* 区分ブロックの直後（リード文の先頭）に余白 */
p.meta + :not(p.meta) {
    margin-top: 16px;
}

/* ------- 解答（details / summary） ------- */
/* mondai.php は <details> 直下に p.verdict / p を直接置く構成（.answer専用divは無い）。 */
details {
    margin-top: 16px;
}

summary {
    display: inline-block;
    padding: 10px 20px;
    min-height: 44px;
    line-height: 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    list-style: none;
    -webkit-user-select: none;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    content: "";
}

summary:hover,
summary:focus {
    background: var(--accent-hover);
}

details[open] summary {
    margin-bottom: 12px;
}

details p {
    margin: 0 0 12px;
}

details p:last-child {
    margin-bottom: 0;
}

/* 正誤の判定（色分けしない・濃いグレーの太字） */
p.verdict {
    font-weight: 700;
    color: var(--text);
}

/* ------- ナビゲーション（前へ / 次へ） ------- */
/*
 * 「前へ」を左、「次へ」を右。狭くて2つ並ばないときは折り返す。
 * 片方だけのページでは、「次へ」のみ → 右寄せ（.next の margin-left:auto）、
 * 「前へ」のみ → 左寄せ（既定）。
 * breadcrumb も <nav> なので、フレックスは nav:not(.breadcrumb) に限定する。
 */
nav:not(.breadcrumb) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

nav:not(.breadcrumb) a {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 14px 16px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-align: center;
    text-decoration: none;
}

nav a.next {
    margin-left: auto;
}

nav:not(.breadcrumb) a:hover,
nav:not(.breadcrumb) a:focus {
    border-color: var(--line-strong);
}

/* ------- パンくずリスト（header.php の直後・h2 の前） ------- */
/* 本文より小さく控えめに。赤は使わない。インライン要素なのでスマホ幅で自然に折り返す。 */
.breadcrumb {
    margin: 0 0 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb-sep {
    margin: 0 0.4em;
    color: var(--line-strong);
}

/* ------- サイトヘッダ（ロゴ。h1 ではない。2026-09-30） ------- */
.site-header {
    margin-bottom: 20px;
}

/* ロゴを包むリンク */
.site-logo {
    display: inline-block;
}

.site-header img {
    display: block;
    width: 300px;      /* 実寸。縮小のみ許可（下の max-width） */
    max-width: 100%;
    height: auto;      /* width/height 属性から縦横比を保つ */
}

/* ------- サイトフッタ ------- */
.site-footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0 0 8px;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.site-footer a {
    color: var(--muted);
}

/* ------- 広告（AdSense。2026-09-29 に位置別スロット構成へ変更。design.md 13章） ------- */
/* .ad-block の上下余白で本文と区別。.splink（「スポンサーリンク」）は控えめに。赤は使わない。 */
.ad-block {
    margin: 24px 0;
    text-align: center;
}

/* q_top はパンくず直後の枠。読み込み前に高さを確保してレイアウトシフトを防ぐ。 */
.ad-q_top {
    min-height: 100px;
}

/*
 * q_top の ins は固定サイズ（v2）。responsive や horizontal ではスマホでスクエアが配信され、
 * 問題文が画面外に押し出されたため。
 * 768px 以上も 468x60 とする。本文幅は body の max-width 700px から左右 padding 16px を
 * 引いた 668px（box-sizing は border-box）で、728px に満たないため 728x90 は入らない。
 */
.ad-ins-q_top {
    width: 320px;
    height: 100px;
}

@media (min-width: 500px) {
    .ad-ins-q_top {
        width: 468px;
        height: 60px;
    }
}

@media (min-width: 768px) {
    .ad-ins-q_top {
        width: 468px;
        height: 60px;
    }
}

/* 広告と前後ナビの間を広げ、誤クリックを防ぐ。 */
.ad-block + nav,
.ad-block + .pager {
    margin-top: 32px;
}

.splink {
    margin: 0 0 4px;
    font-size: 0.8rem;
    color: var(--muted);
}

/* =======================================================================
 * syoken2 追加分（2026-11-01。構築指示書 §4「.formula を足す」、書き直し指示書 v2 §2「.pt を足す」）
 * ======================================================================= */

/* 出題ポイント（本文の ==…==）。赤太字。印刷時も赤のまま（print 用の色指定は置かない） */
.pt {
    color: var(--emphasis);
    font-weight: 700;
}

/* 計算式（インラインコード）。等幅・枠。段落の中でも1行でも使う */
.formula {
    display: inline-block;
    max-width: 100%;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--th-bg);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95em;
    line-height: 1.6;
    word-break: break-all;
}

/* 本文の表（Markdown の表）。見出し行あり。スマホでは折り返す */
table.md {
    width: 100%;
    margin: 0 0 16px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table.md th,
table.md td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

table.md th {
    background: var(--th-bg);
    font-weight: 700;
}

/* 本文の表の外枠。スマホ幅で列が収まらないときは表だけ横スクロールする（他サイトの .table-wrap と同じ） */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 16px;
}

.table-wrap table.md {
    margin: 0;
}


/* 番号付きリスト（手順） */
ol {
    margin: 0 0 16px;
    padding-left: 1.6em;
}

/* 本文の h3（Q&A の各質問、節の小見出し） */
.content h3 {
    margin: 24px 0 8px;
}

/* 関連記事（nav の後） */
.related ul {
    margin: 0 0 16px;
}

.related-title {
    margin: 0 0 6px;
    font-weight: 700;
}

/* フッターの関連サイト（9本） */
.related-sites-title {
    margin: 0 0 4px;
    font-weight: 700;
}

.related-sites {
    margin: 0 0 12px;
    padding-left: 1.4em;
}

.related-sites li {
    margin: 2px 0;
}

/* 節の区切り線と行間（v9 2026-11-02。段落が詰まって見えるため。h2 と h3 の上に点線、段落の間と行間を広げる） */
.content h2 { margin-top: 2.8em; padding-top: 1.2em; border-top: 1px dashed #bbb; }
.content h3 { margin-top: 2.2em; padding-top: .9em; border-top: 1px dashed #ddd; }
.content p, .content ul, .content ol, .content table { margin-bottom: 1.3em; }
.content p, .content li { line-height: 1.9; }
.content details { margin: .8em 0 2.2em; }
/* 本文の表は table-wrap の中にあり、表自体の下余白は 0 に固定されているので、外枠の下余白を揃える */
.content .table-wrap { margin-bottom: 1.3em; }

/* ------- トップの入口（top- で始まるクラスにだけ効く。値は seihonet の a120c12 と同じ） ------- */
.top-hero {
    --top-orange: #c65000;
    --top-orange-deep: #8a3700;
    --top-navy: #1b3a66;
    --top-pale: #e8f1fb;
    --top-badge: #cf3a16;
    --top-blue: #17589c;
    --top-green: #2fae66;
    margin: 0 0 48px;
}

.top-chunk {
    display: inline-block;
    max-width: 100%;
}

.top-badge-row {
    margin: 0 0 10px;
    line-height: 1.5;
    text-align: center;
}

.top-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--top-badge);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.top-panel {
    padding: 18px 16px;
    border-radius: 12px;
    background: var(--top-pale);
}

/* 見出しは和文の間で折る（keep-all と anywhere の組では、長い見出しが英字の途中で折れた。T6。fp3 の文体の直しの回2 で fp3 の直しの節から移した） */
.top-title {
    margin: 0 0 10px;
    color: var(--top-navy);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    word-break: normal;
    line-break: strict;
    overflow-wrap: anywhere;
}

.top-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.top-subtitle-text {
    min-width: 0;
}

.top-pass {
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--top-navy);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.top-point {
    margin: 18px 0 12px;
    font-size: 17px;
    line-height: 1.7;
}

.top-lead {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.7;
}

.top-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 28px;
}

.top-btn {
    display: block;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.top-btn-fast {
    padding: 18px 16px;
    background: var(--top-orange);
    color: #fff;
    box-shadow: 0 4px 0 var(--top-orange-deep), 0 6px 10px rgba(0, 0, 0, 0.15);
}

.top-fast-title {
    display: block;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
}

.top-fast-note {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.top-fast-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 10px;
}

.top-fast-tag {
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--top-orange-deep);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.top-fast-go {
    font-size: 16px;
    font-weight: 800;
    font-variant-emoji: text;
    white-space: nowrap;
}

.top-btn-safe {
    margin: 3px;
    padding: 12px 12px;
    border: 3px solid var(--top-blue);
    background: #fff;
    color: var(--text);
    text-align: center;
    box-shadow: 0 0 0 3px var(--top-green);
}

.top-safe-title {
    display: block;
    color: var(--top-blue);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.top-safe-note {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
}

@media (hover: hover) {
    .top-btn:hover {
        transform: translateY(2px);
    }

    .top-btn-fast:hover {
        box-shadow: 0 2px 0 var(--top-orange-deep), 0 3px 6px rgba(0, 0, 0, 0.15);
    }
}

.top-btn:active {
    transform: translateY(3px);
}

.top-btn-fast:active {
    box-shadow: 0 1px 0 var(--top-orange-deep), 0 2px 4px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
    .top-badge-row {
        text-align: right;
    }

    .top-panel {
        padding: 22px 24px;
    }

    .top-title {
        font-size: 26px;
    }

    .top-actions {
        flex-direction: row;
        align-items: flex-end;
    }

    .top-btn-fast {
        flex: 1.45 1 0;
        min-width: 0;
    }

    .top-btn-safe {
        flex: 1 1 0;
        min-width: 0;
    }

    .top-fast-title {
        font-size: 26px;
    }
}

/* 幅 390px 未満: 入口の字と余白を詰め、320×568・360×640・375×667 の画面で主役のボタンまでが最初の画面に入るようにする（T1 の続き。fp3 の文体の直しの回2。2026-11-25）。
   文と並びは変えない。ロゴ（ヘッダー）は全ページの部品なので変えない */
@media (max-width: 389.98px) {
    .top-hero {
        margin-bottom: 32px;
    }

    .top-badge-row {
        margin-bottom: 6px;
    }

    .top-badge {
        padding: 2px 10px;
        font-size: 12px;
    }

    .top-panel {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .top-title {
        margin-bottom: 6px;
        font-size: 19px;
        line-height: 1.3;
    }

    .top-subtitle {
        gap: 4px 8px;
        font-size: 15px;
        line-height: 1.4;
    }

    .top-pass {
        padding: 1px 10px;
        font-size: 12px;
    }

    .top-point {
        margin: 10px 0 6px;
        font-size: 15px;
        line-height: 1.55;
    }

    .top-lead {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.55;
    }

    .top-actions {
        gap: 12px;
    }

    .top-btn-fast {
        padding: 10px 14px;
    }

    .top-fast-title {
        font-size: 20px;
    }

    .top-fast-note {
        margin-top: 2px;
        font-size: 13px;
        line-height: 1.4;
    }

    .top-fast-foot {
        margin-top: 4px;
    }

    .top-fast-go {
        font-size: 15px;
    }
}

/* ------- 課程を切り替えるタブ（2026-11-23。tab- で始まるクラスにだけ効く。値は seihonet の a120c12 と同じ） ------- */
.tab-nav {
    margin: 0 0 16px;
}

.tab-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-item {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 4px 6px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

a.tab-link:hover,
a.tab-link:focus {
    border-color: var(--text);
    background: #efefef;  /* sonnpo の --btn-bg と同じ値（このサイトにこの変数は無い） */
    color: var(--text);
}

.tab-current {
    border-color: #1b3a66;
    background: #1b3a66;
    color: #fff;
    font-weight: 700;
}

/* 幅 480px 未満: 5つを1行に並べる。字と左右の余白を詰め、列の幅は文字数に合わせる */
@media (max-width: 479.98px) {
    .tab-list {
        grid-template-columns: repeat(5, auto);
        gap: 3px;
    }

    .tab-link {
        padding: 4px 2px;
        font-size: min(14px, 3.6vw);
        white-space: nowrap;
    }
}

/* トップの目次の表の見出し No. を折り返さない（2026-11-23。このクラスを付けた見出しにだけ効く） */
.top-toc-no {
    white-space: nowrap;
}

/* ------- 問題ページ・回トップ（サイトの型 回3。表示に要る分だけ。見た目の調整は FP3級の S6） ------- */
.q-list {
    padding-left: 0;
    list-style: none;
}

.q-list li {
    margin: 8px 0;
}

.q-kind {
    margin-left: 0.5em;
    font-size: 0.8rem;
    color: var(--muted);
}

.q-choices {
    margin: 0 0 12px;
    padding-left: 1.6em;
}

/* ------- トップの読み物の一覧と、読み物の末尾の「問題演習へ」（D5。2026-11-25） ------- */
/* 一覧は前後ナビと同じ枠のボタンを縦に並べる。分野の見出しは本文の h3 の点線を付けず小さめにする */
.yomi-list h3 {
    margin: 20px 0 8px;
    padding-top: 0;
    border-top: none;
    font-size: 1rem;
}

.yomi-list ul {
    margin: 0 0 8px;
    padding-left: 0;
    list-style: none;
}

.yomi-list li {
    margin: 0 0 8px;
    line-height: 1.6;
}

.yomi-list a {
    display: block;
    padding: 10px 16px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
}

.yomi-list a:hover,
.yomi-list a:focus {
    border-color: var(--line-strong);
}

/* 「問題演習へ」は前後ナビの直前に置く。広告の直後では、広告と前後ナビの間と同じく余白を広げる */
.to-mondai {
    margin: 24px 0 0;
}

.ad-block + .to-mondai {
    margin-top: 32px;
}

.to-mondai a {
    display: inline-block;
    max-width: 100%;
    padding: 14px 16px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-align: center;
    text-decoration: none;
}

.to-mondai a:hover,
.to-mondai a:focus {
    border-color: var(--line-strong);
}

/* ------- トップの問題演習の回の一覧と、入口のボタンの省ける部品（T1。2026-11-25） ------- */
/* 回の一覧は読み物の一覧と同じ枠のボタンを縦に並べる */
.kai-list {
    margin: 16px 0 8px;
    padding-left: 0;
    list-style: none;
}

.kai-list li {
    margin: 0 0 8px;
    line-height: 1.6;
}

.kai-list a {
    display: block;
    padding: 10px 16px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
}

.kai-list a:hover,
.kai-list a:focus {
    border-color: var(--line-strong);
}

/* 主役のボタンの札を省いたときも、押す所の字は右に寄せる */
.top-fast-go {
    margin-left: auto;
}

/* ------- fp3 の直し（停止1 の本人の指摘。2026-11-24） ------- */
/* H20・H21: トップのボタンの上の文は赤にしない（赤は合格基準と法令基準日の行だけ） */
.top-lead .pt {
    color: inherit;
    font-weight: inherit;
}

/* H25: 問題ページの「問題一覧へ」は、前へ・次へと同じ枠のボタンにする */
p.related a {
    display: inline-block;
    padding: 14px 16px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
}

p.related a:hover,
p.related a:focus {
    border-color: var(--line-strong);
}

/* H25: 回の問題一覧のリンクは本文の色にそろえ、既定の青・紫にしない */
.q-list a,
.q-list a:visited {
    color: var(--text);
}

.q-list a:hover,
.q-list a:focus {
    text-decoration: none;
}

/* ------- fp3 の直し（文体の直しの回1。2026-11-25。本人の指摘「行間も文もぎっしり」） ------- */
/* 導入文は太字で .content の外にあり、行間が 1.6 のままだったので、本文と同じ程度に広げる */
.lead {
    line-height: 1.8;
}

/* 箇条書きの項目の間を空け、1項目ずつ読めるようにする */
.content li {
    margin: 0 0 0.6em;
}

/* 問題ページの解説（details の中の文）の行間を本文にそろえる。三答択一は肢ごとの判定の上を空ける */
details p {
    line-height: 1.9;
}

details p + p.verdict {
    margin-top: 1.2em;
}

/* トップの見出しの下の文（引きの1行）を少し大きくする。幅 390px 未満は型の詰めた値のまま（文体の直しの回2。T1） */
@media (min-width: 390px) {
    .top-subtitle {
        font-size: 19px;
    }
}

/* ------- fp3 の直し（上げる前の小さな直し。2026-11-26。本人の決定 U4） ------- */
/* トップの h1 は、幅 360px で「WEBテ」と「キスト」に分かれて折れていた。幅 520px 未満では h1 の幅を 13.5em までにし、
   「問題演習と」の後で折って「WEBテキスト」を2行目にまとめる。headless Edge で測った字の幅は、
   「問題演習と」まで 12.49em、「WEB」まで 14.57em、全体 17.60em（どちら側にも約1em の余裕） */
@media (max-width: 519.98px) {
    .top-title {
        max-width: 13.5em;
    }
}

/* ------- fp3 の直し（トップの直し4。2026-11-26。本人の指定） ------- */
/* トップのボタンの上の文は本人の指定で2行。2つ目の文を必ず新しい行から始める */
.top-lead .top-chunk {
    display: block;
}
