/*
 * 記事（/guides/ 配下）専用のスタイル。styles.css（Design Lock・変更禁止）は読むだけで、上書きしない。
 * 読み込み: frontend/src/app/guides/layout.tsx（/guides/ 配下だけ）。クラスはすべて .art- で始まる。
 *
 * 文字色のコントラスト（白地 #fff での実測。WCAG の相対輝度で計算。AA は通常の文字 4.5:1 以上）:
 *   --ink   #0b2230 16.33   --ink-2 #274651 10.09   --brand-d #087260 5.86   --art-muted #4a5f67 6.72
 *   --art-warn #8a4b00 6.80   （色つきの面の上でも 4.5 以上: mint 上 brand-d 5.33 / art-muted 6.11、wash 上 art-muted 6.40、warm 上 art-warn 6.41）
 *   使わない: --muted #6b7e85 は白地 4.24（AA 未満）、--brand #0f8f79 は白地 4.02（AA 未満）。記事の本文・小さな文字には使わず、
 *   --brand は面・線・番号の丸などの装飾（文字ではない。3:1 以上）に限る。
 *   枠線（操作部品の境界。3:1 以上）: --art-border #6f8b86 白地 3.68
 */
:root {
  --art-text: var(--ink);
  --art-sub: var(--ink-2);
  --art-muted: #4a5f67;
  --art-link: var(--brand-d);
  --art-border: #6f8b86;
  --art-warn: #8a4b00;
  --art-measure: 40em; /* 17px の全角で 40 字（680px）。1 行 38〜40 字 */
}

/* 見出しへ飛んだとき、固定ヘッダー(78px。スマホ66px)の下に隠れない */
html { scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.art-main { padding: 12px 0 56px; background: #fff; color: var(--art-text); }
.art-container { width: min(1000px, calc(100% - 32px)); margin-inline: auto; }
@media (min-width: 641px) { .art-container { width: min(1000px, calc(100% - 48px)); } }

.art-main a { color: var(--art-link); text-decoration: underline; text-underline-offset: 3px; }
.art-main a:hover { color: var(--ink); }
.art-main a:focus-visible, .art-main summary:focus-visible, .art-main input:focus-visible, .art-main .art-table-wrap:focus-visible {
  outline: 3px solid var(--brand-d); outline-offset: 2px; border-radius: 6px;
}

/* パンくず */
.art-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--art-muted); }
.art-crumbs li { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.art-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--art-muted); }
.art-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }

/* 記事の頭 */
.art { font-size: 17px; line-height: 1.9; max-width: 980px; overflow-wrap: anywhere; }
.art-head { max-width: var(--art-measure); margin-bottom: 20px; }
.art-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--brand-d); line-height: 1.6; }
.art-head h1 { margin-top: 6px; font-size: clamp(26px, 6.4vw, 34px); line-height: 1.45; letter-spacing: 0; }
.art-lede { margin-top: 10px; color: var(--art-sub); }
.art-dates { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--art-muted); }

/* 要点ボックス（冒頭の結論） */
.art-key { max-width: var(--art-measure); padding: 18px 20px 20px; background: var(--mint); border-left: 6px solid var(--brand-d); border-radius: 4px 14px 14px 4px; }
.art-key-label { font-size: 14px; font-weight: 800; letter-spacing: .06em; line-height: 1.6; color: var(--brand-d); }
.art-key p { margin-top: 6px; font-size: 18px; line-height: 1.85; font-weight: 600; color: var(--ink); }

/* 目次（この記事で分かること）: スマホは開閉、PC は右の固定欄 */
.art-layout { margin-top: 20px; }
details.art-toc { border: 1px solid var(--art-border); border-radius: 12px; background: #fff; }
.art-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-weight: 800; font-size: 16px; cursor: pointer; list-style: none; }
.art-toc summary::-webkit-details-marker { display: none; }
.art-toc summary::after { content: "＋"; color: var(--brand-d); font-weight: 800; }
.art-toc[open] summary::after { content: "－"; }
.art-toc nav { padding: 0 16px 10px; }
.art-toc ol { margin: 0; padding: 0; list-style: none; }
.art-toc li + li { border-top: 1px solid var(--line); }
.art-toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 15px; line-height: 1.6; text-decoration: none; }
.art-toc a:hover { text-decoration: underline; }

.art-body { max-width: var(--art-measure); margin-top: 20px; }

