:root {
  --ink: #3f3546;
  --muted: #756a78;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --lavender: #8e779d;
  --lavender-deep: #66516f;
  --lavender-pale: #eee6f1;
  --gold: #b9914f;
  --line: rgba(90, 69, 96, 0.16);
  --shadow: 0 18px 60px rgba(72, 54, 76, 0.12);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100vh;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(255, 255, 255, 0.9), transparent 31rem),
    linear-gradient(155deg, #faf6ef 0%, #f4edf5 52%, #f7f1e8);
  line-height: 1.8;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(185, 145, 79, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::after {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgba(142, 119, 157, 0.14);
  border-radius: inherit;
}

.ambient-one { top: -10rem; right: -8rem; }
.ambient-two { bottom: -13rem; left: -11rem; }

.app-shell {
  width: auto;
  max-width: 620px;
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px 44px;
}

.screen { animation: screen-in 0.55s ease both; }

.welcome-screen {
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 0 12px;
  text-align: center;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 46% 54%;
  transform: rotate(45deg);
}

.brand-mark span {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(142, 119, 157, 0.65);
  border-radius: 52% 48% 50% 50%;
}

.eyebrow, .result-kicker {
  margin: 0 0 12px;
  color: var(--lavender-deep);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.welcome-screen h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.8rem, 13vw, 4.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.welcome-screen h1 span { color: var(--lavender-deep); }

.welcome-lead {
  margin: 28px 0 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.02rem;
  line-height: 2;
}

.welcome-note {
  max-width: 34rem;
  margin: 14px 16px 30px;
  color: var(--muted);
  font-size: 0.83rem;
}

.primary-button {
  align-self: stretch;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 14px 24px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--lavender-deep), #8e779d);
  box-shadow: 0 12px 30px rgba(102, 81, 111, 0.24);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-button small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.82;
}

.primary-button:active {
  transform: translateY(2px);
  box-shadow: 0 7px 18px rgba(102, 81, 111, 0.2);
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.question-screen {
  min-height: calc(100vh - 110px);
  padding-top: 6px;
}

.progress-header { margin-bottom: clamp(44px, 10vh, 76px); }

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}

.progress-copy span {
  color: var(--lavender-deep);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.progress-copy strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.95rem;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(102, 81, 111, 0.12);
}

.progress-track span {
  display: block;
  width: 10%;
  height: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--lavender));
  transition: width 0.35s ease;
}

.question-content {
  min-height: 480px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.question-content.is-entering { animation: question-in 0.32s ease both; }
.question-content.is-leaving { opacity: 0; transform: translateX(-10px); }

.question-number {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.question-content h2 {
  min-height: 5.7em;
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.3rem, 5.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.02em;
  outline: none;
}

.question-hint {
  margin: 10px 0 15px;
  color: var(--muted);
  font-size: 0.76rem;
}

.answer-list { display: grid; gap: 11px; }

.answer-button {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 5px 18px rgba(67, 51, 71, 0.045);
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.answer-button:hover, .answer-button:focus-visible {
  border-color: rgba(142, 119, 157, 0.6);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.answer-button.is-selected {
  border-color: var(--lavender);
  background: var(--lavender-pale);
}

.answer-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #efe1c4;
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
}

.back-button, .restart-button {
  display: block;
  margin: 28px auto 0;
  padding: 10px 14px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.result-screen {
  padding-top: 16px;
  text-align: center;
}

.result-banner {
  position: relative;
  overflow: hidden;
  padding: 36px 22px 34px;
  border: 1px solid rgba(185, 145, 79, 0.25);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,0.94), rgba(238,230,241,0.92));
  box-shadow: var(--shadow);
}

.result-banner::before, .result-banner::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(185, 145, 79, 0.22);
  border-radius: 50%;
}

.result-banner::before { width: 150px; height: 150px; top: -95px; right: -50px; }
.result-banner::after { width: 90px; height: 90px; bottom: -62px; left: -20px; }

.result-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
}

.result-banner p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.result-banner h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 9vw, 3.1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  outline: none;
}

.brake-theme { background: linear-gradient(150deg, #fffdf9, #eee5ed); }
.antenna-theme { background: linear-gradient(150deg, #fffdf9, #e5edef); }
.douse-theme { background: linear-gradient(150deg, #fffdf9, #eee6f1); }
.full-theme { background: linear-gradient(150deg, #fffdf9, #f1eadc); }

.result-body { text-align: left; }

.result-section {
  position: relative;
  padding: 50px 6px 44px;
  border-bottom: 1px solid var(--line);
}

.section-index {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.12em;
}

.result-section h2, .cta-card h2 {
  margin: 0 0 18px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.result-section > p:last-child, .cta-card > p {
  margin: 0;
  color: #574d59;
  font-size: 0.94rem;
  line-height: 2.05;
}

.truth-section {
  margin-top: 34px;
  padding: 36px 25px;
  border: 1px solid rgba(142, 119, 157, 0.18);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.72);
}

.cta-card {
  margin: 42px 0 24px;
  padding: 30px 24px 24px;
  border: 1px solid rgba(185, 145, 79, 0.32);
  border-radius: 22px;
  background: linear-gradient(150deg, #fffdf9, #f2eaf3);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-card .cta-button { margin-top: 23px; }

.share-button {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.disclaimer {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.75;
}

.site-footer {
  padding: 0 20px max(24px, env(safe-area-inset-bottom));
  color: rgba(63, 53, 70, 0.5);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes question-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (min-width: 640px) {
  .app-shell { padding-right: 36px; padding-left: 36px; }
  .primary-button { width: 100%; max-width: 420px; align-self: center; }
  .cta-button { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


