/* 天気録 site.css — 設計「観測記録紙」(2026-08-13 UIUX 刷新・設計の正 = DESIGN-VERDICT.md)
   白い紙にインクの罫、藍と朱の観測値。装飾でなく記録の様式で個性を出す。
   規律: 薄背景の面使用禁止 (白地 + 罫線 + 余白で構造を作る)・数字は tabular-nums・
   構造罫 (--rule-ink) と装飾罫 (--border) と操作罫 (--border-interactive) を使い分ける */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1b2530;             /* 白地 15.5:1 (実測 2026-08-13) */
  /* 副次床 7:1 は「載る最悪面」= hover 面 #eef1f4 で判定する。旧 #43566b は白地 7.55 だが
     hover 面 6.66 で床割れ (stat-tile の hover 中に sub 文字が載る・plan-months は 09-25 に地の変化を外した) —
     明度のみ暗くして hover 面 7.06 / 白地 7.94 (厳密計算 2026-08-13 艦隊スイープ) */
  --sub: #405266;
  --border: #ccd6e0;           /* 装飾罫 (区切りのヘアライン) */
  --border-interactive: #75879b; /* 操作罫 (入力・select・押せる部品)。白地 3.69:1 ≥ 3:1 (実測 2026-08-13) */
  --rule-ink: var(--text);     /* 構造罫 (二重罫・セクション罫・thead 下線) — 文字色に追従 */
  --accent: #27548c;
  --accent-text: #ffffff;
  --hot: #a43b2f;              /* 朱 (データ高温側 + 印の装飾トークン) */
  --cold: #275f8c;             /* 藍 */
  --link: #1e4f8c;
  --hover: #eef1f4;            /* hover 状態専用 (面としての常時使用は禁止)。文字 13.7:1 (実測 2026-08-13) */
  --scroll-hint: rgba(27, 37, 48, 0.22); /* 横スクロール容器の端影 (--text 基調) */
  --tap-min: 44px;
  --font-mincho: "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDMincho", "Noto Serif JP", serif;
  /* 文字の体系 (1 面 6 種・390 でも 1280 でも同じ px・UI / UX 監査 第 2 回 Q-1 a)。
     h1 28 / h2 と面の主値 1 つ 20 / h3 と値 16 (700) / 本文 14 / サブタイトル 14 (600・二次色) / 補足 12。
     入力欄 (input・select・textarea) だけは iOS の拡大を避けて 16 (自動チェック tests/type-scale-guard) */
  --fs-h1: 28px;
  --fs-h2: 20px;
  --fs-h3: 16px;
  --fs-body: 14px;
  --fs-fine: 12px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111418;
  --text: #e8ebef;
  --sub: #c3cdd8;              /* 地 #111418 で 11.4:1・#232c36 で 8.6:1・#33404e で 7.1:1 (統合案 D 10-14 = 副次色を 7:1 に) */
  --border: #33404e;
  --border-interactive: #7a8c9f; /* ダーク地 5.5:1 ≥ 3:1 (統合案 D 10-14) */
  --accent: #6f9fd8;
  --accent-text: #0d1522;
  --hot: #e08578;
  --cold: #7db2dd;
  --link: #a6c6ee;             /* #111418 で 10.2:1 (統合案 D 10-14) */
  --hover: #1c242e;            /* ダーク文字 13.1:1 (実測 2026-08-13) */
  --scroll-hint: rgba(232, 235, 239, 0.18);
}

/* データ可視化のトークン (検証合格済み資産 = 不変)。ダイバージング両腕 (vb 系・vr 系) は
   ライト = 濃いほど強い / ダーク = 明るいほど強い、をそれぞれ両モードで
   明度単調・隣接段差・面コントラストの検証スクリプトに通した値 (charts.mjs 冒頭) */
:root {
  --viz-hot: #cf4335;
  --viz-cold: #2a6fbe;
  --viz-b3: #143a66; --viz-b2: #2a6099; --viz-b1: #4f88c9; --viz-b0: #8fb8e8;
  --viz-n: #c6c9cc;
  --viz-r0: #eda49a; --viz-r1: #d4685a; --viz-r2: #ab3d31; --viz-r3: #6e211a;
  --viz-track: #d7dde3; --viz-grid: #e8ecef; --viz-axis: #9fadba;
}
[data-theme="dark"] {
  --viz-hot: #e08578;
  --viz-cold: #7db2dd;
  --viz-b3: #b3d2f2; --viz-b2: #85b3e6; --viz-b1: #5b8cc4; --viz-b0: #3b5e88;
  --viz-n: #4a5058;
  --viz-r0: #8c3a31; --viz-r1: #c25a4c; --viz-r2: #e08578; --viz-r3: #f2aca1;
  --viz-track: #333e4a; --viz-grid: #232c36; --viz-axis: #55636f;
}

/* 第 2 波 (計画カレンダー) の逐次配色。雨なし率 = 琥珀 (q0 低 → q5 高)・
   台風接近回数 = 赤 (ty0 少 → ty4 多)・桜 = 開花/満開の 2 色。
   ライト = 濃いほど高い / ダーク = 明るいほど高い。両モードとも dataviz 検証
   スクリプトの ordinal 検査 (明度単調・隣接 ΔL・明端 2:1) 合格値 (plan-charts.mjs 冒頭) */
:root {
  --viz-q0: #d8a840; --viz-q1: #c1902f; --viz-q2: #a67722;
  --viz-q3: #8a5f16; --viz-q4: #6d480d; --viz-q5: #4f3708;
  --viz-qdot: #8a5f16;
  --viz-ty0: #d78877; --viz-ty1: #c4634c; --viz-ty2: #a9452f;
  --viz-ty3: #8b3120; --viz-ty4: #672114;
  --viz-sak1: #d874a0; --viz-sak2: #8c2d54;
  /* 過ごしやすさ 5 段階 (波 UXE): 快適 = 緑 ↔ 厳しい = 紫のダイバージング。
     中点「まずまず」は --viz-n を再利用。ライト = 両端が濃い / ダーク = 両端が明るい
     (vb/vr と同じ反転規約)。dataviz 検証 2026-08-26 合格・ログ = UXE-RECON-PALETTE.md */
  --viz-cf0: #0c7a5e; --viz-cf1: #4fb39a;
  --viz-cf3: #b78ed1; --viz-cf4: #71449c;
  /* 旅の時期えらび 日セル全面塗り (UXG) の文字色。段ごとに 4.5:1 以上を実測
     (2026-08-29: light 白 on cf0 = 5.30 / cf4 = 6.98・墨 on cf1/n/cf3 = 7.4〜12.6) */
  /* 旅の時期えらび 日セル (UXH: 主因の腕 × 区分)。h = 暑さ / c = 寒さ / o = 気温以外。
     インクは 2 トークン (lo = 薄い塗り lv1-2 + o / hi = 濃い塗り lv3-4 + 快適緑) —
     全塗りで 4.5:1 以上を計算検査済み (UXH-DESIGN)。クロス腕の CVD 分離は暖↔寒が
     ΔE 10.4 で合格・中立灰は斜めハッチ (テクスチャ) を二次符号化として充足 */
  --kv-h1: #f0b183; --kv-h2: #dd7f40; --kv-h3: #b54e1e; --kv-h4: #822c10;
  --kv-c1: #8fbce2; --kv-c2: #5d9bd1; --kv-c3: #3068a8; --kv-c4: #1d4470;
  --kv-hatch: rgba(17, 20, 24, 0.25);
  --kv-ink-lo: #111418; --kv-ink-hi: #ffffff;
}
[data-theme="dark"] {
  --viz-q0: #63480f; --viz-q1: #7c5c15; --viz-q2: #9a761f;
  --viz-q3: #b8912e; --viz-q4: #d4ad41; --viz-q5: #f0c95e;
  --viz-qdot: #d4ad41;
  --viz-ty0: #8f3823; --viz-ty1: #a9452f; --viz-ty2: #c4634c;
  --viz-ty3: #dc8570; --viz-ty4: #f0a795;
  --viz-sak1: #c96f90; --viz-sak2: #8f4260;
  --viz-cf0: #52c9a6; --viz-cf1: #2f9478;
  --viz-cf3: #9a6fb8; --viz-cf4: #cfa6ea;
  /* dark はダイバージング反転 (両端が明るい) のため墨インク主体・中点のみ明インク
     (実測 2026-08-29: 墨 on cf0/cf1/cf3/cf4 = 5.0〜9.6・明 on n = 7.2) */
  --kv-h1: #83421f; --kv-h2: #a3521f; --kv-h3: #d98549; --kv-h4: #f2ab77;
  --kv-c1: #2c4a6b; --kv-c2: #35608f; --kv-c3: #6ba0d6; --kv-c4: #a5cdf0;
  --kv-hatch: rgba(232, 235, 239, 0.28);
  --kv-ink-lo: #e8ebef; --kv-ink-hi: #111418;
}

/* ------------------------------------------------------------------------
   図版体系 (UIUX 刷新 段 2・DESIGN-VERDICT §4)
   原則「文字は紙 (HTML) に、形は図版 (SVG) に」— SVG 内テキストは地図の注釈のみ。
   拡大方向に伸ばさない (width 100% + max-width = 自然幅)。
   ------------------------------------------------------------------------ */

/* バケット配色クラス (SVG は currentColor 参照・HTML セルは background: currentColor)。
   値は上の --viz-* が正 (検証合格済み資産 = 不変) */
.vb3 { color: var(--viz-b3); } .vb2 { color: var(--viz-b2); }
.vb1 { color: var(--viz-b1); } .vb0 { color: var(--viz-b0); }
.vn { color: var(--viz-n); }
.vx { color: var(--viz-n); opacity: .35; } /* 気圧マップ: いま値がそろっていない地点 (正直表示) */
.vr0 { color: var(--viz-r0); } .vr1 { color: var(--viz-r1); }
.vr2 { color: var(--viz-r2); } .vr3 { color: var(--viz-r3); }
.vq0 { color: var(--viz-q0); } .vq1 { color: var(--viz-q1); }
.vq2 { color: var(--viz-q2); } .vq3 { color: var(--viz-q3); }
.vq4 { color: var(--viz-q4); } .vq5 { color: var(--viz-q5); }
.vty0 { color: var(--viz-ty0); } .vty1 { color: var(--viz-ty1); }
.vty2 { color: var(--viz-ty2); } .vty3 { color: var(--viz-ty3); }
.vty4 { color: var(--viz-ty4); }
.vty-zero { color: var(--viz-grid); }
/* 過ごしやすさ 5 段階 (波 UXE): 快適 = 緑 ↔ 厳しい = 紫・中点は中立灰 (--viz-n) */
.vcf0 { color: var(--viz-cf0); } .vcf1 { color: var(--viz-cf1); }
.vcf2 { color: var(--viz-n); }
.vcf3 { color: var(--viz-cf3); } .vcf4 { color: var(--viz-cf4); }

/* SVG 図版共通 (残る SVG = 地図 2 変奏 + naked-plot のプロット領域)。
   線・マークの色クラスは非スコープ (naked-plot の SVG は .viz を持たないため —
   スコープ付きだと折れ線・グリッドが stroke 無しで不可視になる。2026-08-13 実測) */
