:root {
  --ivory: #fffaf7;
  --paper: #ffffff;
  --greige: #f3ece8;
  --rose-soft: #f8e7e8;
  --rose: #b85165;
  --rose-dark: #903b4d;
  --ink: #362d2d;
  --muted: #716565;
  --line: #e7dcd7;
  --shadow: 0 18px 50px rgba(82, 50, 51, 0.11);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-mark { color: var(--rose); font-size: 18px; }
.screen { min-height: 100svh; }
.screen[hidden] { display: none; }

.hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 92px 20px 54px;
  background:
    radial-gradient(circle at 12% 18%, rgba(184,81,101,.09), transparent 26%),
    radial-gradient(circle at 92% 76%, rgba(191,169,155,.16), transparent 28%),
    var(--ivory);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(184,81,101,.11);
  border-radius: 36px 8px 36px 8px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: min(100%, 620px); text-align: center; }
.eyebrow { margin: 0 0 22px; color: var(--rose-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow span { display: inline-block; padding: 5px 16px; border-top: 1px solid var(--rose); border-bottom: 1px solid var(--rose); }
.hero h1, .result-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 7.8vw, 52px);
  line-height: 1.5;
  letter-spacing: .04em;
}
.hero h1 span, .result-heading h1 { color: var(--rose-dark); }
.hero-copy { margin: 20px 0 25px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.benefits {
  display: inline-grid;
  gap: 7px;
  margin: 0 0 29px;
  padding: 17px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  list-style: none;
  text-align: left;
  box-shadow: 0 8px 26px rgba(92,64,58,.05);
}
.benefits li { font-size: 14px; font-weight: 600; }
.benefits span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 9px; border-radius: 50%; color: white; background: var(--rose); font-size: 11px; }
.primary-button, .line-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 62px;
  margin: 0 auto;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 12px 28px rgba(144,59,77,.25);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-button:hover, .line-button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(144,59,77,.30); }
.primary-button:focus-visible, .line-button:focus-visible, button:focus-visible { outline: 3px solid rgba(184,81,101,.3); outline-offset: 3px; }
.primary-button { position: relative; }
.button-arrow { position: absolute; right: 23px; font-size: 20px; }
.privacy-note, .external-note, .data-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.hero-decoration { position: absolute; border: 1px solid rgba(184,81,101,.12); border-radius: 50%; }
.hero-decoration-one { width: 200px; height: 200px; top: -86px; right: -68px; }
.hero-decoration-two { width: 130px; height: 130px; bottom: -42px; left: -48px; }

