/* ねこ単価のスタイル。数値の決め方は docs/design-study.md の「8. 洗練のための具体的な規則」に沿う。 */
/* 3案共通の土台。色・書体・レイアウトは各案の CSS で決める。 */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-spacing-trim: trim-start; }
/* キーボードで選んだ行が、上下に固定した帯（一覧の並べ替え、商品ページの購入ボタン）に隠れないようにする */
html { scroll-padding-top: 72px; scroll-padding-bottom: 80px; }
body { margin: 0; line-break: strict; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
h1, h2, h3 { font-feature-settings: 'palt'; text-wrap: balance; }
@supports (word-break: auto-phrase) { h1, h2, h3 { word-break: auto-phrase; } }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--select); color: var(--ink); }

/* 押したときの反応。頻繁な操作なので短く、減速する曲線で */
.press { transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.press:active { transform: scale(0.97); }

/* 商品の絵 */
.pkg { width: 100%; height: auto; }

/* ---------- 猫 ---------- */
.stage { position: relative; overflow: hidden; touch-action: manipulation; }
.cat { position: absolute; left: 0; bottom: 0; width: var(--cat-w, 150px); transform-origin: 50% 100%; will-change: transform; }
.cat svg, .cat-static { color: var(--cat); overflow: visible; }
.cat svg { width: 100%; height: auto; transform: scaleX(var(--dir, 1)); }
.cat .body, .cat-static .body { fill: currentColor; }
.cat .far { color: var(--cat-far, color-mix(in srgb, var(--cat) 78%, #000)); }
.cat [data-leg] { fill: currentColor; }
.cat .tail, .cat .tail-static, .cat-static .tail-static { fill: none; stroke: currentColor; stroke-width: 5.5; stroke-linecap: round; }
.cat .eye, .cat-static .eye { fill: var(--cat-eye); transform-box: fill-box; transform-origin: center; animation: cat-blink 5.5s linear infinite; }
.cat .eye-closed { fill: none; stroke: var(--cat-eye); stroke-width: 1.3; stroke-linecap: round; }
.cat .pose { display: none; }
.cat[data-state='walk'] .pose-walk, .cat[data-state='sit'] .pose-sit, .cat[data-state='lie'] .pose-lie { display: inline; }
.cat .tail-sit, .cat-static .tail-sit { transform-box: fill-box; transform-origin: 0% 50%; animation: cat-tail 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
.cat[data-state='lie'] .pose-lie .body { transform-box: fill-box; transform-origin: 50% 100%; animation: cat-breathe 3.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.stage.paused .cat * { animation-play-state: paused !important; }

@keyframes cat-tail { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
@keyframes cat-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
@keyframes cat-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }

.cat-pause { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; background: none; }
.cat-pause .icon { width: 14px; height: 14px; }
.cat-pause[data-paused='false'] .icon:nth-of-type(2), .cat-pause[data-paused='true'] .icon:nth-of-type(1) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cat *, .cat svg, .cat-static * { animation: none !important; }
  .press { transition: background-color 200ms ease; }
  .press:active { transform: none; }
}

/* A「道具」v2
   Wise・Google フライト・Apple の比較ページ・ユニクロから学んだ規則:
   枠を減らして余白で区切る／一番安い1件だけを色の面と太い数字で強調する／
   数字は大きく単位は小さく／階層は大きさより濃淡で付ける */
:root {
  --bg: #ffffff; --sunk: #f5f4f0; --sunk-2: #eceae4;
  --ink: #191816; --ink-2: #5a564f; --ink-3: #716c64; --line: #ebe8e2;
  --accent: #e0a526; --accent-bg: #fcf3dc; --accent-line: #f1dfae; --accent-ink: #7a5200;
  --focus: #2563eb; --select: #f8e4a8;
  --cat: #191816; --cat-far: #3a3733; --cat-eye: #e0a526;
  --num: 'LINE Seed JP', 'Hiragino Sans', sans-serif;
  --text: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
body { background: var(--bg); color: var(--ink); font: 400 15px/1.7 var(--text); }
h1, h2 { font-weight: 700; color: var(--ink); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.tnum { font-variant-numeric: tabular-nums; }
.icon { width: 16px; height: 16px; flex: none; }

/* ---------- ヘッダーと広告表記 ---------- */
.hd-in { display: flex; align-items: center; gap: 16px; height: 56px; }
.logo { display: inline-flex; align-items: flex-end; gap: 6px; font: 700 18px/1 var(--num); letter-spacing: 0.02em; white-space: nowrap; }
.logo-cat { width: 18px; display: block; margin-bottom: 1px; }
.logo-cat .cat-static { width: 100%; height: auto; }
.hd-nav { margin-left: auto; display: flex; gap: 2px; }
.hd-nav a { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.hd-nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .hd-nav a:hover { background: var(--sunk); color: var(--ink); } }
/* 広告の表記は、周りの本文より小さく薄くしない（消費者庁のステマ告示の運用基準） */
.pr { font-size: inherit; line-height: 1.6; color: var(--ink); }
.pr-k { font-weight: 600; color: var(--ink-2); margin-right: 6px; }

/* ---------- 猫の帯 ---------- */
.band { position: relative; height: 116px; margin-top: 8px; }
.band::after { content: ''; position: absolute; inset: auto 0 0 0; height: 10px; background: var(--sunk); }
.band .stage { position: absolute; inset: 0 0 10px 0; --cat-w: 132px; }
.band-pause { position: absolute; right: max(16px, calc((100% - 1080px) / 2)); top: 4px; z-index: 2; font-size: 14px; color: var(--ink-2); border-radius: 999px; min-height: 44px; padding: 0 12px; }
@media (hover: hover) and (pointer: fine) { .band-pause:hover { background: var(--sunk); color: var(--ink); } }
@media (max-width: 599px) { .band { height: 96px; } .band .stage { --cat-w: 104px; } }

/* ---------- トップ ---------- */
.hero { margin-top: 24px; }
.hero h1 { font-size: 24px; line-height: 1.35; letter-spacing: 0.01em; }
@media (min-width: 768px) { .hero h1 { font-size: 30px; } }
.note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.note .icon { color: var(--ink-3); }
.note { gap: 2px 16px; }
.note-i { display: inline-flex; align-items: flex-start; gap: 5px; }
.note-i .icon { flex: none; margin-top: 0.2em; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 20px; padding: 3px; border-radius: 12px; background: var(--sunk); }
.seg-b { height: 40px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg-b[aria-selected='true'] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 8%), 0 0 0 0.5px rgb(0 0 0 / 6%); }

/* 一番安い1件 */
.win { position: relative; margin-top: 44px; padding: 20px; border-radius: 20px; background: var(--accent-bg); }
.perch { position: absolute; right: 22px; top: -46px; width: 44px; }
.perch .cat-static { width: 100%; height: auto; }
.win-k { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.win-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-top: 10px; }
.win .thumb { width: 72px; background: var(--bg); }
.win-p { display: grid; gap: 2px; margin-top: 16px; justify-items: start; }
.win-buy { font-size: 13px; color: var(--ink-2); }
.win .btn { margin-top: 16px; width: 100%; }

/* 数字：大きく、単位は小さく、下端をそろえる */
.pv { display: inline-flex; align-items: baseline; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pv-n { font: 700 19px/1.2 var(--num); letter-spacing: -0.01em; }
.pv-u { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.pv-xl .pv-n { font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.pv-xl .pv-u { font-size: 15px; margin-left: 3px; }
.pv-xxl .pv-n { font-size: 48px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.pv-xxl .pv-u { font-size: 16px; margin-left: 3px; }

.usual { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.usual.low { color: var(--accent-ink); font-weight: 600; }
.usual .icon { width: 14px; height: 14px; }

/* 2位以下の行（枠も罫線もなし） */
.lines { margin-top: 8px; }
.ln-a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px; margin-inline: -10px; border-radius: 14px; }
@media (hover: hover) and (pointer: fine) { .ln-a:hover { background: var(--sunk); } }
.ln.is-best .ln-a { background: var(--accent-bg); }
.thumb { display: block; width: 56px; aspect-ratio: 1; padding: 5px; border-radius: 12px; background: var(--sunk); }
.ln-t { min-width: 0; display: grid; gap: 1px; }
.ln-name { font-weight: 600; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ln-meta { font-size: 12px; line-height: 1.6; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-p { display: grid; justify-items: end; gap: 1px; text-align: right; }
.ln-d { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ln.is-best .ln-d { color: var(--accent-ink); font-weight: 600; }

.more { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 12px 0; font-weight: 600; font-size: 14px; }
.more-n { font-weight: 400; color: var(--ink-3); }
.more .icon { margin-left: auto; color: var(--ink-3); }

.sec { margin-top: 56px; }
.sec h2, .pd-sec h2 { font-size: 18px; line-height: 1.4; }
.sec-d { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.sub-h { margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* こだわりの入口 */
.prefs { margin-top: 8px; }
.pref { display: grid; grid-template-columns: 36px 1fr auto 16px; gap: 12px; align-items: center; padding: 10px 0; }
.prefs li + li .pref { box-shadow: inset 48px -0 0 var(--bg), 0 -1px 0 var(--line); }
.pref-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sunk); color: var(--ink-2); }
.pref-i .icon { width: 18px; height: 18px; }
.pref-t { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pref-l { font-weight: 600; font-size: 15px; }
.pref-n { font-size: 12px; color: var(--ink-3); }
.pref-p { display: flex; align-items: baseline; gap: 6px; }
.pref-k { font-size: 12px; color: var(--ink-3); }
.pref .pv-n { font-size: 16px; }
.pref > .icon { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .pref:hover .pref-l { text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 479px) { .pref-n { display: none; } }

.eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--sunk); font-size: 15px; }
.eq-o { color: var(--ink-3); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #33312d; } }
.btn-l { height: 52px; font-size: 16px; width: 100%; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 1px solid var(--accent-line); border-radius: 999px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink); width: 100%; }
.text-btn { border: 0; background: none; min-height: 40px; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--sunk); }

/* ---------- 一覧 ---------- */
.crumbs { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.crumbs .icon { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); text-decoration: underline; } }
.list-hd { margin-top: 8px; }
.list-hd h1 { font-size: 24px; line-height: 1.35; }
.list-grid { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 40px; margin-top: 16px; align-items: start; }
.side { position: sticky; top: 16px; display: grid; gap: 20px; padding-top: 8px; }
.list-main { max-width: 720px; }
@media (max-width: 959px) { .list-grid { grid-template-columns: 1fr; } .side { display: none; } }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 0; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.bar-n { font-size: 14px; font-weight: 600; margin-right: auto; }
.bar-b { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink); }
/* 選択欄は透明にして枠全体に重ねる。16px未満だと iPhone が拡大するので16pxにし、見える文字は .sort-v で出す */
.sort-b { min-width: 0; }
.sort-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-b select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; border-radius: inherit; font-size: 16px; cursor: pointer; }
.sort-b select:focus-visible { outline: none; }
.sort-b:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 960px) { .filter-b { display: none; } }
.badge { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.active { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.active:not(:empty) { padding: 10px 0 2px; }
.facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.facet legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--ink); }
.chip-n { font-size: 11px; color: var(--ink-3); }
.chip[aria-pressed='true'], .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed='true'] .chip-n { color: #c9c4ba; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed='true']):hover { border-color: var(--ink-3); } }
.empty { display: grid; justify-items: center; gap: 4px; padding: 48px 16px; text-align: center; }
.empty-cat { width: 52px; margin-bottom: 8px; }
.empty-cat .cat-static { width: 100%; height: auto; }
.empty-t { font-weight: 600; }
.empty-d { font-size: 13px; color: var(--ink-2); }

.sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 85dvh; border-radius: 20px 20px 0 0; background: var(--bg); color: var(--ink); }
.sheet::backdrop { background: rgb(25 24 22 / 36%); }
.sheet[open] { animation: sheet-in 260ms var(--ease); }
@keyframes sheet-in { from { transform: translateY(32px); opacity: 0; } }
.sheet-in { display: grid; grid-template-rows: auto 1fr auto; max-height: 85dvh; }
.sheet-hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 8px; }
.sheet-hd h2 { font-size: 17px; }
.sheet-body { overflow: auto; padding: 8px 16px 16px; display: grid; gap: 20px; }
.sheet-ft { display: flex; align-items: center; gap: 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.sheet-ft .btn { flex: 1; }

/* ---------- 商品ページ ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: 'id buy' 'offers buy' 'chart buy' 'spec buy' 'sim buy'; column-gap: 48px; margin-top: 16px; align-items: start; }
.pd-id { grid-area: id; display: flex; gap: 16px; align-items: center; }
.thumb-l { width: 112px; padding: 10px; border-radius: 16px; flex: none; }
.pd-t h1 { font-size: 22px; line-height: 1.4; margin: 2px 0; }
.pd-size { font-weight: 400; color: var(--ink-2); font-size: 16px; margin-left: 8px; }
.buy { grid-area: buy; position: sticky; top: 16px; display: grid; gap: 4px; justify-items: start; padding: 24px; border-radius: 20px; background: var(--accent-bg); }
.buy-k { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.buy-at { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.buy .btn-l { margin-top: 16px; }
.buy .btn-ghost { margin-top: 8px; }
.notify-msg { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
#offers { grid-area: offers; }
.pd-sec { margin-top: 40px; min-width: 0; }
.pd-sec:nth-of-type(2) { grid-area: chart; } .pd-sec:nth-of-type(3) { grid-area: spec; } .pd-sec:nth-of-type(4) { grid-area: sim; }
.pd-sec-hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
@media (max-width: 959px) {
  .pd { grid-template-columns: 1fr; grid-template-areas: 'id' 'buy' 'offers' 'chart' 'spec' 'sim'; }
  .buy { position: static; margin-top: 20px; padding: 20px; }
  .thumb-l { width: 88px; }
  .pd-t h1 { font-size: 19px; }
}

.ofs { margin-top: 8px; display: grid; gap: 2px; }
.of { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; gap: 12px; align-items: center; padding: 10px; margin-inline: -10px; border-radius: 14px; }
.of-best { background: var(--accent-bg); }
.of-l { display: grid; gap: 2px; min-width: 0; }
.of-shop { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.of-meta { font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.of-meta b { color: var(--ink-2); font-weight: 600; }
.of-r { display: grid; justify-items: end; gap: 1px; }
.of-best .ln-d { color: var(--accent-ink); font-weight: 600; }
.of-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.of-best .of-go { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.rakuten { background: #bf3a1c; } .dot.yahoo { background: #6b4bd6; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
/* 「切」の溝も白い背景と見分けられる濃さにする（3:1 以上） */
.track { position: relative; width: 36px; height: 22px; border-radius: 999px; background: #8f8a82; transition: background-color 200ms ease; }
.track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 15%); transition: transform 200ms var(--ease); }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

.chart { width: 100%; height: auto; margin-top: 12px; }
.c-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-median { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 4; }
.c-min { fill: var(--accent); }
.c-today { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; }
.c-label, .c-axis { font: 400 12px var(--text); fill: var(--ink-3); }

.spec { margin-top: 8px; }
.spec div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 10px 0; box-shadow: 0 1px 0 var(--line); font-size: 14px; }
.spec dt { color: var(--ink-3); }

.buybar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgb(255 255 255 / 92%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgb(0 0 0 / 12%), 0 0 0 0.5px rgb(0 0 0 / 8%); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 200ms ease, transform 300ms var(--ease); }
.buybar > span { display: grid; }
.buybar .btn { height: 44px; }
.buybar.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 959px) { .buybar { display: flex; } }

.ft { margin-top: 80px; padding: 24px 0 96px; box-shadow: 0 -1px 0 var(--line); font-size: 12px; color: var(--ink-3); }
.ft p + p { margin-top: 4px; }
.pd-t { min-width: 0; }
.pd-t .ln-meta { white-space: normal; }
/* グラフは画面幅に合わせて縮むので、スマホでは文字を大きめに描く */
@media (max-width: 599px) { .c-label, .c-axis { font-size: 22px; } .c-line { stroke-width: 3; } }

/* ---------- 本番で足した部品 ---------- */
.skip { position: absolute; left: 16px; top: 8px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; transform: translateY(-200%); transition: transform 200ms var(--ease); }
.skip:focus { transform: none; }
.thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; mix-blend-mode: multiply; }
.sec-d a, .prose a { text-decoration: underline; text-underline-offset: 3px; }
.list-foot { margin-top: 24px; }
.chart-empty { margin-top: 12px; padding: 16px; border-radius: 14px; background: var(--sunk); font-size: 13px; color: var(--ink-2); }
.page-h { font-size: 24px; line-height: 1.4; margin-top: 8px; }
.prose { margin-top: 8px; }
.prose h2 { font-size: 17px; margin-top: 32px; }
.prose p, .prose li { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.85; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.lost { padding-top: 40px; }
.lost-cat { display: block; width: 72px; margin-bottom: 12px; }
.lost-cat .cat-static { width: 100%; height: auto; }
.lost-links { margin-top: 16px; }
.lost-links li + li .more { box-shadow: 0 -1px 0 var(--line); }
.ft-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .ft-nav a:hover { color: var(--ink); text-decoration: underline; } }
.empty-d { font-size: 13px; color: var(--ink-2); padding: 16px 0; }

/* 表示確認用のビルドでだけ出す注意書き */
.preview-note { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #fff4e5; color: #7a4a00; font-size: 12px; line-height: 1.6; }

/* APIのクレジット。所定のHTMLの見た目を変えないよう、サイトのスタイルを当てない */
.credits, .credits * { all: revert; }