.viz { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.viz text { font-family: inherit; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
/* 台風 粗 5 区分の月別バー (波 UXC・検証済み ty トークンの再利用) */
.viz-tybar { fill: var(--viz-ty2); }
/* 表セル内の区分表示 (波 UXC): 状態スウォッチ + ラベル (凡例 vizlegend-item と同形・直角) */
.lvl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lvl i { width: 12px; height: 12px; background: currentColor; border-radius: 1px; flex: none; }
.viz-axis { stroke: var(--viz-axis); stroke-width: 1.5; }
circle.viz-hot, rect.viz-hot { fill: var(--viz-hot); }
circle.viz-cold, rect.viz-cold { fill: var(--viz-cold); }
/* 地図の注釈 (テキスト内蔵を許容する唯一の場所)。文字サイズは SVG 側の font-size
   属性が持つ — 全変奏 12u 単一 (床 = 天井・10-23 に 14 から)。下の幅キャップ (max-width = viewBox 幅
   → scale ≤ 1.0) と合わせて実効 12px 丁度・本文超ゼロを保証する恒久契約
   (レーン 4 是正 2026-09-01・番人 = tests/viz-font-guard.test.mjs) */
.viz .viz-note line { stroke: var(--sub); stroke-width: 1.2; }
.viz .viz-note text {
  fill: var(--text);
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.viz .viz-frame rect { fill: none; stroke: var(--border); stroke-width: 1; }
.viz .viz-map-tag { fill: var(--text); }
/* 気圧マップの点: fill は CSS が持つ (SVG 側の属性重複を削減。彩色クラスの color を継承) */
.viz-map circle[data-i] { fill: currentColor; }
.viz-ty-line { stroke: var(--viz-ty2); stroke-width: 2; stroke-linejoin: round; }
/* E2 気候セクションの図 (spot/pref) — 色は既存の検証済み変数の再利用のみ。
   単系列の推移線・平均線は中立インク (--text) — 台風色 ty2 の流用をやめ意味の
   多重化を解消 (波 UXE 2026-08-26・前例 = rowviz-dot-ink の中央値) */
.viz-series-line { stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.viz-series-dot { fill: var(--text); }
.viz-nml-max { stroke: var(--viz-hot); fill: none; stroke-width: 2; stroke-linejoin: round; }
.viz-nml-min { stroke: var(--viz-cold); fill: none; stroke-width: 2; stroke-linejoin: round; }
.viz-nml-avg { stroke: var(--text); fill: none; stroke-width: 2; stroke-linejoin: round; }
circle.viz-nml-max { fill: var(--viz-hot); stroke: none; }
circle.viz-nml-min { fill: var(--viz-cold); stroke: none; }
circle.viz-nml-avg { fill: var(--text); stroke: none; }
/* 月別降水量の棒 = 雨は青 (気象慣習・検証済み viz-cold の再利用)。旧 .viz-nml-precip は
   「雨なし琥珀」と同色相で降水量を塗る極性衝突があり分離 (波 UXE) */
.viz-precip-bar { fill: var(--viz-cold); }
/* /words/ 年別日数の棒 = 中立の量 (琥珀アクセント qdot 続投・降水の名を外した専用クラス) */
.viz-days-bar { fill: var(--viz-qdot); }
/* 月別平年値 折れ線の凡例チップ (.vizkey-line-nml-max/-min/-avg) は「凡例チップ」節で
   定義する — .vizkey-line の border-top ショートハンド (currentColor) より後に置かないと
   同特異度の後勝ちで色が消える (旧 .vizkey-line-nml-avg がこの罠で不発だった。波 UXE 実測) */
/* 類似年の偏差くらべ折れ線 (日替わり枠 v2): ことし = 暖色実線 / 候補年 = 寒色破線 (色覚非依存の判別) */
.viz-sim-cur { stroke: var(--viz-hot); stroke-width: 2.5; stroke-linejoin: round; }
.viz-sim-cand { stroke: var(--viz-cold); stroke-width: 2; stroke-dasharray: 5 3; stroke-linejoin: round; }
.viz-p-line { stroke: var(--viz-cold); stroke-width: 2.5; stroke-linejoin: round; }

/* 地図の 2 変奏 (デスクトップ = 現行構図・モバイル = vb 370 再構図)。707px 境界で排他表示。
   max-width は必ず viewBox 幅と同値 (拡大帯ゼロ = scale ≤ 1.0 契約・旧 420px は
   391〜452px 帯で注釈が実効 17px 超になる拡大帯だった)。370px 未満の画面では
   min-width + overflow-x で実寸 (scale 1.0) を保ち横スクロールに逃がす。
   contain: inline-size = min-width 370 を祖先 (grid .map-duo 等) の min-content に
   伝播させない自己完結の防壁 — 無いと 320px 実機で grid 列が 370px に膨張し
   ページ全体が横パンする (ローカル emulation 実測 2026-09-01)。
   切替境界 707px の導出 (追修 4-fix-P0b 2026-09-01・kakomap 4-fix-3b と同型):
   デスクトップ変奏が scale 1.0 で収まる最小 viewport = 660 (viewBox = max-width)
   + 16×2 (.content 横 padding) = 692px。media query の幅はクラシックスクロールバー
   (Windows 等およそ 15〜17px) を含むため 16px を上乗せし、708px 以上でのみ
   デスクトップ変奏を出す (旧 600px 境界は 601〜691px 帯で実効 12.1〜14.0px 弱の
   縮小帯 = 可視 14px 床割れだった)。番人 = tests/viz-font-guard.test.mjs の合成契約 */
.map-variants { margin: 8px 0 4px; overflow-x: auto; contain: inline-size; }
.map-variants .viz-map-d { display: block; max-width: 660px; margin-inline: auto; }
.map-variants .viz-map-m { display: none; max-width: 370px; min-width: 370px; margin-inline: auto; }
@media (max-width: 707px) {
  .map-variants .viz-map-d { display: none; }
  .map-variants .viz-map-m { display: block; }
}

/* トップのマップ 2 面 (波 UXA 2026-08-26): 平年差 (ずれ) と絶対値 (そのもの) の並置。
   2 列 grid は実機スクリーンショットの実測で不成立と裁定 (PROGRESS-UXA.md):
   デスクトップ変奏 (660px 設計) が列幅 ~470px に縮むと注釈 14u が実効 10.0px で
   最小 14px 床を割り、モバイル変奏の列内拡大は注釈が列端で切れる。本文列幅 1000px
   では 2 列で 14px 床を満たす幅が構造的に取れないため、/yesterday/ と同型の縦積み。 */
.map-duo { display: grid; grid-template-columns: 1fr; gap: 8px; }
/* 2 つの地図の間 = 上の注記の下 16 + 列の間 8 (下の見出しの上は 0・統合案 D の空白の是正) */
.map-duo > section + section > h2:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .map-variants { margin-inline: -16px; }
}

/* サイト横断ツールチップ (波 UXB 2026-08-26)。単一要素 (tooltip.js が生成) — 文字は
   本文トークン (--text / --bg = ライト 15.5:1) でコントラスト床を満たし、ダークにも追従。
   pointer-events: none = ポインタ判定を吸わない。位置は JS が el.style 直代入 (CSP 準拠) */
.uxtip {
  position: fixed;
  display: none;
  max-width: 340px;
  padding: 6px 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-interactive);
  border-radius: 6px;
  font-size: var(--fs-body);
  line-height: 1.5;
  pointer-events: none;
  z-index: 40;
  box-shadow: 0 2px 10px var(--scroll-hint);
}
/* クロスヘア縦線 (折れ線の読み取り位置)・最近傍リング (地図)・持ち上げ (マーク強調)。
   いずれも実行時にだけ現れる注釈図形 — 値図形ではないため直角規約の対象外 */
.uxtip-xh { stroke: var(--viz-axis); stroke-width: 1.5; pointer-events: none; }
.uxtip-ring circle { pointer-events: none; }
.uxtip-ring .uxtip-ring-halo { fill: none; stroke: var(--bg); stroke-width: 5; }
.uxtip-ring .uxtip-ring-line { fill: none; stroke: var(--rule-ink); stroke-width: 2; }
.uxtip-hit { stroke: var(--rule-ink); stroke-width: 2; }
/* 行グラフのトラックは行全体がヒット対象 — hover 面で「ここが読める」ことを示す */
.rowviz-track[title]:hover, .rowviz-track[data-uxtip]:hover { background: var(--hover); }

/* 行グラフ (rowviz): 1 行 = [ラベル | トラック | 値] の CSS grid。文字は 14px 固定。
   ラベルの列は幅の 40% までで、長いラベルは折り返す (390 でも棒の欄が残る・最小 64px は .rowviz-label の min-width) */
.rowviz {
  display: grid;
  grid-template-columns: fit-content(40%) 1fr max-content;
  gap: 0 10px;
  align-items: stretch;
  margin: 16px 0 8px;
  max-width: 720px;
}
.rowviz-label {
  font-size: var(--fs-body);
  min-width: 64px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 30px;
}
.rowviz-track { position: relative; min-height: 30px; }
.rowviz-value {
  font-size: var(--fs-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 値列は右端揃え (表の td.num と同じ縦比較規律・2026-08-13) */
}
/* 都道府県の行の図 (名前のリンクが縦に並ぶ) は 1 行 44 px = 名前を押せる高さ (統合案 D) */
.rowviz-dense .rowviz-label, .rowviz-dense .rowviz-track, .rowviz-dense .rowviz-value { min-height: var(--tap-min); }
.rowviz-label a { display: inline-flex; align-items: center; min-height: var(--tap-min); min-width: var(--tap-min); }
/* 名前のリンクが縦に並ぶ行の図は名前を左揃え (右寄せだとリンクの最小幅 44 px で短い名前ほど右へずれ、左端が揃わない・総点検 10-23) */
.rowviz-dense .rowviz-label { justify-content: flex-start; text-align: left; }
/* 密な形のラベルは 8em まで (長い地点名は折り返す・390 でも棒の欄を 160 px 以上残す・王座の面 10-26) */
.rowviz-dense > .rowviz-label { max-width: 8em; overflow-wrap: anywhere; }
/* 棒の中心をラベルと値の中心に揃える (王座の面 10-26 ユーザー指摘): svg がセルの上端に付くと棒が 10 px 上にずれる */
.rowviz-dense .rowviz-track { display: flex; align-items: center; }
/* 王座の面 10-26 ユーザーの指示で詰めた形: 1 行 32 px (押せる高さ 32 px は 44 px の規則からの意図した例外)。縦長の是正 10-26 で他の面の行の図にも */
.rowviz-compact .rowviz-label, .rowviz-compact .rowviz-track, .rowviz-compact .rowviz-value { min-height: 32px; }
.rowviz-compact .rowviz-label a { min-height: 32px; }
/* 390 では長いラベルを棒の上の行に (ラベル / 棒 | 値)。都道府県の行の図 (.rowviz-dense) は名前が短いので 1 行のまま */
@media (max-width: 640px) {
  .rowviz:not(.rowviz-dense) { grid-template-columns: minmax(0, 1fr) max-content; }
  .rowviz:not(.rowviz-dense) > .rowviz-track, .rowviz:not(.rowviz-dense) > svg, .rowviz:not(.rowviz-dense) > .rowviz-scale { grid-column: 1; }
  .rowviz:not(.rowviz-dense) > .rowviz-value { grid-column: 2; }
  .rowviz:not(.rowviz-dense) > .rowviz-scale-pad { display: none; }
  .rowviz:not(.rowviz-dense) > .rowviz-label { grid-column: 1 / -1; justify-content: flex-start; min-height: 0; padding-top: 4px; line-height: 1.4; white-space: normal; }
  .rowviz:not(.rowviz-dense) > .rowviz-track { min-height: 24px; }
  .rowviz.rowviz-dense { grid-template-columns: minmax(64px, max-content) 1fr max-content; }
}
/* トラック中身 = viewBox 無しの svg (% は属性で配置 — CSP style-src 'self' が inline
   style を全ブロックするため。2026-08-13 本番実測)。目盛り縦線 = class 無しの <line>
   (量産部の容量規律)。マーク類は必ず class を持つ */
.rowviz-track svg { display: block; overflow: visible; }
.rowviz-track line:not([class]) { stroke: var(--viz-grid); stroke-width: 1; }
.rowviz-track .rvt-axis { stroke: var(--viz-axis); stroke-width: 2; }
.rowviz-range { stroke: var(--viz-track); stroke-width: 6; stroke-linecap: round; }
.rowviz-range-thin, .rowviz-lead { stroke-width: 2; }
/* マーカー色: svg の circle は fill・HTML の凡例チップ (vizkey-dot) は background が拾う */
.rowviz-dot-hot { fill: var(--viz-hot); background: var(--viz-hot); }
.rowviz-dot-cold { fill: var(--viz-cold); background: var(--viz-cold); }
.rowviz-dot-sak1 { fill: var(--viz-sak1); background: var(--viz-sak1); }
.rowviz-dot-sak2 { fill: var(--viz-sak2); background: var(--viz-sak2); }
.rowviz-dot-q { fill: var(--viz-qdot); background: var(--viz-qdot); }
/* スプレッドダンベルの中央値ドット (波 UXC): 文字色トークン = 両モードで最強コントラスト */
.rowviz-dot-ink { fill: var(--text); background: var(--text); }
.rowviz-bar-hot { fill: var(--viz-hot); }
.rowviz-bar-cold { fill: var(--viz-cold); }
.rowviz-bar-q { fill: var(--viz-qdot); }
/* 階級色つきの地点数バー (波 UXE): バケット彩色クラス (vb2/vn/vr0.. 等) の color を拾う */
.rowviz-bar-bucket { fill: currentColor; }
/* E2 /tsuyu/ ことしの期間線・梅雨入りのみ点 = 雨は青 (検証済み viz-cold の再利用。
   旧 qdot は「雨なし琥珀」と極性衝突 — 波 UXE) */
.rowviz-tsuyu-cur { stroke: var(--viz-cold); stroke-width: 6; stroke-linecap: round; }
.rowviz-dot-tsuyu { fill: var(--viz-cold); background: var(--viz-cold); }
.rowviz-scale {
  overflow: visible;
  font-size: var(--fs-fine);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.rowviz-scale text { fill: currentColor; }
/* 行グラフの目盛りラベルの狭い画面での間引き: build (row-charts.mjs fitTickLabels / pickTickLabels) が
   幅の規則 (帯の幅と推定幅で、位置の昇順に隣が重なるラベル・両端は残して中は等間隔) で 2 段に付ける。
   390 px で収まらないラベル = .rvt-lbl-thin (480px 以下で隠す)・390 px では収まるが 360 px で収まらないラベル
   = .rvt-lbl-thin2 (389px 以下で隠す)。広い画面は全本表示 (ヘアラインは全本のまま)。
   359px 以下では 360 px で収まるラベルが重なり得るが、その幅の読者はほぼ無いので受け入れる */
@media (max-width: 480px) {
  .rvt-lbl-thin { display: none; }
}
@media (max-width: 389px) {
  .rvt-lbl-thin2 { display: none; }
}

/* 格子ヒートマップ (calviz): 行ラベル・列目盛りは HTML。セルは flex の帯 (連続同色を統合) */
.calviz {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 8px;
  margin: 12px 0;
  max-width: 680px;
}
.calviz-ticks { overflow: visible; font-size: var(--fs-fine); color: var(--text); font-variant-numeric: tabular-nums; }
.calviz-ticks text { fill: currentColor; }
.calviz-label { font-size: var(--fs-fine); white-space: nowrap; text-align: right; align-self: center; line-height: 1.2; }
/* 行 = viewBox 無しの svg 1 本。run = rect (x/width % 属性) — 列目盛りと同座標系で
   厳密整合 (flex + gap の累積ずれ回避・inline style は CSP が全ブロックするため属性で)。
   run 要素は色クラス必須 (null 域は要素を置かない = 地の白)。色は currentColor 経由
   (vq*/vty* クラスの color をライト/ダークとも拾う) */
.calviz-row { display: block; }
.calviz-row rect { fill: currentColor; }
/* 行末の値ラベル列 (UXG PR-3): 濃淡の見比べを行単位の数値で救済する 3 列変奏 */
.calviz-noted { grid-template-columns: max-content 1fr max-content; }
.calviz-note {
  font-size: var(--fs-fine);
  text-align: right;
  align-self: center;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calviz-note-h { color: var(--text); align-self: end; }
/* 表セル内の % バー (UXG PR-3): 直角・0〜100 固定軸・数値の前置図形 */
/* 幅は属性の固定値 (72 px など)。共通の max-width: 100% を外す = 表の列幅の計算 (min-content) にバーの幅を入れる
   (入れないと 1280 の月別表で値の字がセルから 7 px はみ出す・統合案 D 10-14 の実測) */
.tdbar { vertical-align: -1px; margin-right: 6px; max-width: none; }
.tdbar rect { fill: currentColor; }
.tdbar .tdbar-track { fill: var(--viz-track); color: inherit; }
/* 件数バーのセル内変奏 (UXH-2): 相対軸 (列内最大 = 全幅)・色は件数バーの慣例の金 */
.tdbar .tdbar-count { fill: var(--viz-qdot); }
/* 密な % 表 (さくらの割合表など) のセル内下線バー (UXH-2)。SVG バー (tdbar) は 1 セル
   200B 級で 400 セル超の表が容量予算 (120KB) を超えるため、クラス幅 (5 % 刻み) の
   background-image で「長さで読む」を成立させる。文字は通常インクのまま = 対比の追加検証
   不要。CSP: style-src 'self' のためインライン style は使えない — 幅はクラスで量子化。
   注意: background ショートハンド禁止 (background-image が消える既知の罠) */
td.pbc {
  background-image: linear-gradient(var(--viz-qdot), var(--viz-qdot));
  background-repeat: no-repeat;
  background-position: left bottom 3px;
}
td.pb0 { background-size: 0 3px; }
td.pb5 { background-size: 5% 3px; }
td.pb10 { background-size: 10% 3px; }
td.pb15 { background-size: 15% 3px; }
td.pb20 { background-size: 20% 3px; }
td.pb25 { background-size: 25% 3px; }
td.pb30 { background-size: 30% 3px; }
td.pb35 { background-size: 35% 3px; }
td.pb40 { background-size: 40% 3px; }
td.pb45 { background-size: 45% 3px; }
td.pb50 { background-size: 50% 3px; }
td.pb55 { background-size: 55% 3px; }
td.pb60 { background-size: 60% 3px; }
td.pb65 { background-size: 65% 3px; }
td.pb70 { background-size: 70% 3px; }
td.pb75 { background-size: 75% 3px; }
td.pb80 { background-size: 80% 3px; }
td.pb85 { background-size: 85% 3px; }
td.pb90 { background-size: 90% 3px; }
td.pb95 { background-size: 95% 3px; }
td.pb100 { background-size: 100% 3px; }
/* 平年比 (0〜200 %) の下線バー (UXH-3・/tsuyu/ の降水量平年比列)。pb クラスの幅
   (セル幅の %) を半値量子化で使い、200 % を右端に割り当てる。::after の中央目盛りが
   100 % = 平年並。pbc と独立の部品 (class="prc pbNN" で使う)。
   注意: background ショートハンド禁止 (background-image が消える既知の罠) */
td.prc {
  position: relative;
  background-image: linear-gradient(var(--viz-qdot), var(--viz-qdot));
  background-repeat: no-repeat;
  background-position: left bottom 3px;
}
td.prc::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 2px;
  height: 6px;
  background-color: var(--viz-axis);
}

/* 凡例 (HTML・離散スウォッチ + ラベル) */
.vizlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  font-size: var(--fs-fine);
  margin: 8px 0 4px;
}
.vizlegend-title { font-weight: 700; }
.vizlegend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.vizlegend-item i { width: 14px; height: 12px; background: currentColor; border-radius: 1px; flex: none; }

/* 凡例チップ (線・点のサンプル) */
.vizkey { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-fine); color: var(--text); margin: 8px 0 0; }
.vizkey-item { display: inline-flex; align-items: center; gap: 6px; }
.vizkey-line { width: 24px; border-top: 3px solid; display: inline-block; }
/* 色クラスは必ずこの行 (.vizkey-line の border-top ショートハンド = currentColor) より
   後に定義する — 同特異度の後勝ちで色が消える (波 UXE 実測) */
.vizkey-line-hot { border-color: var(--hot); }
.vizkey-line-cold { border-color: var(--cold); }
/* 月別平年値 折れ線のチップ = 本体線 (viz-nml-max/avg/min) と同トークン
   (--hot 系チップとの取り違え防止 — 波 UXE) */
.vizkey-line-nml-max { border-color: var(--viz-hot); }
.vizkey-line-nml-min { border-color: var(--viz-cold); }
.vizkey-line-nml-avg { border-color: var(--text); }
.vizkey-line-simcur { border-color: var(--viz-hot); }
.vizkey-line-simcand { border-color: var(--viz-cold); border-top-style: dashed; border-top-width: 2px; }
.vizkey-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
/* 平年 (トラック色の線) の凡例チップ (UXH-2・tsuyu の 2 系列凡例用) */
.vizkey-dot.vizkey-track { background: var(--viz-track); }

/* naked-plot: SVG はプロット領域のみ・目盛りと注釈は周囲の帯 (% 配置が座標と一致)。
   ビルド時図版 (plot-html.mjs) = viewBox 無し svg 帯 + text 属性 % (CSP style-src 'self'
   が inline style を全ブロックするため。2026-08-13 本番実測)。実行時図版 (pressure.js)
   = span + CSSOM 直代入 (CSP 許容) — span 側の規則も残す */
.plot { display: grid; grid-template-columns: max-content 1fr; gap: 0 8px; margin: 8px 0 4px; }
.plot-w680 { max-width: 680px; }
.plot-w720 { max-width: 720px; }
.plot-head { grid-column: 2; grid-row: 1; }
.plot-y {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  font-size: var(--fs-fine);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
}
.plot-y span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
.plot-y svg { display: block; height: 100%; overflow: visible; }
.plot-y text, .plot-x text { fill: currentColor; }
.plot-frame { grid-column: 2; grid-row: 2; position: relative; }
/* overflow visible: プロット領域ちょうどの viewBox のため、端の点マーカー (r=6) や
   当日線・1/1・12/31 の点が viewBox 縁で半分に切れるのを防ぐ (6px のはみ出しは意匠上無害) */
.plot-frame > svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot-framed .plot-frame { border: 1px solid var(--border); }
.plot-x {
  grid-column: 2;
  grid-row: 3;
  position: relative;
  height: 24px;
  font-size: var(--fs-fine);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.plot-x span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.plot-x svg { display: block; overflow: visible; }
/* 注釈 = プロット枠に全面重ねした svg 帯 (text の x/y 属性 %)。ハロは viz-note と同流儀。
   枠の外へは描かない (overflow: hidden)。build (plot-html.mjs fitNotes) は 390 px の時の枠に収まる注釈だけを
   置き (向きの反転・省く)、その置き方で 360 px の時の枠に収まらない注釈に .plot-note-narrow を付ける。
   390 px 以上は置いた注釈が収まり、360〜389 px は収まらない注釈を隠すので、ここで切れる注釈は出ない。
   359px 以下は保証しない */
.plot-notes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.plot-note {
  font-size: var(--fs-fine);
  font-weight: 700;
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
@media (max-width: 389px) {
  .plot-note-narrow { display: none; }
}
/* 平年カーブの旧クラス (naked-plot のプロット内で続投)。平年線は破線 —
   「実線 = 実績 / 破線 = 平年」の対比は実績が併存する 2 図 (通年カーブ・前後 3 か月 =
   下の svg-nml-dash-* と同規約) に限る。平年しか描かない図 (月別平年値の折れ線) は対象外 (波 UXE) */
.svg-grid { stroke: var(--border); stroke-width: 1; }
.svg-normal-max { stroke: var(--hot); stroke-width: 2; stroke-dasharray: 5 4; }
.svg-normal-min { stroke: var(--cold); stroke-width: 2; stroke-dasharray: 5 4; }
/* 前後 3 か月の気温 (波 UXD)。実績 = 実線・平年 = 破線 (色相は最高/最低の既存対応を維持)。
   帯 = 中立グレー (分布の幅は高い/低いの向きを持たないため hot/cold と分離する)。
   差の塗り = 実績最高と平年の差 (暖色 = 平年より高い側・寒色 = 低い側)。色は検証済み
   トークンの再利用のみ (新規配色なし) */
.svg-act-max { stroke: var(--hot); stroke-width: 2.5; }
.svg-act-min { stroke: var(--cold); stroke-width: 2.5; }
.svg-nml-dash-max { stroke: var(--hot); stroke-width: 2; stroke-dasharray: 5 4; }
.svg-nml-dash-min { stroke: var(--cold); stroke-width: 2; stroke-dasharray: 5 4; }
.svg-band-temp { fill: var(--viz-n); fill-opacity: 0.4; }
.svg-diff-warm { fill: var(--hot); fill-opacity: 0.2; }
.svg-diff-cool { fill: var(--cold); fill-opacity: 0.2; }
.vizkey-line-nml-hot { border-color: var(--hot); border-top-style: dashed; border-top-width: 2px; }
.vizkey-line-nml-cold { border-color: var(--cold); border-top-style: dashed; border-top-width: 2px; }
.vizkey-box { width: 14px; height: 14px; display: inline-block; flex: none; }
.vizkey-box-band { background: var(--viz-n); opacity: 0.4; } /* 本体 .svg-band-temp の fill-opacity と一致させる (波 UXE) */
.svg-today-line { stroke: var(--sub); stroke-width: 1; stroke-dasharray: 4 3; }
.svg-today-max { fill: var(--hot); stroke: var(--bg); stroke-width: 1.5; }
.svg-today-min { fill: var(--bg); stroke: var(--cold); stroke-width: 2.5; }

/* 旅の計画カレンダー: 月リンクは下線付きのテキストリンク列 (数字 + % 併記・44px タップ確保・枠と角丸は置かない) */
.plan-months { list-style: none; padding: 0; margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.plan-months a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--text);
  font-weight: 700;
  min-height: var(--tap-min);
}
.plan-month-stat { color: var(--text); font-weight: 400; }
.plan-ranklinks { margin: 0 0 12px; }
/* 地点名のリンクは名前の途中で折らない・押せる高さは .basis-note a と同じ形で広げる (行の高さは不変) */
.plan-ranklinks a { white-space: nowrap; display: inline-block; padding: 8px 0; margin: -8px 0; }
.split > * > .plan-ranklinks:last-child { margin-bottom: 0; }
/* 台風接近シミュレーターのフォーム (対戦比較の select と同じ流儀) */
.sim-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.sim-field { border: 1px solid var(--border); padding: 8px 14px 12px; margin: 0; min-inline-size: 0; }
.sim-field legend { font-weight: 700; padding: 0 4px; }
.sim-field label { margin-right: 8px; }
.sim-field select {
  font-size: 16px;
  padding: 8px 10px;
  min-height: var(--tap-min);
  border: 1px solid var(--border-interactive);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
}
#sim-result { margin-top: 12px; }
/* 気圧の動き (第 4 波)。select は対戦比較・シミュレーターと同じ流儀 */
.pressure-controls { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
.pressure-controls label { font-weight: 600; }
.pressure-controls select {
  font-size: 16px;
  padding: 8px 10px;
  min-height: var(--tap-min);
  border: 1px solid var(--border-interactive);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }

/* hidden 属性は author style の display 指定より必ず優先させる
   (.versus-controls の display: flex が hidden を上書きして「空のコントロール」が
   JS 無効環境で見えてしまう事故の再発防止) */
[hidden] { display: none !important; }

/* タイポグラフィ (艦隊の体系・:root の --fs-*): h1 28 / h2 20 / h3 16 / 本文 14 / 補足 12 */
html {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  font-variant-numeric: tabular-nums;
}

small { font-size: inherit; }
/* ボタンの字はブラウザーの既定 (13.33 px) でなく周りの本文の大きさを継ぐ (1 面の字の大きさは 6 種まで) */
button { font: inherit; }
/* 画像と埋め込みは容れ物の幅を超えない (390 の横はみ出しの防止・自動チェック tests/narrow-width-guard) */
img, svg, iframe, video, canvas { max-width: 100%; }

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); }
/* 短い行は語の途中で折らない (空白と句読点の位置で折る・統合案 D) */
h1, h2, h3, .date-anchor, .spot-meta, .card-title, .stat-place, .stat-kicker, caption, details.fold > summary { word-break: keep-all; overflow-wrap: anywhere; }

/* トランジションは色・罫・変形の 120ms のみ (動きで飾らない) */
a, .button, .tab-labels label, select, textarea, .myspot-chip, .stat-tile, .site-header__pc a {
  transition: color 120ms, background-color 120ms, border-color 120ms, box-shadow 120ms, transform 120ms;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

/* マストヘッド (観測記録紙の題字 + 観測日付 + ナビ + 二重罫) */
.siteheader { background: var(--bg); }
.siteheader-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 16px;
  min-height: 50px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  flex-shrink: 0;
}
.brand .masthead-title { height: 30px; width: auto; display: block; }
/* ブランドマーク (favicon と同じ「太陽と雨」紋章)。白い円の地を自前に持つためダークでも反転不要。
   題字 (高さ 30px) と光学的に揃う 28px。ダーク時の境界は円の墨の輪が担う */
.brand .brand-mark { width: 28px; height: 28px; flex-shrink: 0; margin-right: 9px; }
/* 題字の横の添え字 (en の面の "Tenkiro"・決め 7 a)。本文の 1 段下の補足の字・色は本文の黒 */
.brand .brand-sub { margin-left: 8px; font-size: var(--fs-fine); font-weight: 600; letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }
/* 紋章の白地の枠 (ヘッダーとヒーロー)。ライトは白地にインクの枠・ダークは地の色に明るい枠 */
.brand-mark-ground { fill: var(--bg); stroke: var(--text); }
.dateline {
  margin: 0;
  font-size: var(--fs-fine);
  letter-spacing: 0.12em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
/* 日付 (「YYYY 年 M 月 D 日の観測記録」≈ 255px) は 600px 未満では畳む: 390px でも題字 (188px) +
   ハンバーガー (44px) と 1 行に収まらない実測 (2026-09-02・scrollWidth 462)。スマホの日付は
   本文冒頭の観測日が担う。要親裁定: 短縮形 (例 8/12) を出すか */
@media (max-width: 599px) {
  .dateline { display: none; }
}
/* 日付の枠 ([data-today]・site-drawer.js が /today.json から埋める)。読み込み前の「―」(U+2015・HTML は em dash を持たない content-guard の規則) と埋めた後の日付で行の折り返しが
   変わらないように、いちばん長い日付 (YYYY 年 MM 月 DD 日・Mac の書体の実測 本文 9.9 em・太字 10.4 em・足元は字間込み 12.2 em) に
   0.6 em 以上の余り (他の書体の幅の差) を足した幅を取っておく (CLS 0)。
   枠は必ず行 (ブロック) の末尾に置く = 幅の余りは行末の空きになり、文の中には出ない */
[data-today] { display: inline-block; min-width: 11em; text-align: left; }
/* ヘッダーの日付の枠 (上の決まり・0.5 em 刻み)。実測 (2026〜2029 年の全部の日付・2026-10-21): ja 最長 11.845 em → 12.5 em・en 最長 12.492 em → 13.5 em */
.dateline [data-today] { min-width: 12.5em; }
html[lang="en"] .dateline [data-today] { min-width: 13.5em; }
/* 日々の値の断片の枠 ([data-frag]・site-drawer.js が面の data-daily の JSON から入れる・PR 3c-2)。入った後の枠は箱を作らない
   (display: contents = 中身が元の位置にそのまま並ぶ・見え方は値を HTML に書いていた時と同じ)。読み込み前は「―」と、
   入る中身のおおよその高さを取っておく (CLS を小さく)。高さは 390 px と 1280 px の実測から (PR 本文の表) */
.frag[data-done] { display: contents; }
.frag:not([data-done]) { display: block; }
.frag-ribbon:not([data-done]) { height: 22px; }
.kgrid > .frag-cal:not([data-done]) { grid-column: 1 / -1; }
/* 取っておく高さ (390 px の実測・画面より高い中身は 1 画面ぶんまで)。721 px 以上は下の @media */
.frag-spot-today:not([data-done]) { min-height: 557px; } /* 温度計 + 雨と風の段 (総点検 10-23 の実測) */
.frag-spot-yesterday:not([data-done]) { min-height: 355px; }
.frag-note:not([data-done]) { min-height: 124px; }
.frag-gaps:not([data-done]) { min-height: 288px; }
.frag-line:not([data-done]) { min-height: 116px; }
.frag-stats:not([data-done]) { min-height: 285px; }
.frag-pref-stats:not([data-done]) { min-height: 186px; } /* 名札を 1 行にした後の実測 (総点検 10-23) */
.frag-maps:not([data-done]) { min-height: 1817px; }
.frag-cards:not([data-done]) { min-height: 974px; }
.frag-rank:not([data-done]) { min-height: 603px; }
.frag-prefs:not([data-done]) { min-height: 1000px; }
.frag-anniv:not([data-done]) { min-height: 911px; }
.frag-award:not([data-done]) { min-height: 1000px; }
.frag-award-log:not([data-done]) { min-height: 68px; }
.frag-versus:not([data-done]) { min-height: 1000px; }
.frag-rain:not([data-done]) { min-height: 900px; }
.frag-snow:not([data-done]) { min-height: 88px; }
.frag-tile:not([data-done]) { min-height: 82px; }
.frag-word-national:not([data-done]) { min-height: 253px; }
.frag-yesterday:not([data-done]), .frag-pref-spots:not([data-done]) { min-height: 1000px; }
.frag-cal:not([data-done]) { min-height: 307px; }
@media (min-width: 721px) {
  .frag-spot-today:not([data-done]) { min-height: 532px; }
  .frag-spot-yesterday:not([data-done]) { min-height: 307px; }
  .frag-note:not([data-done]) { min-height: 68px; }
  .frag-gaps:not([data-done]) { min-height: 176px; }
  .frag-line:not([data-done]) { min-height: 60px; }
  .frag-stats:not([data-done]) { min-height: 131px; }
  .frag-pref-stats:not([data-done]) { min-height: 108px; }
  .frag-maps:not([data-done]) { min-height: 1820px; }
  .frag-cards:not([data-done]) { min-height: 546px; }
  .frag-rank:not([data-done]) { min-height: 545px; }
  .frag-anniv:not([data-done]) { min-height: 653px; }
  .frag-award:not([data-done]) { min-height: 721px; }
  .frag-award-log:not([data-done]) { min-height: 40px; }
  .frag-versus:not([data-done]) { min-height: 405px; }
  .frag-rain:not([data-done]) { min-height: 700px; }
  .frag-snow:not([data-done]) { min-height: 60px; }
  .frag-tile:not([data-done]) { min-height: 79px; }
  .frag-word-national:not([data-done]) { min-height: 169px; }
}
/* JS が動かない時だけの 1 行 (観測の日付は /today.json を JS が埋める)。日付の行が隠れる 600px 未満でも見える位置 */
.dateline-note {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 4px;
  font-size: var(--fs-body);
  color: var(--text);
}
/* PC (1024px 以上) だけの可視ナビ = 主要 5 本。1024px 未満は非表示 (同じ導線はドロワーが持つ) */
.site-header__pc { display: none; }
/* ハンバーガー (型 A 併用ドロワー)。hidden で出荷し JS が表示する (JS 無効時はフッターが代替) */
.site-header__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border-interactive);
  border-radius: 4px;
  background: none;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
/* display 指定が UA の [hidden] 既定 (display:none) に勝ってしまうのを防ぐ */
.site-header__menu[hidden] { display: none !important; }
.site-header__menu:hover,
.site-header__menu:focus-visible,
.site-header__menu[aria-expanded="true"] { color: var(--link); border-color: var(--link); }
.site-header__menu-icon--close { display: none; }
.site-header__menu[aria-expanded="true"] .site-header__menu-icon--open { display: none; }
.site-header__menu[aria-expanded="true"] .site-header__menu-icon--close { display: block; }
@media (min-width: 1024px) {
  .site-header__pc {
    display: flex;
    align-items: center;
    /* 間隔 12px: ナビの末尾の言語切替 (約 115px) が入ったので、20px では ja も en も内側幅 1000px を越える実測 (ja 1024px で文書幅 1037・en は短い名 navPc にしても 12px 越え) */
    gap: 0 12px;
    margin-left: auto;
    white-space: nowrap;
  }
  /* 言語切替は日付と同じ 1 段下の字 (間隔 12px だけでは ja / en とも内側幅 1000px を 9〜12px 越える実測) */
  .site-header__pc .lang-switch { font-size: var(--fs-fine); }
  .site-header__pc a {
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
    padding: 1px 2px 0;
    border-top: 3px solid transparent; /* 下線と同じ厚みを上にも取り、字を箱の中央へ (下線の位置は不変・上の 1 は字の形の偏りの分) */
    border-bottom: 3px solid transparent;
  }
  .site-header__pc a[aria-current] {
    font-weight: 600;
    border-bottom-color: var(--accent);
  }
  .site-header__pc a:hover,
  .site-header__pc a:focus-visible { color: var(--link); }
  .site-header__menu,
  .site-drawer { display: none !important; }
}

/* --- サイトメニュー = 型 A 併用ドロワー (右スライド min(86vw, 360px)・背景幕 rgba(0,0,0,.45)・
   200ms ease-out・NAVIGATION_DESIGN_SPEC §3・npbc 参照実装の移植)。紙色の面 + インクの罫で
   記録紙の意匠に揃える。閉状態 = hidden ([hidden] 防壁に乗る) --- */
.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.site-drawer[hidden] { display: none !important; }
.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.site-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  border-left: 1px solid var(--rule-ink);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 200ms ease-out;
}
.site-drawer.is-open .site-drawer__backdrop { opacity: 1; }
.site-drawer.is-open .site-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-drawer__backdrop, .site-drawer__panel { transition: none; }
}
/* 開いている間は背面スクロールをロック (site-drawer.js が html に付ける) */
.site-drawer-open, .site-drawer-open body { overflow: hidden; }
.site-drawer__top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 8px 0 20px;
  border-bottom: 3px solid var(--rule-ink);
  background: var(--bg);
}
.site-drawer__title {
  font-family: var(--font-mincho);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
}
.site-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.site-drawer__close:hover, .site-drawer__close:focus-visible { color: var(--link); }
.site-drawer__group { padding: 6px 0 4px; }
.site-drawer__aux { padding: 8px 0; }
.site-drawer__aux { margin-top: 8px; border-top: 1px solid var(--border); }
/* グループ見出し 14px / 500 / 副次色 (7:1 床は --sub が満たす) */
/* 区分の見出しは p (見出しの段に入れない・区分の名は aria-labelledby で付く)。親クラスで特異度を上げる */
.site-drawer__panel .site-drawer__heading {
  position: static;
  margin: 8px 20px 2px;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--text);
}
.site-drawer__list { list-style: none; margin: 0; padding: 0; }
/* 項目 = 行高 48px・14px・左揃え。現在地 = 600 + 左ボーダー 3px (朱・ボーダーのみ = 文字色は変えない) */
.site-drawer__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px 0 17px;
  font-size: var(--fs-body);
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 120ms, color 120ms;
}
.site-drawer__list a:hover, .site-drawer__list a:focus-visible { background-color: var(--hover); color: var(--link); }
.site-drawer__list a[aria-current] { font-weight: 600; border-left-color: var(--hot); }
.site-drawer__aux .site-drawer__list a { min-height: 44px; }

