/* 防災白書の解説（入口・令和●年版を読む・白書の変遷）。土台は kihonhou.css（.kh-*）。ここでは、7つの「焦点」の色と、
   令和●年版の解説の部品（年度の帯・棒グラフ・災害カード・動きの年表）、変遷の一覧表・固定ステージ・まとめの部品を足す。
   色だけに頼らない: 焦点は 色＋絵＋名前（＋●○）で区別する。JS が無くても、上から順に読める縦のページとして表示される。 */
.hk {
  --hk-quake: #b3261e;   --hk-quake-bg: #fdeceb;
  --hk-water: #1b5cb8;   --hk-water-bg: #e8f0fd;
  --hk-volcano: #a84f00; --hk-volcano-bg: #fdf0e1;
  --hk-people: #1a7a4a;  --hk-people-bg: #e4f4ea;
  --hk-system: #6a3fa0;  --hk-system-bg: #f1e8f8;
  --hk-global: #0f766e;  --hk-global-bg: #dff3f1;
  --hk-society: #a3306b; --hk-society-bg: #fbe9f2;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .hk {
    --hk-quake: #ff9a8f; --hk-quake-bg: #3a1c19; --hk-water: #8ab4ff; --hk-water-bg: #16233d; --hk-volcano: #ffb066; --hk-volcano-bg: #3a2810;
    --hk-people: #7fd89a; --hk-people-bg: #16301f; --hk-system: #cdb0f2; --hk-system-bg: #2a1a3a; --hk-global: #6fd8cb; --hk-global-bg: #12302c;
    --hk-society: #f2a0c8; --hk-society-bg: #3a1a2c;
  }
}
:root[data-theme="dark"] .hk {
  --hk-quake: #ff9a8f; --hk-quake-bg: #3a1c19; --hk-water: #8ab4ff; --hk-water-bg: #16233d; --hk-volcano: #ffb066; --hk-volcano-bg: #3a2810;
  --hk-people: #7fd89a; --hk-people-bg: #16301f; --hk-system: #cdb0f2; --hk-system-bg: #2a1a3a; --hk-global: #6fd8cb; --hk-global-bg: #12302c;
  --hk-society: #f2a0c8; --hk-society-bg: #3a1a2c;
}
.hk .t-quake   { --kh-accent: var(--hk-quake);   --kh-tint: var(--hk-quake-bg);   --c: var(--hk-quake);   --ct: var(--hk-quake-bg); }
.hk .t-water   { --kh-accent: var(--hk-water);   --kh-tint: var(--hk-water-bg);   --c: var(--hk-water);   --ct: var(--hk-water-bg); }
.hk .t-volcano { --kh-accent: var(--hk-volcano); --kh-tint: var(--hk-volcano-bg); --c: var(--hk-volcano); --ct: var(--hk-volcano-bg); }
.hk .t-people  { --kh-accent: var(--hk-people);  --kh-tint: var(--hk-people-bg);  --c: var(--hk-people);  --ct: var(--hk-people-bg); }
.hk .t-system  { --kh-accent: var(--hk-system);  --kh-tint: var(--hk-system-bg);  --c: var(--hk-system);  --ct: var(--hk-system-bg); }
.hk .t-global  { --kh-accent: var(--hk-global);  --kh-tint: var(--hk-global-bg);  --c: var(--hk-global);  --ct: var(--hk-global-bg); }
.hk .t-society { --kh-accent: var(--hk-society); --kh-tint: var(--hk-society-bg); --c: var(--hk-society); --ct: var(--hk-society-bg); }
.hk h3 { margin: 0; padding: 0; border: 0; background: none; }
.hk h3::before { content: none; }
.hk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hk-ic { display: inline-block; width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.hk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- 章（セクション） */
.hk-sec { display: grid; gap: var(--s6, 2.5rem); max-width: 72rem; margin-inline: auto; width: 100%; min-width: 0; }
.hk-sec > h2 { margin: 0; font-size: clamp(1.5rem, 4.2vw, 2.375rem); line-height: 1.3; font-weight: 800; text-wrap: balance; }
.hk-sec > h2 small { display: block; margin-top: .4em; font-size: .9375rem; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.hk-sec > .kh-lead { max-width: 52rem; }
.hk-block { display: grid; gap: var(--s4); padding-top: var(--s5); border-top: 2px solid var(--border-strong); min-width: 0; }
.hk-block > h2 { margin: 0; font-size: clamp(1.375rem, 3.4vw, 1.75rem); line-height: 1.4; font-weight: 800; }
.hk-block > h3 { margin: 0; font-size: clamp(1.25rem, 3.2vw, 1.625rem); line-height: 1.4; font-weight: 800; }
.hk-block > .kh-lead, .hk-block > .kh-small { margin: 0; max-width: 52rem; }
.hk-h3 { margin: 0; font-size: 1.375rem; font-weight: 800; }
.hk-jump a, .hk-top a { --kh-accent: var(--border-strong); --kh-tint: var(--surface-2); }
.hk-jump a b { color: var(--text); }

/* ---- 令和8年版: 3つの年度（過去 → いま → これから） */
.hk-fy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6, 2.5rem); counter-reset: fy; }
.hk-fy-i { position: relative; display: grid; gap: 2px; align-content: start; padding: var(--s4); background: var(--surface); border: 1px solid var(--border-strong); border-top: 6px solid var(--border-strong); box-shadow: var(--bevel-raised); }
.hk-fy-i:nth-child(2) { border-top-color: var(--hk-quake); box-shadow: var(--bevel-raised), 0 0 0 2px var(--hk-quake); }
.hk-fy-i:nth-child(3) { border-top-color: var(--hk-water); border-style: dashed; border-top-style: solid; }
.hk-fy-i + .hk-fy-i::before { content: "▶"; position: absolute; left: calc(var(--s6, 2.5rem) / -2 - .45em); top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; line-height: 1; }
.hk-fy-fy { font-family: var(--font-mono); font-size: .9375rem; color: var(--muted); }
.hk-fy-part { font-size: 1.75rem; line-height: 1.2; font-weight: 800; }
.hk-fy-i:nth-child(2) .hk-fy-part { color: var(--hk-quake); }
.hk-fy-i:nth-child(3) .hk-fy-part { color: var(--hk-water); }
.hk-fy-what { font-weight: 800; }
.hk-fy-d { font-size: .875rem; line-height: 1.75; color: var(--muted); }
@media (max-width: 47.99rem) {
  .hk-fy { grid-template-columns: 1fr; gap: var(--s5); }
  .hk-fy-i + .hk-fy-i::before { content: "▼"; left: 50%; top: calc(var(--s5) / -2 - .1em); transform: translateX(-50%); }
}

