:root {
  --bg: #fbfaf7; --surface: #ffffff; --text: #1f2a2e; --muted: #5d6b70; --line: #e3e0d8;
  --brand: #0f6b5c; --brand-ink: #ffffff; --accent: #c2410c; --soft: #eef5f2; --warn-bg: #fff6e5;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141a1c; --surface: #1c2427; --text: #e8eeef; --muted: #9fb0b5; --line: #2f3b3f;
    --brand: #4fc3ad; --brand-ink: #0c1a17; --accent: #fb923c; --soft: #1d2c29; --warn-bg: #2e2717; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; line-height: 1.85; font-size: 16px; }
a { color: var(--brand); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: 16px; }
.site-header nav { display: flex; gap: 16px; font-size: 14px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
main.wrap { padding-top: 28px; padding-bottom: 56px; }
.hero { padding: 20px 0 8px; }
.hero h1 { font-size: clamp(24px, 6vw, 34px); line-height: 1.4; margin: 0 0 12px; text-wrap: balance; }
.hero p { color: var(--muted); margin: 0; }
h1 { font-size: clamp(22px, 5.4vw, 30px); line-height: 1.45; margin: 8px 0 12px; }
h2 { font-size: 21px; line-height: 1.5; margin: 44px 0 14px; padding-left: 12px; border-left: 5px solid var(--brand); }
h3 { font-size: 17px; margin: 30px 0 8px; }
.crumbs, .post-meta { font-size: 13px; color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); }
.pr { font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 6px 12px; margin: 14px 0 24px; }
.cards { display: grid; gap: 12px; }
.card { display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--brand); }
.card-cat { font-size: 12px; color: var(--brand); font-weight: 700; }
.card-title { font-weight: 700; line-height: 1.5; }
.card-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card-date { font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 16px 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child > * { border-bottom: 0; }
thead th { background: var(--soft); font-size: 13px; white-space: nowrap; }
table.compare:not(.rules) td, table.compare:not(.rules) th { white-space: nowrap; }
table.rules { min-width: 720px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.strong { font-weight: 800; color: var(--accent); }
.table-note, .verified { font-size: 13px; color: var(--muted); line-height: 1.7; }
.verified { overflow-wrap: anywhere; }
.cta { margin: 28px 0; text-align: center; }
.cta-btn { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 800; text-decoration: none; padding: 14px 22px; border-radius: 999px; max-width: 100%; line-height: 1.5; }
.cta-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.calc { margin: 24px 0; padding: 18px 16px; background: var(--surface); border: 2px solid var(--brand); border-radius: 14px; }
.calc-title { font-weight: 800; margin: 0 0 12px; }
.calc-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.calc-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.calc-form select { font: inherit; font-size: 16px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; }
.calc-result { margin-top: 14px; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.calc-row b { font-variant-numeric: tabular-nums; text-align: right; }
.calc-row.strong { font-size: 16px; }
.calc-row.strong b { color: var(--accent); font-size: 18px; }
.calc-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }
.calc-warn { background: var(--warn-bg); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0; }
blockquote { margin: 16px 0; padding: 10px 14px; background: var(--warn-bg); border-radius: 8px; font-size: 15px; }
blockquote p { margin: 0; }
.post ul, .post ol { padding-left: 1.4em; }
.related { margin-top: 48px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 4px 0; }
.site-footer .small { font-size: 12px; line-height: 1.7; }
