:root {
  --text: #1f2328;
  --muted: #59636e;
  --line: #d8dee4;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --accent: #1a5fb4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf3;
    --muted: #9198a1;
    --line: #3d444d;
    --bg: #0d1117;
    --bg-soft: #151b23;
    --accent: #6cb6ff;
  }
}

* { box-sizing: border-box; }

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

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

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

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

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

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

header.site .brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

header.site nav a {
  font-size: 14px;
  margin-left: 16px;
}

.hero {
  padding: 56px 0 40px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.hero .lead {
  font-size: 20px;
  margin: 0;
  color: var(--muted);
}

main section {
  padding: 8px 0 24px;
}

h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

ul { padding-left: 1.4em; }

li { margin: 6px 0; }

li strong { font-weight: 700; }

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

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

th { background: var(--bg-soft); }

td code, p code {
  font-size: 13px;
  word-break: break-all;
}

.note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
}

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

footer.site {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  font-size: 14px;
  color: var(--muted);
}

footer.site a { margin-right: 16px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 17px; }
  table { font-size: 14px; }
}