/* ---- 令和8年版: 5つの部 */
.hk-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: var(--s4); }
.hk-part { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--bevel-raised); min-width: 0; }
.hk-part-n { justify-self: start; margin: 0; padding: 0 var(--s3); font-weight: 800; font-size: .9375rem; line-height: 1.8; color: var(--kh-on); background: var(--hk-system); }
.hk-part:nth-child(1) .hk-part-n { background: var(--hk-quake); }
.hk-part:nth-child(2) .hk-part-n { background: var(--hk-water); }
.hk-part:nth-child(3) .hk-part-n { background: var(--hk-people); }
.hk-part:nth-child(4) .hk-part-n { background: var(--hk-volcano); }
.hk-part h3 { font-size: 1.0625rem; line-height: 1.5; font-weight: 800; }
.hk-part p { margin: 0; font-size: .9375rem; line-height: 1.8; }
.hk-part .kh-src { margin-top: auto; }

/* ---- 特集 */
.hk-toku { padding: var(--s5) var(--s5) var(--s5) var(--s5); background: var(--hk-quake-bg); border: 1px solid var(--border-strong); border-left: 8px solid var(--hk-quake); box-shadow: var(--bevel-raised); }
.hk-toku > h2 { color: var(--hk-quake); }
.hk-toku .kh-lead { margin: 0; }
.hk-chaps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.hk-chaps li { display: grid; gap: 2px; align-content: start; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--border-strong); border-top: 5px solid var(--hk-quake); min-width: 0; }
.hk-chap-n { font-family: var(--font-mono); font-size: .8125rem; color: var(--hk-quake); font-weight: 700; }
.hk-chaps b { line-height: 1.5; }
.hk-chaps li > span:last-child { font-size: .8125rem; line-height: 1.7; color: var(--muted); }
.hk-tone { margin: 0; padding: var(--s3) var(--s4); border-left: 4px solid var(--hk-quake); background: var(--surface); font-weight: 700; line-height: 1.8; }
@media (max-width: 59.99rem) { .hk-chaps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 29.99rem) { .hk-chaps { grid-template-columns: 1fr; } }

