/* =========================================================
   GLADD Onboarding LP — shared styles
   Design brief (2026-07-10 mtg): standard top-to-bottom,
   single column flow, mobile-first, 40代以上が読みやすい。
   Responsive: prose stays a readable measure; card/stat/reason
   rows become multi-column grids on tablet / PC.
   Brand: #D8273C (GLADD red) + white.
   ========================================================= */

:root {
  --red:        #D8273C;
  --red-deep:   #B01F30;
  --maroon:     #5C1A2E;
  --ink:        #241C1D;
  --ink-soft:   #6B5F61;
  --bg:         #FFFFFF;
  --tint:       #FCF2F3;
  --line:       #F0E1E3;
  --radius:     16px;
  --wrap:       1040px;   /* wide outer container */
  --prose:      34em;     /* readable text measure */
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* overall column */
.page { width: 100%; overflow-x: hidden; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}
/* prose helper: keeps text at a comfortable measure, centered as a block */
.measure { max-width: var(--prose); margin-inline: auto; }

/* ---------------- site header ---------------- */
.site-header {
  text-align: center;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-block;
  font-size: 26px; font-weight: 800; letter-spacing: .22em;
  color: var(--red); text-decoration: none; padding-left: .22em;
}
.brand-sub { margin: 4px 0 0; font-size: 11px; letter-spacing: .18em; color: var(--ink-soft); }

/* ---------------- hero (key visual + overlaid title) ---------------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff; text-align: center;
  min-height: clamp(430px, 64vh, 560px);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 22px;
}
/* KV layer — swap the gradient for a real image:
   set inline  style="background-image:url('kv-day0.jpg')"  on this .kv element */
.hero .kv {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #E5334A 0%, #C22235 52%, #5C1A2E 100%);
  background-size: cover; background-position: center;
}
/* legibility scrim so the title stays readable over any photo */
.hero .kv::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,16,20,.28) 0%, rgba(140,24,40,.52) 100%);
}
.hero--deep .kv { background: linear-gradient(135deg, #7A2038 0%, #5C1A2E 60%, #3A1020 100%); }
.hero--deep .kv::after { background: linear-gradient(180deg, rgba(18,8,12,.42) 0%, rgba(60,16,32,.68) 100%); }

.kv-tag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  background: rgba(255,255,255,.86); color: var(--red);
  padding: 4px 10px; border-radius: 999px;
}

.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { margin: 0 0 18px; font-size: 13px; letter-spacing: .16em; opacity: .95; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.hero h1 {
  margin: 0;
  font-size: clamp(27px, 4.6vw, 42px);
  line-height: 1.5; font-weight: 800; letter-spacing: .01em;
  text-shadow: 0 2px 16px rgba(0,0,0,.30);
}
.hero .lead {
  margin: 22px auto 0; max-width: 32em;
  font-size: clamp(15px, 1.6vw, 18px); line-height: 2.0; opacity: .98;
  text-shadow: 0 1px 12px rgba(0,0,0,.28);
}
.hero .answer { display: block; margin-top: 18px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,.30); }
.hero .answer .soft { display: block; margin-top: 10px; font-size: 17px; font-weight: 500; opacity: .88; }

/* ---------------- sections ---------------- */
section { padding: 46px 0; }
.band-tint { background: var(--tint); }

.section-title {
  margin: 0 0 6px; font-weight: 800; line-height: 1.5; color: var(--ink);
  font-size: clamp(21px, 2.7vw, 29px);
}
.section-title .accent { color: var(--red); }
.section-note { margin: 0 0 28px; font-size: clamp(14px, 1.4vw, 16px); color: var(--ink-soft); }

p.body { margin: 0 0 1.1em; max-width: var(--prose); margin-inline: auto; }
p.body:last-child { margin-bottom: 0; }
.center { text-align: center; }
.strong-line { font-weight: 700; }

.statement {
  font-size: clamp(18px, 2.2vw, 23px); font-weight: 700; line-height: 1.8;
  text-align: center; margin: 0 auto; max-width: 26em;
}
.statement .em { color: var(--red); }

/* ---------------- image slots (prototype placeholders) ---------------- */
.figure { margin: 0 auto; max-width: 860px; }
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FCEBED 0%, #F6D5DA 100%);
  color: var(--red); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 3 / 2; text-align: center; padding: 22px;
  font-size: 14px; font-weight: 800; letter-spacing: .02em;
}
.ph small { display: block; margin-top: 6px; font-weight: 500; color: var(--ink-soft); font-size: 12.5px; }
.ph--hero { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 4 / 5; }
/* when a real image replaces the slot: <img class="shot"> */
.shot { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------------- responsive grids ---------------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

/* stats */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center;
}
.stat .num { font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: var(--red); line-height: 1.12; }
.stat .num small { font-size: .5em; font-weight: 700; }
.stat .label { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }

