:root {
  --brand: #dc6e54;
  --brand-dark: #a94633;
  --brand-soft: #fae8df;
  --ink: #3e3833;
  --muted: #6b635d;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --sage: #769478;
  --sage-soft: #e7efe5;
  --line: #e6ded2;
  --shadow: 0 14px 40px rgba(80, 61, 46, 0.1);
  --radius: 24px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #0b1e2c; }

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  font-weight: 500;
  background: #0b1e2c;
}

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

body::after {
  z-index: 0;
  background:
    linear-gradient(rgba(6, 20, 31, 0.2), rgba(6, 20, 31, 0.58)),
    url("assets/hoshiniwa-garden.webp") center top / cover no-repeat;
}

body::before {
  z-index: 1;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='white' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

button { font: inherit; font-weight: 700; }
button:focus-visible { outline: 3px solid #346a9a; outline-offset: 3px; }

.shell {
  position: relative;
  z-index: 2;
  width: min(100% - 24px, 664px);
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  padding-inline: 16px;
  border-inline: 1px solid rgba(240, 223, 179, 0.34);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.92), rgba(251, 247, 239, 0.97));
  box-shadow: 0 0 70px rgba(3, 12, 20, 0.52);
  backdrop-filter: blur(4px);
}
.screen { display: none; padding: 32px 0 48px; animation: appear 0.28s ease both; }
.screen.is-active { display: block; }

