/* スマホあと何年：壁かけの暦。生成りの紙・墨の大きな数字・日曜の朱と土曜の藍。残りの年数は日めくりの一枚に大きく刷る
   端末の明暗の設定によらず、紙の色で見せる */
:root {
  --paper: #f7f4ec; --page: #fffdf8; --ink: #1d1d1f; --ink-soft: #5d5a52; --rule: #d9d3c4; --rule-soft: #ebe6da;
  --sun: #c22d24; --sat: #2456a6; --amber: #b7791f;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --goth: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--goth); line-height: 1.85; font-size: 16px; counter-reset: sec; }
a { color: var(--sat); text-underline-offset: 3px; }

/* 頭：暦のとじ紐の穴が並ぶ帯 */
.site-header { position: relative; background: var(--page); color: var(--ink); border-bottom: 1px solid var(--rule); padding: 12px 16px 22px; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 10px;
  background: radial-gradient(circle at 50% 50%, var(--ink) 0 3px, transparent 3.5px) 0 0 / 26px 10px repeat-x; opacity: 0.8; }
.site-name { color: var(--ink); text-decoration: none; font-family: var(--mincho); font-weight: 900; font-size: 1.12rem; letter-spacing: 0.04em; }
.pr-notice { margin: 2px 0 0; font-size: 0.8rem; color: var(--sub, #6b665c); }
.site-main { max-width: 760px; margin: 0 auto; padding: 18px 16px 24px; }

h1 { font-family: var(--mincho); font-weight: 900; line-height: 1.3; margin: 6px 0 14px; }
/* 見出し：暦の月の頭。左に通し番号の大きな数字、上に太い墨の罫 */
h2 { counter-increment: sec; position: relative; display: flex; align-items: baseline; gap: 12px; margin: 44px 0 14px; padding-top: 10px;
  border-top: 3px solid var(--ink); font-family: var(--mincho); font-weight: 900; font-size: 1.25rem; line-height: 1.4; }
h2::before { content: counter(sec, decimal-leading-zero); flex: none; font-size: 2.1rem; line-height: 1; color: var(--sun); letter-spacing: -0.02em; }
h2::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--ink); }
h3 { font-family: var(--mincho); font-weight: 700; font-size: 1.05rem; margin: 24px 0 6px; }
h3::before { content: "■"; color: var(--sun); font-size: 0.7em; margin-right: 6px; vertical-align: 2px; }
.lead { font-size: 0.97rem; }
.lead strong { color: var(--sun); }
.note, .source { font-size: 0.94rem; color: var(--ink-soft); }

/* はじめ：見出しの横に、めくる前の日めくりを一枚 */
.hero { position: relative; overflow-x: clip; display: grid; grid-template-columns: 1fr 96px; gap: 0 14px; align-items: start; margin: 4px 0 6px; }
.hero h1 { grid-column: 1; grid-row: 1; margin: 0 0 12px; }
.hero .lead { grid-column: 1 / -1; grid-row: 2; margin: 0; }
.h1-a { display: block; font-size: 1.05rem; color: var(--ink-soft); }
.h1-b { display: block; font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.01em; }
.h1-c { display: inline-block; margin-top: 6px; padding: 1px 10px; font-size: 1rem; background: var(--ink); color: var(--page); }
.hero-date { grid-column: 2; grid-row: 1; margin: 4px 0 0; display: grid; text-align: center; background: var(--page); border: 1px solid var(--rule);
  box-shadow: 0 2px 0 var(--page), 0 3px 0 var(--rule), 0 5px 0 var(--page), 0 6px 0 var(--rule); position: relative; }
.hero-date::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px;
  background: radial-gradient(circle at 28% 50%, var(--ink) 0 3.5px, transparent 4px), radial-gradient(circle at 72% 50%, var(--ink) 0 3.5px, transparent 4px); }
.hd-y { background: var(--sun); color: var(--page); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; padding: 6px 0 2px; }
.hd-n { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-top: 6px; }
.hd-q { font-family: var(--mincho); font-weight: 900; font-size: 3.6rem; line-height: 0.95; color: var(--sun); }
.hd-u { font-size: 0.8rem; font-weight: 700; padding-bottom: 8px; }

/* 機種を選ぶ：暦の一枚。上にとじ紐の穴 */
.finder { position: relative; margin: 30px 0 18px; padding: 26px 16px 18px; background: var(--page); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule-soft), 0 10px 24px -14px rgba(60, 50, 30, 0.35); }
.finder::before { content: ""; position: absolute; left: 14px; right: 14px; top: -9px; height: 22px;
  background: radial-gradient(ellipse 4px 10px at 50% 50%, var(--ink) 0 100%, transparent 100%) 0 0 / 22px 22px repeat-x; opacity: 0.85; }