/* 二重罫 (太 3px + 細 1px・記録紙の様式記号・全ページ共通)。footer は上下反転 */
.rule-double {
  border-top: 3px solid var(--rule-ink);
  border-bottom: 1px solid var(--rule-ink);
  height: 6px;
}
.rule-double-close {
  border-top: 1px solid var(--rule-ink);
  border-bottom: 3px solid var(--rule-ink);
  height: 6px;
}

/* 本文 */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 0; /* 下は 0 = 面の最後 → フッターの隙間はフッターの中の余白だけ (統合案 D 10-14 の空白の是正) */
}
/* トーン刷新 (2026-08-15・ヒーロー題字帯の言語を全体へ波及):
   見出し = 極太ゴシック + わずかな字間、基線に朱の基準線 (datum) を刻む。
   明朝は題字・落款・認定面 (儀式の声) にのみ残す。色トークンは不変 (番人の実値を守る) */
h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
  margin: 0 0 12px;
  position: relative;
  padding-bottom: 12px;
}
h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  background: var(--hot);
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 3px;
  background: var(--hot);
}
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; margin: 24px 0 8px; }
/* 節の見出しの上は 24 (統合案 D 10-14 の空白の是正・余白の段は 8 / 16 / 24) */
section > h2:first-child { margin-top: 24px; }
.date-anchor { margin: 0 0 8px; }
/* 段落の既定 = 下 16 (尺)・class の付いた段落の margin はそのまま勝つ (:where で特異度を上げない)・ゲームの面の包み (.g-app) の中は対象外 */
:where(.content > p, .content > section > p) { margin: 0 0 16px; }
/* 1 列の本文の 1 行を約 51 字に (.rowviz と同じ 720)・表 / 図 / カードの格子と class の付いた一覧は全幅のまま */
.content > p, .content > section > p,
.content > ul:not([class]), .content > ol:not([class]),
.content > section > ul:not([class]), .content > section > ol:not([class]) { max-width: 720px; }
.lead { margin: 0 0 24px; }
.breadcrumb { margin-bottom: 16px; }
/* タップ目標の底上げ (2026-08-16 表示ズレ QA S3): パンくずと表の行見出しリンクは
   行高 16px しかなくタップ目標 24px 未満だった。padding を負 margin で相殺し、
   レイアウト寸法を変えずに当たり判定だけ高さ 28px へ広げる */