/* ---- 棒グラフ（想定・実際の死者数、平成20年版との比べ）。長さは数値に比例（同じ目盛り） */
.hk-quake-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
.hk-quake-grid > section, .hk-cmp > section { min-width: 0; }
@media (min-width: 52rem) { .hk-quake-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s6, 2.5rem); } }
.hk h3.hk-grp { display: inline-block; margin: 0 0 var(--s3); padding: 2px var(--s3); font-size: 1rem; line-height: 1.6; font-weight: 800; border-left: 6px solid var(--g, var(--border-strong)); background: var(--surface-2); }
.hk h3.hk-grp.is-actual, .hk h3.hk-grp.is-then { --g: var(--hk-water); }
.hk h3.hk-grp.is-assumed, .hk h3.hk-grp.is-now { --g: var(--hk-quake); }
.hk-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.hk-bar-row { display: grid; gap: 2px; min-width: 0; }
.hk-bar-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s3); }
.hk-bar-name { font-weight: 700; line-height: 1.6; }
.hk-bar-val { font-family: var(--font-mono); font-size: 1.375rem; line-height: 1.3; }
.hk-bar { display: block; width: 100%; height: 15px; }
.hk-bar-bg { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hk-bar-fg { fill: var(--hk-quake); }
.hk-bars.is-actual .hk-bar-fg, .hk-bars.is-then .hk-bar-fg { fill: var(--hk-water); }
.hk-bars.is-actual .hk-bar-val, .hk-bars.is-then .hk-bar-val { color: var(--hk-water); }
.hk-bars.is-assumed .hk-bar-val, .hk-bars.is-now .hk-bar-val { color: var(--hk-quake); }
.hk-bar-note { margin: 0; font-size: .8125rem; line-height: 1.65; color: var(--muted); }
.hk-bar-src { font-size: .75rem; }

/* ---- 備えの4つの主体 */
.hk-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 48rem) { .hk-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hk-pillar { --c: var(--hk-water); display: grid; gap: var(--s3); align-content: start; padding: var(--s4); background: var(--surface); border: 1px solid var(--border-strong); border-top: 6px solid var(--c); box-shadow: var(--bevel-raised); min-width: 0; }
.hk-pillar:nth-child(2) { --c: var(--hk-volcano); }
.hk-pillar:nth-child(3) { --c: var(--hk-people); }
.hk-pillar:nth-child(4) { --c: var(--hk-system); }
.hk-pillar h3 { display: flex; align-items: center; gap: var(--s3); font-size: 1.1875rem; font-weight: 800; color: var(--c); }
.hk-pic { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hk-pillar > ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); line-height: 1.8; font-size: .9375rem; }
.hk-pillar > ul li::marker { color: var(--c); }

/* ---- 令和7年度に起きた7つの災害 */
.hk-dis-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: var(--s4); }
.hk-dis { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); background: var(--surface); border: 1px solid var(--border-strong); border-left: 6px solid var(--kh-hot); box-shadow: var(--bevel-raised); min-width: 0; }
.hk-dis-top { display: flex; align-items: center; gap: var(--s3); }
.hk-dic { width: 2.5rem; height: 2.5rem; fill: none; stroke: var(--kh-hot); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hk-dis-date { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: .9375rem; color: var(--kh-hot); }
.hk-dis h3 { font-size: 1.0625rem; line-height: 1.5; font-weight: 800; }
.hk-dis > ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s1); font-size: .875rem; line-height: 1.8; }
.hk-dis > ul li::marker { color: var(--kh-hot); }

/* ---- 動きの年表（縦） */
.hk-moves { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--border-strong); display: grid; gap: var(--s4); }
.hk-move { --c: var(--hk-system); position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: var(--s3); align-items: start; }
.hk-move::before { content: ""; position: absolute; left: calc(-1.4rem - 8px); top: .5em; width: 13px; height: 13px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--c); }
.hk-move.is-law { --c: var(--kh-cool); }
.hk-move.is-system { --c: var(--kh-green); }
.hk-move.is-event { --c: var(--kh-hot); }
.hk-move time { font-family: var(--font-mono); font-weight: 700; line-height: 1.8; }
.hk-mk { display: inline-block; padding: 0 var(--s2); font-size: .75rem; font-weight: 700; line-height: 1.8; color: var(--c); border: 1px solid var(--c); }
.hk-move p { margin: var(--s1) 0 0; line-height: 1.8; }
.hk-move .kh-src { margin-top: 2px; }
@media (max-width: 40rem) { .hk-move { grid-template-columns: 1fr; gap: 0; } }

