:root {
  --bg: #fbfaf7; --fg: #1f2328; --muted: #646b73; --line: #e3e1db; --card: #ffffff;
  --a: #c0532b; --b: #7d8a96;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171a; --fg: #e8e6e1; --muted: #9aa1a8; --line: #2c3036; --card: #1d2024; --a: #f08a5d; --b: #8f9ba6; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.7 "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
.top, main, footer { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.top { padding-block: 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.top a { color: inherit; text-decoration: none; }
main { padding-block: 16px 40px; }
h1 { font-size: 1.5rem; line-height: 1.4; margin: 8px 0 4px; }
h2 { font-size: 1.1rem; margin: 32px 0 8px; }
a { color: var(--a); }
.crumb, .sub { color: var(--muted); font-size: .85rem; margin: 0; }
.crumb a { color: inherit; }
.big { font-size: 2.4rem; font-weight: 700; margin: 8px 0; font-variant-numeric: tabular-nums; }
.big span { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
.facts { padding-left: 1.2em; margin: 8px 0 16px; }
figure { margin: 16px 0; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.chart .ln.a { stroke: var(--a); } .chart .ln.b { stroke: var(--b); stroke-dasharray: 5 4; stroke-width: 2; }
.chart .pt.a { fill: var(--a); } .chart .pt.b { fill: var(--b); }
figcaption { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; }
.lg.a::before { background: var(--a); } .lg.b::before { background: var(--b); }
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .92rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 400; font-size: .8rem; }
td:not(:first-child), th:not(:first-child) { text-align: right; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.items { list-style: none; padding: 0; display: grid; gap: 8px; }
.items li { display: flex; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.items span { font-variant-numeric: tabular-nums; font-weight: 700; }
.note { color: var(--muted); font-size: .85rem; }
footer { padding-block: 16px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.caution { font-size: .82rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin: 12px 0; }
.chart .rev { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 3; }
.lg.rev::before { background: var(--muted); }