.breadcrumb a, table.ranking th a, table.ranking td a {
  display: inline-flex;
  align-items: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
}
.breadcrumb a { justify-content: center; }
/* 640 未満は今の面の名とその前の区切りを隠す (直下の h1 と同じ字・JSON-LD のパンくずは変えない) */
@media (max-width: 639px) { .breadcrumb-here { display: none; } }

/* 柱 (eyebrow): セクション見出し上の小さな固定語彙ラベル。
   トーン刷新でゴシック字間広め (ヒーローのタグライン様式) へ — 明朝は儀式面へ限定 */
.eyebrow {
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
  margin: 24px 0 0;
}
.eyebrow + h2, .eyebrow + section > h2:first-child, .eyebrow + .map-duo > section:first-child > h2:first-child { margin-top: 4px; }

/* タブ (JavaScript なしで動くラジオ式) — 下線式・選択中はインク地白抜き */
.tabs { margin-top: 8px; }
.tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 2px solid var(--rule-ink);
}
.tab-labels label {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 4px 16px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.06em;
  user-select: none;
}
.tab-labels label:hover { background: var(--hover); }
.tabs:focus-within .tab-labels { outline: 2px solid var(--accent); outline-offset: 3px; }
#tab-range:checked ~ .tab-labels label[for="tab-range"],
#tab-hot:checked ~ .tab-labels label[for="tab-hot"],
#tab-cold:checked ~ .tab-labels label[for="tab-cold"],
#tab-anom:checked ~ .tab-labels label[for="tab-anom"],
#tab-prev:checked ~ .tab-labels label[for="tab-prev"],
#tab-now:checked ~ .tab-labels label[for="tab-now"] {
  background: var(--rule-ink);
  color: var(--bg);
}
.panel { display: none; padding-top: 16px; }
#tab-range:checked ~ #panel-range,
#tab-hot:checked ~ #panel-hot,
#tab-cold:checked ~ #panel-cold,
#tab-anom:checked ~ #panel-anom,
#tab-prev:checked ~ #panel-prev,
#tab-now:checked ~ #panel-now { display: block; }

/* 記録カード様式 (白地・1px 装飾罫・上辺 2px 色罫)。旧ティント + 左ボーダー様式は全廃。
   hero-card は既存テンプレート互換のため同一様式へ吸収 */
.hero-card, .record-card {
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: var(--bg);
  padding: 16px;
  margin-bottom: 16px;
}
.record-card-hot { border-top-color: var(--hot); }
.record-card-cold { border-top-color: var(--cold); }
.record-card-ink { border-top-color: var(--rule-ink); }
/* カードの見出し (中身は面の答えなので本文色・h3 の大きさ 16 px 700・統合案 D) */
.card-title { margin: 0; font-size: var(--fs-h3); font-weight: 700; line-height: 1.6; }
.card-sub { margin: 8px 0 0; }
.card-cta { margin: 8px 0 0; font-weight: 700; }
/* 案内リンクは行高 44 px (配置の寸法は変えず当たり判定だけ広げる) */
.card-cta a { display: inline-flex; align-items: center; min-height: var(--tap-min); margin: -15px 0; }

/* 日替わり帯: 記録カードのグリッド + 柱 (kicker) + 朱印 */
.record-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 0;
}
.record-cards .record-card { margin-bottom: 0; position: relative; }
.record-kicker {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 4px;
}
.record-card-seal { padding-right: 68px; }
.record-card .seal { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; }
/* 朱印は印影の色 (固定の朱 = ライトの --hot 値)。ダークでも印影は変えない —
   白抜き文字と朱地のコントラスト 6.47:1 (実測 2026-08-13) をテーマ非依存で保つ */
.seal-ground { fill: #a43b2f; }
.seal-frame { fill: none; stroke: #ffffff; stroke-width: 1.5; opacity: 0.9; }
.seal-glyph { fill: #ffffff; }

/* /award/ 認定面 (§5-2): 二重罫の額 (細内罫 + 太外罫) + 朱印 + 受賞地点 */
.award-cert {
  position: relative;
  border: 1px solid var(--rule-ink);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--rule-ink);
  margin: 10px 6px 28px;
  padding: 20px 92px 20px 24px;
  background: var(--bg);
}
.award-cert .seal { position: absolute; top: 18px; right: 18px; width: 56px; height: 56px; }
.award-cert-date {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: var(--fs-body);
  letter-spacing: 0.1em;
  color: var(--text);
}
.award-cert-place { margin: 4px 0 0; font-size: var(--fs-h2); font-weight: 700; line-height: 1.4; }
.award-stats .stat-place { color: var(--text); }
@media (max-width: 660px) {
  .award-cert { padding-right: 24px; }
  .award-cert-date { padding-right: 68px; }
}

/* about: 運営者の記録紙署名欄風 (文言は site.config の operatorHandle のみ) */
.about-signature {
  margin-top: 32px;
  text-align: right;
  font-family: var(--font-mincho);
  font-size: var(--fs-body);
  letter-spacing: 0.14em;
}
@media (max-width: 640px) { .about-signature { margin-top: 24px; } }

/* 速報 3 図式 (ヒーローストリップ): 記録紙の罫の 1 行 = 上辺 3px 色罫 + 項の間の縦罫 + 下罫 1 本
   (統合案 D 10-14: 淡色のカードの格子と記入欄の方眼をやめた・要素と順は不変) */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--border);
}
.stat-tile {
  display: block;
  border: 0;
  border-top: 3px solid var(--rule-ink);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
}
.stat-tile + .stat-tile { border-left: 1px solid var(--border); }
a.stat-tile:hover { background: var(--hover); }
.stat-tile-hot { border-top-color: var(--hot); }
.stat-tile-cold { border-top-color: var(--cold); }
.stat-kicker {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
}
.stat-value {
  display: block;
  font-size: var(--fs-h3); /* 値は 3 項とも 16 px 700 (大きな数字は置かない・統合案 D 10-14) */
  font-weight: 700;
  line-height: 1.5;
  margin-top: 4px;
  letter-spacing: 0;
}
.stat-value .stat-unit { font-size: var(--fs-h3); font-weight: 600; } /* 単位は値と同じ大きさ */
.stat-place { display: block; margin-top: 0; }
.stat-place .pref { color: var(--text); font-size: var(--fs-body); }
/* 地点名のリンクの押せる高さ 44 (padding を負の margin で相殺し行の高さは不変) */
.stat-place a { display: inline-block; padding: 10px 0; margin: -10px 0; }
@media (max-width: 660px) {
  /* 1 項 = 1 行 (項目 | 値 | 地点) の罫の行 */
  .stat-strip { grid-template-columns: 1fr; border-bottom: 0; }
  .stat-tile { display: grid; grid-template-columns: minmax(6.5em, max-content) auto 1fr; align-items: baseline; column-gap: 12px; border-top-width: 2px; border-bottom: 1px solid var(--border); padding: 8px 0; }
  /* 名札は語の途中で折らない (6.5em より長い名札だけ列が広がる・短い名札の並びは今のまま) */
  .stat-kicker { white-space: nowrap; }
  .stat-tile + .stat-tile { border-left: 0; }
  .stat-value { display: inline-block; margin: 0; }
  .stat-place { display: inline-block; }
}
@media (max-width: 640px) {
  .stat-tile { padding: 8px 0; }
}
/* 都道府県の面の「きょうの◯◯」は名札が 8 字 (いちばん暑かった・平年との差が最大) = 6.5em では語の途中で折れる → 名札の列を広げて 1 行に (総点検 10-23) */
@media (max-width: 660px) {
  .stat-strip-names .stat-tile { grid-template-columns: 9.5em auto 1fr; }
  .stat-strip-names .stat-kicker { white-space: nowrap; }
}

