/* ============================================================
   共通の土台（3パターン共通）
   色・書体・角の丸みは theme-a / theme-b / theme-c で決める
   高齢の方にも読みやすくするための共通ルール：
   - 本文 20px 以上、行間 1.85
   - ボタンの高さ 64px 以上
   - 色だけで意味を伝えない（✓ や文字を必ず添える）
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* hidden を付けた要素は、display の指定があっても必ず隠す */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.85;
  letter-spacing: .03em;
}

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 780px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: 1.45;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
a { color: var(--link); }
strong { font-weight: 700; }

:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: var(--border-w) solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: 1.45rem; color: var(--header-text); text-decoration: none;
}
.brand small { font-size: .9rem; font-weight: 400; font-family: var(--font-body); }
.brand-mark { width: 36px; height: 36px; flex: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 68px; padding: 12px 34px;
  font: inherit; font-weight: 700; font-size: 1.3rem; line-height: 1.4; text-align: center;
  border: var(--border-w) solid transparent; border-radius: var(--radius-btn);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn-cta { background: var(--cta); color: var(--cta-text); box-shadow: var(--btn-shadow); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-cta:active { transform: translateY(2px); }
.btn-sm { min-height: 54px; padding: 8px 20px; font-size: 1.1rem; }

/* ---------- ファーストビュー ---------- */
.hero { padding-block: 56px 68px; background: var(--hero-bg); color: var(--hero-text); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.eyebrow { font-weight: 700; font-size: 1.15rem; color: var(--eyebrow); }
.lead { font-size: 1.35rem; max-width: 32em; }
.note { font-size: 1.1rem; font-weight: 700; }

/* ご家族が見る画面（表示例） */
.status {
  margin: 0; display: grid; gap: 16px; padding: 28px;
  background: var(--surface); color: var(--text);
  border: var(--border-w) solid var(--line); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.status-tag {
  justify-self: start; padding: 2px 14px; border-radius: 999px;
  background: var(--tag-bg); color: var(--tag-text); font-size: 1rem; font-weight: 700;
}
.status-who { color: var(--muted); font-weight: 700; }
.status-big { display: flex; align-items: center; gap: 12px; font-size: 1.7rem; font-weight: 700; line-height: 1.4; }
.ok-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ok); color: var(--ok-text); font-size: 1.4rem; line-height: 1;
}
.status-list { margin: 0; display: grid; gap: 10px; }
.status-list div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week li { display: grid; gap: 4px; font-size: 1rem; color: var(--muted); }
.week li::after {
  content: "－"; display: block; height: 34px; line-height: 34px; border-radius: 8px;
  background: var(--line-soft); color: var(--muted); font-weight: 700;
}
.week li.on::after { content: "✓"; background: var(--ok); color: var(--ok-text); }

/* ---------- セクション共通 ---------- */
.sec { padding-block: 76px; }
.sec.alt { background: var(--surface-alt); }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; }
.sec-lead { font-size: 1.25rem; color: var(--muted); }

.card {
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--card-shadow);
}

/* お悩み */
.worries { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.worries li { font-size: 1.3rem; font-weight: 700; }

/* 3ステップ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.step { display: grid; gap: 14px; align-content: start; }
.step-no {
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: var(--radius-no);
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.7rem; line-height: 1;
}

/* ゲーム */
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.game { display: grid; gap: 10px; align-content: start; }
.game-icon svg { width: 76px; height: 76px; display: block; }
.i-board { fill: var(--icon-board); }
.i-w { fill: var(--stone-white); stroke: var(--stone-black); stroke-width: 1.5; }
.i-b { fill: var(--stone-black); }
.i-a { fill: var(--icon-accent); }
.i-cell { fill: var(--icon-cell); stroke: var(--text); stroke-width: 2; }
.i-line { stroke: var(--text); stroke-width: 1; }
.i-blk { fill: var(--text); }
.i-text { fill: var(--text); font: 700 11px sans-serif; }

/* 見張らない */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { display: flex; align-items: flex-start; gap: 16px; font-size: 1.3rem; font-weight: 700; }
.checks li::before {
  content: "✓"; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; line-height: 1;
  background: var(--primary); color: var(--on-primary); font-size: 1.35rem;
}

/* 料金 */
.price-box {
  max-width: 660px; display: grid; gap: 14px; padding: 34px;
  background: var(--surface);
  border: calc(var(--border-w) + 1px) solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.price-label { font-weight: 700; font-size: 1.3rem; }
.price { font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.yen { font-family: var(--font-head); font-size: 3.4rem; color: var(--price); font-variant-numeric: tabular-nums; }
.price small { font-size: 1.05rem; font-weight: 400; }
.price-detail { margin: 0; padding-left: 1.3em; }
.compare { margin-top: 28px; font-size: 1.25rem; max-width: 36em; }

/* つくった理由 */
.about-body { display: grid; gap: 1em; }
.sign { font-weight: 700; }

/* 申し込み */
.apply { background: var(--apply-bg); color: var(--apply-text); }
.apply .wrap { display: grid; gap: 22px; }
.form {
  display: grid; gap: 8px; padding: 30px;
  background: var(--surface); color: var(--text);
  border: var(--border-w) solid var(--line); border-radius: var(--radius);
}
.form label { font-weight: 700; margin-top: 12px; }
.form label .req { margin-left: 8px; padding: 0 8px; border-radius: 6px; background: var(--tag-bg); color: var(--tag-text); font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 62px; padding: 14px 16px;
  font: inherit; font-size: 1.25rem;
  background: var(--input-bg); color: var(--text);
  border: 2px solid var(--input-line); border-radius: var(--radius-input);
}
.form .btn { margin-top: 22px; width: 100%; }
.form-done { margin-top: 8px; padding: 14px 18px; border-radius: 10px; background: var(--tag-bg); color: var(--tag-text); font-weight: 700; }

/* フッター */
.site-footer { padding-block: 40px; background: var(--footer-bg); color: var(--footer-text); font-size: 1.05rem; }
.site-footer .wrap { display: grid; gap: 6px; }
.site-footer a { color: inherit; }

@media (max-width: 600px) {
  body { font-size: 1.2rem; }
  .hero { padding-block: 36px 52px; }
  .sec { padding-block: 56px; }
  .hero .btn, .apply .btn { width: 100%; }
  .brand { font-size: 1.2rem; }
  .brand small { display: none; }
  .status, .form, .price-box { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