@media (min-width: 1024px) {
  /* 左の列: 結論・要点カード → 本文。右の列: 目次（結論と同じ高さから始まり、本文が続く間ずっと固定） */
  .art-layout { display: grid; grid-template-columns: minmax(0, var(--art-measure)) 260px; gap: 0 48px; align-items: start; }
  .art-layout > .art-lead { grid-column: 1; grid-row: 1; }
  .art-layout > .art-body { grid-column: 1; grid-row: 2; margin-top: 8px; }
  .art-layout > .art-toc { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: calc(var(--header) + 16px); }
  /* PC では目次を常に開いておく（::details-content 対応のブラウザだけ。非対応なら、スマホと同じ開閉のまま） */
  @supports selector(::details-content) {
    details.art-toc::details-content { content-visibility: visible; display: block; height: auto; }
    .art-toc summary { pointer-events: none; cursor: default; }
    .art-toc summary::after { content: none; }
  }
}

/* 前提の共通注記 */
.art-premise { padding: 14px 16px; background: var(--wash); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; line-height: 1.8; color: var(--art-muted); }

/* 本文ブロック */
.art-block { margin-top: 36px; }
.art-block > h2, .art-sources h2, .art-next h2, .art-area h2, .art-hub h2 {
  font-size: 22px; line-height: 1.5; letter-spacing: 0; padding: 2px 0 2px 12px; border-left: 5px solid var(--brand);
}
.art-block h3, .art-next h3 { margin-top: 18px; font-size: 18px; line-height: 1.6; }
.art-p { margin-top: 14px; }
.art-block > h2 + .art-p, .art-block > h2 + * { margin-top: 14px; }
.art-block:first-child { margin-top: 28px; }
.art-block--cont { margin-top: 14px; }
/* h2 の節の間: 十分な余白と細い区切り線（前提の注記の直後の最初の節には付けない） */
.art-body > .art-block--h2 { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.art-body > .art-premise + .art-block--h2 { margin-top: 28px; padding-top: 0; border-top: 0; }
/* よくある質問の見出しに、既存のアイコン（public/assets/icons/faq.svg）を添える */
.art-block--faq > h2::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: -4px; background: var(--brand-d); -webkit-mask: url(/assets/icons/faq.svg) center / contain no-repeat; mask: url(/assets/icons/faq.svg) center / contain no-repeat; }
/* 見出しレベル 3（直前の h2 の下に置く表・手順など）。手順・質問の見出しは 1 つ下の h4 */
.art-block--h3 { margin-top: 26px; }
.art-block > h3 { margin-top: 0; font-size: 19px; line-height: 1.55; padding: 1px 0 1px 10px; border-left: 3px solid var(--brand); }
.art-block > h3 + * { margin-top: 12px; }
.art-block h4 { margin-top: 18px; font-size: 17px; line-height: 1.6; }

/* 手順（番号つき。各手順に「なぜ」「注意」） */
.art-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: step; }
.art-steps > li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.art-steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-d); color: #fff; font-weight: 800; font-size: 16px; line-height: 1; }
.art-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 42px; bottom: 6px; width: 2px; background: var(--line); }
.art-steps h3, .art-steps h4 { margin: 0; }
.art-steps p { margin-top: 6px; }
.art-step-why, .art-step-caution { font-size: 15px; line-height: 1.8; }
.art-step-why strong, .art-step-caution strong { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 6px; font-size: 13px; line-height: 1.7; }
.art-step-why strong { background: var(--mint); color: var(--brand-d); }
.art-step-caution strong { background: var(--warm); color: var(--art-warn); box-shadow: inset 0 0 0 1px #e8dcc3; }

/* 表（caption・th scope・横スクロール・先頭列固定） */
.art-table-wrap { margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--art-border); border-radius: 12px; background: #fff; }
.art-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.7; }
.art-table caption { caption-side: top; text-align: left; padding: 12px 14px 8px; font-weight: 800; font-size: 15px; }
.art-table th, .art-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.art-table thead th { background: var(--wash); font-weight: 800; white-space: nowrap; }
.art-table tbody th { min-width: 7em; font-weight: 800; background: #fff; }
.art-table thead th:first-child, .art-table tbody th { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.art-table thead th:first-child { background: var(--wash); }

/* 記事の h1: titleLines の各行は塊として折り返す（1 文字だけの行落ちを防ぐ） */
.art-title-line { display: inline-block; }

/* テーマ画像（任意） */
.art-hero { max-width: var(--art-measure); margin: 0 0 20px; }
.art-hero img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--wash); }
.art-hero figcaption { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--art-muted); }

