:root {
  --paper: #f7f2ea;
  --paper-2: #efe7da;
  --card: #fffdf9;
  --ink: #1f2a44;          /* ai-iro indigo */
  --ink-soft: #4a5570;
  --muted: #7d8497;
  --shu: #c8402d;          /* torii vermilion */
  --shu-dark: #a8321f;
  --sakura: #f2c6c9;
  --sakura-soft: #fbe9ea;
  --matcha: #7f9a6b;
  --line: #e3d9c9;
  --shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 8px 24px rgba(31, 42, 68, .07);
  --radius: 14px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --jp: 'Noto Serif JP', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.icon { width: 100%; height: 100%; }

.demo-banner {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 13px; padding: 8px 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  padding: 15px 28px; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary { background: var(--shu); color: #fff; box-shadow: 0 6px 18px rgba(200, 64, 45, .28); }
.btn-primary:hover { background: var(--shu-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 780px); display: grid; place-items: center;
  text-align: center; padding: 80px 20px 120px;
  background:
    radial-gradient(1200px 500px at 50% 120%, var(--sakura-soft), transparent 60%),
    linear-gradient(180deg, #fbf7f1 0%, var(--paper) 100%);
}
.sun {
  position: absolute; width: min(520px, 80vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #dd5a45, var(--shu) 60%);
  top: 50%; left: 50%; transform: translate(-50%, -56%);
  opacity: .1;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: 12px; font-weight: 600;
  color: var(--shu); margin: 0 0 18px;
}
.names { font-size: clamp(46px, 12vw, 120px); font-weight: 400; letter-spacing: -.01em; }
.amp { font-style: italic; color: var(--shu); font-weight: 400; }
.jp { font-family: var(--jp); letter-spacing: .4em; color: var(--ink-soft); margin: 18px 0 6px; font-size: 15px; }
.lede { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); font-style: italic; color: var(--ink-soft); margin: 0 0 8px; }
.date { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.hero .btn { margin-top: 28px; }
.waves { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--paper); }

.petals { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute; top: -20px; width: 12px; height: 10px;
  background: var(--sakura); border-radius: 12px 0 12px 0; opacity: .85;
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translate(var(--drift), 105vh) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) { .petals { display: none; } html { scroll-behavior: auto; } }

/* ---------- intro ---------- */
.intro { text-align: center; max-width: 720px; padding-top: 24px; padding-bottom: 56px; }
.intro p { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.55; color: var(--ink-soft); margin: 0; }
.totals { display: flex; justify-content: center; gap: 48px; margin-top: 36px; flex-wrap: wrap; }
.totals div { text-align: center; }
.totals strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 500; color: var(--ink); }
.totals span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- section titles ---------- */
.section-title { font-size: clamp(34px, 5vw, 48px); text-align: center; margin-bottom: 12px; }
.section-title::after {
  content: ''; display: block; width: 36px; height: 2px; background: var(--shu); margin: 16px auto 0;
}
.section-sub { text-align: center; color: var(--ink-soft); margin: 0 auto 32px; max-width: 560px; }

/* ---------- route ---------- */
.route-section { padding-bottom: 72px; }
.route {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); position: relative;
}
.route::before {
  content: ''; position: absolute; top: 27px; left: 10%; right: 10%;
  border-top: 2px dashed var(--line);
}
.route li { text-align: center; position: relative; padding: 0 6px; }
.route .stop {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 1px solid var(--line);
  font-family: var(--jp); font-size: 16px; color: var(--shu); box-shadow: var(--shadow);
}
.route h3 { font-size: 22px; }
.route p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- gifts ---------- */
.gifts-section { background: var(--paper-2); padding: 80px 0 96px; scroll-margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filter {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 16px; font: 500 14px var(--sans); cursor: pointer;
}
.filter[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid transparent; transition: transform .2s, border-color .2s;
  animation: rise .4s ease both;
}
.card:hover { transform: translateY(-3px); border-color: var(--line); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-icon {
  flex: none; width: 52px; height: 52px; padding: 12px; border-radius: 50%;
  background: var(--sakura-soft); color: var(--shu);
}
.card .loc { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.card h3 { font-size: 25px; }
.card .desc { margin: 0; color: var(--ink-soft); font-size: 15px; flex: 1; }

.progress { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sakura), var(--shu)); border-radius: inherit; transition: width .8s ease; }
.stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.stats strong { color: var(--ink); font-weight: 600; }

.units { display: flex; gap: 6px; flex-wrap: wrap; }
.unit-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--shu); }
.unit-dot.filled { background: var(--shu); }

.card .btn { margin-top: 4px; }
.card.done { opacity: .8; }
.card.done .card-icon { background: #e7efe1; color: var(--matcha); }
.badge-done {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--matcha); background: #e7efe1; border-radius: 999px; padding: 4px 10px; align-self: flex-start;
}
.card.featured { border: 1px dashed var(--shu); }

/* ---------- how ---------- */
.how { padding: 88px 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.step { text-align: center; padding: 0 12px; }
.step .num { font-family: var(--jp); color: var(--shu); font-size: 28px; display: block; margin-bottom: 8px; }
.step h3 { font-size: 26px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- messages ---------- */
.messages-section { padding-bottom: 96px; }
.messages { columns: 3 280px; column-gap: 20px; margin-top: 36px; }
.note {
  break-inside: avoid; background: var(--card); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow);
  border-top: 3px solid var(--sakura);
}
.note p { margin: 0 0 12px; font-family: var(--serif); font-size: 19px; line-height: 1.45; }
.note footer { font-size: 13px; color: var(--muted); }
.note footer strong { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 48px 20px 56px; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }
.footer a { color: var(--shu); }
.footer-names { font-family: var(--serif); font-size: 24px; }

/* ---------- modal ---------- */
.modal {
  border: 0; padding: 0; border-radius: 18px; width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px rgba(31, 42, 68, .3);
}
.modal::backdrop { background: rgba(31, 42, 68, .45); backdrop-filter: blur(3px); }
.modal form { padding: 28px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 8px;
  border: 0; background: transparent; color: var(--muted); border-radius: 50%; cursor: pointer;
}
.close:hover { background: var(--paper); color: var(--ink); }
.m-head { display: flex; gap: 14px; align-items: center; padding-right: 36px; }
.m-icon { flex: none; width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--sakura-soft); color: var(--shu); }
.m-loc { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.modal h3 { font-size: 28px; }
.m-desc { margin: 0; color: var(--ink-soft); font-size: 15px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend, .field > span { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: block; padding: 0; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 12px 0;
  font: 600 16px var(--sans); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--shu); background: var(--sakura-soft); color: var(--shu-dark); }
.custom { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.custom:focus-within { border-color: var(--shu); }
.custom .cur { padding: 0 4px 0 14px; color: var(--muted); }
.custom input { border: 0; background: transparent; outline: 0; }

.field { display: block; }
input[type=text], input[type=number], input[type=password], input[type=search], textarea {
  width: 100%; font: 16px var(--sans); color: var(--ink);
  border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: 0; border-color: var(--shu); }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--shu); }

.qty { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); font-size: 22px; color: var(--ink); cursor: pointer;
}
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty output { font: 500 32px var(--serif); min-width: 28px; text-align: center; }
.qty-total { margin-left: auto; font-weight: 600; font-size: 18px; }

.error { margin: 0; color: var(--shu-dark); background: var(--sakura-soft); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.fine { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- thanks page ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.thanks .card { max-width: 520px; align-items: center; padding: 48px 36px; }
.thanks .card-icon { width: 72px; height: 72px; padding: 18px; }
.thanks h1 { font-size: 48px; }
.thanks p { margin: 0; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; gap: 18px; max-width: 360px; margin-inline: auto; }
  .route::before { top: 28px; bottom: 28px; left: 28px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .route li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; align-items: center; padding: 0; }
  .route .stop { margin: 0; grid-row: span 2; }
  .route p { margin: 0; }
  .steps { grid-template-columns: 1fr; }
  .totals { gap: 28px; }
  .hero { min-height: min(78vh, 640px); }
}