/* 地点の面のきょうの観測 = 温度計・風向の矢・雨量計 (グラフィック総点検 10-23・src/utils/spot-thermo.mjs)。
   図の中の字は本文の大きさ 1 つ・値は 700・名前は 600・平年差の符号は朱 / 藍・ダークは変数が替わる */
.thermo { display: block; max-width: 100%; height: auto; border-top: 2px solid var(--rule-ink); padding-top: 8px; overflow: visible; }
.thermo text { font-size: var(--fs-body); fill: var(--text); font-variant-numeric: tabular-nums; }
.thermo .thermo-k { font-weight: 600; }
.thermo .thermo-v { font-weight: 700; }
.thermo .thermo-up { fill: var(--hot); font-weight: 700; }
.thermo .thermo-down { fill: var(--cold); font-weight: 700; }
.thermo-grid { fill: none; stroke: var(--viz-grid); stroke-width: 1; }
.thermo-tube { fill: var(--bg); stroke: var(--rule-ink); stroke-width: 1.5; }
.thermo-normal { fill: var(--viz-track); }
.thermo-normal-edge { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; }
.thermo-bar { fill: var(--viz-hot); fill-opacity: 0.28; stroke: var(--viz-hot); stroke-width: 1.5; }
.thermo-bulb { fill: var(--viz-hot); fill-opacity: 0.28; stroke: var(--rule-ink); stroke-width: 1.5; }
.thermo-dot-max { fill: var(--hot); }
.thermo-dot-min { fill: var(--bg); stroke: var(--cold); stroke-width: 2; }
.thermo-lead { fill: none; stroke: var(--text); stroke-width: 1; }
.thermo-key { display: flex; align-items: center; gap: 6px; margin: 0 0 0 88px; }
.thermo-key svg { flex: none; }
.thermo-key .thermo-k, .thermo-range .thermo-k, .wx-cell .thermo-k { font-weight: 600; }
.thermo-range { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin: 16px 0 0; padding-top: 8px; }
.wx-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; border-top: 1px solid var(--border); margin: 8px 0 8px; padding-top: 16px; }
.wx-cell { display: flex; gap: 8px; align-items: center; }
.wx-cell svg { flex: none; }
.wx-cell p { margin: 0; }
.wx-cell p > span { display: block; word-break: keep-all; overflow-wrap: anywhere; }
.wx-cell .thermo-v { font-weight: 700; }
/* 1000 以上: 温度計と平年の幅を左の列、寒暖差 / 雨と風 / 実況値で更新 を右の列に (DOM の順は不変・live.js は id で引く)。
   右の列は行ごとに中身の高さ・温度計は 2 行目から余りの行 (1fr) まで跨ぎ、平年の幅はその下 */
@media (min-width: 1000px) {
  #spot-today:has(> .thermo) {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto 1fr auto;
    column-gap: 24px;
    align-items: start;
  }
  #spot-today:has(> .thermo) > * { grid-column: 2; }
  #spot-today:has(> .thermo) > h2 { grid-column: 1 / -1; grid-row: 1; }
  #spot-today:has(> .thermo) > .thermo { grid-column: 1; grid-row: 2 / 7; }
  #spot-today:has(> .thermo) > .thermo-key { grid-column: 1; grid-row: 7; }
  #spot-today:has(> .thermo) > .thermo-range { margin-top: 0; }
  /* 読み込み前に取っておく高さも 2 列の実測に (532 - 2 列で縮んだ 185 = 768 の節 540 と 1280 の節 355 の差) */
  .frag-spot-today:not([data-done]) { min-height: 347px; }
}
.wx-north { font-size: var(--fs-fine); font-weight: 700; fill: var(--text); }
.wind-dial { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; }
.wind-ticks { fill: none; stroke: var(--rule-ink); stroke-width: 1.5; }
.wind-shaft { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.wind-head { fill: var(--accent); }
.wind-tail { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.rain-funnel { fill: var(--viz-track); stroke: var(--rule-ink); stroke-width: 1.5; stroke-linejoin: round; }
.rain-tube { fill: var(--bg); stroke: var(--rule-ink); stroke-width: 1.5; }
.rain-water { fill: none; stroke: var(--viz-cold); stroke-width: 13; }
.rain-ticks { fill: none; stroke: var(--rule-ink); stroke-width: 1; }

.basis-note { margin: 0 0 16px; color: var(--text); }
/* 注の中の案内リンク・計画の注のリンクは当たり判定を上下 8 px 広げる (配置の寸法は変えない) */
.basis-note a, .plan-disclaimer a { display: inline-block; padding: 8px 0; margin: -8px 0; }

/* 表 — thead 白地 + 2px インク下罫 (記録紙の様式)。行 hover は状態としてのみ面を使う */
table.ranking, table.versus-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
}
table.ranking caption, table.versus-table caption {
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  padding-bottom: 8px;
}
table.ranking th, table.ranking td,
table.versus-table th, table.versus-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
/* 行の高さ 44 px = 表の中のリンクを行いっぱいに押せる (下に積む表 .stack は除く・統合案 D 10-14) */
table.ranking:not(.stack) th, table.ranking:not(.stack) td { padding-block: 0; height: var(--tap-min); }
table.ranking thead th, table.versus-table thead th {
  /* 白地は地色 (--bg) と同一のため透過で見た目不変 — 不透過にすると .table-scroll の
     端影 (走査影) をヘッダー行だけが隠して継ぎ目になる */
  background: transparent;
  border-bottom: 2px solid var(--rule-ink);
  /* 列見出し = 製図のラベル (サブタイトル 14 600 二次色 + 字間) */
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}
table.ranking tbody tr:hover, table.versus-table tbody tr:hover { background: var(--hover); }
/* 王座の表の月の行 (直近 60 日より前): 日ごとの行との境目は余白だけ (太字と色は足さない) */
table.ranking tr:not(.month) + tr.month > * { padding-top: 16px; }
/* 王座の日ごとの表: 地点名を語の途中で折らない (リンクの無い地点名も)。月の行は年月と日数の間でだけ折る (10-26) */
table.ouza-daily td { word-break: keep-all; overflow-wrap: break-word; }
table.ouza-daily tr.month > th { white-space: normal; line-height: 1.4; }
/* 横スクロール容器 — 「まだ右にある」ことを両端の影で示す (見切れ以外の明示手掛かり)。
   覆い層 (--bg のグラデ) は background-attachment: local で内容と一緒にスクロールし、
   端まで達した側・スクロール不要の幅では影を覆い隠す = 影はスクロールできる側にだけ出る */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--bg) 45%, transparent) left / 30px 100%,
    linear-gradient(to left, var(--bg) 45%, transparent) right / 30px 100%,
    radial-gradient(farthest-side at 0 50%, var(--scroll-hint), transparent) left / 11px 100%,
    radial-gradient(farthest-side at 100% 50%, var(--scroll-hint), transparent) right / 11px 100%;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}
/* 記録名の文字列列を持つ表は、狭い画面で列が 1 文字ずつ縦に潰れないよう
   最小幅を確保して容器側の横スクロールに逃がす */
table.spot-records, table.pref-records, table.record-list { min-width: 560px; }
/* 表第 1 列 (行見出し) と表中の地点名リンクは折り返さない — 数値列 (.num) が全て
   nowrap のため、狭い幅では折り返せる第 1 列だけが最小幅まで絞られ「九/州/北/部」型の
   1 文字縦落ちになる (2026-08-16 実測: /typhoon/ 地域別平年表 w390・/pref/ 観測サマリー
   w320・/spot/ 月別表の月リンク w320〜480)。はみ出す分は .table-scroll の横スクロールへ */
table.ranking th[scope="row"], table.ranking td a { white-space: nowrap; }
/* 観測サマリー表 (pref) の地点名は未公開地点だとリンク無しの素テキストになり
   上の td a では拾えない — 全セルが短い表なので td ごと nowrap にする */
table.pref-today-summary td { white-space: nowrap; }
.num { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 基本セル規則 (table.ranking th 等 = 特異度 0,1,2) の text-align: left に負けないよう
   table 前置で同特異度 + 後勝ちにする (素の td.num [0,1,1] は敗けて左揃えのままになる
   — 2026-08-13 実測で全表が左揃えだった根本原因)。値のセルと列見出しは中央揃え (艦隊の規則 2026-09-30・
   右揃えは使わない・長い文字列の列 = 地点名の先頭列だけ左) */
table td.num, table th.num { text-align: center; }
/* E2 /yesterday/ の全地点表 (914 行 × 47 表): 1 行の容量規律のためセル class を持たない —
   揃えは列規則で与える (先頭列 = 地点名のみ左)。特異度は td.num と同水準の table 前置形 */
table.y-all td { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.y-all td:first-child { text-align: left; }
table.y-all thead th { text-align: center; }
table.y-all thead th:first-child { text-align: left; }
.strong { font-weight: 700; }
.pref { color: var(--text); white-space: nowrap; }
/* 表の短い語の列 (気圧の目安 / 旅の計画の主因) は 1 字ずつ縦に折らない (縦長の是正 10-26) */
.short-word { white-space: nowrap; }
.time { color: var(--text); white-space: nowrap; }
/* 表の中の起時と県名は補足の大きさ (統合案 D) */
td .time { font-size: var(--fs-fine); margin-left: 4px; }
td .pref { font-size: var(--fs-fine); }
/* 表の中の地点名リンクは太字 */
table.ranking td a { font-weight: 700; text-underline-offset: 3px; }

/* トップの順位の表 (統合案 D 10-14): 上位 10 行を開いて置き、11 位以下は下の折りたたみ。
   表の名前 (caption) は読み上げと表の容器の名前のために残す。見た目を隠すのは表が 1 つのタブ (暑い / 寒い / 寒暖差) だけ
   (直上のタブが名前の代わり)。表が 2 つのタブ (平年差・前日差) はどちらの表かを名前で見せる (折りたたみの中の 2 表は .split の中) */
.rank-open { margin: 0 0 16px; }
.rank-open table.ranking { margin-bottom: 0; }
.rank-open > .table-scroll:only-child table.ranking caption, .panel details.fold > .table-scroll table.ranking caption {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
details.fold table.ranking { margin-top: 8px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
/* 列の中の広い表は列の幅で横スクロールにする (列の最小幅が表の幅に広がって面が横に溢れないように・縦長の是正 10-26) */
.split > * { min-width: 0; }
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  /* 縦に積んだ 2 つ目の群の見出しは列の隙間 24 だけで離す (見出しの上の 24 を重ねない) */
  .split > * + * > h3:first-child { margin-top: 0; }
}

.pref-summary tbody th { font-weight: 700; white-space: nowrap; }

/* 対戦比較 — コントロールは白地 + 操作罫。勝ちセル = 太字 + 左 3px 朱罫 (薄緑地は全廃) */
.versus-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--border-interactive);
  background: var(--bg);
}
.versus-pick { display: flex; flex-direction: column; gap: 4px; }
.versus-pick label { font-weight: 600; }
.versus-pick select {
  font-size: 16px;
  padding: 8px 10px;
  min-height: var(--tap-min);
  border: 1px solid var(--border-interactive);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  min-width: 200px;
}
.versus-vs { margin: 0 0 8px; font-weight: 700; align-self: end; }
/* 地名で探す (世界 No.1 比較 PR 4・ドロワーと対戦比較)。入力欄は対戦比較の select と同じ枠と字の大きさ (16px = iOS が拡大しない床)・
   結果の行はドロワーの項目の型を流用し、注記は 14px の副次色。新しい字の大きさは足さない */
.place-search__input {
  box-sizing: border-box;
  width: 100%;
  font-size: 16px;
  padding: 8px 10px;
  min-height: var(--tap-min);
  border: 1px solid var(--border-interactive);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
}
.site-drawer .place-search__input { display: block; width: calc(100% - 40px); margin: 2px 20px 4px; }
.place-search__list { list-style: none; margin: 0; padding: 0; }
.place-search__none, .place-search__more { margin: 4px 20px; font-size: var(--fs-body); color: var(--text); }
.place-search .pref { margin-left: 0.5em; font-size: var(--fs-body); }
.place-search__to { margin-left: auto; padding-left: 0.5em; font-size: var(--fs-body); color: var(--text); white-space: nowrap; }
.versus-search { flex: 1 1 100%; display: flex; flex-direction: column; gap: 4px; }
.versus-search label { font-weight: 600; }
.versus-search .place-search__none, .versus-search .place-search__more { margin: 0; }
.versus-search .place-search__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: var(--tap-min); border-bottom: 1px solid var(--border); }
.versus-search .place-search__list .pref { margin-left: 0; }
.place-search__pick {
  font: inherit;
  min-height: var(--tap-min);
  padding: 0 12px;
  border: 1px solid var(--border-interactive);
  border-radius: 2px;
  background: var(--bg);
  color: var(--link);
  cursor: pointer;
}
.place-search__pick:first-of-type { margin-left: auto; }
.versus-table td.win { font-weight: 700; box-shadow: inset 3px 0 0 var(--hot); }
/* 結果の表の 1 列目 (項目名) を 1 字の幅に潰さない・値は時刻の前で折れてよい */
table.versus-table th { min-width: 5em; word-break: keep-all; }
table.versus-table td { white-space: normal; }
/* 640 以下: 地点 A / B の select を入力欄と同じ幅に揃え、vs は A と B の間の行 (DOM の順は A → vs → B のまま) */
@media (max-width: 640px) {
  .versus-controls { row-gap: 8px; }
  .versus-pick { flex: 1 1 100%; }
  .versus-pick select { width: 100%; min-width: 0; }
  .versus-vs { flex: 1 1 100%; margin: 0; align-self: auto; text-align: center; }
}