.finder::after { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 1px dashed var(--rule); }
.finder-title { margin: 0 0 6px; padding-top: 6px; border-top: 0; font-size: 1.1rem; }
.finder-title::after { display: none; }
.finder .row { display: grid; grid-template-columns: 1fr; gap: 10px; }
label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 4px; letter-spacing: 0.06em; }
select, input, button { font: inherit; }
select { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font-weight: 700; }
select:disabled { color: #9a958a; border-bottom-color: var(--rule); }
select:focus-visible, a:focus-visible { outline: 3px solid var(--sat); outline-offset: 2px; }

/* 結果：日めくりの束。上の帯がメーカーの色、残りは大きな明朝の数字 */
.result { position: relative; margin-top: 20px; background: var(--page); border: 1px solid var(--rule);
  box-shadow: 0 3px 0 -1px var(--page), 0 3px 0 0 var(--rule), 0 6px 0 -1px var(--page), 0 6px 0 0 var(--rule), 0 9px 0 -1px var(--page), 0 9px 0 0 var(--rule); }
.result[hidden] { display: none; }
.result, .uru-pick { overflow-x: clip; } /* 数字の判子（拡大して押す動き）で横にはみ出さない */
.band { height: 14px; background: var(--maker, var(--ink)); }
.result-body { padding: 12px 14px 16px; transform-origin: 50% 0; }
.result .model { margin: 0; font-weight: 700; font-size: 0.98rem; line-height: 1.5; padding-bottom: 8px; border-bottom: 1px solid var(--rule-soft); }
.result .remain-label { margin: 10px 0 0; text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.06em; }
.result .remain { margin: 0; text-align: center; font-family: var(--mincho); font-weight: 900; font-size: 3rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--state, var(--ink)); overflow-wrap: anywhere; }
.result[data-status="ended"] { --state: var(--sun); }
.result[data-status="soon"] { --state: var(--amber); }
.result[data-status="unknown"] { --state: var(--ink-soft); }
.result[data-status="ended"] .result-body { background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(209, 53, 43, 0.04) 14px 16px); }