/* ---- 目を引くところ */
.hk-news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--s4); }
.hk-news li { display: grid; gap: var(--s2); align-content: start; padding: var(--s4); background: var(--surface-2); border: 1px solid var(--border-strong); border-top: 5px solid var(--hk-system); }
.hk-news b { font-size: 1.0625rem; line-height: 1.5; }
.hk-news span { font-size: .9375rem; line-height: 1.8; }

/* ---- 白書の変遷: 見方・凡例 */
.hk-how { display: grid; gap: var(--s3); }
.hk-how h3 { margin: 0; font-size: 1rem; }
.hk-how > ul:first-of-type { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s2); line-height: 1.85; font-size: .9375rem; }
.hk-legend { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s2) var(--s4); }
.hk-legend li { display: flex; align-items: flex-start; gap: var(--s2); color: var(--c); }
.hk-legend li > .hk-ic { width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.hk-legend li > span { display: grid; color: var(--text); font-size: .8125rem; line-height: 1.6; }
.hk-legend li > span b { color: var(--c); font-size: .9375rem; }

/* ---- 一覧表（版 × 7つの焦点） */
.hk-mwrap { position: relative; overflow-x: auto; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--bevel-raised); }
.hk-matrix { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .875rem; }
.hk-matrix th, .hk-matrix td { padding: 0; border-bottom: 1px solid var(--border); text-align: center; }
.hk-matrix thead th { position: sticky; top: 0; z-index: 1; padding: var(--s2) 2px; background: var(--surface-2); border-bottom: 2px solid var(--border-strong); vertical-align: bottom; font-weight: 700; line-height: 1.3; }
.hk-matrix thead th.hk-m-ed { text-align: left; padding-left: var(--s3); }
.hk-th-i, .hk-th-n { display: block; color: var(--c); }
.hk-th-i .hk-ic { width: 1.5rem; height: 1.5rem; stroke: var(--c); }
.hk-th-n { font-size: .6875rem; margin-top: 2px; }
.hk-matrix tbody th { text-align: left; padding: 5px var(--s3); font-weight: 400; white-space: normal; min-width: 9.5rem; }
.hk-matrix tbody th a { font-weight: 700; color: var(--text); text-decoration: none; }
.hk-matrix tbody th a:hover { text-decoration: underline; }
.hk-matrix tbody th a b { font-family: var(--font-mono); margin-right: .3em; }
.hk-matrix tbody th small { display: block; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.hk-matrix td { width: 3.6rem; font-size: 1.125rem; line-height: 1; color: var(--c); }
.hk-matrix td.is-main { background: var(--ct); font-weight: 800; }
.hk-matrix td.is-sub { font-weight: 400; }
.hk-matrix tbody tr:nth-child(even) th, .hk-matrix tbody tr:nth-child(even) td { background: var(--surface-2); }
.hk-matrix tbody tr:hover th, .hk-matrix tbody tr:hover td { background: var(--surface-2); }
.hk-matrix tbody tr td.is-main { background: var(--ct); }
@media (max-width: 47.99rem) {
  .hk-th-n { display: none; }
  .hk-matrix { min-width: 0; }
  .hk-matrix td { width: 1.9rem; font-size: 1rem; }
  .hk-matrix tbody th { min-width: 6.8rem; padding: 4px var(--s2); font-size: .8125rem; }
  .hk-matrix thead th.hk-m-ed { padding-left: var(--s2); }
  .hk-th-i .hk-ic { width: 1.2rem; height: 1.2rem; }
}

/* ---- 各版のカード（上の .kh-step を土台に） */
.hk-official { font-size: .9375rem !important; line-height: 1.7 !important; color: var(--muted); }
.hk-official span { display: inline-block; margin-right: .6em; padding: 0 .5em; font-size: .75rem; line-height: 1.7; border: 1px solid currentColor; }
.hk-line { font-weight: 800; font-size: 1.125rem !important; line-height: 1.8 !important; padding-left: var(--s3); border-left: 4px solid var(--kh-accent); }
.hk-tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hk-tag { display: inline-flex; align-items: center; gap: .35em; padding: 0 .7em 0 .4em; font-size: .8125rem; font-weight: 700; line-height: 1.9; color: var(--kh-on); background: var(--c); border: 1px solid var(--c); white-space: nowrap; }
.hk-tag.is-sub { color: var(--c); background: transparent; }
.hk-tag i { font-style: normal; font-weight: 400; font-size: .6875rem; margin-right: .1em; }
.hk-tag .hk-ic { width: 1.1em; height: 1.1em; }
.hk-dis-chips { padding: var(--s3) var(--s4); background: var(--surface-2); border: 1px solid var(--border); }
.hk-dis-chips p { margin: 0 0 var(--s2); font-size: .8125rem; font-weight: 700; color: var(--muted); line-height: 1.5; }
.hk-dis-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.hk-dis-chips li { padding: 0 var(--s3); font-size: .8125rem; line-height: 1.8; background: var(--surface); border: 1px solid var(--border-strong); }

/* ---- 左に固定する「場面」 */
.hk-lamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.hk-lamp { display: flex; align-items: center; gap: .35em; min-width: 0; padding: 3px 6px; font-size: .75rem; line-height: 1.35; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); opacity: .6; transition: background-color .3s, color .3s, opacity .3s; }
.hk-lamp .hk-ic { width: 1.35em; height: 1.35em; }
.hk-lamp span { overflow-wrap: anywhere; }
.hk-lamp.is-sub { opacity: 1; color: var(--c); border: 2px solid var(--c); font-weight: 700; }
.hk-lamp.is-main { opacity: 1; color: var(--kh-on); background: var(--c); border: 2px solid var(--c); font-weight: 800; }
.hk-st-official { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.hk-st-text { display: grid; gap: 2px; min-width: 0; }
.hk-stage .kh-st-title { font-size: 1.25rem; }
.hk-stage .kh-chart .kh-peak { font-size: 8px; }
.hk-break-mark { fill: none; stroke: var(--kh-tint, var(--surface)); stroke-width: 2.4; }
@media (max-width: 59.99rem) {
  .kh-js .hk-stage .kh-chart, .kh-js .hk-stage .hk-st-official { display: none; }
  .kh-js .hk-lamps { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .kh-js .hk-lamp { justify-content: center; padding: 2px 0; }
  .kh-js .hk-lamp span { display: none; }
  .kh-js .hk-lamp .hk-ic { width: 1.25rem; height: 1.25rem; }
  .kh-js .hk-stage .kh-st-title { font-size: 1rem; }
}
@media (min-width: 60rem) and (max-height: 46rem) { .hk-lamp span { display: none; } .hk-lamps { grid-template-columns: repeat(7, minmax(0, 1fr)); } .hk-lamp { justify-content: center; } }

/* ---- 並べて見えてくること */
.hk-stack { display: block; width: 100%; height: 1.9rem; border: 1px solid var(--border-strong); }
.hk-stack rect { fill: var(--c); stroke: var(--surface); stroke-width: .4; vector-effect: non-scaling-stroke; }
.hk-break { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: var(--s3); }
.hk-break li { display: grid; gap: var(--s2); align-content: start; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--border-strong); border-left: 7px solid var(--c); }
.hk-bk-h { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); color: var(--c); }
.hk-bk-h .hk-ic { width: 1.5rem; height: 1.5rem; }
.hk-bk-h b { font-size: 1rem; }
.hk-bk-n { margin-left: auto; font-family: var(--font-mono); font-weight: 700; color: var(--text); }
.hk-bk-eds { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.hk-bk-eds a { padding: 0 var(--s2); font-size: .8125rem; line-height: 1.75; color: var(--text); text-decoration: none; background: var(--ct); border: 1px solid var(--c); }
.hk-bk-eds a:hover { text-decoration: underline; }
.hk-follow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--border-strong); background: var(--surface); }
.hk-follow li { display: grid; grid-template-columns: minmax(11rem, 1.5fr) auto minmax(6.5rem, .8fr) minmax(0, 2fr); gap: var(--s3); align-items: baseline; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); line-height: 1.7; }
.hk-follow li:last-child { border-bottom: 0; }
.hk-fev { font-weight: 800; color: var(--kh-hot); }
.hk-farrow { color: var(--muted); }
.hk-fed a { font-weight: 700; }
.hk-fhow { font-size: .9375rem; }
@media (max-width: 47.99rem) {
  .hk-follow li { grid-template-columns: 1fr; gap: 2px; }
  .hk-farrow { display: none; }
  .hk-fed::before { content: "→ "; color: var(--muted); }
}
.hk-cmp { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.hk-cmp-arrow { margin: 0; text-align: center; font-size: 2rem; color: var(--muted); line-height: 1; transform: rotate(90deg); }
@media (min-width: 52rem) { .hk-cmp { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: start; gap: var(--s5); } .hk-cmp-arrow { transform: none; align-self: center; } }
.hk-echo { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: stretch; }
.hk-echo-mid { margin: 0; text-align: center; font-family: var(--font-mono); font-weight: 700; color: var(--muted); line-height: 1.4; }
@media (min-width: 52rem) { .hk-echo { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .hk-echo-mid { align-self: center; } }
.hk-q { margin: 0; display: grid; gap: var(--s2); align-content: start; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--border-strong); border-left: 8px solid var(--hk-water); box-shadow: var(--bevel-raised); }
.hk-q.is-now { border-left-color: var(--hk-quake); }
.hk-q p { margin: 0; }
.hk-q-ed { font-family: var(--font-mono); font-weight: 700; color: var(--muted); }
.hk-q-t { font-size: 1.1875rem; font-weight: 800; line-height: 1.7; text-wrap: pretty; }
.hk-q-d { font-size: .875rem; line-height: 1.8; color: var(--muted); }
.hk-forms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 4px solid var(--hk-system); }
.hk-forms li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s4); padding: var(--s3) var(--s4); border-bottom: 1px dotted var(--border-strong); line-height: 1.8; }
.hk-form-y { font-family: var(--font-mono); font-weight: 700; color: var(--hk-system); }
@media (max-width: 47.99rem) { .hk-forms li { grid-template-columns: 1fr; gap: 0; } }

