/* 色はここでまとめて管理（変えると全体の色が変わる） */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --surface: #1f2937;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --accent: #60a5fa;
    --border: #374151;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ヘッダー */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  margin: 0;
  font-weight: 700;
}

nav a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
}

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

/* 大きな見出しエリア */
.hero {
  padding: 64px 0;
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

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

/* 各セクション */
.section {
  padding-bottom: 48px;
}

h2 {
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

/* カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card h3 {
  margin: 8px 0 4px;
}

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

.num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