/* 表のセル内の箇条書き */
.art-row-note { display: block; width: fit-content; margin-top: 6px; padding: 1px 8px; border: 1px solid var(--art-border); border-radius: 999px; background: var(--wash); color: var(--art-muted); font-size: 12px; font-weight: 700; line-height: 1.6; } /* 編集行（出典の脚注が付かない行）の印。通常のテキストとして読める */
.art-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.art-table-note { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--art-muted); } /* editorialRows を持つ表の下の説明 */
.art-cell-list { margin: 0; padding-left: 1.2em; list-style: disc; }
.art-cell-list li + li { margin-top: 2px; }

/* よくある質問（問いの形の小見出し＋直下に 1〜2 文） */
.art-faq { margin-top: 6px; }
.art-faq h3, .art-faq h4 { margin-top: 18px; padding-left: 28px; position: relative; }
.art-faq h3::before, .art-faq h4::before { content: "Q"; position: absolute; left: 0; top: 0; color: var(--brand-d); font-weight: 800; }
.art-faq p { margin-top: 6px; padding-left: 28px; }

/* チェックリスト（JS 不要。チェック状態は保存しない。印刷対応） */
.art-checklist { list-style: none; margin: 14px 0 0; padding: 2px 16px; border: 1px solid var(--art-border); border-radius: 12px; background: #fff; }
.art-checklist li + li { border-top: 1px solid var(--line); }
.art-checklist label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; }
.art-checklist input[type="checkbox"] { flex: none; width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--brand-d); }

/* 補足・注意 */
.art-callout { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 16px; line-height: 1.85; }
.art-callout p { margin: 4px 0 0; }
.art-callout--note { background: var(--sky); border: 1px solid #bcd9e2; }
.art-callout--warning { background: var(--warm); border: 1px solid #e8dcc3; border-left: 6px solid var(--art-warn); }
.art-callout-label { font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.art-callout--warning .art-callout-label { color: var(--art-warn); }
.art-callout--note .art-callout-label { color: var(--ink-2); }

/* 脚注（出典の番号） */
.art-fn { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--art-muted); }
.art-fn a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }

/* 手順・表の行・質問の項目の末尾の脚注 */
.art-fn--item { display: flex; margin-top: 2px; }
.art-fn--item a { min-width: 40px; }
.art-faq .art-fn--item { display: inline-flex; margin: -10px 0 -10px 6px; vertical-align: middle; } /* 押せる範囲は 44px のまま、行の高さを広げない */

/* 分岐の図（質問 → はい／いいえ → 行き先）。1 本の縦の流れ。スマホ 360px でも崩れない */
.art-flow { margin: 14px 0 0; }
.art-flow figcaption { font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--art-muted); }
.art-flow-list { list-style: none; margin: 12px 0 0; padding: 0; }
.art-flow-q { position: relative; padding: 14px 14px 16px; border: 1px solid var(--art-border); border-radius: 12px; background: #fff; }
.art-flow-q + .art-flow-q { margin-top: 30px; }
.art-flow-q + .art-flow-q::before { content: "↓"; position: absolute; left: 22px; top: -28px; width: 24px; text-align: center; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--brand-d); }
.art-flow-qtext { font-size: 17px; font-weight: 800; line-height: 1.7; }
.art-flow-qno { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 6px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13px; line-height: 1.7; vertical-align: 1px; }
.art-flow-branches { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.art-flow-branches > li { display: flex; align-items: flex-start; gap: 10px; }
.art-flow-ans { flex: none; width: 4.4em; padding: 6px 0; text-align: center; border-radius: 8px; font-size: 15px; font-weight: 800; line-height: 1.5; }
.art-flow-ans--yes { background: var(--mint); color: var(--brand-d); box-shadow: inset 0 0 0 1px var(--brand-d); }
.art-flow-ans--no { background: var(--wash); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--art-border); }
.art-flow-dest { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding: 6px 12px; background: var(--mint); border-left: 4px solid var(--brand-d); border-radius: 4px 10px 10px 4px; font-size: 16px; line-height: 1.7; }
.art-flow-dest-text { font-weight: 700; }
.art-flow-go, .art-flow-next { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; }