/* ---- 読み方 */
.hk-guide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s4); counter-reset: g; }
.hk-guide li { counter-increment: g; position: relative; display: grid; gap: var(--s2); align-content: start; padding: var(--s4) var(--s4) var(--s4) 3.25rem; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--bevel-raised); }
.hk-guide li::before { content: counter(g); position: absolute; left: var(--s3); top: var(--s3); width: 2rem; height: 2rem; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 800; color: var(--kh-on); background: var(--hk-system); }
.hk-guide h3 { font-size: 1.0625rem; line-height: 1.5; font-weight: 800; }
.hk-guide p { margin: 0; font-size: .9375rem; line-height: 1.8; }

/* ---- 入口ページ（版ごとのカード・変遷の見本の帯）と、ページどうしの案内 */
.hk-edcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: var(--s4); }
.hk-edcard { position: relative; display: grid; gap: var(--s2); align-content: start; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--border-strong); border-top: 8px solid var(--hk-quake); box-shadow: var(--bevel-raised); min-width: 0; }
.hk-edcard:hover, .hk-edcard:focus-within { background: var(--surface-2); }
.hk-edcard-pub { margin: 0; font-family: var(--font-mono); font-size: .875rem; color: var(--muted); }
.hk-edcard h3 { font-size: clamp(1.375rem, 3.4vw, 1.75rem); line-height: 1.35; font-weight: 800; }
.hk-edcard h3 a, .hk-edcard h3 a:visited { color: var(--text); text-decoration: none; }
.hk-edcard h3 a::after { content: " →"; color: var(--hk-quake); }
.hk-edcard h3 a::before { content: ""; position: absolute; inset: 0; }
.hk-edcard-t { margin: 0; font-weight: 700; line-height: 1.6; }
.hk-edcard-line { margin: 0; font-size: .9375rem; line-height: 1.8; color: var(--muted); }
.hk-strip-wrap { display: grid; gap: 4px; max-width: 52rem; }
.hk-strip { display: block; width: 100%; height: 2.75rem; border: 1px solid var(--border-strong); }
.hk-strip rect { fill: var(--c); stroke: var(--surface); stroke-width: .5; vector-effect: non-scaling-stroke; }
.hk-strip-yr { display: flex; justify-content: space-between; margin: 0; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.hk-legend-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.hk-crosses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s4); }
.hk-cross { position: relative; display: grid; gap: var(--s1); align-content: start; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--bevel-raised); min-width: 0; }
.hk-cross:hover, .hk-cross:focus-within { background: var(--surface-2); }
.hk-cross h3 { font-size: 1.0625rem; line-height: 1.5; font-weight: 800; }
.hk-cross h3 a, .hk-cross h3 a:visited { color: var(--text); text-decoration: none; }
.hk-cross h3 a::before { content: ""; position: absolute; inset: 0; }
.hk-cross p { margin: 0; font-size: .875rem; line-height: 1.75; color: var(--muted); }
.hk-backs { margin: 0; font-size: .9375rem; }
.hk-readlink { margin: 0; font-weight: 700; }
.hk-readlink a { padding: 2px var(--s3); border: 2px solid var(--kh-accent); background: var(--surface); text-decoration: none; display: inline-block; }
.hk-readlink a:hover { background: var(--kh-tint); text-decoration: underline; }
