:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5d6b7e;
  --accent: #0a6cff;
  --border: #e2e8f0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #171e27;
    --text: #e8edf3;
    --muted: #9aa8b9;
    --accent: #4d97ff;
    --border: #273241;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

header.app {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

header.app img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

header.app p { margin: 0; color: var(--muted); }

h1 { font-size: 1.6rem; line-height: 1.3; margin: 0; }
h2 { font-size: 1.15rem; margin: 2em 0 0.5em; }
h3 { font-size: 1rem; margin: 1.5em 0 0.25em; }

section.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 24px 24px;
  margin-bottom: 24px;
}

a { color: var(--accent); }
ul { padding-left: 1.25em; }
.muted { color: var(--muted); font-size: 0.9rem; }

nav.lang {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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