:root {
  color-scheme: light;
  --ink: #163a3a;
  --muted: #607575;
  --brand: #287f78;
  --brand-dark: #1f6863;
  --brand-soft: #e7f4f1;
  --coral: #e98972;
  --coral-soft: #fff0eb;
  --sand: #f4eadb;
  --white: #ffffff;
  --line: #dce9e6;
  --shadow: 0 24px 60px rgba(30, 88, 83, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 5%, rgba(143, 211, 202, 0.22), transparent 32rem),
    linear-gradient(180deg, #f8fcfb 0%, #fbf8f2 100%);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: 6%;
  right: -7rem;
  width: 20rem;
  height: 20rem;
  background: rgba(235, 164, 140, 0.12);
}

.ambient-two {
  bottom: 5%;
  left: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(85, 172, 162, 0.1);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: white;
}

.header-note {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

main {
  width: min(100% - 28px, 680px);
  margin: 10px auto 36px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(218, 233, 230, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(36px, 7vw, 62px) clamp(22px, 7vw, 58px) 34px;
  text-align: center;
}

.hero::before {
  position: absolute;
  top: -95px;
  right: -80px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(40, 127, 120, 0.07);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 9vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.28;
}

h1 span {
  position: relative;
  color: var(--brand);
  white-space: nowrap;
}

h1 span::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  z-index: -1;
  height: 10px;
  border-radius: 99px;
  background: rgba(233, 137, 114, 0.23);
  content: "";
}

.hero-copy {
  max-width: 500px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 auto 30px;
}

.feature {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdfc;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
}

.feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 18px;
  background: var(--brand);
  box-shadow: 0 13px 28px rgba(40, 127, 120, 0.22);
  color: white;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: var(--brand-dark);
  box-shadow: 0 15px 30px rgba(40, 127, 120, 0.27);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(1px);
}

.privacy-note {
  margin: 14px 0 0;
  color: #78908e;
  font-size: 0.7rem;
}

.quiz-panel {
  min-height: 610px;
  padding: 24px clamp(20px, 6vw, 46px) 42px;
}

.quiz-topline {
  display: grid;
  grid-template-columns: 44px 1fr 62px;
  align-items: center;
}

.icon-button,
.text-button,
.restart-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  font-size: 1.2rem;
}

.icon-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.text-button {
  padding: 10px 0;
  font-size: 0.72rem;
}

.progress-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-copy span:first-child {
  color: var(--brand);
  font-size: 1.05rem;
}

.progress-track {
  height: 5px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf3f1;
}

.progress-bar {
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #64b7ad);
  transition: width 280ms ease;
}

.question-area {
  padding-top: 44px;
}

.question-kicker {
  margin-bottom: 9px;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.question-area h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 5.7vw, 1.82rem);
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.question-hint {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.options {
  display: grid;
  gap: 11px;
}

.option-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 14px 46px 14px 14px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border 150ms ease, background 150ms ease, transform 150ms ease;
}

.option-button::after {
  position: absolute;
  right: 17px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #bfd2cf;
  border-radius: 50%;
  content: "";
}

.option-button:hover,
.option-button:focus-visible {
  border-color: #84bcb6;
  background: #f7fcfb;
  outline: none;
  transform: translateY(-1px);
}

.option-button[aria-checked="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.option-button[aria-checked="true"]::after {
  border: 5px solid var(--brand);
  background: white;
}

.option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #f0f6f4;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
}

.option-text {
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.55;
}

.result-panel {
  padding: clamp(28px, 6vw, 48px) clamp(20px, 6vw, 46px) 34px;
}

.result-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}

.result-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 0.7rem;
}

.result-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 5vw, 1.55rem);
  line-height: 1.5;
}

.result-seal {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #acd1cc;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.primary-result {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 25px;
  border-radius: 24px;
  background: linear-gradient(145deg, #1f746e, #318e86);
  color: white;
}

.primary-result::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.result-rank {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: #bce8e3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.result-name-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.result-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.3rem;
}

.result-name-row h3 {
  margin-bottom: 2px;
  font-size: 1.45rem;
}

.result-tagline {
  margin: 0;
  color: #cfefec;
  font-size: 0.76rem;
}

.result-reason {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #effaf8;
  font-size: 0.85rem;
  line-height: 1.8;
}

.first-step {
  position: relative;
  z-index: 1;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.first-step strong {
  display: block;
  margin-bottom: 6px;
  color: #c7efeb;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.first-step p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.subheading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 2px 13px;
}

.subheading-row h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.subheading-row span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.secondary-results {
  display: grid;
  gap: 10px;
}

.secondary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfefd;
}

.secondary-title {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 9px;
}

.secondary-rank {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
}

.secondary-title h4 {
  margin: 0;
  font-size: 0.95rem;
}

.secondary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.secondary-step {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink) !important;
}

.result-note {
  display: flex;
  gap: 11px;
  margin: 22px 0 30px;
  padding: 15px 16px;
  border-radius: 16px;
  background: #f6f8f4;
  color: var(--muted);
}

.result-note span {
  color: var(--brand);
}

.result-note p {
  margin-bottom: 0;
  font-size: 0.72rem;
  line-height: 1.7;
}

.consultation-card {
  padding: 26px 22px 22px;
  border: 1px solid #f1d9cf;
  border-radius: 23px;
  background: linear-gradient(145deg, #fff9f6, #fffdfb);
  text-align: center;
}

.consultation-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--coral-soft);
  color: #bc664f;
  font-size: 0.68rem;
  font-weight: 800;
}

.consultation-card h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.55;
}

.consultation-card > p:not(.consultation-label):not(.copy-status):not(.consultation-help) {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.copy-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
}

.consultation-help {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.restart-button {
  display: block;
  margin: 23px auto 0;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.76rem;
}

footer {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 10px 0 34px;
  color: #7b908e;
  font-size: 0.68rem;
  line-height: 1.7;
  text-align: center;
}

footer p {
  margin-bottom: 2px;
}

[hidden] {
  display: none !important;
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enter {
  animation: enter-up 300ms ease both;
}

@media (max-width: 520px) {
  .site-header {
    width: min(100% - 28px, 680px);
    padding: 15px 0;
  }

  .header-note {
    display: none;
  }

  main {
    margin-top: 2px;
  }

  .panel {
    border-radius: 24px;
  }

  .hero {
    padding-top: 38px;
  }

  .quiz-panel {
    min-height: calc(100svh - 104px);
  }

  .question-area {
    padding-top: 35px;
  }

  .option-button {
    min-height: 67px;
  }
}

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