:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1a1a19; --text-2: #52514e; --border: #e2e1dc;
  --accent: #0f6b4f; --accent-ink: #ffffff; --accent-soft: #e6f2ed; --series-1: #2a78d6;
  --warn-bg: #fff4d6; --warn-text: #5c4300; --up: #b3261e; --down: #1c5fb0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413; --surface: #1e1e1c; --text: #f3f2ee; --text-2: #c3c2b7; --border: #3a3a36;
    --accent: #4cc39a; --accent-ink: #0c1f18; --accent-soft: #1b2f28; --series-1: #3987e5;
    --warn-bg: #3d3210; --warn-text: #ffe9a8; --up: #ff8a80; --down: #8ab4f8;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.site { background: var(--surface); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
nav.main a { text-decoration: none; }
.pr-note { font-size: .75rem; color: var(--text-2); margin: 0; padding: 4px 0; }
main { padding: 16px 0 48px; }
h1 { font-size: 1.5rem; line-height: 1.4; margin: 12px 0; }
h2 { font-size: 1.2rem; margin: 36px 0 12px; padding-left: 10px; border-left: 4px solid var(--accent); }
h3 { font-size: 1rem; margin: 20px 0 8px; }
.lead { color: var(--text-2); }
.crumbs { font-size: .8rem; color: var(--text-2); }
.crumbs a { color: inherit; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
a.card { text-decoration: none; color: var(--text); display: block; }
a.card:hover { border-color: var(--accent); }
a.card b { display: block; color: var(--accent); margin-bottom: 4px; }
a.card span { font-size: .85rem; color: var(--text-2); }
.tile .k { font-size: .8rem; color: var(--text-2); }
.tile .v { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.tile .s { font-size: .8rem; color: var(--text-2); }
.up { color: var(--up); } .down { color: var(--down); }
.sample-banner { background: var(--warn-bg); color: var(--warn-text); padding: 8px 16px; font-size: .85rem; text-align: center; font-weight: 600; }
.cta { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; padding: 16px; margin: 24px 0; }
.cta .pr { display: inline-block; font-size: .7rem; border: 1px solid var(--text-2); color: var(--text-2); border-radius: 3px; padding: 0 5px; line-height: 1.5; }
.cta .cta-title { font-weight: 700; font-size: 1.05rem; margin: 6px 0 4px; }
.cta p { margin: 4px 0 12px; font-size: .9rem; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 12px 22px; border-radius: 8px; text-decoration: none; border: 0; font-size: 1rem; cursor: pointer; }
.cta .unset { font-size: .75rem; color: var(--up); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--surface); }
th, td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--accent-soft); font-weight: 600; }
table.sortable thead th { cursor: pointer; }
details { margin: 8px 0; }
summary { cursor: pointer; font-size: .85rem; color: var(--text-2); }
.note { font-size: .8rem; color: var(--text-2); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--text-2); font-size: 11px; }
.chart .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart .bar { fill: var(--series-1); }
.chart .hit { fill: transparent; outline: none; }
.chart .hit:hover, .chart .hit:focus { fill: color-mix(in srgb, var(--series-1) 12%, transparent); }
#tip { position: fixed; z-index: 10; pointer-events: none; background: var(--text); color: var(--bg); font-size: .8rem; padding: 4px 8px; border-radius: 6px; white-space: pre; display: none; }
form.tool { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
form.tool label { display: block; font-size: .85rem; font-weight: 600; }
form.tool .full { grid-column: 1 / -1; }
form.tool input[type=number], form.tool select { width: 100%; padding: 10px; font-size: 1rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); margin-top: 4px; }
form.tool .check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.result { margin-top: 20px; }
.result .big { font-size: 1.9rem; font-weight: 700; line-height: 1.3; }
.range { position: relative; height: 10px; border-radius: 5px; background: var(--border); margin: 14px 0 4px; }
.range i { position: absolute; left: 20%; right: 20%; top: 0; bottom: 0; border-radius: 5px; background: var(--series-1); }
.range-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-2); }
footer.site { border-top: 1px solid var(--border); background: var(--surface); font-size: .8rem; color: var(--text-2); padding: 20px 0 32px; }
footer.site a { color: inherit; }
ul.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
ul.cols { columns: 3 140px; padding-left: 18px; }
[hidden] { display: none !important; }
