:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #16181b;
  --muted: #5d636b;
  --line: #e3e5e8;
  --accent: #2f7fa8;
  --accent-soft: #e6f2f8;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f11;
    --surface: #15181b;
    --text: #eef0f2;
    --muted: #a0a7af;
    --line: #262a2f;
    --accent: #8fd0ec;
    --accent-soft: #14262f;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0f11;
  --surface: #15181b;
  --text: #eef0f2;
  --muted: #a0a7af;
  --line: #262a2f;
  --accent: #8fd0ec;
  --accent-soft: #14262f;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.brand .dot { color: var(--accent); }

main { padding: 40px 0 64px; }

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.4;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}

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

.doc h1 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 8px;
}

.doc .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.doc h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
}

.doc ol, .doc ul { padding-left: 1.4em; }

.doc li { margin: 4px 0; }

.table-scroll {
  overflow-x: auto;
  margin: 12px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.92rem;
}

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

th { background: var(--surface); }

.notice {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 20px;
  padding-bottom: 32px;
}

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