/* 畳んだ資料面 (details.fold・トップ再編 2026-08-16): 図が紙面の顔・生数字の順位表は
   資料としてここに畳む (データは削らない)。summary は罫 1 本の行 (display は既定の
   list-item を保つ — flex 等に変えるとブラウザが開閉マーカーを消す) */
details.fold { margin: 16px 0 0; }
/* 続けて積む折りたたみは余白なしで 1 本の一覧に (昨日の面の 47 個・縦長の是正 10-26) */
details.fold + details.fold { margin-top: 0; }
details.fold + details.fold > summary { border-top: 0; }
/* 閉じた折りたたみの直後の注は summary の下罫に字が接する (5 px・線への密着 10-29) → 上の余白を折りたたみの上と同じ 16 px に */
details.fold + .basis-note { margin-top: 16px; }
details.fold > summary {
  cursor: pointer;
  min-height: var(--tap-min);
  padding: 10px 4px;
  font-size: var(--fs-body);
  border-top: 1px solid var(--border-interactive);
  border-bottom: 1px solid var(--border-interactive);
  font-weight: 700;
  color: var(--link);
}
details.fold > summary:hover { background: var(--hover); }
details.fold > summary::marker { color: var(--sub); }
/* summary の中の添え (.pref = 県の最高と最低) は折り返してよい: 既定の nowrap のままだと en の長い地点名で 390 px の文書幅が 403 px になる実測。地点名が長い日は ja でも 2 行に折れる (はみ出すより良い) */
details.fold > summary .pref { white-space: normal; }

/* 特集導線 (紙面案内型の 2 列インデックス — CTA セクション群の後継・トップ再編 2026-08-16) */
.feature-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
  margin-top: 12px;
  border-top: 2px solid var(--rule-ink);
}
.feature-nav a {
  display: block;
  padding: 12px 2px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.feature-nav a:hover { background: var(--hover); }
.feature-nav strong { display: block; font-size: var(--fs-body); font-weight: 700; color: var(--link); }
.feature-nav span { display: block; margin-top: 2px; font-size: var(--fs-body); color: var(--text); }
@media (max-width: 660px) {
  .feature-nav { grid-template-columns: 1fr; }
}

/* 導線カード・ボタン — 面のティントを持たない (白地 + 罫線 + 余白) */
.cta {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--rule-ink);
  padding: 4px 20px 20px;
  background: var(--bg);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 22px;
  border-radius: 2px; /* 角丸 2 px (入力欄と同じ・統合案 D) */
}
/* くらべる / たどる の地点名リンク: 太字 (トップの案内リンクと同じ)・行の高さ 44 px (当たり判定を広げる) */
.cta p { line-height: 2.6; }
.cta p a:not(.button) { display: inline-block; padding: 8px 0; margin: -8px 0; line-height: 1.8; font-weight: 700; }
.button:hover { opacity: 0.9; }
/* トップのゲームの入口 (ゲームの入口の存在感 第 2 回 2026-10-31): 導線の箱の左にゲームのアイコン 1 枚 (72 px の正方形・
   罫と角はゲームの面の鍵の絵 (.g-key-art) とボタンの 2 px に合わせる)・字の列は残りの幅いっぱい。
   説明の 1 文は本文の行の高さ (.cta p の 2.6 は地点名のリンクの段の物)・上下の余白 16・390 で箱の高さ 220 px 以内 (en の 3 行で 215 の実測) */
.cta-game { display: flex; align-items: flex-start; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.cta-game-icon { flex: none; width: 72px; height: 72px; border: 1px solid var(--border); border-radius: 2px; }
.cta-game-text { flex: 1; min-width: 0; }
.cta-game-text h2 { margin: 0 0 12px; }
.cta-game-text p { margin: 0; line-height: 1.8; line-break: strict; } /* strict = 390 の ja で「ゲ / ーム」と長音の前で折らない (「…畑の / ゲーム」になる) */
.cta-game-text p + p { margin-top: 12px; }
/* 実況の更新ボタン (読み込み後に JS が出す・hidden) だけを包む段落は、hidden の間は段落ごと隠す
   (空の段落の余白を見せない・要素と id は残す・統合案 D の空白の是正) */
p:has(> #live-refresh[hidden]) { display: none; }
/* ライブ層の手動更新ボタン (S4): 本文の CTA より控えめな小型 */
.button-small {
  border: none;
  cursor: pointer;
  font-size: var(--fs-body);
  padding: 7px 14px;
  font-family: inherit;
}

/* 面の共有ボタン (partials/share.ejs・形は都バスどこの写し)。艦隊の共有ボタン標準 (_shared/tools/share-icons):
   文字なしのアイコン 22px・44 × 44px 以上・操作罫 + 紙の地でアイコンだけブランド色 (X と URL コピーは
   本文色 = ダーク表示に追従・はてな = #00A4DE)・ホバーで罫をアイコンの色に。角はハンバーガーと同じ 4px */
.share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 16px 0; /* 下も 16px = 共有ボタンの枠とフッターの二重線がくっつかないように (10-26 ユーザー指摘) */
  border-top: 1px solid var(--border);
}
.share-label { font-size: var(--fs-body); color: var(--text); font-weight: 600; }
/* ボタン群は .share の flex に直接参加させる (320 幅でラベルだけが 1 行目に孤立しない) */
.share-btns { display: contents; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--border-interactive);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.share-btn svg { display: block; width: 22px; height: 22px; }
.share-hatena { color: #00A4DE; }
.share-btn:hover { border-color: currentColor; }
.share-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.share-status { font-size: var(--fs-body); color: var(--text); }

/* 評価欄 (partials/feedback.ejs・中身は site-drawer.js が描く・フィードバック導線 v2)。字は本文の大きさと色だけ (灰の字なし・placeholder だけは既定の薄さ)。
   ボタンは操作罫の枠 + アイコンと字・44 px 以上・押した物と選んだ理由は塗り。隙間は 4 / 8 / 16 / 24 */
.fb { margin: 24px 0 0; padding: 16px 0; border-top: 1px solid var(--border); }
.fb p { margin: 0; }
.fb-q { font-size: var(--fs-body); font-weight: 700; color: var(--text); }
.fb-acts, .fb-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fb-btn, .fb-chip, .fb-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 8px 16px;
  border: 1px solid var(--border-interactive);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  cursor: pointer;
}
.fb-btn svg { display: block; flex: none; }
.fb-chip { padding: 8px; }
.fb-btn[aria-pressed="true"], .fb-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.fb-btn:hover, .fb-chip:hover, .fb-submit:hover { border-color: currentColor; }
.fb-btn:focus-visible, .fb-chip:focus-visible, .fb-submit:focus-visible, .fb-text:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fb-thanks { margin-top: 8px; font-size: var(--fs-body); color: var(--text); }
.fb-comment { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
/* 16 px = iOS が入力の時に面を拡大しない大きさ (問い合わせの欄と同じ) */
.fb-text {
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  font-family: inherit;
  font-size: var(--fs-h3);
  line-height: 1.75;
  padding: 8px;
  border: 1px solid var(--border-interactive);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}

/* フッター (記録紙の末尾 = 反転二重罫で紙面を閉じる) */
.sitefooter {
  margin-top: 0; /* 面の最後 → フッターの隙間はフッターの中の余白だけ (統合案 D 10-14 の空白の是正) */
  padding: 0 16px 40px;
}
.sitefooter .rule-double-close { margin: 0 -16px 24px; }
.sitefooter .source-note, .sitefooter .sitefooter-nav, .sitefooter .copyright {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
}
.source-note p { margin: 0 0 8px; }
/* フッターナビ = 4 ブロック + 見出し (きょう / くらべる / 旅と季節 / サイト情報・ドロワーと同一区分)。
   行高 44px・16px。720px 以下は 2 列、360px 未満は 1 列 */
.sitefooter-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 16px;
}
.sitefooter-group { margin: 0; }
.sitefooter-nav .sitefooter-heading {
  position: static;
  margin: 0 0 4px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--rule-ink);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--text);
}
.site-drawer__panel .site-drawer__heading::after, .sitefooter-nav .sitefooter-heading::after { display: none; }
.sitefooter-list { list-style: none; margin: 0; padding: 0; }
.sitefooter-list a { display: inline-flex; align-items: center; min-height: var(--tap-min); font-size: var(--fs-body); }
@media (max-width: 720px) {
  .sitefooter-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .sitefooter-nav { grid-template-columns: minmax(0, 1fr); }
}
.copyright { margin-top: 16px; margin-bottom: 0; font-size: var(--fs-fine); }
/* 言語切替 (header の PC ナビの末尾・drawer の「サイト情報」の上・footer の末尾・partials/lang-switch.ejs) */
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap-min); min-height: var(--tap-min); }
.site-drawer__lang .lang-switch { margin: 0 20px; font-size: var(--fs-body); }
.sitefooter .sitefooter-lang { max-width: 968px; margin: 16px auto 0; }
/* 言語選択 / (pages/lang-select.ejs)。各言語の入口 = 本文の大きさの太字のリンク + 1 文 */
.lang-select__list { list-style: none; margin: 24px 0 0; padding: 0; }
.lang-select__list li { margin: 0 0 24px; }
.lang-select__list p { margin: 0; }
.lang-select__link { display: inline-flex; align-items: center; min-height: var(--tap-min); font-weight: 700; }

@media (max-width: 720px) {
  .tab-labels label { padding: 4px 12px; }
  .content { padding-top: 16px; }
  table.ranking th, table.ranking td { padding-inline: 6px; }
}
/* 390 ではタブ 6 本 (JS が出す「いま」を含む) を 1 行に収める (統合案 D の 1 行のタブ・左右 10 px)。
   400 以下 (375 / 360 の端末) は左右 8 px・字間 0.02em で 6 本が 1 行・最短のラベルも 44 px 以上 */
@media (max-width: 640px) {
  .tab-labels label { padding: 4px 10px; }
  /* 表の中の棒の図は 640 以下で 48 px (属性の幅より CSS の幅が勝つ・棒は % で描く) = 気圧の面の表を 390 で横スクロールさせない */
  .tdbar { width: 48px; }
}
@media (max-width: 400px) {
  .tab-labels label { padding: 4px 8px; letter-spacing: 0.02em; }
}

/* 横に広い表 (地点の面のきのう / 前後 3 か月 / 観測史上 / 雨なし率の月別表 = table.stack) は 900 未満で下に積む
   (1 行 = 項目の行 + 値の格子・列は落とさない・横スクロールを出さない)。値の上の小さな字 = data-label (列見出しと同じ字)。
   統合案 D 10-14。min-width の打ち消しは同じ特異度の後勝ち (table.spot-records の 560px より後に置く) */
@media (max-width: 899px) {
  table.stack, table.stack tbody, table.stack tr { display: block; width: 100%; }
  table.stack { min-width: 0; }
  table.stack caption { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); column-gap: 16px; row-gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.stack tr > * { display: block; border: 0; padding: 0; text-align: left; white-space: normal; }
  table.stack tr > :first-child { grid-column: 1 / -1; font-weight: 700; padding-bottom: 2px; }
  table.stack td:empty { display: none; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-fine); color: var(--text); font-weight: 400; line-height: 1.5; }
  table.stack td.num, table.stack th.num { text-align: left; }
  table.stack tr:hover { background: none; }
  /* 記念日のカードの記録の語を 1 行に (縦長の是正 10-26) */
  table.stack.record-list tr > :nth-child(2) { grid-column: 1 / -1; }
  /* 記念日のカード (値 / 起日 / なん年前) と都道府県の記録 (観測点 / 値 / 起日) は 3 列を 1 行に並べ、起日が折れない幅を起日の列に (10-26) */
  table.stack.record-list tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
  table.stack.pref-records tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); }
  /* 観測点のリンクはタップの幅 (44 px) の中でも項目名と同じく中央に */
  table.stack.pref-records td a { justify-content: center; }
}
/* 480 以下: きのうの観測のまとめ (値 / 起時 / 平年差 / 全国順位) は 3 + 1 の孤立を出さず 2 × 2 に (並びと DOM は不変) */
@media (max-width: 480px) {
  table.stack.spot-yesterday tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 900 以上: 9 列の月別表は見出しを意味の切れ目で 2 行にして幅に収める */
@media (min-width: 900px) {
  table.stack thead th { white-space: normal; line-height: 1.4; }
  table.stack th, table.stack td { padding: 8px 6px; }
  /* 都道府県の記録の表 (4 列) は 900 以上では下に積む前の表と同じ行の高さ (44 px) と余白に戻す (10-26) */
  table.stack.pref-records th, table.stack.pref-records td { padding: 0 8px; height: var(--tap-min); }
}

/* --- S2: 地点ページ / 都道府県ハブ / マイ地点 --- */

.h1-pref { font-size: var(--fs-body); font-weight: normal; color: var(--text); }

.spot-meta { color: var(--text); }

.myspot-toggle[aria-pressed="true"] { background: var(--bg); color: var(--text); border: 1px solid var(--border-interactive); }

.myspot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.myspot-chip,
.versus-recent-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 4px 16px;
  border: 1px solid var(--border-interactive);
  border-radius: 2px; /* トーン刷新: 丸ピル → 直角の幾何 (ヒーローの言語) */
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.myspot-chip:hover,
.versus-recent-chip:hover { border-color: var(--accent); background: var(--hover); }

/* --- さいきん見た紙面 (トップ) + 対戦カードの記憶 (localStorage 便 2026-08-30) ---
   新色ゼロ (既存トークンのみ)・チップは myspot-chip と同じ直角の設計言語。
   どちらも JS 専用 UI (hidden 出荷) — 空状態の面積を紙面に先取りしない */
.recent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-chip { gap: 8px; }
.recent-kind { font-size: var(--fs-body); color: var(--text); }
.recent-note { margin: 8px 0 0; font-size: var(--fs-body); color: var(--text); }

.versus-recent { margin: 12px 0 20px; }
.versus-recent-label { margin: 0 0 6px; font-size: var(--fs-body); color: var(--text); }
.versus-recent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.versus-recent-chip { font: inherit; cursor: pointer; }
/* いま表示中の組: 罫の二重化 + 太字 (色だけに頼らない現在地表示) */
.versus-recent-chip[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: 600;
}
.versus-recent-foot { margin: 8px 0 0; font-size: var(--fs-body); }

/* --- 現在地の観測 (GEO 便): 招待行 + タイル + 表の記載マーカー ---
   裁定 = _shared/audits/tenkiro-build-2026-08-11/GEO-DESIGN-VERDICT.md。
   新色ゼロ (既存トークンのみ)・面はタイル白地 + 罫だけ・アニメーションなし */

#geo-home { margin: 16px 0 4px; }

/* 招待 = 罫 1 本の欄外注記行 (タイルは有効化後にだけ現す — 紙面面積の先取りをしない) */
.geo-invite {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 16px; /* ボタンは 44 の箱の中で字が中央 = 下の注記の行と字の余白を揃えるため下を 16 に */
}
.geo-invite .geo-invite-btn { margin-top: 0; }
.geo-ico { vertical-align: -3px; margin-right: 6px; }
.geo-invite-btn,
.geo-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}
.geo-invite-btn:hover, .geo-link-btn:hover, .geo-cand:hover { background: var(--hover); }
.geo-invite-btn:disabled { color: var(--sub); text-decoration: none; cursor: default; }
.geo-caption { margin: 0; font-size: var(--fs-body); color: var(--text); }
.geo-status { margin: 6px 0 0; }
.geo-status:empty { margin: 0; }
.geo-return { margin: 6px 0 0; }