/* 残り：月の升目。過ぎた月は斜線で消し、残りの月はメーカーの色 */
.meter { position: relative; height: 22px; margin: 14px 0 4px; background: var(--rule-soft);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 24 - 2px), transparent calc(100% / 24 - 2px) calc(100% / 24));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 24 - 2px), transparent calc(100% / 24 - 2px) calc(100% / 24)); }
.meter[hidden], .meter-scale[hidden] { display: none; }
.meter .used { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(135deg, #b9b2a3 0 2px, #e6e0d2 2px 6px); }
.meter .left { position: absolute; top: 0; bottom: 0; right: 0; background: var(--state, var(--maker, var(--ink))); }
.result[data-status="active"] .meter .left { background: var(--maker, var(--ink)); }
.meter-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* 発売・終わりなど：暦の日付の升 */
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 14px 0 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.facts-grid div { padding: 6px 8px 8px; min-width: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts-grid div:nth-child(2) dt { color: var(--sun); }
.facts-grid dt { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.06em; }
.facts-grid dd { margin: 0; font-family: var(--mincho); font-weight: 700; font-size: 1.02rem; line-height: 1.45; overflow-wrap: anywhere; }
.result .note { margin: 12px 0 0; }
.source { margin: 8px 0 0; overflow-wrap: anywhere; }

/* 年表：横は年。今日の線は朱 */
.legend { font-size: 0.8rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 18px; height: 8px; background: var(--ink); vertical-align: middle; margin: 0 4px 0 10px; }
.legend i:first-child { margin-left: 0; }
.legend i.ended { opacity: 0.3; }
.legend i.unknown { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px); }
.legend i.today { width: 2px; height: 14px; background: var(--sun); }
.timeline { margin: 12px 0 8px; padding: 8px 10px 12px; background: var(--page); border: 1px solid var(--rule); }
.tl-axis, .tl-row { display: grid; grid-template-columns: 7.4em 1fr; align-items: center; gap: 8px; }
.tl-axis { position: sticky; top: 0; z-index: 1; background: var(--page); padding: 4px 0; font-family: var(--mincho); font-weight: 700; font-size: 0.8rem; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.tl-years { position: relative; height: 1.3em; }
.tl-years span { position: absolute; transform: translateX(-50%); }
.tl-row { padding: 3px 0; border-top: 1px solid var(--rule-soft); }
.tl-name { font-size: 0.8rem; line-height: 1.3; overflow-wrap: anywhere; }
.tl-track { position: relative; height: 12px; background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(100% / var(--span, 14))); }
.tl-bar { position: absolute; top: 2px; bottom: 2px; background: var(--maker, var(--ink)); transform-origin: left; }
.tl-bar.ended { opacity: 0.28; }
.tl-bar.unknown { background: repeating-linear-gradient(90deg, var(--maker) 0 4px, transparent 4px 7px); }
.tl-today { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--sun); }
.tl-maker { margin: 16px 0 4px; font-family: var(--mincho); font-weight: 900; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.tl-maker::before { content: ""; width: 14px; height: 14px; background: var(--maker); }

/* 方針・表 */
.policies { padding-left: 1.1em; }
.policies li { margin-bottom: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; background: var(--page); }
th, td { border: 1px solid var(--rule); padding: 7px 8px; text-align: left; vertical-align: top; }
thead th { background: var(--ink); color: var(--page); font-weight: 700; font-size: 0.8rem; border-color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.table-wrap td { white-space: normal; }
td.until { font-family: var(--mincho); font-weight: 700; }
td:nth-child(2) { white-space: nowrap; }

/* ランキング：めくった暦の一枚ずつ。順位と年数を大きな明朝で */
.summary { padding: 10px 14px; background: var(--page); border-left: 4px solid var(--sun); font-size: 0.94rem; }
.rank { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 14px; }
.rank li { position: relative; background: var(--page); border: 1px solid var(--rule); border-top: 10px solid var(--maker); padding: 10px 14px 12px; }
.rank .head { display: flex; align-items: baseline; gap: 10px; }
.rank .pos { font-family: var(--mincho); font-weight: 900; font-size: 1.4rem; color: var(--sun); }
.rank .name { flex: 1; font-weight: 700; }
.rank .years { font-family: var(--mincho); font-weight: 900; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rank .bar { height: 10px; margin: 8px 0; background: var(--rule-soft); }
.rank .bar span { display: block; height: 100%; background: var(--maker); transform-origin: left; }
.rank .detail, .rank-ref .detail { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.rank-ref { margin: 4px 0 14px; padding: 10px 14px 12px; border: 1px dashed var(--ink-soft); background: transparent; }
.rank-ref .head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.rank-ref .pos { font-size: 0.8rem; font-weight: 700; color: var(--page); background: var(--ink-soft); padding: 0 6px; }
.rank-ref .name { flex: 1; font-weight: 700; }
.rank-ref .years { font-family: var(--mincho); font-weight: 700; font-size: 1.2rem; color: var(--ink-soft); }
.rank-ref .years small { font-size: 0.8rem; margin-left: 2px; }
.sources { padding-left: 1.2em; font-size: 0.94rem; }
.sources li { margin-bottom: 10px; overflow-wrap: anywhere; }
ul { padding-left: 1.2em; }

/* 足：暦の裏紙 */
.site-footer { margin-top: 52px; padding: 22px 16px; background: var(--ink); color: #bdb8ac; font-size: 0.94rem; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }
.site-footer a { color: var(--page); }
.copyright { margin: 8px 0 0; }
.facts dt { font-weight: 700; margin-top: 8px; }
.facts dd { margin: 0 0 4px; }

/* 替え時の次に：乗り換えの差（暦の付箋。上に藍の帯）。答えのすぐ下に置く */
.kaeru, .uru { position: relative; margin: 26px 0 18px; padding: 18px 16px 16px; background: var(--page); border: 1px solid var(--rule); }
.kaeru { border-top: 10px solid var(--sat); }
.kaeru > h2, .uru > h2 { margin-top: 6px; }
.kaeru-tag { display: inline-block; margin: 0; padding: 0 10px; background: var(--sat); color: var(--page); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; }
.kaeru-lead, .uru-lead { margin: 0 0 12px; }
.kaeru-in label { margin-top: 4px; }
.kaeru-in input { width: 100%; min-height: 52px; padding: 8px 12px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  font-family: var(--mincho); font-weight: 900; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.kaeru-in input::placeholder { color: #6e6a61; font-family: var(--goth); font-weight: 400; font-size: 1rem; }
.kaeru-in input:focus-visible, .chip:focus-visible, .shop:focus-visible { outline: 3px solid var(--sat); outline-offset: 2px; }
.k-hint { margin: 6px 0 12px; font-size: 0.94rem; color: var(--ink-soft); }
.k-k { margin: 0 0 6px; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.06em; }
.usage { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 6px 14px; border: 1px solid var(--ink); background: var(--page); color: var(--ink); font-weight: 700; font-size: 0.94rem; cursor: pointer; border-radius: 0; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.kaeru-ask { margin: 14px 0 0; padding: 12px 14px; border: 1px dashed var(--ink-soft); text-align: center; font-size: 0.94rem; color: var(--ink-soft); }
.kaeru-out[hidden], .kaeru-ask[hidden], .kaeru-body[hidden], .uru-body[hidden], .uru-pick[hidden], .kc-shop[hidden] { display: none; }
.k-cond { margin: 14px 0 8px; font-weight: 700; font-size: 0.94rem; }
.kc-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.kc { position: relative; padding: 12px 14px 14px; border: 1px solid var(--rule); border-left: 6px solid var(--rule); background: var(--paper); }
.kc[data-state="cheaper"] { border-left-color: var(--sat); }
.kc[data-state="dearer"], .kc[data-state="nofit"] { border-left-color: var(--ink-soft); }
.kc-name { margin: 0; font-weight: 700; }
.kc-price { margin: 0; font-family: var(--mincho); font-weight: 900; font-size: 1.5rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kc-price small { font-size: 0.8rem; font-family: var(--goth); font-weight: 700; margin-left: 2px; }
.kc-plan, .kc-calls { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.kc-head { margin: 8px 0 0; font-family: var(--mincho); font-weight: 900; font-size: 1.9rem; line-height: 1.25; color: var(--sat); }
.kc[data-state="dearer"] .kc-head, .kc[data-state="nofit"] .kc-head { font-size: 1.3rem; color: var(--ink); }
.kc-body { margin: 0 0 6px; font-weight: 700; }
.kc-shop { margin-top: 10px; }
.ad-tag { display: inline-block; margin: 0 0 6px; padding: 0 8px; border: 1px solid var(--ink); font-size: 0.8rem; font-weight: 700; }
.shop { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 16px; background: var(--sat); color: #fff; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.4; }
.shop::after { content: "→"; margin-left: 8px; }
.kc-shop-note { margin: 6px 0 0; font-size: 0.94rem; color: var(--ink-soft); }
.k-table caption, .uru-table caption { caption-side: top; text-align: left; padding: 0 0 6px; font-size: 0.94rem; font-weight: 700; }
.k-table th[scope="row"], .uru-table th[scope="row"] { background: var(--paper); font-weight: 700; }
.k-yen { display: block; font-family: var(--mincho); font-weight: 900; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.k-plan { display: block; font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft); font-weight: 400; overflow-wrap: anywhere; }
td.k-none { color: var(--ink-soft); }
.k-terms { margin: 10px 0 0; font-size: 0.94rem; }
.k-terms li { margin-bottom: 4px; }
.kaeru-stale, .uru-stale { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--sun); font-size: 0.94rem; }
.kaeru-stale[hidden], .uru-stale[hidden] { display: none; }

/* 下取りの目安：選んだ機種の値を大きく、表の行に印 */
.uru { border-top: 10px solid var(--amber); }
.uru-pick { margin: 0 0 12px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); }
.up-name { margin: 0; font-weight: 700; font-size: 0.94rem; }
.up-range { margin: 0; font-family: var(--mincho); font-weight: 900; font-size: 1.9rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.uru-pick[data-has="no"] .up-range { font-size: 1.2rem; color: var(--ink-soft); }
.up-detail { margin: 2px 0 0; font-size: 0.94rem; color: var(--ink-soft); }
.uru-table td { font-variant-numeric: tabular-nums; }
.uru-table, .k-table { table-layout: fixed; }
.k-table td, .uru-table td { white-space: normal; } /* 全機種の表の 2 列目の nowrap を打ち消す（プラン名が隣の列に重ならない） */
.uru-table th:first-child, .k-table th:first-child { width: 34%; }
.uru-table tr.is-mine th, .uru-table tr.is-mine td { background: #fbefd9; }

/* 濡らしたとき：時間割の暦。左に時間の札、右に公式の文 */
.hero-nureta .hd-q { font-size: 3rem; padding: 4px 0; }
.hero-nureta .h1-a { font-size: 0.98rem; }
.hero-nureta .h1-b { font-size: 1.8rem; }
.hero-nureta .lead { max-width: 42em; }
.jikan { max-width: 58em; }
.nureta-note { padding: 10px 14px; background: var(--page); border-left: 4px solid var(--sat); font-size: 0.94rem; }
.jikan { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.jk { display: grid; grid-template-columns: 58px 1fr; gap: 0; background: var(--page); border: 1px solid var(--rule); }
.jk-time { margin: 0; padding: 12px 4px; background: var(--ink); color: var(--page); font-family: var(--mincho); font-weight: 900; font-size: 0.94rem; line-height: 1.35; text-align: center; writing-mode: horizontal-tb; }
.jk[data-step="dont"] .jk-time { background: var(--sun); }
.jk[data-step="repair"] .jk-time { background: var(--sat); }
.jk-body { padding: 10px 14px 12px; min-width: 0; }
.jk-body h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 1.15rem; }
.jk-body h2::before, .jk-body h2::after { display: none; }
.jk-body ul { margin: 0; padding: 0; list-style: none; }
.jk-body li { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-soft); font-weight: 700; }
.jk-body li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.jk-body small { display: block; margin-top: 2px; font-size: 0.94rem; font-weight: 400; color: var(--ink-soft); overflow-wrap: anywhere; }
.jk-mk { display: inline-block; margin-right: 8px; padding: 0 6px; border: 1px solid var(--ink-soft); font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); vertical-align: 2px; }
.shuri { margin: 16px 0; padding: 14px 16px; background: var(--page); border: 1px solid var(--rule); border-top: 6px solid var(--sat); }
.shuri-title { margin: 0 0 8px; font-family: var(--mincho); font-weight: 900; font-size: 1.15rem; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr 150px; gap: 0 32px; }
  .h1-b { font-size: 3.6rem; }
  .hd-q { font-size: 6rem; }
  .finder .row { grid-template-columns: 1fr 1.4fr; gap: 16px; }
  .result .remain { font-size: 4.2rem; }
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .tl-axis, .tl-row { grid-template-columns: 11em 1fr; }
  .tl-name { font-size: 0.82rem; }
  .kc-cards { grid-template-columns: 1fr 1fr; }
  .jk { grid-template-columns: 110px 1fr; }
  .hero-nureta .h1-b { font-size: 3rem; }
}

/* 広い PC：左に見出しと機種選び（止めておく）、右に年表。左右を空けない（12/1 採点） */
@media (min-width: 1120px) {
  .site-main { max-width: 1240px; padding-inline: 40px; }
  .fv { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 0 56px; align-items: start; }
  .fv-l { position: static; }
  .fv .kc-cards { grid-template-columns: 1fr; }
  .fv .hero { grid-template-columns: 1fr 120px; }
  .fv .h1-b { font-size: 3.2rem; }
  .fv .hd-q { font-size: 4.6rem; }
  .fv .finder .row { grid-template-columns: 1fr; gap: 0; }
  .fv .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fv-r > h2:first-child { margin-top: 8px; }
  .site-main > h2, .site-main > p { max-width: 46em; }
}

/* 動き：日めくりがめくれる・暦がゆれて掛かる・年表の帯が伸びる・ページの切り替え */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .hero-date { animation: hang 1.3s ease-out both; transform-origin: 50% 0; }
  .hd-q { animation: blink-q 2.8s 1.4s ease-in-out infinite; }
  .h1-b { animation: ink-in 0.7s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .result-body.is-flip { animation: flip 0.6s cubic-bezier(0.2, 0.8, 0.25, 1); }
  .result-body.is-flip .remain { animation: stamp 0.5s 0.25s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .reveal.is-in { opacity: 1; transform: none; }
  .timeline.reveal .tl-bar { transform: scaleX(0); transition: transform 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .timeline.reveal.is-in .tl-bar { transform: none; }
  .rank li.reveal .bar span { transform: scaleX(0); transition: transform 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .rank li.reveal.is-in .bar span { transform: none; }
  .kaeru-out:not([hidden]) .kc { animation: tear-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .kaeru-out:not([hidden]) .kc + .kc { animation-delay: 0.08s; }
  .chip { transition: background-color 0.15s, color 0.15s, transform 0.15s; }
  .chip:active { transform: translateY(1px); }
  .uru-pick:not([hidden]) .up-range { animation: stamp 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
  @keyframes hang { 0% { transform: rotate(-8deg) translateY(-14px); opacity: 0; } 45% { transform: rotate(4deg); opacity: 1; } 75% { transform: rotate(-1.5deg); } 100% { transform: none; } }
  @keyframes blink-q { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
  @keyframes ink-in { from { opacity: 0; letter-spacing: 0.12em; filter: blur(3px); } to { opacity: 1; letter-spacing: -0.01em; filter: none; } }
  @keyframes flip { 0% { transform: perspective(700px) rotateX(-75deg); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
  @keyframes tear-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @keyframes stamp { 0% { transform: scale(1.35); opacity: 0; } 100% { transform: none; opacity: 1; } }
}
