:root {
  --bg-a: #0e2a2c;
  --bg-b: #163838;
  --bg-c: #1b3f40;
  --text: #e8e2d2;
  --muted: rgba(232, 226, 210, 0.68);
  --faint: rgba(232, 226, 210, 0.18);
  --gold: #c9a86a;
  --water: #a8c8c8;
  --max: 480px;
  --font-hero: clamp(22px, 6vw, 25px);
  --font-sub: 15px;
  --font-body: 16px;
  --font-question: 18px;
  --font-choice: 15.5px;
  --font-result-headline: 19.5px;
  --font-story: 15px;
  --font-voice: 14.5px;
  --font-cta: 17px;
  --font-footer: 12.5px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(168, 200, 200, 0.1), transparent 24rem),
    linear-gradient(180deg, var(--bg-a), var(--bg-b) 52%, #123132);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: var(--font-body);
  line-height: 1.9;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 168, 106, 0.09), transparent 0.22rem),
    radial-gradient(circle at 82% 34%, rgba(201, 168, 106, 0.07), transparent 0.18rem),
    radial-gradient(circle at 29% 78%, rgba(201, 168, 106, 0.06), transparent 0.16rem);
}

body::after {
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 8%, rgba(168, 200, 200, 0.035) 9%, transparent 11%),
    linear-gradient(105deg, transparent 26%, rgba(168, 200, 200, 0.03) 27%, transparent 30%),
    linear-gradient(118deg, transparent 58%, rgba(168, 200, 200, 0.026) 59%, transparent 62%);
}

a,
button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 4px;
}

p,
h1 {
  margin: 0;
}

.water {
  position: fixed;
  inset: -20vh -18vw;
  z-index: -4;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(168, 200, 200, 0.13), transparent 42%),
    repeating-radial-gradient(ellipse at 50% 44%, rgba(232, 226, 210, 0.055) 0 1px, transparent 1px 34px),
    linear-gradient(145deg, #0e2a2c, #143738 54%, #102f31);
  filter: blur(0.2px);
  animation: waterMove 14s ease-in-out infinite alternate;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 2px;
  opacity: 0;
  background: rgba(168, 200, 200, 0.12);
  transition: opacity 0.4s ease;
}

.progress.is-visible {
  opacity: 0.5;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--water);
  transition: width 0.45s ease;
}

.page {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 12vh 28px;
  text-align: center;
}

.hero__inner {
  width: 100%;
}

.hero h1 {
  font-size: var(--font-hero);
  line-height: 1.95;
  font-weight: 400;
}

.hero p {
  margin-top: 42px;
  color: var(--muted);
  font-size: var(--font-sub);
  line-height: 1.95;
}

.scroll-mark {
  position: absolute;
  bottom: 28px;
  left: 50%;
  color: rgba(201, 168, 106, 0.7);
  font-size: 15px;
  transform: translateX(-50%);
}

.stream {
  padding: 24px 28px 78px;
}

.plain {
  margin-bottom: 34px;
}

.empathy {
  display: grid;
  gap: 24px;
  margin: 0 0 58px;
  font-size: var(--font-body);
  color: rgba(232, 226, 210, 0.76);
}

.bridge {
  display: grid;
  gap: 28px;
  margin: 0 0 26px;
  font-size: var(--font-body);
}

.questions {
  margin: 0;
}

.question {
  min-height: 96svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 0;
}

.question__text {
  margin-bottom: 32px;
  font-size: var(--font-question);
  line-height: 1.9;
}

.choices {
  display: grid;
  gap: 12px;
}

.choices button {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 168, 106, 0.48);
  border-radius: 5px;
  color: rgba(232, 226, 210, 0.9);
  background: rgba(14, 42, 44, 0.16);
  font-size: var(--font-choice);
  text-align: left;
  cursor: pointer;
}

.choices button[disabled] {
  cursor: default;
  opacity: 0.52;
}

