:root {
  color-scheme: light;
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  color: #2d2736;
  background: #fff9f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgb(255 216 188 / 58%), transparent 28rem),
    radial-gradient(circle at 88% 72%, rgb(219 209 255 / 60%), transparent 29rem),
    #fff9f4;
}

button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #7661bf; outline-offset: 4px; }

.app-shell {
  width: min(100% - 2rem, 700px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex;
  flex-direction: column;
}

.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; }
.site-header { padding: 0.5rem 0.25rem; }
.brand { display: inline-flex; gap: 0.5rem; align-items: center; color: inherit; font-weight: 800; text-decoration: none; letter-spacing: -0.04em; }
.brand-mark { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #e9defd; color: #6951b7; font-size: 0.85rem; }
.header-note { margin: 0; color: #81758c; font-size: 0.77rem; }

.hero-panel, .question-panel, .result-panel {
  margin: auto 0;
  padding: clamp(2.75rem, 11vw, 5.4rem) clamp(1.15rem, 6vw, 4.25rem);
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 2rem;
  background: rgb(255 255 255 / 70%);
  box-shadow: 0 1.25rem 4rem rgb(95 60 113 / 9%);
  backdrop-filter: blur(10px);
}

.hero-panel { text-align: center; }
.eyebrow { margin: 0 0 0.85rem; color: #9a7184; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; }
h1, h2 { margin: 0; color: #2a2333; font-weight: 800; letter-spacing: -0.075em; line-height: 1.08; white-space: pre-line; }
h1 { font-size: clamp(2.7rem, 11vw, 5.5rem); }
h2 { font-size: clamp(2.15rem, 7.5vw, 3.75rem); }
.lead { margin: 1.6rem 0 2.2rem; color: #655d6e; font-size: clamp(1rem, 3.4vw, 1.15rem); line-height: 1.8; }
.privacy-note { margin: 1rem 0 0; color: #928b99; font-size: 0.75rem; }

.button { min-height: 3.2rem; padding: 0.75rem 1.15rem; border: 0; border-radius: 999px; font-weight: 800; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: 0.7; }
.button-primary { background: #58428e; color: white; box-shadow: 0 0.7rem 1.5rem rgb(88 66 142 / 25%); }
.button-primary:hover:not(:disabled) { background: #493578; box-shadow: 0 0.95rem 1.8rem rgb(88 66 142 / 30%); }
.button-secondary { border: 1px solid #d9cfe4; background: rgb(255 255 255 / 78%); color: #58428e; box-shadow: none; }
.button-large { min-width: min(100%, 18rem); min-height: 3.8rem; font-size: 1.04rem; }

.progress-row { display: flex; gap: 0.85rem; align-items: center; margin-bottom: clamp(2.7rem, 8vw, 4.5rem); }
.progress-label { flex: 0 0 auto; color: #81758c; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.09em; }
.progress-track { width: 100%; height: 0.35rem; overflow: hidden; border-radius: 1rem; background: #eee8f0; }
.progress-bar { display: block; height: 100%; border-radius: inherit; background: #e28d6e; transition: width 250ms ease; }
.question-hint { min-height: 1.5rem; margin: 1rem 0 1.75rem; color: #82768e; font-size: 0.92rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.choice-button { min-height: 9rem; padding: 1.1rem 0.8rem; border: 1px solid #e4dcea; border-radius: 1.4rem; background: rgb(255 255 255 / 78%); color: #302a37; text-align: left; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.choice-button:hover { transform: translateY(-3px); border-color: #c8b8e4; background: #fff; box-shadow: 0 0.85rem 1.8rem rgb(91 62 111 / 11%); }
.choice-label, .choice-detail { display: block; }
.choice-label { font-size: clamp(1.1rem, 4vw, 1.38rem); font-weight: 800; letter-spacing: -0.04em; }
.choice-detail { margin-top: 0.45rem; color: #897d92; font-size: 0.76rem; }
.text-button { display: block; margin: 1.5rem auto 0; padding: 0.35rem; border: 0; background: transparent; color: #756482; text-decoration: underline; text-underline-offset: 0.22em; font-size: 0.86rem; }

.result-panel { text-align: center; }
.result-prefix { margin: 0 0 0.25rem; color: #786a80; font-size: 1rem; }
.result-description { max-width: 30rem; margin: 1.5rem auto 2rem; color: #635a6c; line-height: 1.85; }
.result-card { padding: 1.5rem; border-radius: 1.35rem; background: #f3ebfb; text-align: left; }
.result-tag { margin: 0; color: #5b448f; font-weight: 800; }
.map-explanation { margin: 0.7rem 0 1.1rem; color: #756982; font-size: 0.8rem; line-height: 1.65; }
.location-status { min-height: 1.3rem; margin: 0.8rem 0 0; color: #756982; font-size: 0.78rem; line-height: 1.5; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin-top: 1.25rem; }
.result-actions .text-button { margin-top: 0.3rem; }

.site-footer { padding: 1.45rem 0.25rem 0; color: #998fa0; font-size: 0.72rem; }
.site-footer a { color: #756482; }
.privacy-page { text-align: left; }
.privacy-page > h1 { margin-bottom: 2rem; font-size: clamp(2.4rem, 8vw, 4rem); }
.privacy-copy { margin-bottom: 2rem; color: #635a6c; line-height: 1.85; }
.privacy-copy h2 { margin: 2rem 0 0.75rem; font-size: 1.2rem; letter-spacing: -0.04em; }
.privacy-copy p { margin: 0.55rem 0; }
.is-hidden { display: none; }

@media (max-width: 430px) {
  .app-shell { width: min(100% - 1.2rem, 700px); }
  .header-note { display: none; }
  .hero-panel, .question-panel, .result-panel { border-radius: 1.55rem; }
}

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