:root {
  color-scheme: dark;
  --bg: #111719;
  --surface: #1e292c;
  --text: #f0f5f3;
  --muted: #a5b9b7;
  --border: #354345;
  --accent: #b9ef83;
  --accent-surface: #283d29;
}

*, *::before, *::after { 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%;
}

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

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.site-header img { width: 40px; height: 40px; border-radius: 10px; }
.site-header a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.site-header nav { margin-left: auto; display: flex; gap: 16px; font-size: 0.9rem; }
.site-header nav a { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.site-header nav a[aria-current="page"] { color: var(--accent); }

h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 8px; }
h2 {
  font-size: 1.1rem;
  margin: 40px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
h3 { font-size: 1rem; margin: 24px 0 4px; }
p, li { font-size: 0.95rem; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
strong { color: var(--text); }

.meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 24px; }
.lead { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0;
}
.card.accent { background: var(--accent-surface); border-color: var(--accent); }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; }
.hero h1 { margin-top: 16px; }

.links { display: grid; gap: 12px; margin-top: 32px; }
.links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.links a span { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; }

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

@media (max-width: 480px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { margin-left: 0; width: 100%; }
}
