:root {
  --text: #1f2937;
  --muted: #706c75;
  --accent: #ca3b1e;
  --bg: #ffffff;
  --panel: #fff7ed;
  --border: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f3f4f6;
    --muted: #a8a3ad;
    --accent: #f0805f;
    --bg: #17151a;
    --panel: #2a211c;
    --border: #2c2930;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Hiragino Sans",
    "Noto Sans JP",
    "Yu Gothic",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.8;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

h1 {
  font-size: 1.6rem;
  margin: 24px 0 8px;
}

h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

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

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel {
  background: var(--panel);
  border-radius: 8px;
  padding: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

th {
  white-space: nowrap;
}

/* スマートフォンでは見出しの列が狭くなりすぎるため、見出しと本文を縦に並べる */
@media (max-width: 560px) {
  th,
  td {
    display: block;
  }

  th {
    padding-bottom: 0;
    border-bottom: none;
  }
}