/* 結論の直下の要点カード */
.art-quick { max-width: var(--art-measure); margin-top: 14px; }
.art-quick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.art-quick-list a { display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid var(--art-border); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; line-height: 1.65; }
.art-quick-list a:hover { background: var(--mint); }
.art-quick-list strong { font-size: 15px; font-weight: 800; color: var(--brand-d); }
.art-quick-list span { font-size: 15px; }
.art-quick .art-fn { margin-top: 4px; }

/* 見出し・タイトルの折り返しを自然に（日本語は文節で折り返せるブラウザで。「処分方／法」のような 1 文字落ちを減らす） */
.art-block h2, .art-block h3, .art-block h4, .art-key p, .art-next h2, .art-next h3, .art-sources h2, .art-area h2, .art-flow-qtext { text-wrap: balance; }
.art h1, .art-p, .art-callout p, .art-faq p, .art-step-why, .art-steps p { text-wrap: pretty; }
@supports (word-break: auto-phrase) {
  .art, .art-crumbs, .art-quick { word-break: auto-phrase; }
}

/* 関連する自治体の情報・次にやること */
.art-area, .art-next, .art-sources { margin-top: 44px; }
.art-area p, .art-sources > p { margin-top: 12px; }
.art-area-search { margin-top: 16px; padding: 20px; }
.art-area-link { margin-top: 10px; }
.art-area-link a { display: inline-flex; align-items: center; min-height: 44px; }
.art-next-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.art-next-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--art-border); border-radius: 12px; background: #fff; font-weight: 700; line-height: 1.6; text-decoration: none; }
.art-next-list a::after { content: "→"; flex: none; color: var(--brand-d); }
.art-next-list a:hover { background: var(--mint); }
.art-next-hub { margin-top: 14px; }
.art-next-hub a { display: inline-flex; align-items: center; min-height: 44px; }

/* 出典一覧（脚注番号と対応） */
.art-sources ol { list-style: none; margin: 12px 0 0; padding: 0; }
.art-sources li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.art-source-no { flex: none; min-width: 2.4em; font-weight: 800; color: var(--ink-2); }
.art-source-body { min-width: 0; overflow-wrap: anywhere; }
.art-source-body a { display: block; padding: 8px 0; font-size: 14px; }
.art-source-kind { font-weight: 700; }
.art-source-kind-note { color: var(--art-muted); font-size: 14px; }
.art-source-date { display: block; color: var(--art-muted); font-size: 14px; }
.art-sources li:target { background: var(--mint); }

/* 更新日・確認日・編集方針 */
.art-meta { margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--line); font-size: 15px; line-height: 1.8; color: var(--art-muted); }
.art-meta dl { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.art-meta dl > div { display: flex; gap: 8px; }
.art-meta dt { font-weight: 800; }
.art-meta dd { margin: 0; }
.art-meta p { margin-top: 10px; }
.art-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.art-pastdue { padding: 10px 14px; border-radius: 10px; background: var(--warm); border-left: 6px solid var(--art-warn); color: var(--art-warn); font-weight: 700; }

/* 一覧ページ（/guides/） */
.art-hub { margin-top: 36px; max-width: var(--art-measure); }
.art-hub > p { margin-top: 10px; color: var(--art-sub); }
.art-hub-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.art-hub-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--art-border); border-radius: 12px; font-weight: 700; text-decoration: none; }
.art-hub-list a::after { content: "→"; color: var(--brand-d); }
.art-hub-list a:hover { background: var(--mint); }