/* steps */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
.step {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.step .n {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step .t { font-size: 16px; font-weight: 700; }

/* reasons */
.reasons { display: grid; gap: 18px; grid-template-columns: 1fr; }
.reason { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.reason .icon { font-size: 30px; line-height: 1; }
.reason h3 { margin: 12px 0 8px; font-size: 18px; font-weight: 800; color: var(--ink); }
.reason p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.9; }

/* tools */
.tools { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.tool .tag {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--red); background: var(--tint); border-radius: 999px; padding: 4px 14px; margin-bottom: 12px;
}
.tool h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.tool p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.9; }
.tool .fn { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--red); font-weight: 700; }

/* story cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 8px 26px rgba(216,39,60,.12); transform: translateY(-2px); }
.card .kicker { font-size: 12px; letter-spacing: .12em; color: var(--red); font-weight: 800; }
.card h3 { margin: 8px 0 6px; font-size: 20px; font-weight: 800; }
.card p { margin: 0 0 14px; font-size: 15px; color: var(--ink-soft); }
.card .go { font-size: 15px; font-weight: 800; color: var(--red); }

/* tips box */
.tips {
  background: var(--tint); border: 1px solid var(--line); border-left: 5px solid var(--red);
  border-radius: 12px; padding: 22px 22px; max-width: 720px; margin-inline: auto;
}
.tips .h { font-size: 15px; font-weight: 800; color: var(--red); margin: 0 0 8px; }
.tips p { margin: 0; font-size: 15.5px; line-height: 1.9; }

/* ---------------- CTA ---------------- */
.cta-block { text-align: center; padding: 8px 0 4px; }
.cta {
  display: block; width: 100%; max-width: 440px; margin: 0 auto;
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 18px; font-weight: 800; line-height: 1.4; padding: 20px 24px;
  border-radius: 999px; box-shadow: 0 8px 22px rgba(216,39,60,.28); transition: background .18s ease;
}
.cta:hover { background: var(--red-deep); }
.cta-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }

/* coupon reminder */
.coupon {
  margin: 8px auto 0; max-width: 460px; border: 1.5px dashed var(--red); border-radius: 12px;
  padding: 14px 18px; text-align: center; font-size: 14px; color: var(--ink); background: #fff;
}
.coupon strong { color: var(--red); }

/* day navigation */
.daynav {
  border-top: 1px solid var(--line); padding: 22px 0 8px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.daynav a, .daynav span {
  font-size: 13.5px; text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; white-space: nowrap;
}
.daynav a:hover { color: var(--red); border-color: var(--red); }
.daynav .cur { color: #fff; background: var(--red); border-color: var(--red); font-weight: 700; }

/* footer */
.site-footer { text-align: center; padding: 30px 0 40px; color: var(--ink-soft); font-size: 12px; }
.site-footer .fbrand { font-size: 18px; font-weight: 800; letter-spacing: .2em; color: var(--red); padding-left: .2em; }

/* ---------------- treasure map (Day0 hub navigation) ---------------- */
.map { max-width: 640px; margin: 0 auto; }
.trail { position: relative; padding: 4px 0; }
.trail::before {
  content: ""; position: absolute; top: 30px; bottom: 30px; left: 27px;
  border-left: 3px dashed rgba(216,39,60,.42);
}
.spot {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 11px 0; text-decoration: none; color: inherit;
}
.spot .pin {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 7px var(--tint); z-index: 1;
}
.spot-card {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 20px; transition: box-shadow .18s ease, transform .18s ease;
}
a.spot:hover .spot-card { box-shadow: 0 8px 26px rgba(216,39,60,.14); transform: translateX(3px); }
.spot-card .kicker { font-size: 11.5px; letter-spacing: .1em; color: var(--red); font-weight: 800; }
.spot-card h3 { margin: 5px 0 4px; font-size: 18px; font-weight: 800; }
.spot-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.spot-card .go { display: inline-block; margin-top: 9px; font-size: 14px; font-weight: 800; color: var(--red); }
.spot-card .badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 11px; border-radius: 999px; background: var(--tint); color: var(--red);
}
/* start (現在地) & goal (宝) markers */
.spot--start .pin, .spot--goal .pin { background: var(--maroon); font-size: 20px; }
.spot--start .spot-card, .spot--goal .spot-card {
  border-style: dashed; border-color: rgba(216,39,60,.4); background: transparent;
}
.spot--start .spot-card h3, .spot--goal .spot-card h3 { color: var(--maroon); }
/* locked / coming soon */
.spot--locked .pin { background: #E4CFD2; }
.spot--locked .spot-card { opacity: .72; }
.spot--locked .spot-card .badge { background: #EFE2E4; color: var(--ink-soft); }

/* =========================================================
   RESPONSIVE — tablet & desktop
   ========================================================= */
@media (min-width: 720px) {
  section { padding: 60px 0; }
  .hero { min-height: clamp(500px, 62vh, 600px); }
  .stats   { grid-template-columns: repeat(3, 1fr); }
  .steps   { grid-template-columns: repeat(3, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .tools   { grid-template-columns: repeat(3, 1fr); }
  .cards   { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  section { padding: 72px 0; }
  .hero { min-height: clamp(560px, 66vh, 660px); }
  /* Day1 has 4 reasons → 4 across; Day0 has 3 → auto balances via minmax */
  .reasons { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .section-note { margin-bottom: 34px; }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
}
