:root {
  --bg: #f6f7f9;
  --text: #1c2430;
  --muted: #5d6877;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --line: #dde1e7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --text: #e8ecf1;
    --muted: #9aa5b4;
    --accent: #6ea2f0;
    --accent-text: #0d1117;
    --line: #2a313b;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI",
    "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 18vh 1.5rem 3rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.footer p {
  margin: 0;
}