/* スマホ幅（360px）で崩さない */
@media (max-width: 640px) {
  /* パンくず: 1 行に収め、最後の項目（記事タイトル。直下の h1 と同じ）は長ければ省略する */
  .art-crumbs ol { flex-wrap: nowrap; }
  .art-crumbs li { flex: none; }
  .art-crumbs li[aria-current] { flex: 1 1 0; min-width: 0; }
  .art-crumbs li[aria-current] span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .art-quick-list { grid-template-columns: minmax(0, 1fr); }
  /* 表を、スマホでは 1 行 1 枚のカードにする（mobileLayout: "cards"。HTML は表のまま、見た目だけ） */
  .art-table-wrap--cards { overflow: visible; border: 0; background: none; border-radius: 0; }
  .art-table--cards { display: block; min-width: 0; }
  .art-table--cards caption { display: block; padding: 0 0 10px; }
  .art-table--cards thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .art-table--cards tbody { display: grid; gap: 12px; }
  .art-table--cards tr { display: block; overflow: hidden; border: 1px solid var(--art-border); border-radius: 12px; background: #fff; }
  .art-table--cards tbody th { display: block; position: static; min-width: 0; padding: 10px 14px; border-top: 0; box-shadow: none; background: var(--mint); color: var(--ink); font-size: 16px; line-height: 1.6; }
  .art-table--cards td { display: block; padding: 8px 14px 10px; border-top: 1px solid var(--line); }
  .art-table--cards td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 800; line-height: 1.6; color: var(--art-muted); }
  .art-block > h3 { font-size: 18px; }
  .art-key { padding: 16px 16px 18px; }
  .art-key p { font-size: 17px; }
  .art-block > h2, .art-sources h2, .art-next h2, .art-area h2, .art-hub h2 { font-size: 20px; }
  .art-steps > li { padding-left: 46px; }
  .art-steps > li::before { width: 32px; height: 32px; }
  .art-steps > li:not(:last-child)::after { left: 15px; top: 38px; }
  .art-area-search { padding: 14px; }
}

/* 印刷（チェックリスト・手順・出典を紙に出せるように。操作部品・ナビは消す） */
@media print {
  .site-header, .mobile-nav, .footer, .skip-link, .art-crumbs, .art-toc, .art-area, .art-next { display: none !important; }
  html { scroll-padding-top: 0; }
  .art-main { padding: 0; }
  .art-container { width: 100%; }
  .art { font-size: 11pt; line-height: 1.7; color: #000; max-width: none; }
  .art a { color: #000; text-decoration: none; }
  .art-key { background: #fff; border: 1px solid #000; border-left-width: 6px; break-inside: avoid; }
  .art-key-label, .art-eyebrow { color: #000; }
  .art-block { break-inside: avoid-page; margin-top: 18pt; }
  .art-block > h2 { border-left-color: #000; break-after: avoid; }
  .art-steps > li { break-inside: avoid; }
  .art-steps > li::before { background: #fff; color: #000; border: 1.5pt solid #000; }
  .art-step-why strong, .art-step-caution strong { background: none; color: #000; box-shadow: none; border: 1px solid #000; }
  .art-checklist li { break-inside: avoid; }
  .art-checklist label { min-height: 0; padding: 5pt 0; }
  .art-checklist input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 13pt; height: 13pt; margin-top: 2pt; border: 1.5pt solid #000; border-radius: 2pt; background: #fff; }
  .art-checklist input[type="checkbox"]:checked { background: #000; }
  .art-table-wrap { overflow: visible; border: 1px solid #000; }
  .art-table { min-width: 0; font-size: 10pt; }
  .art-table thead th, .art-table tbody th { position: static; box-shadow: none; background: #fff; }
  .art-table tr { break-inside: avoid; }
  .art-callout { background: #fff !important; border: 1px solid #000 !important; }
  .art-flow-q { break-inside: avoid; border-color: #000; }
  .art-flow-ans, .art-flow-dest, .art-flow-qno { background: #fff; color: #000; box-shadow: none; border: 1px solid #000; }
  .art-quick-list a { border-color: #000; }
  .art-fn a { min-width: 0; min-height: 0; }
  .art-source-body a { font-size: 9pt; }
  .art-meta, .art-source-date, .art-dates, .art-premise { color: #000; }
  .art-pastdue { background: #fff; color: #000; border-left-color: #000; }
}

/* 挿絵（figure ブロック・hero）: 角丸・薄い枠線は既存のカードに合わせる。width/height 属性と aspect-ratio で高さを確保し、読み込み中のずれを防ぐ */
.art-figure { max-width: 560px; margin: 32px auto; }
.art-figure picture, .art-hero picture { display: block; }
.art-figure img, .art-hero picture img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.art-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
/* hero は本文列の幅いっぱい（PC の本文列は 980px - 目次 260px - 隙間 48px = 672px）。高さは 400px 前後に収める */
.art-hero picture img { aspect-ratio: 17 / 10; object-fit: cover; object-position: 50% 50%; }
@media (min-width: 1024px) { .art-hero { max-width: 672px; } }
.art-figure figcaption, .art-hero picture + figcaption { margin-top: 4px; font-size: 12.5px; line-height: 1.5; text-align: right; color: var(--art-muted); }
.art-body > .art-figure:first-child { margin-top: 28px; }
.art-body > .art-block + .art-figure { margin-top: 36px; }