/* タイル = スタットタイルの変形。上辺 3px インク = 朱 (全国最高)・藍 (全国最低) に対する
   第 3 の「自分の行」。ヒーロー数字は全国タイル (44px) より一段小さい 28px (見出しとの階層) */
.geo-tile {
  border: 1px solid var(--border-interactive);
  border-top: 3px solid var(--rule-ink);
  padding: 10px 14px 12px;
}
.geo-tile:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.geo-place { margin: 2px 0 4px; }
.geo-dist { font-size: var(--fs-body); color: var(--text); }
.geo-values { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.geo-val { white-space: nowrap; }
.geo-val-label { font-size: var(--fs-body); color: var(--text); margin-right: 6px; }
.geo-val-num { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.geo-val-unit { font-size: var(--fs-body); }
.geo-val .time { font-size: var(--fs-body); color: var(--text); margin-left: 6px; }
.geo-val-hot .geo-val-num { color: var(--hot); }
.geo-val-cold .geo-val-num { color: var(--cold); }
.geo-context { margin: 4px 0 0; font-size: var(--fs-body); }
.geo-confirm { margin: 8px 0 0; font-size: var(--fs-body); color: var(--text); }
.geo-candidates { margin: 4px 0 0; border-top: 1px solid var(--border); }
.geo-cand {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap-min);
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  font: inherit;
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}
.geo-links { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; font-size: var(--fs-body); }
.geo-links a { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.geo-sep { color: var(--text); margin: 0 8px; }
.geo-foot { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.geo-asof { font-size: var(--fs-body); color: var(--text); }

/* 表の記載マーカー: 左 3px インク罫 + 「(現在地)」注記 (色や面に頼らない) */
tr.is-mine > :first-child { border-left: 3px solid var(--rule-ink); }
.geo-mine-note { font-size: var(--fs-body); color: var(--text); }
/* 県断面チャートのラベル側マーカー (GEO 深化 2026-08-16): 表の is-mine と同じ言語 = 左罫 */
.rowviz-label.is-mine { box-shadow: inset 3px 0 0 var(--rule-ink); }
.rowviz-label.is-mine a { font-weight: 800; }
/* ランキング各面の「あなたの町」順位注記 (JS 充填・hidden 出荷) */
.geo-panel-note {
  margin: 12px 0 0;
  padding: 2px 0 2px 10px;
  border-left: 3px solid var(--rule-ink);
  font-weight: 600;
}
/* 平年差マップの現在地リング: インクの輪 + 紙色の縁 (点群からの分離)。位置は観測点 */
.geo-map-marker .geo-map-ring-halo { fill: none; stroke: var(--bg); stroke-width: 6; }
.geo-map-marker .geo-map-ring { fill: none; stroke: var(--rule-ink); stroke-width: 2.5; }

/* 読み上げ専用 (成功通知は可視面に自己言及を出さない — role="status" の中だけで伝える) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.record-gap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  margin-top: 0; /* 表 → 記録の差の注記の隙間を詰める (統合案 D の空白の是正) */
}

/* --- S3: お問い合わせフォーム --- */

.contact-fieldset {
  border: 1px solid var(--border-interactive);
  padding: 8px 16px;
  margin: 0 0 24px;
}
.contact-fieldset legend { font-weight: 700; padding: 0 6px; }
.contact-choice {
  display: flex; /* 字を 44 の箱の上下の中央に */
  align-items: center;
  padding: 0 4px;
  min-height: var(--tap-min);
  cursor: pointer;
}
.contact-choice input { margin-right: 8px; }
.contact-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.contact-field label { font-weight: 600; }
.contact-field textarea {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
  padding: 10px 12px;
  border: 1px solid var(--border-interactive);
  border-radius: 2px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.contact-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-count { margin: 0; color: var(--text); text-align: right; }
.contact-status {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.contact-status.is-done { border-left: 3px solid var(--accent); }
.contact-status.is-error { border-left: 3px solid var(--hot); }
#contact-form .button {
  font-size: var(--fs-body);
  border: none;
  cursor: pointer;
  min-width: 160px;
  min-height: var(--tap-min);
}
#contact-form .button:disabled { opacity: 0.6; cursor: default; }
/* 送信する → フッターの罫 24 (他の面の最後の部品と同じ) */
#contact-form { margin-bottom: 24px; }

/* アプリ案内 (/app/): 手順リストのアイコンとインストールボタン。
   アイコンは currentColor 継承 (本文色 = 両モードでコントラスト確保済み) */
.app-steps { margin: 0 0 16px; padding-left: 26px; }
.app-steps li { margin: 12px 0; }
.app-steps svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
#app-install-button {
  font-size: var(--fs-body);
  font-family: inherit;
  border: none;
  cursor: pointer;
  min-width: 200px;
  min-height: var(--tap-min);
  border-radius: 2px;
}

/* ============================================================
   ヒーロー題字帯「グリッド題字」(トップのみ・2026-08-15 採用)
   製図方眼 (repeating-linear-gradient = CSP 適合・SVG 予算ゼロ) の上に
   超大級ゴシックの題字 + 朱の基準線 + 右の絵「記録紙の図」。下辺のリボンは
   hero.mjs がビルド時生成 (きょうの実測気温・毎日変わる)。
   方眼 = 細線 48px (viz-grid) + 強調線 192px (border)。背景は先に書いた
   層が上に描かれるため強調線を先頭に置く。 */
.hero-brand {
  position: relative;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(to right, var(--border) 0 1px, transparent 1px 192px),
    repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px 192px),
    repeating-linear-gradient(to right, var(--viz-grid) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to bottom, var(--viz-grid) 0 1px, transparent 1px 48px);
  border-bottom: 1px solid var(--rule-ink);
  overflow: hidden;
}
/* 641〜768 px で絵が縮む時も題字の箱と 24 px 離す (2026-10-27) */
.hero-brand-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero-brand-titlewrap { position: relative; }
.hero-brand-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}
/* 朱の基準線: 題字の下から紙面左端へ抜ける (記録の連続性)。帯内にクリップされる */
.hero-brand-rule {
  position: absolute;
  left: -100vw;
  right: 14%;
  bottom: -16px;
  height: 2px;
  background: var(--hot);
}
.hero-brand-tag {
  margin: 32px 0 0;
  font-size: var(--fs-body);
  letter-spacing: 0.3em;
  color: var(--text);
}
.hero-brand-emblem { display: flex; flex-direction: row; align-items: center; gap: 12px; }
/* 絵 = 記録紙に描いた天気図の断片 (inline SVG・hero-chart.mjs・2026-10-14 艦隊 ヒーロー画像 裁定 B)。
   旧 = favicon.svg と同図の「太陽と雨」紋章。640px 以下は emblem ごと非表示 (D のまま)・絵は PC だけ */
.hero-brand-mark { width: 221px; height: 184px; display: block; }
.hero-brand-em-label {
  font-size: var(--fs-fine);
  letter-spacing: 0.28em;
  color: var(--text);
  writing-mode: vertical-rl;
  margin-top: 4px;
}
/* 絵の線と面の色 (ページの変数だけ・ダークは変数の値で切り替わる) */
.hero-ch-sheet, .hero-ch-land { fill: var(--bg); stroke: var(--text); }
.hero-ch-under { fill: var(--bg); stroke: var(--border); }
.hero-ch-fine { fill: none; stroke: var(--viz-grid); }
.hero-ch-rule { fill: none; stroke: var(--border); }
.hero-ch-ink { fill: none; stroke: var(--text); }
.hero-ch-ripple { fill: var(--bg); stroke: var(--viz-axis); }
.hero-ch-paper { fill: var(--bg); }
.hero-ch-stn { fill: var(--bg); stroke: var(--sub); }
.hero-ch-hots { fill: none; stroke: var(--hot); }
.hero-ch-colds { fill: none; stroke: var(--cold); }
.hero-brand-ribbon { display: block; width: 100%; height: 22px; }
.hero-brand-ribbon path { fill: none; stroke-width: 22; }
.hero-rb-r3 { stroke: var(--viz-r3); }
.hero-rb-r2 { stroke: var(--viz-r2); }
.hero-rb-r1 { stroke: var(--viz-r1); }
.hero-rb-r0 { stroke: var(--viz-r0); }
.hero-rb-n { stroke: var(--viz-n); }
.hero-rb-b0 { stroke: var(--viz-b0); }
.hero-rb-b1 { stroke: var(--viz-b1); }
.hero-rb-b2 { stroke: var(--viz-b2); }
.hero-rb-b3 { stroke: var(--viz-b3); }
.hero-rb-x { stroke: var(--viz-track); }
/* 390 は帯を低くして 3 項と順位の表の 1 位まで初画面に (題字 56 px と紋章の非表示は今のまま・統合案 D 10-14) */
@media (max-width: 640px) {
  /* en の 390 でタグラインが 2 行に折れる時は帯が伸びる・上下 12 px (2026-10-28) */
  .hero-brand-inner { height: auto; min-height: 120px; padding-top: 12px; padding-bottom: 12px; }
  .hero-brand-emblem { display: none; }
  .hero-brand-tag { letter-spacing: 0.2em; margin-top: 14px; }
  .hero-brand-rule { bottom: -8px; }
}

/* ---------------------------------------------------------------------------
   旅の時期えらびカレンダー /plan/calendar/ (UXF・案 A: 月カード × 7 曜日格子)。
   日セル = 紙地の数字 (--text・12:1 超) + 下辺の値帯 (直角 rect 相当・rx なし)。
   帯の段 = vq の q2〜q5 のみ (q0/q1 は地との 3:1 を満たさないため使わない —
   UXF-DESIGN §3 の WCAG 実測)。gap 0 で連続する休みの帯が 1 本につながる。
   ------------------------------------------------------------------------- */
.kcal-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 24px;
  margin: 20px 0 0;
}
.kcal-month h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 6px;
}
.kbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text);
}
.kbadge i { width: 12px; height: 12px; background: currentColor; flex: none; }
.kbadge i.kbadge-n { background: transparent; border: 1px solid var(--border-interactive); }
.kbadge-l { font-weight: 700; color: var(--text); }
.kgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  /* 全面塗り (UXG) の隣接フィルは紙の 2px で分離する (dataviz マーク仕様のスペーサー) */
  gap: 2px;
}
.kwd {
  font-size: var(--fs-fine);
  color: var(--text);
  text-align: center;
  padding: 2px 0;
  border-bottom: 1px solid var(--border);
}
.kd {
  position: relative;
  min-height: 42px;
  padding: 5px 0 15px;
  font-size: var(--fs-body);
  text-align: center;
  color: var(--text);
}
/* 日セルの地色 = その日の過ごしやすさ × 主因 (UXH)。緑 = 快適 / 赤系 = 暑さ /
   青系 = 寒さ / 斜線の灰 = 気温以外 — 濃いほど厳しい。塗りは background-color の
   longhand のみ (shorthand は marker の background-image を消す)。同じ塗りを月バッジ
   (.kbadge i) と凡例 (.kfs) にも共有する。kvn = データ不足 (塗りなし = 正直表示) */
.kd.kv0, .kbadge i.kv0, .vizlegend-item i.kfs.kv0 { background-color: var(--viz-cf0); }
.kd.kvh1, .kbadge i.kvh1, .vizlegend-item i.kfs.kvh1 { background-color: var(--kv-h1); }
.kd.kvh2, .kbadge i.kvh2, .vizlegend-item i.kfs.kvh2 { background-color: var(--kv-h2); }
.kd.kvh3, .kbadge i.kvh3, .vizlegend-item i.kfs.kvh3 { background-color: var(--kv-h3); }
.kd.kvh4, .kbadge i.kvh4, .vizlegend-item i.kfs.kvh4 { background-color: var(--kv-h4); }
.kd.kvc1, .kbadge i.kvc1, .vizlegend-item i.kfs.kvc1 { background-color: var(--kv-c1); }
.kd.kvc2, .kbadge i.kvc2, .vizlegend-item i.kfs.kvc2 { background-color: var(--kv-c2); }
.kd.kvc3, .kbadge i.kvc3, .vizlegend-item i.kfs.kvc3 { background-color: var(--kv-c3); }
.kd.kvc4, .kbadge i.kvc4, .vizlegend-item i.kfs.kvc4 { background-color: var(--kv-c4); }
.kd.kvo, .kbadge i.kvo, .vizlegend-item i.kfs.kvo {
  background-color: var(--viz-n);
  /* 斜めハッチ = 中立灰の二次符号化 (CVD 救済) + 「ぐずつき」の視覚隠喩 */
  background-image: repeating-linear-gradient(45deg, var(--kv-hatch) 0 1px, transparent 1px 4px);
}
.kd.kv0 { color: var(--kv-ink-hi); }
.kd.kvh1, .kd.kvh2, .kd.kvc1, .kd.kvc2, .kd.kvo { color: var(--kv-ink-lo); }
.kd.kvh3, .kd.kvh4, .kd.kvc3, .kd.kvc4 { color: var(--kv-ink-hi); }
/* マーカー (UXH): 雨や雪 = 左上のインクの点 / 台風 = 右上の朱の点。紙のハローで地色から
   分離する (2px スペーサー規約の点版)。kvo (ハッチ持ち) との併用は image を列挙して合成 */