.choices button.is-selected {
  color: var(--text);
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.08);
  box-shadow: 0 0 0 1px rgba(201, 168, 106, 0.16), 0 8px 22px -10px rgba(201, 168, 106, 0.12);
  opacity: 1;
  animation: choiceGlow 0.72s ease-out;
  transition: box-shadow 0.6s ease, background 0.6s ease, color 0.6s ease;
}

.choices button::before,
.choices button::after {
  content: "";
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.choices button::before {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(168, 200, 200, 0.55);
}

.choices button::after {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(201, 168, 106, 0.72);
}

.choices button.is-rippling::before {
  animation: tapRippleInner 0.7s ease-out 0.18s;
}

.choices button.is-rippling::after {
  animation: tapRipple 0.6s ease-out;
}

.result {
  min-height: 82svh;
  padding: 28px 0 82px;
  opacity: 0;
  transform: translateY(12px);
}

.result.is-visible {
  animation: resultBloom 1.2s ease-out forwards;
}

.thanks {
  margin-bottom: 48px;
  color: var(--muted);
}

.result__copy {
  white-space: pre-line;
  color: rgba(232, 226, 210, 0.9);
  font-size: var(--font-body);
}

.type-headline {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-size: var(--font-result-headline);
}

.type-body {
  display: block;
  white-space: pre-line;
  color: rgba(232, 226, 210, 0.9);
  font-size: var(--font-body);
}

.after-result {
  padding-bottom: 28px;
}

.story-talk {
  margin: 46px 0 70px;
}

.story-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.story-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(168, 200, 200, 0.06);
}

.story-name {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.story-thread {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 22px;
  color: rgba(232, 226, 210, 0.78);
  font-size: var(--font-story);
  line-height: 1.95;
}

.story-thread::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 12px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(201, 168, 106, 0.5),
    rgba(201, 168, 106, 0.1) 80%,
    transparent
  );
}

.story-thread p {
  margin: 0;
}

.numbers {
  display: grid;
  gap: 24px;
  margin-bottom: 62px;
  font-size: var(--font-body);
  color: rgba(232, 226, 210, 0.86);
}

.voices {
  display: grid;
  gap: 16px;
  margin: -28px 0 56px;
}

.voices-lead {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.voice-card {
  padding: 18px 18px 20px;
  border-left: 1px solid rgba(201, 168, 106, 0.45);
  border-radius: 0 4px 4px 0;
  background: rgba(168, 200, 200, 0.04);
}

.voice-meta {
  display: block;
  margin-bottom: 8px;
  color: rgba(232, 226, 210, 0.55);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.voice-card p {
  margin: 0;
  color: rgba(232, 226, 210, 0.82);
  font-size: var(--font-voice);
  line-height: 1.95;
}

.cta {
  display: grid;
  gap: 24px;
  margin-top: 18px;
  padding-bottom: 26px;
  font-size: var(--font-cta);
}

.line-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 14px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: #d7bd82;
  background: transparent;
  text-decoration: none;
}

.cta-note {
  margin-top: -16px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.sub-cta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: rgba(232, 226, 210, 0.58);
  font-size: 14px;
}

.sub-cta a {
  width: fit-content;
  color: rgba(232, 226, 210, 0.76);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 106, 0.48);
}

.footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 32px 28px 42px;
  color: rgba(232, 226, 210, 0.52);
  font-size: var(--font-footer);
  text-align: center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 10px;
  margin-top: 6px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a + a::before {
  content: "・";
  margin-right: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes waterMove {
  from {
    transform: translate3d(-1.6%, -0.8%, 0) scale(1.02);
  }
  to {
    transform: translate3d(1.4%, 1%, 0) scale(1.04);
  }
}

@keyframes tapRipple {
  0% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes choiceGlow {
  0% {
    box-shadow: 0 0 0 1px rgba(201, 168, 106, 0.55), 0 8px 22px -10px rgba(201, 168, 106, 0.45);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(201, 168, 106, 0.16), 0 8px 22px -10px rgba(201, 168, 106, 0.12);
  }
}

@keyframes tapRippleInner {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(14);
  }
}

@keyframes resultBloom {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: brightness(1);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .result {
    opacity: 1;
    transform: none;
  }
}
