/* 色はここでまとめて管理（変えると全体の色が変わる） */
:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --band: #eef3f1;
  --text: #1d2a2a;
  --muted: #566464;
  --accent: #0f6b5c;
  --accent-text: #ffffff;
  --border: #dbe0dc;
  --alert-bg: #fdf1e3;
  --alert-border: #c8701a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131a1a;
    --surface: #1b2424;
    --band: #182121;
    --text: #edf1ef;
    --muted: #a7b4b1;
    --accent: #5cc4b0;
    --accent-text: #0d1616;
    --border: #324040;
    --alert-bg: #2d2317;
    --alert-border: #e0964a;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

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

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* 大きな見出しエリア */
.hero {
  padding: 56px 0 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 22em;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.4;
}

.lead {
  margin: 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 1.05rem;
}

/* いちばん大事なこと */
.alert h2 {
  margin: 0 0 4px;
  border: 0;
  padding: 0;
  font-size: 1.05rem;
  color: var(--alert-border);
}

.alert p {
  margin: 0;
}

.alert {
  background: var(--alert-bg);
  border-left: 4px solid var(--alert-border);
  padding-top: 16px;
  padding-bottom: 16px;
  max-width: 928px;
}

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

h2 {
  margin-top: 0;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  font-size: 1.5rem;
  line-height: 1.5;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

ul,
ol {
  padding-left: 1.4em;
}

small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* 表（スマホでは表の中だけ横に動かせる） */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: var(--band);
  font-size: 0.85rem;
}

.num {
  font-weight: 700;
  white-space: nowrap;
}

/* コースごとの説明 */
.course {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.course h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.amount {
  font-size: 1.1rem;
}

.amount strong {
  color: var(--accent);
  font-size: 1.4rem;
}

/* 申請の流れ */
.band {
  background: var(--band);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-align: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.steps h3 {
  margin: 0;
  font-size: 1.05rem;
}

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

/* 条件 */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 32px;
}

.columns h3 {
  margin-top: 0;
}

/* 注意点 */
.faq dt {
  margin-top: 20px;
  font-weight: 700;
}

.faq dd {
  margin: 4px 0 0;
  color: var(--muted);
}

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