@keyframes appear {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen--hero { text-align: center; padding-top: 42px; }
.eyebrow, .step-label, .kicker {
  color: var(--brand-dark); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em;
}
.eyebrow { display: inline-flex; padding: 7px 13px; border-radius: 999px; background: var(--brand-soft); }

.hero-mark { height: 48px; display: flex; gap: 7px; align-items: end; justify-content: center; margin: 27px 0 12px; }
.hero-mark span { width: 10px; border-radius: 999px; background: var(--brand); transform-origin: bottom; }
.hero-mark span:nth-child(1) { height: 25px; transform: rotate(-30deg); }
.hero-mark span:nth-child(2) { height: 38px; }
.hero-mark span:nth-child(3) { height: 25px; transform: rotate(30deg); }

h1, h2, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
h1 span { color: var(--brand-dark); text-decoration: underline; text-decoration-color: rgba(220, 110, 84, 0.35); text-underline-offset: 8px; text-decoration-thickness: 7px; }
h2 { font-weight: 800; }
.title-note { margin: 14px 0 25px; font-weight: 800; letter-spacing: 0.12em; }
.lead { margin: 0 auto 12px; max-width: 520px; color: var(--muted); font-size: 1rem; font-weight: 500; line-height: 2; }
.lead-note { margin: 0 auto 26px; max-width: 520px; color: var(--muted); font-size: 0.82rem; font-weight: 600; line-height: 1.8; }

.button {
  width: 100%; min-height: 58px; border-radius: 999px; border: 0; padding: 15px 24px;
  font-weight: 800; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, opacity 0.15s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; }
.button--primary { background: var(--brand); color: #fff; box-shadow: 0 9px 20px rgba(169, 70, 51, 0.22); }
.button--primary:disabled { background: #edb6a7; box-shadow: none; opacity: 1; }
.button--outline { margin-top: 25px; color: var(--brand-dark); background: transparent; border: 2px solid var(--brand); }

.meta-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 14px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.home-cta { margin-bottom: 8px; }

.story { margin-top: 30px; padding: 30px 22px 32px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 248, 0.82); }
.story p { margin: 0; line-height: 1.9; font-weight: 500; }
.story__heading { margin: 0 0 24px; color: var(--brand-dark); font-size: clamp(1.2rem, 5.6vw, 1.55rem); font-weight: 800; line-height: 1.55; }
.story__quotes { display: grid; gap: 7px; margin-bottom: 28px; padding-left: 14px; border-left: 3px solid var(--sage); }
.story__quotes p { font-size: 0.96rem; font-weight: 600; }
.story__quotes strong, .story__focus strong { color: var(--brand-dark); font-weight: 800; }
.story__paragraph { margin-top: 25px !important; }
.story__focus { margin-top: 10px !important; padding: 11px 13px; border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; background: var(--brand-soft); font-size: 1.02rem; }
.story__list { display: grid; gap: 3px; margin: 18px 0 0; padding: 15px 13px; border-radius: 12px; background: #f7f2e9; }
.story__list p { font-size: 0.96rem; font-weight: 600; }
.story__emphasis { margin-top: 21px !important; color: var(--brand-dark); font-size: 1.15rem; }
.story__emphasis strong { font-weight: 800; }
.story__closing { margin-top: 30px !important; padding-top: 22px; border-top: 1px solid var(--line); color: var(--brand-dark); font-size: 1.15rem; }
.story__closing strong { font-weight: 800; }

.text-back { min-height: 44px; margin: 0 0 20px -10px; padding: 8px 10px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card--notice { margin: 10px 0 24px; padding: 38px 28px 28px; text-align: center; }
.round-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 15px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); font-size: 1.4rem; font-weight: 800; }
.card--notice h2 { margin: 6px 0 22px; font-size: clamp(1.5rem, 6vw, 2rem); }
.card--notice p:not(.kicker) { margin: 0 0 16px; text-align: center; line-height: 1.9; font-weight: 500; }
.notice-break { display: block; }
.marker { background: linear-gradient(transparent 58%, rgba(220, 110, 84, 0.24) 58%); font-weight: 800; }
.card--notice .notice-emphasis { margin-top: 4px; }
.card--notice .notice-closing { margin-top: 29px; margin-bottom: 0; color: var(--muted); font-size: 0.94rem; font-weight: 500; line-height: 2; }

#screen-structure h2, #screen-age h2 { margin: 12px 0; text-align: center; font-size: clamp(1.5rem, 5.8vw, 2.1rem); line-height: 1.6; }
#screen-structure h2 span, #screen-age h2 span { color: var(--brand-dark); }
.helper { margin: 0 auto 24px; color: var(--muted); font-size: 0.94rem; font-weight: 600; line-height: 1.7; text-align: center; }

.choice-list { display: grid; gap: 11px; margin-bottom: 24px; }
.choice-option {
  position: relative; min-height: 66px; padding: 16px 50px 16px 20px;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper);
  color: var(--ink); text-align: left; font-weight: 700; line-height: 1.6; cursor: pointer;
}
.choice-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.choice-option::after {
  content: ""; position: absolute; right: 19px; top: 50%; width: 17px; height: 17px;
  border: 2px solid #b5aca4; border-radius: 50%; transform: translateY(-50%);
}
.choice-option:hover { border-color: var(--brand); }
.choice-option.is-selected { border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.choice-option.is-selected small { color: var(--brand-dark); }
.choice-option.is-selected::after { border: 5px solid var(--brand); }

.age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.age-option { min-height: 56px; border: 1.5px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); font-weight: 800; cursor: pointer; }
.age-option:hover { border-color: var(--brand); }
.age-option.is-selected { color: var(--brand-dark); background: var(--brand-soft); border: 2px solid var(--brand); box-shadow: inset 0 0 0 2px var(--paper); }

.quiz-top { display: flex; justify-content: space-between; align-items: center; }
.quiz-top .text-back { margin-bottom: 5px; }
.progress-count { color: var(--muted); font-size: 0.86rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; margin-bottom: 28px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width 0.25s ease; }
.question-card { min-height: 520px; padding: 28px 20px 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.question-number { margin: 0; color: var(--brand-dark); font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em; }
.question-card h2 { min-height: 145px; margin: 12px 0 24px; font-size: clamp(1.18rem, 5vw, 1.45rem); font-weight: 700; line-height: 1.75; }
.answer-list { display: grid; gap: 10px; }
.answer-option { position: relative; min-height: 57px; padding: 12px 48px 12px 17px; border: 1.5px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); text-align: left; font-weight: 700; cursor: pointer; }
.answer-option::after { content: ""; position: absolute; right: 17px; top: 50%; width: 17px; height: 17px; border: 2px solid #b5aca4; border-radius: 50%; transform: translateY(-50%); }
.answer-option:hover { border-color: var(--brand); background: #fffaf7; }
.answer-option.is-selected { border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.answer-option.is-selected::after { border: 5px solid var(--brand); }
.auto-note { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-align: center; }

.result-head { margin: -32px -16px 24px; padding: 48px 24px 36px; border-radius: 0 0 32px 32px; background: linear-gradient(145deg, var(--brand-soft), #f8efe2); text-align: center; }
.result-age { display: inline-block; margin: 0 0 15px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--brand-dark); font-size: 0.84rem; font-weight: 800; }
.result-verdict { margin: 0 0 14px; color: var(--brand-dark); font-size: 1.02rem; font-weight: 800; line-height: 1.6; }
.result-label { margin: 0 0 6px; color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: .1em; }
.result-type {
  margin: 0; color: var(--brand-dark);
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 8vw, 2.7rem); font-weight: 700; line-height: 1.45;
}
.result-type--mix { line-height: 1.25; }
.result-type__name { display: block; white-space: nowrap; font-size: clamp(1.05rem, 5.2vw, 2rem); }
.result-type__cross { display: block; margin: 0.16em 0; font-family: inherit; font-size: 0.72em; line-height: 1; }
.result-catch { margin: 15px auto 0; max-width: 500px; font-size: 1.05rem; font-weight: 800; line-height: 1.7; }
.result-section { margin: 16px 0; padding: 24px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.result-section h3 { margin: 0 0 13px; color: var(--brand-dark); font-size: 1.02rem; font-weight: 800; }
.result-section p { margin: 0 0 15px; line-height: 1.95; font-weight: 500; }
.result-section p:last-child { margin-bottom: 0; }
.result-section strong { font-weight: 800; color: var(--ink); }
.nono { background: var(--sage-soft); border-color: #ceddcb; }
.nono h3 { color: #46683f; }
.nono strong { color: #33502f; }
.point { border-left: 5px solid var(--brand); }
.point p { font-weight: 700; }
.type-mini { padding: 15px 0; border-top: 1px solid var(--line); }
.type-mini:first-of-type { padding-top: 0; border-top: 0; }
.type-mini:last-child { padding-bottom: 0; }
.type-mini strong { display: block; margin-bottom: 7px; color: var(--brand-dark); font-weight: 800; }
.type-mini p { color: var(--muted); font-size: .96rem; font-weight: 500; line-height: 1.8; }
.aru-list { margin: 0; padding-left: 1.35rem; font-weight: 600; }
.aru-list li { margin: 10px 0; line-height: 1.75; }
.voice-age-guide {
  margin: 28px 0 16px;
  padding: 28px 20px 24px;
  border: 2px solid rgba(220, 110, 84, 0.46);
  border-radius: 24px;
  background: linear-gradient(145deg, #fffaf6, var(--brand-soft));
  box-shadow: 0 12px 30px rgba(169, 70, 51, 0.1);
  text-align: center;
}
.voice-age-guide__eyebrow { margin: 0 0 10px; color: var(--brand-dark); font-size: 0.88rem; font-weight: 800; letter-spacing: 0.1em; }
.voice-age-guide__verdict { margin: 0 auto 22px; max-width: 480px; color: var(--brand-dark); font-size: 1.15rem; font-weight: 800; line-height: 1.75; }
.voice-age-guide__ages { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.voice-age-guide__ages div { display: grid; gap: 5px; min-width: 0; padding: 15px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.78); }
.voice-age-guide__ages span { color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.voice-age-guide__ages strong { color: var(--ink); font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.4rem, 7vw, 2rem); line-height: 1.3; }
.voice-age-guide__ages .voice-age-guide__connector { color: var(--brand); font-size: 1.45rem; font-weight: 800; }
.voice-age-guide__comparison { margin: 22px 0 0; text-align: left; font-size: 1rem; font-weight: 600; line-height: 1.9; }
.voice-age-guide__note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(169, 70, 51, 0.16); color: var(--muted); font-size: 0.88rem; font-weight: 500; line-height: 1.7; }
.book-link { background: #f5eee3; }
.book-link h3::before { content: "◇ "; }
.renewal-note { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; margin: 16px 0 4px; padding: 20px; border: 1px solid #ceddcb; border-radius: 18px; background: var(--sage-soft); }
.renewal-note__heart { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.82); color: #46683f; font-size: 1.18rem; font-weight: 800; line-height: 1; }
.renewal-note p { margin: 0; color: #46683f; font-size: 0.95rem; font-weight: 600; line-height: 1.9; }
.renewal-note strong { color: #33502f; font-weight: 800; }
.renewal-note__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 15px; padding: 11px 18px; border-radius: 999px; background: #06c755; color: #fff; font-size: 0.9rem; font-weight: 800; line-height: 1.5; text-align: center; text-decoration: none; box-shadow: 0 7px 16px rgba(6, 115, 52, 0.18); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.renewal-note__link:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(6, 115, 52, 0.24); }
.renewal-note__link:focus-visible { outline: 3px solid #346a9a; outline-offset: 3px; }
.disclaimer { margin: 20px 6px 0; color: var(--muted); font-size: 0.78rem; font-weight: 500; line-height: 1.8; }
.empty-result { padding: 45px 24px; text-align: center; }
.empty-result h2 { color: var(--brand-dark); }
.empty-result p { line-height: 1.85; font-weight: 500; }

footer { position: relative; z-index: 2; padding: 10px 16px 24px; color: #eadfbf; font-size: 0.74rem; font-weight: 600; text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72); }

@media (min-width: 520px) {
  .screen { padding-top: 48px; }
  .age-grid { grid-template-columns: repeat(4, 1fr); }
  .question-card { padding: 34px 36px 30px; }
  .result-head { margin-left: 0; margin-right: 0; border-radius: 32px; }
  .result-section { padding: 27px 28px; }
  .voice-age-guide { padding: 32px 28px 26px; }
  .story { padding: 38px 36px 40px; }
  .story__quotes p, .story__list p { font-size: 1rem; }
}

@media (max-width: 519px) {
  body::after { background-position: 38% top; }
  .shell { width: calc(100% - 12px); padding-inline: 10px; }
  .renewal-note { grid-template-columns: 1fr; }
  .renewal-note__heart { margin: 0 auto; }
  .renewal-note__link { display: flex; width: 100%; }
}

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