:root{--orange:#f57f00;--text:#666;--pink:#fe6970}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Helvetica Neue",Helvetica,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif}body{background:#f57f00}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #8c3f00;outline-offset:4px}[hidden]{display:none!important}.quiz-shell{position:relative;max-width:700px;min-height:100vh;min-height:100dvh;margin:0 auto;color:#fff;background:radial-gradient(circle at 88% 25%,#ff9124,transparent 71%),radial-gradient(circle at 13% 75%,#ffa033,transparent 71%),radial-gradient(circle at 93.3% 75%,#ffda36,transparent 71%),radial-gradient(circle at 21% 25%,#f09000,transparent 71%) #fff;background-size:150% 150%;background-attachment:fixed;animation:gradient-shift 7s ease-in-out infinite}.question-page{position:relative;min-height:100vh;padding:20px 20px 125px}.question-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.question-total{border-radius:20px;background:#fff9ef;color:#db7000;font-size:clamp(14px,2vh,18px);font-weight:700;line-height:1.35;padding:1px 10px}.cover-link{font-size:11px;color:#7b4000;text-decoration:underline;text-underline-offset:3px;min-height:26px;display:flex;align-items:center}.question-heading{font-size:clamp(20px,2.8vh,29px);font-weight:750;line-height:1.45;white-space:pre-line;margin:0 0 17px;letter-spacing:-.4px}.question-heading:focus,.story-heading:focus{outline:none}.question-progress{display:flex;gap:15px;padding:0 20px;margin:0 0 30px}.question-progress span{height:10px;flex:1;min-width:0;background:#ffffff40;border-radius:5px}.question-progress span.active{background:#fff}.question-card{position:relative;border-radius:20px;background:linear-gradient(32deg,#f7f7f7,#fff);padding:20px;margin:0 0 20px;box-shadow:0 8px 10px #0000001a,0 .5px 0 #0000000f,inset 0 0 0 1.5px #fff;border-bottom:1px solid #ececeb;color:var(--text)}.question-card.selected{background:linear-gradient(32deg,#f3f3f3,#fff);opacity:.78}.card-title{position:relative;font-size:clamp(15px,2vh,19px);font-weight:700;padding:0 6px 0 30px;line-height:1.25;margin:0 0 18px;min-width:0}.question-no{position:absolute;left:0;top:0;color:#e87900}.choice-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;border:0;padding:0;margin:0}.choice{position:relative;display:block;text-align:center;min-width:0;cursor:pointer;font-size:clamp(10px,1.4vh,13px);font-weight:400;line-height:1.5;color:#686868}.choice-input{position:absolute;opacity:0;width:1px;height:1px;left:50%;top:20px}.choice-text{display:block;min-height:65px;padding:0 0 2px}.choice-text:before{content:"";display:block;margin:0 auto 10px;width:35px;height:35px;background-image:url('radio.png');background-size:200% 100%;background-position:0 0}.choice-input:checked+.choice-text:before{background-position:100% 0}.choice-input:focus-visible+.choice-text{outline:3px solid #cf7500;outline-offset:4px;border-radius:4px}.question-bottom{position:fixed;z-index:4;bottom:0;left:0;right:0;max-width:700px;width:100%;margin:0 auto;padding:23px 20px calc(23px + env(safe-area-inset-bottom));background:linear-gradient(0deg,#ffebeb,transparent);pointer-events:none}.question-controls{display:flex;gap:12px;max-width:450px;margin:0 auto;align-items:center;pointer-events:auto}.next-button,.back-button,.result-primary,.result-secondary{display:block;border:0;min-height:50px;border-radius:25px;padding:10px 20px;font-size:19px;font-weight:700;text-align:center;line-height:1.5;text-decoration:none}.next-button{background:var(--pink);color:#fff;flex:1;box-shadow:0 10px 15px #00000026}.next-button:disabled{opacity:.25;cursor:default}.back-button{background:#fff5e4;color:#985400;border:1px solid #f1bd75;min-width:75px;font-size:13px;padding-inline:15px}.stage-note{text-align:center;font-size:10px;color:#8f5100;margin:9px auto 0;max-width:450px}.result-shell{min-height:100vh}.story-screen{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:60px 20px 130px}.story-content{width:100%;cursor:pointer;min-height:200px;outline:none}.story-orb{width:25px;height:25px;margin:0 auto 35px;border-radius:50%;background:#fff;animation:orb-breathe 2.2s ease-in-out infinite}.story-heading{font-size:clamp(23px,3.7vh,38px);line-height:1.4;font-weight:750;margin:0;color:#fff}.story-heading>span{display:block}.story-heading .type-label{display:inline-block;min-width:168px;padding:1px 22px;border-radius:26px;font-weight:750;line-height:1.35;white-space:nowrap}.story-heading .inline-type{display:inline-block;border-radius:20px;padding:0 10px;line-height:1.4;white-space:nowrap}.story-controls{position:absolute;bottom:25px;left:0;width:100%;padding:0 25px calc(10px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:10px}.story-next{border:1px solid #ffffff8c;border-radius:24px;min-height:44px;min-width:155px;padding:9px 25px;background:#ffffff26;color:#fff;font-weight:700;font-size:14px}.summary-link{border:0;color:#6f3900;background:none;text-decoration:underline;text-underline-offset:3px;min-height:35px;padding:5px;font-size:11px}.story-step{font-size:10px;color:#753b00}.result-summary{padding:30px 20px 45px;text-align:center}.summary-eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;margin:0 0 15px}.summary-title{font-size:30px;line-height:1.5;margin:0 0 22px}.summary-title .type-label{padding:3px 25px;border-radius:30px;display:inline-block}.result-map{display:block;width:min(90%,370px);height:auto;margin:22px auto 30px}.summary-card{max-width:520px;margin:0 auto 20px;padding:24px 20px;border-radius:20px;background:#fff9ed;color:#76522a;text-align:left;box-shadow:0 8px 18px #a66d0030}.summary-card h2{font-size:18px;color:#c26700;margin:0 0 14px;text-align:center}.summary-card p{font-size:14px;line-height:1.95;margin:0 0 15px}.summary-card p:last-child{margin-bottom:0}.score-row{display:grid;grid-template-columns:85px minmax(0,1fr) 35px;gap:10px;align-items:center;margin:13px 0;font-size:12px}.score-bar{height:8px;background:#eadbc6;border-radius:6px;overflow:hidden}.score-bar span{display:block;height:100%;min-width:0;border-radius:6px}.score-row strong{font-size:11px;font-weight:500;text-align:right}.result-actions{display:flex;flex-direction:column;gap:12px;max-width:380px;margin:27px auto 0}.result-primary{background:#f94d23;color:#fff;font-size:16px}.result-secondary{background:#fff4de;color:#995400;border:1px solid #edc789;font-size:14px}.result-footnote{font-size:10px;line-height:1.8;color:#6c400c;max-width:420px;margin:22px auto 0}.review{font-size:13px;line-height:1.8}.review summary{cursor:pointer;font-weight:700;min-height:35px}.review ol{padding-left:22px}.review li{margin-bottom:14px}.review small{display:block;color:#9b6d37}.empty-result{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:20px;padding:25px;text-align:center}.empty-result h1{font-size:23px}.empty-result p{line-height:1.8;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes gradient-shift{0%,100%{background-position:0% 50%}25%{background-position:50% 100%}50%{background-position:100% 50%}75%{background-position:50% 0%}}@keyframes orb-breathe{50%{transform:scale(.76);opacity:.8}}
@media(min-width:701px){.question-page{padding:27px 50px 135px}.question-heading{font-size:28px}.question-card{padding:26px}.card-title{font-size:18px}.choice{font-size:13px}.question-total{font-size:18px}.story-heading{font-size:35px}.result-summary{padding-top:40px}}
@media(max-width:350px){.question-page{padding-inline:14px}.question-card{padding:18px 13px}.card-title{padding-left:27px;font-size:14px}.choice{font-size:9px}.choice-list{gap:2px}.choice-text:before{width:32px;height:32px}.question-heading{font-size:21px}.question-controls{gap:8px}.question-bottom{padding-inline:14px}.story-heading{font-size:23px}.summary-card{padding:22px 16px}.score-row{grid-template-columns:73px minmax(0,1fr) 30px;gap:7px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.quiz-shell,.story-orb{animation:none}html{scroll-behavior:auto}}
/* Explicit CJK sans fallback keeps Japanese card text readable on Chinese Windows. */
.quiz-body{font-family:"Helvetica Neue",Helvetica,"Hiragino Kaku Gothic ProN",Meiryo,"Yu Gothic","Microsoft YaHei","Microsoft JhengHei",sans-serif}

.summary-card .inline-type{display:inline-block;padding:0 7px;border-radius:12px;white-space:nowrap;font-size:12px;line-height:1.6}
