:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b6861;
  --line: #dedad0;
  --accent: #0f6b3c;
  --accent-text: #ffffff;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1e1e1b;
    --text: #edebe4;
    --muted: #a09c92;
    --line: #34332e;
    --accent: #3fbf7f;
    --accent-text: #0c1a12;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

a { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); }

main { padding: 40px 0 64px; }

h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 16px;
}

h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 48px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 17px;
  margin: 32px 0 8px;
}

p { margin: 0 0 16px; }

.lead {
  font-size: 18px;
  color: var(--muted);
}

.hero {
  padding: 24px 0 8px;
}

.hero h1 {
  font-size: 34px;
  letter-spacing: 0.04em;
}

.big-number {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  color: inherit;
  text-decoration: none;
}

a.card:hover { border-color: var(--accent); }

.card h3 { margin: 0 0 4px; }

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  margin-bottom: 8px;
}

.tag.soon {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

.sources {
  font-size: 14px;
  padding-left: 20px;
}

.sources li { margin-bottom: 6px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .hero h1 { font-size: 28px; }
  .big-number { font-size: 36px; }
}