.kd.krn { background-image: radial-gradient(circle at 19% 24%, var(--text) 0 2px, var(--bg) 2px 3.5px, transparent 3.5px); }
.kd.kty { background-image: radial-gradient(circle at 81% 24%, var(--viz-ty2) 0 2px, var(--bg) 2px 3.5px, transparent 3.5px); }
.kd.krn.kty {
  background-image:
    radial-gradient(circle at 19% 24%, var(--text) 0 2px, var(--bg) 2px 3.5px, transparent 3.5px),
    radial-gradient(circle at 81% 24%, var(--viz-ty2) 0 2px, var(--bg) 2px 3.5px, transparent 3.5px);
}
.kd.kvo.krn {
  background-image:
    radial-gradient(circle at 19% 24%, var(--text) 0 2px, var(--bg) 2px 3.5px, transparent 3.5px),
    repeating-linear-gradient(45deg, var(--kv-hatch) 0 1px, transparent 1px 4px);
}
.kd.kvo.kty {
  background-image:
    radial-gradient(circle at 81% 24%, var(--viz-ty2) 0 2px, var(--bg) 2px 3.5px, transparent 3.5px),
    repeating-linear-gradient(45deg, var(--kv-hatch) 0 1px, transparent 1px 4px);
}
.kd.kvo.krn.kty {
  background-image:
    radial-gradient(circle at 19% 24%, var(--text) 0 2px, var(--bg) 2px 3.5px, transparent 3.5px),
    radial-gradient(circle at 81% 24%, var(--viz-ty2) 0 2px, var(--bg) 2px 3.5px, transparent 3.5px),
    repeating-linear-gradient(45deg, var(--kv-hatch) 0 1px, transparent 1px 4px);
}
/* 地色の凡例スワッチ (kfs) = 12px 角。kvn = 枠のみ / kdemo-* = マーカーの点の見本 */
.vizlegend-item i.kfs { width: 12px; height: 12px; border-radius: 0; border: 0; background: transparent; }
.vizlegend-item i.kfs.kvn { border: 1px solid var(--border-interactive); }
.vizlegend-item i.kfs.kdemo-r { border: 1px solid var(--border); background-image: radial-gradient(circle at 50% 50%, var(--text) 0 2px, transparent 2.5px); }
.vizlegend-item i.kfs.kdemo-t { border: 1px solid var(--border); background-image: radial-gradient(circle at 50% 50%, var(--viz-ty2) 0 2px, transparent 2.5px); }
.kd.kq1::after, .kd.kq2::after, .kd.kq3::after, .kd.kq4::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  /* 地色 (過ごしやすさ) と帯 (休みの重なり) の 2 チャネルを紙の 2px で分離する */
  border-top: 2px solid var(--bg);
}
.kd.kq1::after, .kswatch.kq1 { background: var(--viz-q2); }
.kd.kq2::after, .kswatch.kq2 { background: var(--viz-q3); }
.kd.kq3::after, .kswatch.kq3 { background: var(--viz-q4); }
.kd.kq4::after, .kswatch.kq4 { background: var(--viz-q5); }
.kd.khd { font-weight: 700; }
/* きょう = accent 枠。全面塗り (UXG) の上でも読めるよう、内側に紙のリングを重ねる */
.kd.ktd { outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: inset 0 0 0 4px var(--bg); }
.kd.kcs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hot);
  /* 朱線と地色 (過ごしやすさ) の分離も紙の 2px (帯と同じ規約) */
  border-bottom: 2px solid var(--bg);
}
.kd.kco2 { grid-column-start: 2; }
.kd.kco3 { grid-column-start: 3; }
.kd.kco4 { grid-column-start: 4; }
.kd.kco5 { grid-column-start: 5; }
.kd.kco6 { grid-column-start: 6; }
.kd.kco7 { grid-column-start: 7; }
/* 凡例スワッチ = 値図形 (下辺帯) と同形の横長帯・直角 (vizlegend-item i の radius 1px を
   打ち消す)。詳細度は全て (0,3,2) で揃え、色は明示指定 (currentColor 既定に頼らない) */
.vizlegend-item i.kswatch { width: 18px; height: 7px; border-radius: 0; background: transparent; border: 1px solid var(--border); }
.vizlegend-item i.kswatch.kq1 { background: var(--viz-q2); border: 0; }
.vizlegend-item i.kswatch.kq2 { background: var(--viz-q3); border: 0; }
.vizlegend-item i.kswatch.kq3 { background: var(--viz-q4); border: 0; }
.vizlegend-item i.kswatch.kq4 { background: var(--viz-q5); border: 0; }
.vizlegend-item i.kswatch.kcst { border: 0; border-top: 2px solid var(--hot); background: transparent; }
.vizlegend-item i.kswatch.ktoday { border: 2px solid var(--accent); height: 12px; width: 12px; background: transparent; }
.kcal-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  align-items: center;
  margin: 12px 0 0;
  font-size: var(--fs-body);
}
.kcal-jump a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}
.kcal-jump a:hover { background: var(--hover); }
.kcal-spot { margin: 14px 0 0; font-size: var(--fs-body); }
.kcal-spot select { max-width: 100%; font-size: 16px; }
.kcal-month-link { margin: 8px 0 0; font-size: var(--fs-body); }
/* このカレンダーの見かた (UXG): 実部品と同じ .kd を見本に使う */
.kcal-howto-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 8px 0 0;
}
.kcal-howto-demo {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 2px;
  flex: none;
}
.kcal-anaba { margin: 12px 0 0; font-size: var(--fs-body); }
.kcal-howto-list {
  margin: 0;
  padding-left: 20px;
  font-size: var(--fs-body);
}
.kcal-howto-list li { margin: 2px 0; }

/* ============================================================
   制作書籍 (KDP) 紹介カードのマウント枠 (own-book-card.ejs・言葉の面とデータの面だけ)
   ------------------------------------------------------------
   - カードの見た目の規則 (.own-book-card と .own-book-card__*) は自著カード一式の own-book-card.css が持ち、
     build.mjs がこのファイルの末尾に結合して 1 本の site.css として配る。ここに置くのはマウント枠の規則だけ。
   - 主枠 = 予約なし。script を枠の直後で同期に実行し、下の要素が構文解析される前にカードを
     描くので、挿入で何も動かない (2026-10-09 案 d)。文の箱は内容の高さ・切り詰めなし。
   - 補完枠 = script の実行時点ではまだ無く DOMContentLoaded 後に描くので、予約高さを与える
     (値は写し元 awsi の実測値・en はパーシャルが en にも対応するため写し元のまま残す・描画後は内容の高さに従う)。
   - 出す冊が無い枠は JS が hidden にして畳む。PR ラベル必須 (景表法ステマ規制)。
   ============================================================ */
.own-book-slot {
  margin: 48px 0;
}

/* 色はテーマ変数に結ぶ (ダークで白い箱を出さない)。
   字の大きさは本文と同じ 14 px (一式の CSS の 16 px を上書き) */
.own-book-slot {
  --obc-bg: var(--bg);
  --obc-text: var(--text);
  --obc-sub: var(--text); /* 自著カードで副次色は「PR」の字だけ = 灰の字の禁止 (10-17) で本文の色 */
  --obc-border: var(--border);
  --obc-border-strong: var(--border-interactive);
  --obc-accent: var(--accent);
  --obc-link: var(--link);
  --obc-tap-min: var(--tap-min);
}

.own-book-slot .own-book-card__title,
.own-book-slot .own-book-card__cta {
  font-size: var(--fs-body);
}

/* 補完枠 (ページ末尾): ラベル行 + 小さな表紙 2 行分 + 上下の余白 */
.own-book-slot--foot[data-lang="ja"] {
  min-height: 254px;
}

.own-book-slot--foot[data-lang="en"] {
  min-height: 240px;
}

@media (max-width: 480px) {
  .own-book-slot--foot[data-lang="ja"] {
    min-height: 238px;
  }

  .own-book-slot--foot[data-lang="en"] {
    min-height: 224px;
  }
}

/* 目玉機能のブラッシュアップ 10-24 (1): 下に積む表 (table.stack・900 未満) の値のセルも中央揃え (1280 の表と揃える)。
   行の見出し (先頭の列 = 日付・月・項目) だけ左。値の上の小さな字 (data-label) も値と同じく中央 */
@media (max-width: 899px) {
  table.stack tr > td, table.stack td.num, table.stack th.num { text-align: center; }
  table.stack tr > :first-child { text-align: left; }
}

/* 目玉機能のブラッシュアップ 10-24 (2): 対戦比較は PC (1024 以上) で 2 列 = 左に地点の選択・地名検索 → 答えの 1 文 → 記憶した組、
   右にくらべの表 (気象庁の実況の 3 行が出ても 1280 × 650 の中に表が残る)。
   左の列の順は包み (.versus-side) と断片の枠 (.frag-versus) を display: contents にして grid の行で並べる (DOM は不変)。
   表は 1 行目から最後の行までをまたぎ、余りは最後の 1fr の行が受ける (左の列に隙間を作らない)。390 は包みが無いのと同じ縦の並び */
@media (min-width: 1024px) {
  .versus-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 24px; align-items: start; }
  .versus-board .versus-side, .versus-board > .frag-versus[data-done] { display: contents; }
  .versus-board .versus-controls { grid-column: 1; grid-row: 1; margin-bottom: 16px; padding: 16px; gap: 8px 16px; }
  .versus-board #versus-missing { grid-column: 1; grid-row: 2; }
  .versus-board #versus-verdict { grid-column: 1; grid-row: 3; margin-top: 0; }
  /* 記憶した組は 1 段の並び (ラベル・組の釦・消す釦を同じ行に流し、列の幅で折り返す) */
  .versus-board .versus-recent { grid-column: 1; grid-row: 4; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .versus-board .versus-recent-label, .versus-board .versus-recent-foot { margin: 0; }
  .versus-board .frag-versus > .table-scroll, .versus-board .frag-versus > .versus-table, .versus-board > .frag-versus:not([data-done]) { grid-column: 2; grid-row: 1 / -1; }
  .versus-board .versus-pick { flex: 1 1 0; min-width: 0; }
  .versus-board .versus-pick select { min-width: 0; width: 100%; }
  .versus-board .versus-table { margin-top: 0; }
  /* 表の行は押す物が無い = 行の高さ 44 の床の対象外。上下の余白を 8 → 4 にして、実況の行が出ても表を 650 の中に収める */
  .versus-board table.versus-table th, .versus-board table.versus-table td { padding-block: 4px; }
  /* 板の上 (パンくず・h1・日付の行・説明の文) の縦の余白を詰める (この面だけ・1024 以上だけ) */
  main:has(> .versus-board) > .breadcrumb { margin-bottom: 8px; }
  main:has(> .versus-board) > h1 { margin-bottom: 4px; }
  main:has(> .versus-board) > .lead { margin-bottom: 16px; }
}

/* 箱の規則は描画の後に付く class にだけ置く (描画前のマウントや script が動かなかった面で空の枠を出さない) */
.own-book-card--main,
.own-book-card--foot {
  margin: 24px 0;
  padding: 24px 32px;
  background: var(--obc-bg, #ffffff);
  border: 1px solid var(--obc-border, #ccd6e0);
  border-left: 3px solid var(--obc-accent, #27548c);
  border-radius: var(--obc-radius, 0);
}

.own-book-card[hidden] {
  display: none;
}

.own-book-card__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.own-book-card__pr {
  flex-shrink: 0;
  padding: 2px 6px;
  border: 1px solid var(--obc-border-strong, #75879b);
  font-size: var(--obc-fs-sub, 14px);
  font-weight: 600;
  line-height: 1;
  color: var(--obc-sub, #405266);
}

.own-book-card__heading {
  font-size: var(--obc-fs-text, 14px);
  font-weight: 600;
  color: var(--obc-text, #1b2530);
}

.own-book-card__body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.own-book-card__cover-link {
  flex-shrink: 0;
}

.own-book-card__cover {
  display: block;
  border: 1px solid var(--obc-border, #ccd6e0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.own-book-card__text {
  min-width: 0;
}

.own-book-card__title {
  margin: 0;
  font-size: var(--obc-fs-title, 16px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--obc-text, #1b2530);
}

.own-book-card__note {
  margin: 8px 0 0;
  font-size: var(--obc-fs-text, 14px);
  color: var(--obc-text, #1b2530);
  line-height: 1.75;
}

.own-book-card__cta-row {
  margin-top: 16px;
}

.own-book-card__cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--obc-tap-min, 44px);
  font-size: var(--obc-fs-cta, 16px);
  font-weight: 500;
  color: var(--obc-link, #1e4f8c);
  text-decoration: none;
  padding: 4px 0;
}

.own-book-card__cta:hover {
  text-decoration: underline;
}

/* 主枠の中身サンプル画像カード。画像は比の箱で幅に追従し
   (img の width / height と合わせて読み込み中の高さを確保)、文の箱は内容の高さ */
.own-book-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 970 / 600;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--obc-border, #ccd6e0);
}

.own-book-card__sample {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.own-book-card--sample .own-book-card__text {
  display: flex;
  flex-direction: column;
  /* 見本画像との間の空きは 32 px */
  margin-top: 32px;
}

/* 見本画像の下の先頭の行。左に小さい表紙 (補完枠と同じ 56 px)、右に書名と対象。
   幅で並びを変えない (390 px でも横並び) */
.own-book-card__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.own-book-card__head-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.own-book-card__audience {
  margin: 8px 0 0;
  font-size: var(--obc-fs-sub, 14px);
  color: var(--obc-text, #1b2530);
  line-height: 1.75;
}

/* 一言とボタンの間の空きは padding-top の 1 つだけ (基底の margin-top は打ち消す) */
.own-book-card--sample .own-book-card__cta-row {
  display: flex;
  margin-top: 0;
  padding-top: 16px;
}

/* 補完枠の冊の列 (1 行 1 冊・行全体がリンク) */
.own-book-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.own-book-card__item {
  margin: 0;
}

.own-book-card__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--obc-tap-min, 44px);
  color: var(--obc-text, #1b2530);
  text-decoration: none;
}

.own-book-card__cover--small {
  flex-shrink: 0;
  box-shadow: none;
}

.own-book-card__row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.own-book-card__row-title {
  font-size: var(--obc-fs-text, 14px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--obc-link, #1e4f8c);
  overflow-wrap: anywhere;
}

.own-book-card__row:hover .own-book-card__row-title {
  text-decoration: underline;
}

.own-book-card--main .own-book-card__title {
  overflow-wrap: anywhere;
}

/* スマホ幅: 内側の余白を詰め、主枠 (表紙カード) は表紙の横に書名とボタン、一言は表紙の下に全幅で置く */
@media (max-width: 480px) {
  .own-book-card--main,
  .own-book-card--foot {
    padding: 16px 24px;
  }

  .own-book-card--main .own-book-card__body {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "cover title"
      "cover cta"
      "note note";
    column-gap: 16px;
  }

  .own-book-card--main .own-book-card__text {
    display: contents;
  }

  .own-book-card--main .own-book-card__cover-link {
    grid-area: cover;
  }

  .own-book-card--main .own-book-card__title {
    grid-area: title;
  }

  .own-book-card--main .own-book-card__cta-row {
    grid-area: cta;
    align-self: end;
  }

  .own-book-card--main .own-book-card__note {
    grid-area: note;
    margin-top: 16px;
  }

  /* 表紙カード用の grid 指定 (display: contents ほか) を中身サンプル画像のカードでは打ち消す */
  .own-book-card--sample .own-book-card__text {
    display: flex;
  }

  .own-book-card--sample .own-book-card__note {
    margin-top: 8px;
  }

  /* 表紙カードの align-self: end (ボタンを右に寄せる) を打ち消す */
  .own-book-card--sample .own-book-card__cta-row {
    align-self: stretch;
  }
}
