/* 検索エンジン向けの静的ページ (pref/, ranking/) の見た目。アプリ本体の CSS は読みこまない (軽くするため) */
:root {
  /* 共通トークン: base.css と同じ値 (静的ページはアプリ本体の CSS を読まないため、書き写している) */
  --bg: #f7fbf3; --paper: #ffffff; --tint: #e9f6dc; --sun-l: #fcefc8;
  --ink: #1c2b33; --ink-2: #44545c; --ink-3: #5b6a72;
  --line: #dce6d2; --line-card: #c9d7c0; --line-2: #8a9893;
  --blue: #1f6b61; --blue-d: #154a43; --blue-l: #dcece8;
  --mint: #23806e; --green: #278c5d; --sun: #f2b632; --coral: #c4552d;
  --footer-bg: #edf4e6;
  --radius: 14px; --radius-s: 10px;
  --shadow-s: 0 1px 2px rgba(18, 40, 45, 0.07), 0 4px 12px -8px rgba(18, 40, 45, 0.3);
  --font: 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'BIZ UDPGothic', 'Yu Gothic UI', 'Yu Gothic', 'Noto Sans JP', Meiryo, system-ui, sans-serif;
  --font-serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'BIZ UDPMincho', 'Noto Serif JP', serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; overflow-wrap: break-word; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
a { color: var(--blue-d); }
.st-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.st-head { position: sticky; top: 0; z-index: 50; background: rgba(247, 251, 243, 0.94); backdrop-filter: blur(8px); color: var(--ink); border-bottom: 1px solid #cfd8d4; }
.st-head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding-top: 8px; padding-bottom: 8px; }
.st-logo { color: var(--ink); font-weight: 900; font-size: 1.1rem; text-decoration: none; }
.st-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.st-nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 6px 12px; border-radius: 999px; }
.st-nav a:hover, .st-logo:hover { background: var(--blue-l); color: var(--blue-d); text-decoration: none; }
main { padding-bottom: 32px; }
.st-crumbs { font-size: .85rem; color: var(--ink-3); padding: 14px 0 4px; }
.st-crumbs a { color: var(--ink-3); }
h1 { font-size: clamp(1.45rem, 4.2vw, 2rem); line-height: 1.35; margin: 6px 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.4; margin: 0 0 10px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
.st-lead { font-size: 1.05rem; background: var(--paper); border: 1px solid var(--line-card); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 16px 18px; margin-bottom: 16px; }
.st-note { color: var(--ink-2); font-size: .92rem; margin: 8px 0; }
.st-small { color: var(--ink-3); font-size: .85rem; margin-top: 10px; }
.st-sec { margin: 22px 0; }
.st-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .st-split { grid-template-columns: 1fr; } }
.st-fig { background: var(--paper); border: 1px solid var(--line-card); border-radius: 14px; padding: 8px; }
.st-fig figcaption { color: var(--ink-3); font-size: .85rem; padding: 4px 6px 2px; }
.st-map { display: block; width: 100%; height: auto; max-height: 460px; background: #e3eef5; border-radius: 10px; }
.st-map .m-nb { fill: #dde6d3; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.st-map .m-self { fill: #6cc5a4; stroke: #1c2b33; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.st-map .m-lab { fill: #5b6a72; text-anchor: middle; dominant-baseline: central; }
.st-map .m-cap { fill: #c4552d; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.st-map .m-caplab { fill: #1c2b33; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.st-dl { display: grid; gap: 8px; }
.st-dl > div { background: var(--paper); border: 1px solid var(--line-card); border-radius: 12px; padding: 8px 12px; }
.st-dl dt { font-size: .85rem; color: var(--ink-3); }
.st-dl dd b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.st-dl small { display: block; color: var(--ink-3); font-size: .8rem; }
.st-rank { display: inline-block; background: var(--sun-l); border: 1px solid #e3c06a; border-radius: 999px; padding: 0 10px; font-weight: 800; font-size: .9rem; margin-left: 6px; }
.st-nb { margin-top: 10px; }
.st-chips, .st-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips a { display: inline-block; background: var(--blue-l); border-radius: 999px; padding: 2px 12px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.st-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.st-list li { border-bottom: 1px dashed var(--line); padding: 3px 0; }
.st-list small { color: var(--ink-3); margin-left: 6px; }
.st-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.st-cards a { display: block; background: var(--paper); border: 1px solid var(--line-card); border-radius: 12px; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.st-cards a:hover { border-color: var(--blue); }
.st-cards b { display: block; }
.st-cards span { color: var(--ink-3); font-size: .85rem; }
.st-scroll { overflow-x: auto; }
.st-table { border-collapse: collapse; width: 100%; background: var(--paper); border: 1px solid var(--line-card); border-radius: var(--radius-s); font-size: .95rem; }
.st-table th, .st-table td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: middle; }
.st-table th { background: var(--tint); color: var(--ink-2); font-size: .85rem; font-weight: 800; white-space: nowrap; border-bottom: 1px solid var(--line); }
.st-table thead th { border-bottom: 2px solid var(--ink-2); }
.st-table tbody tr:last-child > th, .st-table tbody tr:last-child > td { border-bottom: 0; }
.st-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.st-table tbody tr:hover td { background: #f3f9ee; }
.st-table small { color: var(--ink-3); margin-left: 4px; }
.st-rb { display: inline-block; min-width: 3em; text-align: center; border-radius: 999px; background: #e9eeea; font-weight: 700; padding: 0 8px; }
.st-r1 { background: #f6c453; } .st-r2 { background: #dfe6e2; } .st-r3 { background: #eec6a3; }
.st-rank-table .bar-cell { width: 34%; min-width: 90px; }
.st-bar { display: block; height: 10px; background: #e3ebdf; border-radius: 6px; overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--mint); border-radius: 6px; }
/* ランキングページの全国地図 (色分け)。形は県ページへのリンク */
.st-mapfig { margin: 0; display: grid; gap: 10px; }
.st-nmap { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; background: #e3eef5; border-radius: 10px; }
.st-nmap .nm-link { cursor: pointer; }
.st-nmap .nm-link path { stroke: rgba(27,42,65,.38); stroke-width: 0.9; stroke-linejoin: round; }
.st-nmap .nm-link:hover path { stroke: #1c2b33; stroke-width: 2.4; }
.st-nmap .nm-inset { fill: none; stroke: #9fb0c6; stroke-width: 2; stroke-dasharray: 10 8; }
.st-nmap .nm-badge circle { stroke: #1c2b33; stroke-width: 2.4; }
.st-nmap .nm-badge text { fill: #1c2b33; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.st-nmap .nm-b1 circle { fill: #f6c453; } .st-nmap .nm-b2 circle { fill: #dfe6e2; } .st-nmap .nm-b3 circle { fill: #eec6a3; }
.st-mapfig figcaption { width: 100%; max-width: 480px; margin: 0 auto; }
.st-legend-bar { height: 12px; border-radius: 6px; border: 1px solid var(--line-card); }
.st-legend-lab { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.st-legend-nodata { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-3); margin: 6px 0 0; }
.st-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-card); }
.st-play { background: var(--tint); border: 1px solid var(--line-card); border-radius: var(--radius); padding: 16px 18px; margin: 26px 0; }
.st-play-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.st-btn { display: inline-flex; gap: 8px; align-items: center; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; border-radius: 12px; padding: 9px 18px; min-height: 44px; }
.st-btn:hover { background: var(--blue-d); }
/* 長い文言は、文節の切れ目 (括弧の前など) で折りかえし、行の長さをそろえる。auto-phrase 非対応の端末では、balance だけが効く (提案: 文言の「（」の前に <wbr> を入れる) */
.st-btn { text-align: center; text-wrap: balance; word-break: auto-phrase; line-break: strict; }
.st-pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px; }
.st-pn a { background: var(--paper); border: 1px solid var(--line-card); border-radius: 12px; padding: 8px 18px; text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.st-small-list { padding-left: 1.2em; color: var(--ink-2); font-size: .9rem; }
.st-details { margin-top: 8px; }
.st-details summary { cursor: pointer; font-weight: 700; }
.st-credit { border-top: 2px solid var(--line); padding-top: 12px; font-size: .9rem; color: var(--ink-2); }
.st-credit ul { padding-left: 1.2em; }
.st-foot { background: var(--footer-bg); color: var(--ink-2); border-top: 1px solid var(--line-card); font-size: .9rem; padding: 28px 0 36px; }
.st-foot a { color: var(--blue-d); text-underline-offset: 3px; }
.st-foot a:hover { color: var(--blue); }
.st-foot p { margin: 0 0 6px; }
.st-foot b { color: var(--ink); }
.st-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0; margin: 10px 0 !important; }
.st-links a { white-space: nowrap; font-size: .92rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* スマホ幅: 余白と表をつめる。表は、棒グラフの列を省いて、横にスクロールしないようにする */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .st-wrap { padding: 0 12px; }
  .st-head-in { padding-top: 8px; padding-bottom: 8px; }
  .st-logo { font-size: 1.05rem; }
  .st-nav { gap: 2px 12px; width: 100%; }
  .st-nav a { padding: 6px 2px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  .st-lead { font-size: 1rem; padding: 12px; }
  .st-table { font-size: .9rem; }
  .st-table th, .st-table td { padding: 6px 7px; }
  .st-rank-table .bar-cell, .st-rank-table th[aria-hidden] { display: none; }
  .st-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .st-list { grid-template-columns: 1fr; }
  .st-btn { width: 100%; justify-content: center; }
  .st-pn { flex-direction: column; }
  .st-pn a { text-align: center; }
  .st-links a { white-space: normal; }
}

.st-dl { grid-template-columns: minmax(0, 1fr); }

/* 利用規約・運営者情報・プライバシーポリシー */
.st-prose p { margin: 0 0 10px; }
.st-prose ol, .st-prose ul { margin: 0 0 10px; padding-left: 1.5em; }
.st-prose li { margin: 4px 0; }
.st-prose h2 { padding-top: 6px; }
.st-about dd small { display: block; }

/* お問い合わせフォーム */
.st-form { background: var(--paper); border: 1px solid var(--line-card); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.st-form p { margin: 0 0 10px; }
.st-field label { display: block; font-weight: 700; margin-bottom: 4px; }
.st-field input[type=text], .st-field input[type=email], .st-field select, .st-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.st-field textarea { resize: vertical; min-height: 9em; line-height: 1.6; }
.st-field small { display: block; color: var(--ink-3); font-size: .85rem; margin-top: 4px; }
.st-req, .st-opt { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 0 8px; vertical-align: 1px; }
.st-req { background: #fbe6df; color: #9a2f12; }
.st-opt { background: #e9eeea; color: var(--ink-3); }
.st-check label { display: inline-flex; gap: 8px; align-items: flex-start; }
.st-check input { width: 22px; height: 22px; margin-top: 3px; }
.st-submit { font: inherit; font-weight: 800; color: #fff; background: var(--blue); border: 0; border-radius: 12px; padding: 12px 36px; min-height: 48px; cursor: pointer; }
.st-submit:hover { background: var(--blue-d); }
.st-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.st-error { background: #fff0ee; border: 1.5px solid #c2412f; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.st-error ul { margin: 6px 0 0; padding-left: 1.4em; }
.st-ok { background: #ecf8f1; border: 1.5px solid #2f8a55; border-radius: 12px; padding: 14px 16px; }
.st-ok h2 { margin-bottom: 6px; }
@media (max-width: 600px) { .st-form { padding: 12px; } .st-submit { width: 100%; } }
.st-sub { margin: 14px 0 6px; font-size: 1rem; color: var(--ink-2); }
.st-more { margin: 8px 0 0; }
.st-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; min-width: 220px; max-width: 100%; min-height: 48px; margin: 12px auto 0; padding: 8px 24px; border: 1.5px solid var(--blue); border-radius: 12px; background: var(--blue-l); color: var(--blue-d); font-weight: 800; font-size: .98rem; transition: background 0.12s, color 0.12s; }
.st-more > summary::-webkit-details-marker { display: none; }
.st-more > summary::after { content: ''; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.st-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.st-more > summary:hover { background: var(--blue); color: #fff; }
.st-more[open] > summary { margin-bottom: 12px; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-food { margin: 6px 0 14px; font-weight: 700; }
.st-food small { color: var(--ink-3); font-weight: 400; margin-left: 6px; }

/* ---- 県のページ (pref/NN/) ---- */
.st-map .m-link { cursor: pointer; }
.st-map .m-link:hover .m-nb { fill: #c9d8bd; }
.st-map a:focus-visible { outline: none; }
.st-map a:focus-visible .m-nb { fill: var(--blue-l); stroke: var(--blue-d); stroke-width: 3; }
.st-muni { margin: 14px 0 0; }
.st-toc { margin: 18px 0 0; }
.st-toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.st-toc a { display: inline-block; background: var(--paper); border: 1px solid var(--line-card); border-radius: 999px; padding: 4px 14px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.st-toc a:hover { border-color: var(--blue); }
.st-chips small { color: var(--ink-3); margin-left: 4px; }
.st-chips li { display: flex; align-items: center; }
.st-cat { margin: 10px 0; background: var(--paper); border: 1px solid var(--line-card); border-radius: 12px; padding: 0 10px 10px; }
.st-cat > summary { cursor: pointer; padding: 10px 4px; font-weight: 800; font-size: 1.05rem; list-style-position: inside; }
.st-cat-n { color: var(--ink-3); font-weight: 400; font-size: .92rem; margin-left: 2px; }
.st-cat[hidden] { display: none; }
.st-cat .st-table { border-radius: 8px; }
.st-search { background: var(--tint); border-radius: var(--radius-s); padding: 10px 12px; margin: 10px 0; }
.st-search label { display: block; font-weight: 800; margin-bottom: 4px; }
.st-search-line { display: flex; gap: 8px; }
.st-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 8px 12px; min-height: 44px; }
.st-clear, .st-ruby { font: inherit; font-weight: 700; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 6px 16px; min-height: 44px; cursor: pointer; }
.st-ruby { min-height: 36px; padding: 2px 14px; font-size: .88rem; border-radius: 999px; }
.st-ruby[aria-pressed='true'] { background: var(--blue-d); color: #fff; border-color: var(--blue-d); }
.st-count { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); min-height: 1.4em; }
tr[hidden] { display: none; }
ruby { ruby-position: over; ruby-align: center; }
.ruby-on body { line-height: 1.95; }
.ruby-on .st-head, .ruby-on .st-nav a, .ruby-on .st-btn, .ruby-on .st-toc a, .ruby-on .st-chips a { line-height: 1.9; }
.ruby-on .st-lead { line-height: 2; }
@media (max-width: 600px) { .st-search-line { flex-direction: column; } .st-ruby { width: 100%; } }

/* ランキングページ: 定義・「分かること」・比較リンク (src/lib/ranking-content.ts に書いた指標だけ) */
.st-def { margin: 0 0 14px; padding: 10px 14px; background: var(--tint); border-radius: 12px; font-size: .98rem; }
.st-insight { margin: 16px 0; }
.st-insight h2 { font-size: 1.1rem; }
.st-insight-list { margin: 0; padding-left: 1.3em; }
.st-insight-list li { margin: 3px 0; }
.st-compare { list-style: none; padding: 0; display: grid; gap: 8px; }
.st-compare li { background: var(--paper); border: 1px solid var(--line-card); border-radius: 12px; padding: 8px 14px; }
.st-compare a { font-weight: 700; }
.st-compare span { display: block; color: var(--ink-2); font-size: .92rem; }

/* 時系列: 長期の変化 (ランキングページ) と、詳細ページ (ranking/<id>/history/) */
.st-hist-list { margin: 8px 0 10px; padding-left: 1.3em; }
.st-hist-list li { margin: 3px 0; }
.st-nested { margin-left: 10px; }
.st-related { list-style: none; padding: 0; display: grid; gap: 8px; }
.st-related li { background: var(--paper); border: 1px solid var(--line-card); border-radius: 12px; padding: 8px 14px; }
.st-related a { font-weight: 700; }
.st-related span { display: block; color: var(--ink-2); font-size: .92rem; }
.st-trend { margin: 12px 0; background: var(--paper); border: 1px solid var(--line-card); border-radius: 12px; padding: 8px 10px 4px; }
.st-trend-svg { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.st-trend figcaption { color: var(--ink-3); font-size: .85rem; padding: 2px 4px 6px; }
.t-grid { stroke: var(--line); stroke-width: 1; }
.t-tick { stroke: var(--ink-3); stroke-width: 1; }
.t-ax { fill: var(--ink-3); font-size: 12px; }
.t-mark { stroke: var(--coral); stroke-width: 1.5; stroke-dasharray: 4 3; }
.t-break { stroke: #8a8f98; stroke-width: 1; stroke-dasharray: 2 3; }
.t-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.t-line.s0 { stroke: var(--blue-d); } .t-line.s1 { stroke: var(--green); } .t-line.s2 { stroke: #c2410c; } .t-line.s3 { stroke: #7c3aed; }
.t-pt { stroke: #fff; stroke-width: 1.2; }
.t-pt.s0 { fill: var(--blue-d); } .t-pt.s1 { fill: var(--green); } .t-pt.s2 { fill: #c2410c; } .t-pt.s3 { fill: #7c3aed; }
.t-pt.hollow { fill: #fff; stroke-width: 2; }
.t-pt.hollow.s0 { stroke: var(--blue-d); } .t-pt.hollow.s1 { stroke: var(--green); } .t-pt.hollow.s2 { stroke: #c2410c; } .t-pt.hollow.s3 { stroke: #7c3aed; }
.st-na { color: var(--ink-3); font-size: .85rem; }
.st-bench thead th small { display: block; margin: 0; font-weight: 400; }
.st-bench tbody th[scope="row"] { white-space: nowrap; position: sticky; left: 0; background: var(--paper); }
.st-bench tfoot th, .st-bench tfoot td { background: var(--tint); font-weight: 400; }
.st-histlink { margin: 12px 0; }
.t-keys { display: block; margin-top: 4px; }
.t-key::before { content: ''; display: inline-block; width: 14px; height: 3px; margin-right: 4px; vertical-align: middle; background: currentColor; }
.t-key.s0 { color: var(--blue-d); } .t-key.s1 { color: var(--green); } .t-key.s2 { color: #c2410c; } .t-key.s3 { color: #7c3aed; }

/* コラム (columns/): 記事の本文と一覧のカード */
.col-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 14px; color: var(--ink-3); font-size: .88rem; }
.col-article { max-width: 760px; }
.col-article p { margin: 0 0 1.1em; line-height: 1.95; }
.col-article h2 { margin: 2em 0 .7em; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.col-article h2::before { content: ''; display: block; width: 36px; height: 4px; margin-bottom: 10px; border-radius: 2px; background: var(--blue); }
.col-article h3 { margin: 1.6em 0 .5em; }
.col-article ul, .col-article ol { margin: 0 0 1.1em; padding-left: 1.5em; line-height: 1.9; }
.col-article hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.col-article blockquote { margin: 0 0 1.1em; padding: 4px 14px; border-left: 4px solid var(--line); color: var(--ink-2); }
.col-article blockquote p { margin: 0; }
.col-article .st-scroll { margin: 0 0 1.1em; }
.col-fig { margin: 18px 0; }
.col-fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line-card); border-radius: 12px; background: var(--paper); }
.col-links li { margin: 2px 0; }
.col-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.col-card a { display: flex; flex-direction: column; gap: 4px; height: 100%; background: var(--paper); border: 1px solid var(--line-card); border-radius: 14px; padding: 10px 12px 12px; text-decoration: none; color: var(--ink); }
.col-card a:hover { border-color: var(--blue); }
.col-card-img { display: block; overflow: hidden; border-radius: 10px; background: var(--tint); aspect-ratio: 16 / 9; }
.col-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.col-card b { font-size: 1.02rem; line-height: 1.5; margin-top: 4px; }
.col-card-sum { color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.col-card small { color: var(--ink-3); margin-top: auto; padding-top: 4px; }
@media (max-width: 600px) { .col-article p { line-height: 1.9; } .col-cards { grid-template-columns: 1fr; } }
/* コラム一覧のページ送り */
/* シリーズ: 一覧の「シリーズから読む」・シリーズのページ・記事の末尾の案内 */
.col-series-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.col-series-card a { display: flex; flex-direction: column; gap: 4px; height: 100%; background: var(--tint); border: 1px solid var(--line-card); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.col-series-card a:hover { border-color: var(--blue); }
.col-series-card b { font-size: 1.05rem; line-height: 1.5; }
.col-series-card span { color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.col-series-card small { color: var(--ink-3); margin-top: auto; padding-top: 4px; }
.col-theme-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; }
.col-theme-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-card); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; }
.col-theme-nav a:hover { border-color: var(--blue); }
.col-series-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.col-series-ordered { counter-reset: col-n; }
.col-series-list li a { display: block; background: var(--paper); border: 1px solid var(--line-card); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.col-series-list li a:hover { border-color: var(--blue); }
.col-series-ordered li { counter-increment: col-n; }
.col-series-ordered li a::before { content: counter(col-n) "."; display: inline-block; min-width: 1.6em; margin-right: 4px; color: var(--blue); font-weight: 700; }
.col-series-list b { line-height: 1.6; }
.col-series-sum { display: block; margin-top: 2px; color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.col-series-list small { display: block; margin-top: 2px; color: var(--ink-3); }
.col-series-nav { margin: 28px 0 8px; padding: 12px 16px; background: var(--tint); border: 1px solid var(--line-card); border-radius: 14px; }
.col-series-nav-title { margin: 0 0 6px; font-weight: 700; }
.col-series-nav ul { margin: 0 0 6px; padding-left: 1.2em; }
.col-series-nav li { margin: 4px 0; }
.col-pager { margin: 22px 0 4px; text-align: center; }
.col-pager-range { margin: 0 0 8px; color: var(--ink-3); font-size: .88rem; }
.col-pager-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.col-pager-list a, .col-pager-now, .col-pager-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px; box-sizing: border-box; }
.col-pager-list a { background: var(--paper); border: 1px solid var(--line-card); color: var(--ink); text-decoration: none; }
.col-pager-list a:hover { border-color: var(--blue); }
.col-pager-now { background: var(--blue-d); border: 1px solid var(--blue-d); color: #fff; font-weight: 700; }
.col-pager-gap { color: var(--ink-3); min-width: 24px; padding: 0 2px; }
/* コラムの画像 + 重ねる文字 (image-layout.json)。組み立ては scripts/seo/markdown.ts の renderLayoutFigure。制作側のプレビュー (columns/article-image-layout.mjs) と同じ見た目 */
.col-figure { margin: 26px 0; background: #faf8f2; border: 1px solid #e1e4d8; border-radius: 6px; overflow: hidden; }
.col-visual { position: relative; aspect-ratio: var(--image-ratio); container-type: inline-size; isolation: isolate; }
.col-visual > img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.col-image-heading { margin: 0; font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-weight: 700; font-size: clamp(17px, 3.8cqw, 27px); line-height: 1.5; letter-spacing: .015em; }
.col-image-heading span { display: block; }
.col-image-overlay { position: absolute; z-index: 2; max-width: 48%; padding: 11px 15px; background: rgba(21, 46, 34, .94); color: #fff; border-radius: 4px; }
.col-at-top-left { top: 5%; left: 4%; } .col-at-bottom-left { bottom: 4%; left: 4%; } .col-at-top-right { top: 5%; right: 4%; }
.col-image-caption { padding: 14px 18px 16px; font-size: 15px; line-height: 1.8; color: #344039; }
.col-image-caption p { margin: 0; } .col-image-caption p + p { margin-top: 7px; }
.col-image-note { font-size: 14px; color: #56655d; }
.col-image-caption .col-image-heading { font-size: 21px; margin-bottom: 8px; }
.col-diagram-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.col-diagram-label { position: absolute; transform: translate(-50%, -50%); padding: 3px 4px; max-width: 31%; background: #faf8f2f5; color: #263f33; font-size: clamp(14px, 2.8cqw, 19px); line-height: 1.45; text-align: center; white-space: pre-line; }
.col-image-wordplay { position: absolute; left: 3%; top: 23%; width: 39%; color: #263f33; text-align: center; font-size: clamp(16px, 3.8cqw, 27px); font-weight: 700; line-height: 1.6; background: #faf8f2e8; padding: 8px 3px; }
.col-image-wordplay span, .col-image-wordplay strong { display: block; } .col-image-wordplay del { text-decoration-thickness: 2px; color: #7c5341; }
@media (max-width: 600px) { .col-image-overlay { padding: 8px 10px; } .col-image-heading { font-size: clamp(16px, 4.4cqw, 23px); } .col-image-caption { padding: 12px 14px; font-size: 14px; } .col-image-caption .col-image-heading { font-size: 18px; } }
/* 狭い画面: 重ねるタイトルは、ふりがなで背が高くなり、画像の半分近くを隠してしまう。矢印・ラベル・ことば遊び (位置が画像の割合で決まる図) 以外は、タイトルを画像の上の帯にする */
@media (max-width: 720px) {
  .col-visual:not(:has(.col-diagram-layer, .col-diagram-label, .col-image-wordplay)) { aspect-ratio: auto; display: flex; flex-direction: column; }
  .col-visual:not(:has(.col-diagram-layer, .col-diagram-label, .col-image-wordplay)) > img { height: auto; }
  .col-visual:not(:has(.col-diagram-layer, .col-diagram-label, .col-image-wordplay)) .col-image-overlay { position: static; order: -1; max-width: none; border-radius: 0; padding: 8px 14px; }
  .col-visual:not(:has(.col-diagram-layer, .col-diagram-label, .col-image-wordplay)) .col-image-heading span { display: inline; }
}

/* ===== コラム (読みもの): 見出しは明朝 (知的)・本文はいつものゴシック (子どもにも読みやすい) ===== */
main:is(:has(.col-article), :has(.col-cards), :has(.col-series-list)) > h1 { font-family: var(--font-serif); font-weight: 800; font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.5; margin: 8px 0 14px; text-wrap: balance; }
.ruby-on main:is(:has(.col-article), :has(.col-cards), :has(.col-series-list)) > h1 { line-height: 1.7; }
.col-article { font-size: 1.04rem; }
.col-article h2 { color: var(--blue-d); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; line-height: 1.5; margin: 2.4em 0 .7em; padding-bottom: 0; border-bottom: 0; text-wrap: balance; }
.col-article h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 800; }
.col-article hr { border-top: 1px solid var(--line-card); }
.col-article blockquote { border-left: 0; background: var(--tint); border-radius: var(--radius-s); padding: 10px 16px; }
.col-meta span:nth-child(n+3) { background: var(--tint); border-radius: 6px; padding: 0 10px; color: var(--ink-2); font-weight: 700; }
.col-fig img { border-color: var(--line-card); }
.col-figure { background: var(--paper); border: 1px solid var(--line-card); border-radius: var(--radius); }
.col-image-heading { font-family: var(--font-serif); }
.col-card a, .col-series-card a { transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.col-card a:hover, .col-series-card a:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.col-card b { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 800; }
.col-series-card b { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 800; }
.col-series-card a { background: var(--tint); border-color: var(--line-card); }
.col-theme-nav a { border-color: var(--line-card); font-weight: 700; }
.col-series-list li a { border-color: var(--line-card); }
.col-series-nav { border-color: var(--line-card); }

/* ===== 運営者情報・お問い合わせ・規約 (読む・書く) ===== */
.st-prose h2 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 800; line-height: 1.5; color: var(--blue-d); margin: 1.6em 0 .6em; padding-top: 0; }
.st-prose { font-size: 1.02rem; }
.st-prose ul { display: grid; gap: 8px; }
.st-prose ul li { margin: 0; line-height: 1.8; }
.st-prose ul li > b:first-child { color: var(--ink); }
.st-prose p { line-height: 1.85; }
/* 運営者情報の表 (項目名 + 中身): 数字用の大きな太字は使わない */
.st-about { gap: 0; background: var(--paper); border: 1px solid var(--line-card); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 4px 20px; }
.st-about > div { background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 16px; }
.st-about > div:first-child { border-top: 0; }
.st-about dt { font-weight: 800; padding-top: 2px; }
.st-about dd { margin: 0; }
.st-about dd b { font-size: 1rem; font-variant-numeric: normal; }
.st-about dd small { color: var(--ink-3); margin-top: 2px; }
@media (max-width: 640px) { .st-about > div { grid-template-columns: minmax(0, 1fr); } .st-about { padding: 2px 16px; } }
/* フォーム */
.st-form { padding: 22px 24px; gap: 6px; max-width: 720px; box-shadow: var(--shadow-s); border-radius: var(--radius); }
.st-field label { font-size: .98rem; margin-bottom: 6px; }
.st-field input[type=text], .st-field input[type=email], .st-field select, .st-field textarea { border-radius: 12px; min-height: 48px; transition: border-color 0.12s, box-shadow 0.12s; }
.st-field textarea { padding-top: 12px; }
.st-field input:hover, .st-field select:hover, .st-field textarea:hover { border-color: var(--blue); }
.st-field input:focus-visible, .st-field select:focus-visible, .st-field textarea:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l), 0 0 0 4.5px var(--blue); }
.st-field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%23154a43' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.st-check { background: var(--tint); border-radius: var(--radius-s); padding: 12px 14px; }
.st-check input { accent-color: var(--blue); }
.st-check input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.st-submit { max-width: 360px; width: 100%; border-radius: 12px; border: 1.5px solid var(--blue-d); box-shadow: 0 3px 0 var(--blue-d); transition: transform 0.1s, box-shadow 0.1s, background 0.12s; }
.st-submit:active { transform: translateY(3px); box-shadow: 0 0 0 transparent; }
.st-submit:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 640px) { .st-form { padding: 16px; } .st-submit { max-width: none; } }
