:root {
  --bg: #ffffff;
  --fg: #1d1f21;
  --muted: #5b6168;
  --line: #d9dde1;
  --accent: #0b6e4f;
  --accent-fg: #ffffff;
  --error: #b42318;
  --code-bg: #f3f5f7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --fg: #e8eaed;
    --muted: #a3a9b0;
    --line: #33383e;
    --accent: #4cc39a;
    --accent-fg: #0b1a14;
    --error: #ff8a80;
    --code-bg: #1f2327;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}
header.site, main, footer.site { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
header.site .brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 32px 0 8px; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.lead { color: var(--muted); }
code { background: var(--code-bg); padding: 0 4px; border-radius: 4px; font-size: 0.92em; }
pre { background: var(--code-bg); padding: 12px; border-radius: 6px; overflow-x: auto; }
pre code { padding: 0; }
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.button, button {
  display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 6px;
  padding: 10px 20px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: wait; }
.field { margin: 20px 0; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
}
.field [aria-invalid="true"] { border-color: var(--error); }
.req, .opt { font-size: 0.8rem; font-weight: 400; margin-left: 6px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line); }
.req { color: var(--error); border-color: var(--error); }
.help { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }
.error { color: var(--error); font-size: 0.9rem; margin: 4px 0 0; }
.status { min-height: 1.75em; }
footer.site { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
