/* ほけんマップ(仮) 事前登録LP
   デザイントークン:
   - 背景: 青磁がかった淡いグレー(保険=紙の書類の世界から一歩引いた、静かな色)
   - 墨色: 深い青緑の墨(信頼。純黒より柔らかい)
   - 緑: 保障が「ある」状態
   - 琥珀: 重複の可能性
   - 朱: 空白の可能性(ハンコの朱。日本の書類文化の警告色)
   - 見出し: Shippori Mincho(構造批判のコピーを社説の見出しのように)
   - 本文: Zen Kaku Gothic New */

:root {
  --bg: #f3f5f4;
  --bg-card: #fdfdfc;
  --ink: #17272b;
  --ink-soft: #46585c;
  --line: #d8dedc;
  --green: #1f5f53;
  --green-soft: #e3efe9;
  --amber: #b97417;
  --amber-soft: #f7ecd9;
  --red: #ce3d2a;
  --red-soft: #faeae7;
  --font-display: "Shippori Mincho", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.pc-only { display: inline; }
.sp-only { display: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.logotype {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em;
}

.logotype-kari { font-size: 0.72rem; color: var(--ink-soft); margin-left: 2px; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700;
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn-small { font-size: 0.85rem; padding: 8px 18px; }
.btn-primary { font-size: 1rem; padding: 14px 32px; }

/* ---------- ヒーロー ---------- */

.hero { padding: 72px 0 88px; overflow: hidden; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800; line-height: 1.55; letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-lead { color: var(--ink-soft); margin-bottom: 16px; }
.hero-lead strong { color: var(--ink); }

.hero-cta { margin-top: 32px; }
.cta-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- シグネチャー: 保障マップ ---------- */

.hero-figure {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px 14px;
  box-shadow: 0 12px 40px rgba(23, 39, 43, 0.08);
}

.hero-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 6px;
}

.hero-legend {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 12px;
  font-size: 0.72rem; color: var(--ink-soft);
}
.hero-legend span { display: flex; align-items: center; gap: 5px; }

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(23, 39, 43, 0.08);
}

.map-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem; margin-bottom: 14px;
}

.map-sample {
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.65rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 2px 6px; margin-left: 8px; vertical-align: 2px;
}

.map-grid {
  display: grid;
  grid-template-columns: 64px repeat(5, 1fr);
  gap: 4px;
  font-size: 0.68rem;
}

.map-corner {}
.map-col {
  text-align: center; font-weight: 700; color: var(--ink-soft);
  padding: 4px 0; letter-spacing: 0.04em;
}
.map-row {
  display: flex; align-items: center; gap: 4px;
  font-weight: 700; padding-left: 2px;
}
.map-age { font-size: 0.6rem; font-weight: 500; color: var(--ink-soft); }

.cell {
  min-height: 44px; border-radius: 5px;
  background: var(--green-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 4px 2px; position: relative;
}

.chip {
  background: #fff; border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  color: var(--green);
  border-radius: 3px; padding: 1px 5px;
  font-size: 0.62rem; font-weight: 700; white-space: nowrap;
}
.chip-dim { opacity: 0.75; }

.cell-dup { background: var(--amber-soft); }
.cell-dup .chip { border-color: color-mix(in srgb, var(--amber) 40%, transparent); color: var(--amber); }
.dup-mark {
  position: absolute; top: -7px; right: -3px;
  background: var(--amber); color: #fff;
  font-size: 0.58rem; font-weight: 700;
  border-radius: 3px; padding: 1px 5px;
}

.cell-gap {
  background: var(--red-soft);
  border: 1.5px dashed color-mix(in srgb, var(--red) 45%, transparent);
}
.gap-mark { color: var(--red); font-weight: 700; font-size: 0.68rem; }

.map-legend {
  display: flex; gap: 16px; margin-top: 14px;
  font-size: 0.68rem; color: var(--ink-soft);
}
.map-legend span { display: flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.lg-chip { background: var(--green-soft); border: 1px solid var(--green); }
.lg-dup { background: var(--amber-soft); border: 1px solid var(--amber); }
.lg-gap { background: var(--red-soft); border: 1px dashed var(--red); }

/* ---------- 数字帯 ---------- */

.stat-band {
  background: var(--ink); color: #fff;
  padding: 64px 0;
}

.stat-inner { text-align: center; }

.stat-figure { font-family: var(--font-display); line-height: 1; margin-bottom: 20px; }
.stat-num { font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 800; letter-spacing: 0.01em; }
.stat-unit { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-left: 6px; }

.stat-text { color: #cfd8d6; }
.stat-source { font-size: 0.72rem; color: #8fa09d; margin-top: 18px; }

/* ---------- セクション共通 ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700; line-height: 1.6;
  margin-bottom: 40px;
}

/* ---------- 課題共感 ---------- */

.empathy-grid {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: 40px; align-items: center;
}

.empathy-photo img {
  width: 100%; height: auto; display: block;
  border-radius: 10px; border: 1px solid var(--line);
}

.voice-list { display: flex; flex-direction: column; gap: 18px; }

.voice {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 8px; padding: 28px 24px;
}
.voice blockquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; line-height: 1.9; margin-bottom: 16px;
}
.voice figcaption { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- 使い方 ---------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step { padding: 8px 0; }

.step-figure img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 18px;
}

.step-label {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  color: var(--green); border: 1.5px solid var(--green);
  border-radius: 50%;
  width: 52px; height: 52px; line-height: 49px; text-align: center;
  font-size: 1rem;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- スタンス ---------- */

.stance-wrap { max-width: 720px; }

.stance-list { list-style: none; }
.stance-list li {
  padding: 24px 0 24px 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
.stance-list li:first-child { border-top: 1px solid var(--line); }
.stance-list li::before {
  content: "";
  position: absolute; left: 4px; top: 34px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
}
.stance-list strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 1.05rem; }

/* ---------- 登録フォーム ---------- */

.section-register { background: var(--ink); color: #fff; }

.register-wrap { max-width: 620px; text-align: center; }

.section-register h2 { color: #fff; margin-bottom: 12px; }
.register-lead { color: #cfd8d6; margin-bottom: 36px; }

.form-row { display: flex; gap: 10px; }

.form-row input[type="email"] {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid #5a6d6a; border-radius: 4px;
  background: #223438; color: #fff;
}
.form-row input[type="email"]::placeholder { color: #8fa09d; }
.form-row input[type="email"]:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }

.section-register .btn-primary { background: #fff; color: var(--ink); white-space: nowrap; }

#hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-message { min-height: 1.8em; margin-top: 14px; font-weight: 700; font-size: 0.9rem; }
.form-message.ok { color: #7fd4b8; }
.form-message.ng { color: #f2a08f; }

.form-note { font-size: 0.75rem; color: #8fa09d; margin-top: 8px; }

/* ---------- フッター ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--ink-soft);
}

.footer-logotype {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--ink); margin-bottom: 20px;
}

.footer-disclaimer p { margin-bottom: 8px; max-width: 760px; }
.footer-contact { margin-top: 20px; }
.footer-copy { margin-top: 8px; }

/* ---------- スクロール表示アニメーション ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 860px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }

  .empathy-grid, .steps { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }

  .form-row { flex-direction: column; }
  .section-register .btn-primary { width: 100%; }

  .map-grid { grid-template-columns: 52px repeat(5, 1fr); font-size: 0.6rem; }
  .chip { font-size: 0.55rem; padding: 1px 3px; }
}
