/*
 * layout.css — 画面の骨組み・余白・大きさ。
 * 色を変えるときは theme-gold.css、動きを変えるときは motion.css を編集します。
 */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; line-height: 1.85; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.55; }
button { border: 0; }
em { font-style: normal; }
main:focus, h2:focus { outline: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.ambient, .gold-dust { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.ambient { z-index: -2; }
.ambient span { position: absolute; width: 720px; height: 720px; border-radius: 50%; }
.ambient span:first-child { left: calc(50% - 1030px); top: -280px; }
.ambient span:last-child { right: calc(50% - 1030px); bottom: -300px; }
.gold-dust { z-index: 2; }
.gold-dust span { position: absolute; bottom: -28px; left: var(--x, 50%); width: var(--size, 3px); height: var(--size, 3px); border-radius: 50%; opacity: 0; }
.desktop-intro, .desktop-inscription { display: none; }
/* 拡大した水晶の描画をLP幅で切り、変形中も横方向のスクロール領域を増やさない。 */
.app-shell { position: relative; width: 100%; max-width: 520px; min-height: 100vh; margin: 0 auto; isolation: isolate; overflow: hidden; overflow: clip; }
.site-header { min-height: 78px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-seal { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 43px; font-size: 28px; line-height: 1; }
.brand strong { display: block; font-size: 21px; letter-spacing: .15em; line-height: 1.35; }
.brand small { display: block; font-size: 12px; line-height: 1.55; letter-spacing: 0; white-space: nowrap; }
.free-badge { flex-shrink: 0; padding: 3px 8px; font-size: 13px; letter-spacing: .08em; }
.stage { position: relative; min-height: 500px; }
.hero { position: relative; height: 570px; overflow: hidden; }
.hero-art, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { left: -30%; top: 70px; width: 115%; max-width: none; height: calc(100% - 70px); object-fit: cover; object-position: center top; }
.hero-top-copy { position: absolute; z-index: 2; top: 20px; left: 25px; }
.overline { display: block; font-size: 12px; letter-spacing: .1em; }
.hero-top-copy p { margin: 10px 0 0; font-size: 25px; line-height: 1.65; letter-spacing: .09em; }
.hero-top-copy em { font-size: 1.13em; }
.hero-wordmark { position: absolute; z-index: 3; bottom: 25px; left: 16px; right: 16px; text-align: center; }
.hero-small { font-size: 14px; letter-spacing: .12em; }
.hero-wordmark h1 { font-size: 68px; line-height: 1.2; letter-spacing: .1em; margin: 8px 0 10px; padding-left: .1em; font-weight: 800; }
.hero-wordmark p { font-size: 18px; letter-spacing: .16em; margin: 0; }
.hero-stamp { position: absolute; right: 23px; top: 29px; z-index: 1; padding: 7px 6px; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: .12em; writing-mode: vertical-rl; }
.hero-advisor { position: absolute; z-index: 2; right: 18px; top: 145px; width: 180px; text-align: center; }
.advisor-portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; border-radius: 50%; }
.advisor-caption { position: relative; width: max-content; max-width: calc(100% + 12px); min-width: 144px; margin: -4px auto 0; padding: 9px 16px 8px; text-align: center; }
.advisor-caption strong { display: block; font-size: 24px; line-height: 1.6; letter-spacing: .13em; white-space: nowrap; }
.entry-block { position: relative; text-align: center; padding: 5px 22px 33px; }
.entry-caption { font-size: 15px; line-height: 1.8; margin-bottom: 21px; }

/* 龍神水晶は1回のタップで召喚する。外周は装飾で、進捗は表示しない。 */
.crystal-entry { position: relative; margin: -4px 0 19px; text-align: center; isolation: isolate; }
.crystal-kicker { position: relative; z-index: 1; font-size: 16px; line-height: 1.5; letter-spacing: .2em; padding-left: .2em; margin: 0; }
.summon-crystal { position: relative; display: block; width: 190px; height: 156px; margin: 0 auto; padding: 0; border-radius: 50%; isolation: isolate; }
.summon-crystal > span, .crystal-sphere > span { position: absolute; display: block; pointer-events: none; }
.crystal-aura { inset: -14px -12px; border-radius: 50%; z-index: -1; }
.crystal-orbit { left: 5px; top: 55px; width: 180px; height: 54px; border-radius: 50%; transform: rotate(-18deg); z-index: 3; }
.crystal-sphere { left: 25px; top: 8px; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; z-index: 2; }
.crystal-dragon { inset: 0; border-radius: 50%; }
.crystal-core { inset: 15%; border-radius: 50%; }
.crystal-reflection { inset: 0; border-radius: 50%; }
.crystal-reflection::before { content: ''; position: absolute; width: 42%; height: 21%; top: 11%; left: 13%; border-radius: 50%; transform: rotate(-32deg); }
.crystal-burst { inset: -38px -15px; border-radius: 50%; z-index: 4; opacity: 0; }
.crystal-sigil { z-index: 5; width: 31px; height: 33px; right: 13px; bottom: 15px; font-size: 20px; line-height: 31px; border-radius: 50%; }
.crystal-instruction { position: relative; z-index: 5; min-height: 24px; font-size: 15px; line-height: 1.6; margin: 3px -4px 0; }
.summon-crystal.is-charging { pointer-events: none; z-index: 10; transform-origin: 50% 50%; will-change: transform; }
/* 水晶だけを前景へ持ち上げ、画面中央に迫る動きを妨げない。 */
.crystal-summoning .entry-block { z-index: 12; }
.crystal-summoning .entry-block::before { content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.crystal-summoning .crystal-entry { z-index: 2; }
.crystal-summoning .crystal-kicker, .crystal-summoning .crystal-instruction { z-index: 0; }
.ritual-sparkles { position: absolute; inset: -15%; z-index: 6; pointer-events: none; }
.ritual-sparkles i { position: absolute; display: block; left: var(--x, 50%); top: var(--y, 50%); width: var(--size, 4px); height: var(--size, 4px); border-radius: 50%; opacity: .5; pointer-events: none; }
.ritual-sparkles i::before, .ritual-sparkles i::after, .gold-dust .dust-star::before, .gold-dust .dust-star::after { content: ''; position: absolute; pointer-events: none; }
.ritual-sparkles i::before, .gold-dust .dust-star::before { width: 310%; height: 1px; top: calc(50% - .5px); left: -105%; }
.ritual-sparkles i::after, .gold-dust .dust-star::after { height: 310%; width: 1px; left: calc(50% - .5px); top: -105%; }
.ritual-sparkles i:nth-child(3n)::before, .ritual-sparkles i:nth-child(3n)::after { display: none; }
.wish-rays { position: absolute; inset: -10%; z-index: 2; border-radius: 50%; opacity: .35; pointer-events: none; }
.wish-target .wish-ripple-outer { inset: 7%; }
.wish-target .ritual-sparkles { inset: 0; z-index: 5; }
.wish-target.is-touched { z-index: 3; }
.wish-status { position: relative; z-index: 7; }


.gold-button { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 87px; padding: 15px 14px; gap: 12px; text-align: center; text-decoration: none; isolation: isolate; overflow: hidden; border-radius: 4px; }
.gold-button > span { position: relative; z-index: 1; min-width: 0; }
.gold-button small { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; margin-bottom: 4px; }
.gold-button strong { display: block; font-size: 20px; line-height: 1.5; letter-spacing: .025em; }
.gold-button::before { position: absolute; content: ''; inset: 5px; pointer-events: none; border-radius: 1px; }
.gold-button::after { position: absolute; content: ''; z-index: 0; top: -80%; left: -55%; width: 40%; height: 260%; pointer-events: none; }
.button-seal { flex: 0 0 40px; width: 40px; height: 44px; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.entry-meta { font-size: 13px; margin: 15px 0 7px; letter-spacing: .03em; }
.entry-meta > span:not([data-min-age]) { margin: 0 4px; }
.skip-link { display: inline-block; font-size: 14px; text-underline-offset: 5px; padding: 10px 0; line-height: 1.6; }
.paper-section { position: relative; padding: 44px 27px; }
.section-kicker { display: block; font-size: 14px; text-align: center; letter-spacing: .08em; }
.paper-section h2 { font-size: 27px; text-align: center; letter-spacing: .06em; margin: 13px 0 27px; line-height: 1.75; }
.paper-section h3 { font-size: 21px; margin: 0 0 18px; text-align: center; letter-spacing: .07em; }
.paper-section > p { font-size: 16px; line-height: 2; }
.introduction > p:not(.fineprint) { text-align: center; }
.advisor-welcome { display: flex; align-items: flex-start; gap: 15px; padding: 22px 18px; margin: 0 0 27px; }
.advisor-avatar { flex: 0 0 60px; width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
.advisor-welcome-copy { min-width: 0; text-align: left; }
.advisor-welcome-copy strong { display: block; font-size: 21px; line-height: 1.5; letter-spacing: .08em; }
.advisor-welcome-copy p { font-size: 15px; line-height: 1.9; margin: 10px 0 0; }
.wish-list { list-style: none; padding: 0; margin: 0 0 24px; }
.wish-list li { position: relative; padding: 14px 0 14px 22px; font-size: 16px; }
.wish-list li::before { content: '✦'; position: absolute; left: 0; top: 14px; font-size: 11px; }
.ornament-rule { position: relative; display: flex; justify-content: center; align-items: center; gap: 17px; margin: 34px 0; }
.ornament-rule::before, .ornament-rule::after { content: ''; display: block; height: 1px; flex: 1; }
.ornament-rule span { font-size: 18px; }
.journey-list { list-style: none; padding: 0; margin: 8px 0 26px; }
.journey-list li { display: flex; gap: 17px; align-items: center; padding: 17px 0; }
.journey-list li > span { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; }
.journey-list strong { font-size: 18px; }
.journey-list p { font-size: 14px; margin: 3px 0 0; }
.dark-button { width: 100%; min-height: 58px; padding: 13px 22px; font-size: 18px; font-weight: 600; letter-spacing: .06em; border-radius: 2px; }
.fineprint { font-size: 12px !important; line-height: 1.8 !important; font-weight: 400; }
.introduction > .fineprint { margin: 20px 0 0; text-align: center; }
.stage-quiz { min-height: 720px; padding: 28px 24px 38px; text-align: center; }
.stage-crest { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; }
.stage-crest::before, .stage-crest::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; }
.stage-crest::after { inset: 5px; }
.stage-crest span { font-size: 33px; line-height: 1; }
.stage-eyebrow { font-size: 14px; letter-spacing: .06em; text-align: center; margin-bottom: 29px; }
.question-progress { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 13px; font-size: 16px; letter-spacing: .08em; }
.question-progress > span:last-child { font-size: 14px; font-variant-numeric: tabular-nums; }
#question-current { font-size: 30px; font-weight: 500; }
.progress-divider { padding: 0 6px; }
.question-dots { display: flex; gap: 7px; margin-bottom: 30px; }
.question-dots span { height: 3px; flex: 1; }
.question-category { display: inline-block; padding: 4px 17px; font-size: 14px; letter-spacing: .1em; margin-bottom: 14px; }
.question-card h2 { font-size: 24px; line-height: 1.65; margin-bottom: 15px; text-wrap: pretty; }
.question-hint { font-size: 14px; margin: 0 0 24px; }
.answer-list { display: grid; gap: 13px; }
.answer-button { position: relative; display: flex; align-items: center; gap: 13px; padding: 16px 17px; width: 100%; min-height: 74px; font-size: 17px; line-height: 1.65; text-align: left; border-radius: 3px; isolation: isolate; }
.answer-button::before { content: ''; position: absolute; inset: 4px; pointer-events: none; border-radius: 1px; }
.choice-seal, .answer-number, .answer-marker, .answer-symbol { display: grid; flex: 0 0 27px; width: 27px; height: 32px; place-items: center; font-size: 17px; line-height: 1; }
.answer-text { flex: 1; }
.answer-check { position: absolute; left: 14px; top: 50%; width: 27px; text-align: center; transform: translateY(-50%); font-size: 18px; line-height: 1; }
.answer-feedback { font-size: 14px; min-height: 28px; margin: 17px 0 8px; }
.question-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin-bottom: 9px; }
.text-button { display: inline-block; padding: 9px 1px; min-height: 40px; font-size: 14px; line-height: 1.6; text-decoration: underline; text-underline-offset: 5px; }
.stage-wish { padding: 42px 18px 46px; text-align: center; min-height: 750px; overflow: hidden; }
.stage-wish .stage-eyebrow { margin-bottom: 26px; font-size: 13px; }
.ceremony-title { font-size: 29px; line-height: 1.75; letter-spacing: .08em; margin: 0 0 22px; text-align: center; }
.ceremony-intro { font-size: 15px; line-height: 1.9; margin-bottom: 6px; }
.wish-target { position: relative; display: block; width: 330px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 8px; padding: 0; border-radius: 50%; }
.wish-art { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 1; }
.wish-halo, .wish-ripple { position: absolute; inset: 5%; border-radius: 50%; }
.wish-halo { z-index: 2; pointer-events: none; }
.wish-ripple { inset: 16%; z-index: 3; pointer-events: none; opacity: 0; }
.wish-touch { position: absolute; z-index: 4; right: 23px; bottom: 33px; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; font-size: 19px; pointer-events: none; }
.wish-status { min-height: 90px; }
.wish-status p { font-size: 16px; margin-bottom: 4px; }
.wish-status > span { font-size: 14px; }
.advisor-result-intro { position: relative; isolation: isolate; padding: 24px 24px 20px; overflow: hidden; text-align: center; }
.advisor-result-intro::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.result-overline { font-size: 14px; line-height: 1.5; letter-spacing: .08em; margin: 0 0 18px; }
.advisor-result-portrait { width: 122px; height: 122px; margin: 0 auto 18px; object-fit: cover; object-position: center; border-radius: 50%; }
.advisor-result-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.advisor-result-name { font-size: 32px; font-weight: 600; line-height: 1.3; letter-spacing: .12em; padding-left: .12em; margin: 0 0 6px; }
.advisor-result-subtitle { font-size: 15px; line-height: 1.6; letter-spacing: .02em; margin: 0; }
.result-body { padding: 30px 24px 34px; }
.result-letter { position: relative; padding: 26px 22px 28px; }
.letter-mark { display: grid; width: 40px; height: 42px; place-items: center; font-size: 25px; margin: 0 auto 17px; }
.result-letter h2 { font-size: 24px; line-height: 1.75; text-align: center; margin: 0 0 21px; letter-spacing: .05em; white-space: pre-line; }
.result-letter p { font-size: 16px; line-height: 1.95; }
.result-letter #result-lead { font-size: 18px; font-weight: 600; text-align: center; line-height: 1.85; margin: 0 0 24px; }
#result-paragraphs p { margin: 0 0 19px; }
#result-paragraphs p:last-child { margin-bottom: 0; }
.result-letter .advice-accent { padding: 17px 16px; margin: 25px 0 23px; font-size: 17px; line-height: 1.9; }
.advisor-signature { text-align: right; margin: 20px 0 0; }
.advisor-signature strong { display: block; font-size: 25px; font-weight: 500; line-height: 1.7; letter-spacing: .16em; }
.result-cta-block { text-align: center; margin: 25px 0 34px; }
.result-cta-block > p { font-size: 16px; margin-bottom: 13px; }
.line-mark { flex: 0 0 35px; height: 35px; display: grid; place-items: center; font-size: 10px; font-weight: 800; border-radius: 50%; letter-spacing: -.03em; font-family: Arial, sans-serif; }
.line-button { gap: 9px; min-height: 91px; padding-left: 11px; padding-right: 11px; }
.line-button strong { font-size: 18px; letter-spacing: 0; }
.line-caption { display: block; font-size: 12px; line-height: 1.7; margin-top: 13px; }

.result-primary-cta { margin: 18px 0 0; }
.result-primary-cta .line-button { min-height: 84px; padding: 12px 8px; gap: 7px; }
.result-primary-cta .line-button small { font-size: 13px; line-height: 1.45; }
.result-primary-cta .line-button strong { font-size: 17px; line-height: 1.5; }
.result-primary-cta .line-mark { flex-basis: 28px; height: 28px; font-size: 9px; }
.result-primary-cta .line-caption { font-size: 12px; line-height: 1.6; margin-top: 10px; }

.common-story { padding-top: 0; }
.dark-heading { margin: 0 -27px 31px; padding: 29px 16px; text-align: center; }
.dark-heading > span { font-size: 12px; letter-spacing: .03em; }
.dark-heading h2 { margin: 8px 0 0; font-size: 29px; letter-spacing: .09em; }
.story-lead { font-size: 20px !important; text-align: center; line-height: 1.9 !important; margin-bottom: 28px; }
.benefit-list { margin: 30px 0; }
.benefit-list > div { display: flex; align-items: center; gap: 14px; padding: 19px 0; }
.benefit-seal { flex: 0 0 43px; width: 43px; height: 45px; display: grid; place-items: center; font-size: 25px; }
.benefit-list h3 { text-align: left; font-size: 17px; margin: 0 0 4px; letter-spacing: .015em; }
.benefit-list p { font-size: 14px; margin: 0; line-height: 1.8; }
.line-guide { padding: 25px 21px; margin: 32px 0; }
.line-guide h3 { font-size: 20px; margin-bottom: 17px; }
.line-guide ol { padding: 0 0 0 22px; margin: 0 0 17px; }
.line-guide li { padding: 6px 0 6px 5px; font-size: 16px; }
.line-guide p { font-size: 13px; line-height: 1.8; margin: 0; }
.common-story .result-cta-block { margin-bottom: 37px; }
.faq { margin: 38px 0 19px; }
.faq h3 { font-size: 22px; margin-bottom: 19px; }
.faq details { padding: 0; }
.faq summary { position: relative; padding: 18px 26px 18px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; top: 16px; right: 3px; font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 14px; line-height: 1.9; padding: 0 0 18px; margin: 0; }
.retry-button { display: block; margin: 27px auto 0; }
.site-footer { padding: 29px 17px 24px; text-align: center; position: relative; z-index: 3; }
.site-footer p { font-size: 12px; line-height: 1.9; margin-bottom: 15px; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 19px; }
.site-footer button { font-size: 12px; line-height: 1.5; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.site-footer small { display: block; font-size: 12px; margin-top: 12px; letter-spacing: .06em; }
body.summon-open { overflow: hidden; }
.summon-overlay { position: fixed; inset: 0; z-index: 30; display: block; overflow: hidden; isolation: isolate; pointer-events: all; text-align: center; }
.summon-overlay > div { pointer-events: none; }
.summon-circle { position: absolute; z-index: 1; left: 50%; top: 38%; width: 82vw; height: 82vw; max-width: 470px; max-height: 470px; border-radius: 50%; transform: translate(-50%, -50%); }
.summon-circle::before, .summon-circle::after { content: ''; position: absolute; border-radius: 50%; inset: 12px; }
.summon-circle::after { inset: 28px; }
.summon-ray { position: absolute; z-index: 0; left: 50%; top: 35%; width: 1000px; height: 1000px; border-radius: 50%; transform: translate(-50%, -50%); }
.summon-aureole { position: absolute; z-index: 0; left: 50%; top: 33%; width: 120vw; height: 75%; max-width: 760px; border-radius: 50%; transform: translate(-50%, -50%); }
/* 龍の透過素材を独立した層に置き、顔から胴へ光が広がる。 */
.summon-dragon-stage { position: absolute; z-index: 2; left: 50%; top: 2%; width: 112vw; height: 80%; max-width: 680px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; -webkit-mask-image: linear-gradient(#000 0 79%, transparent 100%); mask-image: linear-gradient(#000 0 79%, transparent 100%); }
.summon-dragon { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; transform-origin: 50% 35%; }
.summon-dragon-light { position: absolute; z-index: 1; left: 13%; top: 9%; width: 82%; height: 56%; border-radius: 50%; opacity: 0; }
.summon-mist { position: absolute; z-index: 3; inset: 43% -25% -15%; pointer-events: none; }
.summon-flare { position: absolute; z-index: 4; inset: 0; pointer-events: none; opacity: 0; }
.summon-caption { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 28px; bottom: max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; }
.summon-symbol { display: grid; place-items: center; position: relative; width: 44px; height: 47px; font-size: 30px; font-weight: 500; line-height: 1; margin: 0; }
.summon-caption::before, .summon-caption::after { content: ''; position: absolute; top: 23px; width: 56px; height: 1px; }
.summon-caption::before { right: calc(50% + 39px); }
.summon-caption::after { left: calc(50% + 39px); }
.summon-overlay p { position: relative; width: 100%; max-width: 480px; font-size: 20px; line-height: 1.8; letter-spacing: .06em; margin: 15px 0 0; }
.view-veil { position: fixed; inset: 0; z-index: 24; pointer-events: none; opacity: 0; }
.view-veil.is-active { opacity: 1; pointer-events: all; }
.toast { position: fixed; bottom: 30px; bottom: max(30px, env(safe-area-inset-bottom)); left: 50%; width: calc(100% - 36px); max-width: 440px; z-index: 60; transform: translateX(-50%); padding: 15px 20px; text-align: center; font-size: 14px; border-radius: 3px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 22px 18px; }
.modal-panel { position: relative; width: 100%; max-width: 460px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; padding: 38px 24px 29px; border-radius: 4px; overscroll-behavior: contain; }
.modal-close { position: absolute; top: 8px; right: 9px; width: 44px; height: 44px; z-index: 2; padding: 0; font-size: 31px; line-height: 1; border-radius: 50%; }
.modal-content h2 { font-size: 25px; letter-spacing: .03em; margin: 10px 0 19px; }
.modal-content h3 { font-size: 18px; margin: 25px 0 9px; }
.modal-content p, .modal-content li { font-size: 16px; line-height: 1.9; }
.modal-content ul { padding-left: 22px; }
.modal-content dl { margin: 0; }
.modal-content dt { font-size: 13px; margin-top: 18px; }
.modal-content dd { font-size: 16px; margin: 3px 0 0; overflow-wrap: anywhere; }
.exit-content, .notice-content { text-align: center; }
.exit-seal { display: grid; place-items: center; width: 67px; height: 71px; font-size: 45px; line-height: 1; margin: 6px auto 22px; }
.modal-kicker { font-size: 16px !important; letter-spacing: .1em; margin: 0; }
.exit-content .gold-button { margin: 25px 0 14px; }
.exit-content .gold-button strong { font-size: 20px; }
.exit-content > .text-button { display: block; margin: 7px auto; }
.leave-button { display: block; padding: 9px 3px; font-size: 13px; min-height: 40px; margin: 5px auto 0; text-decoration: underline; text-underline-offset: 4px; }
.notice-content .dark-button { margin-top: 15px; }
/* 離脱案内の水晶もタップできる。全画面の演出はパネルの外側に重ねる。 */
.modal-panel.is-exit { padding-top: 25px; padding-bottom: 18px; }
.is-exit .exit-seal { width: 42px; height: 45px; font-size: 29px; margin: 0 auto 10px; }
.is-exit .modal-content h2 { margin: 7px 0 12px; }
.is-exit .exit-content > p:not(.modal-kicker) { margin-bottom: 8px; line-height: 1.65; }
.exit-crystal-wrap { position: relative; min-height: 153px; margin: 1px auto 7px; pointer-events: auto; }
.exit-crystal { width: 148px; height: 126px; pointer-events: auto; }
.exit-crystal:disabled { pointer-events: none; }
.exit-crystal.is-sending { opacity: 0; }
.modal-content .exit-crystal-instruction { position: relative; font-size: 14px; line-height: 1.45; margin: 3px -3px 0; min-height: 21px; }
.exit-crystal .crystal-sphere { width: 112px; height: 112px; left: 18px; top: 7px; }
.exit-crystal .crystal-orbit { width: 146px; height: 43px; left: 1px; top: 48px; }
.exit-crystal .crystal-sigil { width: 25px; height: 27px; font-size: 16px; line-height: 25px; right: 8px; bottom: 8px; }
.exit-crystal .crystal-burst { inset: -15px -10px; }
.exit-crystal .ritual-sparkles { inset: -1%; }
.is-exit .exit-content .gold-button { margin-top: 3px; margin-bottom: 9px; min-height: 79px; padding-top: 11px; padding-bottom: 11px; }
.is-exit .exit-content > .text-button { margin: 0 auto; }
.is-exit .leave-button { margin-top: 0; }

.modal-backdrop.is-crystal-active { overflow: hidden; }
.modal-backdrop.is-crystal-active .modal-panel { overflow: visible; transform: none; z-index: auto; }
.modal-backdrop.is-crystal-active .modal-close { position: fixed; top: 16px; top: max(16px, env(safe-area-inset-top)); right: 16px; right: max(16px, env(safe-area-inset-right)); z-index: 4; }
.exit-crystal-flight { position: fixed; inset: 0; z-index: 3; overflow: hidden; pointer-events: auto; }
.exit-flight-shade { position: absolute; inset: 0; }
.exit-crystal-flight .exit-flight-orb { position: absolute; left: 50%; top: 48%; width: 190px; height: 156px; margin: -78px 0 0 -95px; z-index: 2; pointer-events: none; transform-origin: 50% 50%; }
.exit-flight-caption { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 30px; bottom: max(30px, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 17px; line-height: 1.7; letter-spacing: .03em; pointer-events: none; }
.exit-crystal-flight.is-revealing .exit-flight-orb, .exit-crystal-flight.is-revealing .exit-flight-caption { opacity: 0; }
.exit-summon-overlay { position: absolute; z-index: 3; }
.exit-summon-overlay p { max-width: 460px; font-size: 18px; line-height: 1.85; letter-spacing: .02em; }

.noscript-notice { position: fixed; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 100; text-align: center; font-size: 16px; }

/* スマートフォンの質問画面は装飾と余白を詰め、4択を見渡しやすくします。 */
@media (max-width: 599px) {
  .stage-quiz { padding-top: 18px; }
  .stage-quiz .stage-crest { display: inline-grid; vertical-align: middle; width: 42px; height: 42px; margin: 0 12px 16px 0; }
  .stage-quiz .stage-crest span { font-size: 24px; }
  .stage-quiz > .stage-eyebrow { display: inline-block; vertical-align: middle; margin: 0 0 16px; font-size: 14px; line-height: 1.5; letter-spacing: .02em; }
  .stage-quiz .question-progress { line-height: 1.3; margin-bottom: 8px; }
  .stage-quiz .question-dots { margin-bottom: 18px; }
  .stage-quiz .question-category { padding-top: 2px; padding-bottom: 2px; margin-bottom: 10px; }
  .stage-quiz .question-card h2 { font-size: 22px; line-height: 1.6; margin-bottom: 12px; }
  .stage-quiz .question-hint { line-height: 1.65; margin-bottom: 18px; }
  .stage-quiz .answer-list { gap: 10px; }
  .stage-quiz .answer-button { min-height: 70px; padding: 12px 14px; font-size: 17px; line-height: 1.55; gap: 10px; }
  .stage-quiz .answer-feedback { margin-top: 13px; }
}

@media (min-width: 600px) {
  .app-shell { margin-top: 25px; margin-bottom: 25px; }
  .hero { height: 650px; }
  .hero-top-copy { left: 31px; top: 35px; }
  .hero-top-copy p { font-size: 30px; }
  .hero-advisor { top: 165px; right: 27px; width: 210px; }
  .advisor-caption { min-width: 166px; }
  .advisor-caption strong { font-size: 27px; }
  .advisor-result-portrait { width: 140px; height: 140px; }
  .hero-wordmark h1 { font-size: 84px; }
  .hero-wordmark { bottom: 30px; }
  .entry-block { padding-left: 32px; padding-right: 32px; padding-bottom: 38px; }
  .paper-section { padding-left: 34px; padding-right: 34px; }
  .dark-heading { margin-left: -34px; margin-right: -34px; }
  .stage-quiz { padding: 37px 35px 42px; }
  .stage-wish { padding-top: 50px; }
  .wish-target { width: 355px; }
  .result-body { padding-left: 34px; padding-right: 34px; }
}
@media (min-width: 1100px) {
  .desktop-intro { display: block; position: fixed; top: 132px; left: calc(50% - 540px); width: 240px; z-index: -1; }
  .desktop-kicker { display: block; font-size: 13px; letter-spacing: .14em; margin-bottom: 28px; }
  .desktop-intro > p { font-size: 42px; line-height: 1.8; letter-spacing: .14em; margin-bottom: 24px; white-space: nowrap; }
  .desktop-intro em { font-size: 48px; }
  .desktop-rule { display: block; width: 55px; height: 1px; margin: 25px 0; }
  .desktop-caption { font-size: 15px; line-height: 2.2; letter-spacing: .07em; }
  .desktop-inscription { display: flex; flex-direction: column; align-items: center; position: fixed; top: 185px; left: calc(50% + 354px); width: 90px; z-index: -1; }
  .desktop-inscription > span { display: grid; place-items: center; width: 58px; height: 64px; font-size: 38px; line-height: 1; margin-bottom: 29px; }
  .desktop-inscription > p { writing-mode: vertical-rl; font-size: 19px; letter-spacing: .26em; }
}
@media (max-width: 374px) {
  .summon-overlay p { font-size: 18px; letter-spacing: .025em; }
  .exit-summon-overlay p { font-size: 16px; letter-spacing: 0; }
  .site-header { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 8px; }
  .brand small { display: none; }
  .brand strong { font-size: 20px; }
  .free-badge { font-size: 12px; padding-left: 6px; padding-right: 6px; }
  .hero { height: 545px; }
  .hero-top-copy { left: 20px; }
  .hero-top-copy p { font-size: 24px; }
  .hero-advisor { top: 145px; right: 12px; width: 160px; }
  .advisor-caption { min-width: 132px; padding-left: 12px; padding-right: 12px; }
  .advisor-caption strong { font-size: 22px; }
  .hero-wordmark h1 { font-size: 59px; }
  .hero-small { font-size: 13px; }
  .hero-wordmark p { font-size: 16px; }
  .entry-block { padding-left: 17px; padding-right: 17px; }
  .entry-caption { font-size: 14px; }
  .summon-button { gap: 8px; padding-left: 9px; padding-right: 9px; }
  .summon-button strong { font-size: 18px; }
  .button-seal { flex-basis: 32px; width: 32px; font-size: 26px; }
  .paper-section { padding-left: 22px; padding-right: 22px; }
  .paper-section h2 { font-size: 24px; }
  .paper-section > p { font-size: 15px; }
  .wish-list li { font-size: 15px; }
  .stage-quiz { padding-left: 18px; padding-right: 18px; }
  .question-card h2 { font-size: 22px; }
  .answer-button { font-size: 16px; padding-left: 14px; padding-right: 14px; }
  .stage-wish { padding-left: 12px; padding-right: 12px; }
  .ceremony-title { font-size: 27px; }
  .wish-status p { font-size: 14px; }
  .result-body { padding-left: 19px; padding-right: 19px; }
  .result-letter { padding-left: 18px; padding-right: 18px; }
  .result-letter h2 { font-size: 22px; }
  .advisor-result-intro { padding-left: 18px; padding-right: 18px; }
  .advisor-result-subtitle { font-size: 14px; }
  .result-primary-cta .line-button strong { font-size: 16px; }
  .advisor-welcome { padding-left: 14px; padding-right: 14px; gap: 12px; }
  .line-button { gap: 7px; }
  .line-button strong { font-size: 16px; }
  .line-mark { flex-basis: 30px; height: 30px; font-size: 9px; }
  .dark-heading { margin-left: -22px; margin-right: -22px; }
  .dark-heading h2 { font-size: 26px; }
  .benefit-list { gap: 10px; }
  .benefit-list h3 { font-size: 16px; }
  .benefit-list p { font-size: 13px; }
  .modal-panel { padding-left: 19px; padding-right: 19px; }
  .modal-content h2 { font-size: 23px; }
  .exit-content .gold-button strong { font-size: 18px; }
}

/* 短いスマホ画面でも、結果の最初のLINEボタンをスクロールなしで押せる。 */
@media (max-height: 680px) {
  .summon-dragon-stage { top: 1%; height: 79%; }
  .summon-caption { bottom: 20px; bottom: max(20px, env(safe-area-inset-bottom)); }
  .summon-symbol { width: 37px; height: 40px; font-size: 27px; }
  .summon-caption::before, .summon-caption::after { top: 20px; }
  .summon-overlay p { margin-top: 11px; }
  .advisor-result-intro { padding-top: 16px; padding-bottom: 16px; }
  .result-overline { font-size: 14px; line-height: 1.4; margin-bottom: 14px; }
  .advisor-result-portrait { width: 100px; height: 100px; margin-bottom: 14px; }
  .advisor-result-name { font-size: 30px; margin-bottom: 5px; }
  .advisor-result-subtitle { font-size: 14px; }
  .result-primary-cta { margin-top: 14px; }
  .result-primary-cta .line-caption { margin-top: 8px; }
}

/* 高さの短い画面でも、離脱案内の水晶とLINEボタンを一緒に見せる。 */
@media (max-height: 680px) {
  .modal-panel.is-exit { padding-top: 18px; padding-bottom: 13px; }
  .is-exit .exit-seal { display: none; }
  .is-exit .modal-content h2 { font-size: 23px; line-height: 1.5; margin: 5px 0 8px; }
  .is-exit .exit-content > p:not(.modal-kicker) { font-size: 15px; line-height: 1.6; margin-bottom: 4px; }
  .exit-crystal-wrap { min-height: 140px; margin: 0 auto 5px; }
  .exit-crystal { width: 138px; height: 118px; }
  .exit-crystal .crystal-sphere { width: 104px; height: 104px; left: 17px; top: 7px; }
  .exit-crystal .crystal-orbit { width: 136px; height: 40px; left: 1px; top: 44px; }
  .is-exit .exit-content .gold-button { min-height: 73px; margin-top: 3px; margin-bottom: 5px; }
}