.quiz { display: grid; place-items: center; padding: 32px 18px; background: linear-gradient(160deg, #fffaf7 0%, #f6efeb 100%); }
.quiz-shell { width: min(100%, 660px); }
.progress-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.back-button { padding: 8px 5px; border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 14px; }
.progress-text { margin: 0; color: var(--rose-dark); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.progress-track { height: 6px; margin-bottom: 30px; overflow: hidden; border-radius: 10px; background: #e6d9d4; }
.progress-bar { width: 14.285%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #d98594); transition: width .32s ease; }
.question-card { padding: clamp(28px, 7vw, 50px); border: 1px solid rgba(184,81,101,.12); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.question-card.is-entering { animation: cardIn .3s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.question-number { margin: 0 0 14px; color: var(--rose); font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.question-card h2 { min-height: 3.4em; margin: 0 0 26px; font-family: var(--serif); font-size: clamp(21px, 5.2vw, 28px); line-height: 1.7; }
.answer-list { display: grid; gap: 12px; }
.answer-button {
  position: relative;
  width: 100%;
  min-height: 62px;
  padding: 15px 45px 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fffdfc;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.answer-button::after { content: "›"; position: absolute; top: 50%; right: 18px; color: var(--rose); font-size: 25px; transform: translateY(-53%); }
.answer-button:hover { border-color: var(--rose); background: var(--rose-soft); transform: translateX(2px); }
.answer-button.is-selected { border-color: var(--rose); background: var(--rose-soft); }
.answer-hint { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.result { padding: 58px 18px; background: linear-gradient(180deg, #fffaf7, #f7f0ec 45%, #fffaf7); }
.result-shell { width: min(100%, 720px); margin: 0 auto; }
.result-heading { text-align: center; }
.result-heading .eyebrow { margin-bottom: 13px; }
.result-lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.result-icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 15px; border-radius: 50%; color: var(--rose-dark); background: var(--rose-soft); font-family: var(--serif); font-size: 32px; box-shadow: inset 0 0 0 7px white, 0 8px 24px rgba(144,59,77,.13); }
.result-heading h1 { font-size: clamp(27px, 6vw, 38px); line-height: 1.5; }
.result-description { max-width: 590px; margin: 15px auto 30px; color: var(--muted); font-size: 15px; }
.result-details { display: grid; gap: 13px; }
.detail-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(77,54,50,.05); }
.detail-label { margin-bottom: 9px; color: var(--rose-dark); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.detail-card p { margin: 0; font-size: 14px; }
.detail-card ul { display: grid; gap: 5px; margin: 0; padding-left: 1.4em; font-size: 14px; }
.detail-card li::marker { color: var(--rose); }
.first-step-card { border-color: rgba(184,81,101,.25); background: #fff9f8; }
.keyword-card { margin: 20px 0 38px; padding: 24px 18px; border: 1px dashed var(--rose); border-radius: 16px; background: white; text-align: center; }
.keyword-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.keyword { margin: 0 0 15px; color: var(--rose-dark); font-family: var(--serif); font-size: clamp(17px, 4.5vw, 22px); font-weight: 700; }
.copy-button { padding: 10px 17px; border: 1px solid var(--rose); border-radius: 999px; color: var(--rose-dark); background: white; cursor: pointer; font-size: 13px; font-weight: 700; }
.copy-status { min-height: 1.8em; margin: 5px 0 -6px; color: var(--rose-dark); font-size: 12px; }
.gift-section { padding: clamp(28px, 7vw, 48px) clamp(20px, 6vw, 45px); border-radius: 24px; color: var(--ink); background: #efe5e0; text-align: center; }
.gift-kicker { display: inline-block; margin: 0 0 10px; padding: 3px 13px; border-radius: 20px; color: white; background: var(--rose-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.gift-section h2 { margin: 0 0 23px; font-family: var(--serif); font-size: clamp(21px, 5vw, 29px); line-height: 1.65; }
.gift-section h2 span { color: var(--rose-dark); }
.gift-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; text-align: left; }
.gift-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.8); }
.gift-list span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--rose); font-family: var(--serif); font-weight: 700; }
.gift-list p { margin: 0; font-size: 13px; font-weight: 600; }
.gift-guide { margin: 22px 0; font-size: 13px; }
.line-button { gap: 12px; width: 100%; max-width: 500px; background: linear-gradient(135deg, #b74b61, #91384a); font-size: 14px; }
.line-bubble { font-size: 10px; font-weight: 700; }
.external-note { margin-top: 8px; }
.retry-button { display: block; margin: 28px auto 0; padding: 11px 20px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.data-note { text-align: center; }
footer { padding: 20px; color: #8c7f7c; background: #f4ebe7; text-align: center; font-family: var(--serif); font-size: 12px; letter-spacing: .08em; }

@media (min-width: 700px) {
  .site-header { padding: 25px 38px; }
  .hero { padding-top: 105px; }
  .benefits { grid-auto-flow: column; gap: 22px; }
  .question-card { border-radius: 28px; }
  .result-details { grid-template-columns: 1fr 1fr; }
  .first-step-card { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .hero::before { inset: 12px; }
  .hero { padding-inline: 16px; }
  .hero h1 { font-size: 28px; }
  .question-card { padding: 25px 18px; }
  .question-card h2 { font-size: 20px; }
  .answer-button { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
