@media (min-width:901px){
  .hero{grid-template-columns:minmax(460px,50%) 1fr}
  .hero-copy{padding-left:5vw;padding-right:5vw}
  .hero h1{font-size:clamp(42px,4.4vw,64px);white-space:nowrap}
  .report-hero h1{font-size:clamp(34px,3.5vw,52px);line-height:1.5}
}
.hero-photo figcaption,.report-hero figcaption{background:#f8f5efcc;padding:8px 12px}
@media (max-width:620px){
  .hero h1{font-size:38px;white-space:normal}
  .report-hero h1{font-size:31px;line-height:1.55}
}
/* Full questionnaire and evidence-backed report */
.report-card{border-top:1px solid var(--line);padding:24px 0;margin:18px 0}.report-card h3,.report-content>section>h3{font:500 22px/1.65 var(--serif);margin:0 0 12px}.claim-basis{font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0}.claim-basis a{font-weight:700;text-decoration:none;border-bottom:1px solid currentColor}.answer-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin:18px 0}.answer-fact{display:flex;flex-direction:column;gap:8px;background:var(--paper);padding:18px}.answer-fact small{color:var(--muted);line-height:1.55}.answer-fact strong{font-weight:500;line-height:1.65}.answer-fact.uncertain strong{color:var(--muted)}.evidence-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0 28px}.evidence-group{border:1px solid var(--line);padding:20px}.evidence-group h3{font:500 18px/1.6 var(--serif);margin:0 0 12px}.evidence-group .answer-fact{padding:10px 0;border-top:1px solid var(--line)}.response-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 28px}.response-path{border-top:3px solid var(--sage);background:#fff8;padding:18px}.response-path strong{font-family:var(--serif);font-weight:500}.response-path p{font-size:14px}.route-title{font-size:12px;color:var(--muted);letter-spacing:.04em}.report-alert{background:#fbf3ef}.report-content ol,.report-content ul{padding-left:1.4em;line-height:1.9}.report-content li+li{margin-top:8px}
@media(max-width:700px){.answer-facts,.evidence-groups,.response-grid{grid-template-columns:1fr}.answer-fact{padding:15px}.evidence-group{padding:16px}.quiz-progress b{font-size:12px;white-space:nowrap;word-break:keep-all}}

/* Locale selector */
.header-tools{display:flex;align-items:center;gap:22px}
.wordmark{white-space:nowrap;flex-shrink:0}
.language-control{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}
.language-picker{position:relative;color:var(--ink)}
.language-trigger{min-width:112px;min-height:38px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:7px 4px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;font-weight:500}
.language-trigger svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.4;transition:transform .16s ease}
.language-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
.language-trigger:focus-visible{outline:1px solid var(--rose);outline-offset:3px}
.language-menu{position:absolute;z-index:40;top:calc(100% + 10px);right:0;width:156px;padding:7px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 42px rgba(36,49,58,.16)}
.language-menu[hidden]{display:none}
.site-header nav .language-option,.language-option{width:100%;min-height:40px;border:0;border-radius:8px;background:transparent;padding:8px 10px;display:grid;grid-template-columns:18px 1fr;gap:7px;align-items:center;text-align:left;font-size:13px;font-weight:500}
.language-option:hover,.language-option:focus-visible{background:rgba(221,231,236,.72)}
.language-option:focus-visible{outline:1px solid var(--sage);outline-offset:-1px}
.language-option.is-active{background:rgba(201,133,145,.12);color:var(--ink)}
.language-check{color:var(--rose);font-size:12px;font-weight:700}
.tier em{margin-left:.3em}
.locale-loading #app{opacity:.68;pointer-events:none;transition:opacity .15s ease}
@media(max-width:900px){.site-header nav{gap:14px}.site-header nav .language-control{display:flex}.site-header nav button.language-trigger{display:flex}.site-header nav button.language-option{display:grid}.header-tools{gap:12px}}
@media(max-width:620px){.site-header{padding-inline:12px}.wordmark{font-size:18px;letter-spacing:.08em}.language-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.language-trigger{min-width:96px;min-height:36px;padding-inline:3px;font-size:12px}.language-menu{right:0;width:146px}.site-header nav{gap:7px}.site-header .header-cta{padding-inline:12px}.header-tools .plain-link{display:none}}
@media(max-width:420px){.site-header .header-cta{display:none}}

/* Grouped questionnaire */
.stage-form-page{max-width:1280px;padding-top:30px;padding-bottom:80px}
.stage-progress{max-width:none;margin:0 0 44px;padding:0 0 22px;border-bottom:1px solid var(--line)}
.stage-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:12px;font-size:13px}
.stage-progress-copy span{color:var(--sage);font-weight:600;letter-spacing:.06em}
.stage-progress-copy b{font-weight:500;color:var(--muted)}
.stage-progress-track{height:8px;overflow:hidden;border-radius:99px;background:#e2e8e8}
.stage-progress-track i{display:block;height:100%;border-radius:inherit;background:var(--sage);transition:width .25s ease}
.stage-form-grid{display:grid;grid-template-columns:minmax(250px,300px) minmax(0,1fr);gap:clamp(46px,7vw,96px);align-items:start}
.stage-intro{position:sticky;top:28px}
.stage-intro .section-number{display:block;font-size:52px;line-height:1;margin-bottom:16px}
.stage-intro .kicker{margin-bottom:8px;font-size:12px}
.stage-intro h1{font:500 30px/1.65 var(--serif);margin:0 0 10px}
.stage-intro .hand-line{width:128px;margin:0 0 24px}
.stage-intro img{display:block;width:100%;height:260px;object-fit:cover}
.stage-intro>p:last-child{margin:20px 0 0;color:var(--muted);font-size:13px;line-height:1.9}
.stage-questions{min-width:0;border-top:1px solid var(--ink)}
.stage-heading{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}
.stage-heading .kicker{margin:0;font-size:13px}
.stage-heading strong{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font:500 13px var(--serif);color:var(--muted)}
.stage-question{min-width:0;margin:0;padding:34px 0 38px;border:0;border-bottom:1px solid var(--line)}
.stage-question legend{display:grid;width:100%;grid-template-columns:44px minmax(0,1fr);gap:13px;align-items:start;padding:0;font:500 clamp(21px,2.25vw,29px)/1.65 var(--serif)}
.stage-question legend span{padding-top:.45em;color:var(--sage);font:500 12px/1 var(--sans);letter-spacing:.08em}
.question-dimension{margin:10px 0 0 57px;color:var(--muted);font-size:12px;line-height:1.7}
.stage-question .radio-list{margin:22px 0 0 57px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stage-question .radio-row{min-height:56px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:#fff6;grid-template-columns:29px minmax(0,1fr);font-size:14px;line-height:1.6;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.stage-question .radio-row:first-child{border-top:1px solid var(--line)}
.stage-question .radio-row:hover{border-color:var(--sage);background:#fff;transform:translateY(-1px)}
.stage-question .radio-row.selected{border-color:var(--sage);background:var(--fog)}
.stage-question .radio-dot{width:20px;height:20px}
.stage-question.is-invalid{border-left:3px solid var(--rose);padding-left:18px}
.stage-error{margin:20px 0 0;padding:12px 16px;border-left:3px solid var(--rose);background:#fbefef;color:#80505a;font-size:13px}
.stage-error[hidden]{display:none}
.stage-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:34px}
.stage-actions .ink-button{min-width:220px}
.stage-actions .under-link:disabled{border-bottom-color:transparent}
@media(max-width:900px){.stage-form-page{padding:26px 28px 70px}.stage-progress{margin-bottom:30px}.stage-form-grid{grid-template-columns:1fr;gap:30px}.stage-intro{position:static;display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:18px;align-items:start}.stage-intro .section-number{grid-row:1/3;font-size:36px}.stage-intro .kicker{grid-column:2;margin:1px 0 5px}.stage-intro h1{grid-column:2;font-size:26px;line-height:1.5}.stage-intro .hand-line,.stage-intro img{display:none}.stage-intro>p:last-child{grid-column:1/-1;margin-top:10px;padding:14px 18px;border-left:2px solid var(--sage);background:#fff7}.stage-question .radio-list{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.stage-form-page{padding:20px 18px 54px}.stage-progress{margin-bottom:24px;padding-bottom:17px}.stage-progress-copy{gap:12px}.stage-progress-copy b{font-size:12px;text-align:right}.stage-form-grid{gap:22px}.stage-intro{grid-template-columns:54px minmax(0,1fr);column-gap:12px}.stage-intro .section-number{font-size:28px}.stage-intro h1{font-size:23px}.stage-intro>p:last-child{font-size:12px}.stage-heading{min-height:60px}.stage-question{padding:27px 0 30px}.stage-question legend{grid-template-columns:34px minmax(0,1fr);gap:7px;font-size:21px;line-height:1.55}.question-dimension{margin-left:41px}.stage-question .radio-list{margin:18px 0 0;grid-template-columns:1fr;gap:7px}.stage-question .radio-row{min-height:54px;padding:10px 12px}.stage-actions{gap:14px;padding-top:26px}.stage-actions .ink-button{min-width:0;flex:1;padding-inline:18px}.stage-actions .under-link{font-size:13px}}

/* Watashirube brand system: わた + shared し + るべ */
.wordmark{gap:18px;align-items:center;letter-spacing:0}
.wordmark .brand-name,.footer-brand .brand-name{display:inline-flex;font:500 clamp(24px,2.15vw,31px)/1 var(--serif);letter-spacing:.08em;white-space:nowrap}
.wordmark .brand-name span,.footer-brand .brand-name span{display:inline;font:inherit;letter-spacing:inherit}
.brand-self{color:var(--ink)}
.brand-bridge{color:var(--rose)}
.brand-guide{color:var(--sage)}
.wordmark .wordmark-meta{display:flex;flex-direction:column;align-items:flex-start;gap:4px;color:var(--muted);letter-spacing:0}
.wordmark-meta b{font:600 9px/1 var(--sans);letter-spacing:.28em;color:var(--ink)}
.wordmark-meta small{font:500 9px/1 var(--sans);letter-spacing:.08em;color:var(--muted)}
.product-lockup{display:flex;align-items:baseline;gap:14px;margin:0 0 28px;padding-left:15px;border-left:2px solid var(--rose)}
.product-lockup strong{font:500 19px/1.4 var(--serif);letter-spacing:.12em}
.product-lockup span{color:var(--muted);font-size:11px;letter-spacing:.05em}
.footer-brand b{display:flex;align-items:center;font-weight:500}
.footer-brand .brand-name{font-size:20px}
.footer-brand>.footer-brand-meta{font:600 8px/1.5 var(--sans);letter-spacing:.22em;color:var(--muted)}
.footer-brand-meta small{font-size:8px;letter-spacing:.06em}
.boot-error{min-height:100vh;display:grid;place-items:center;padding:32px;text-align:center}
.boot-error>div{max-width:560px;padding:44px;border-top:1px solid var(--ink);border-bottom:1px solid var(--line)}
.boot-error .brand-name{display:inline-flex;margin-bottom:26px;font:500 34px/1 var(--serif);letter-spacing:.08em}
.boot-error p{color:var(--sage);font-size:13px;letter-spacing:.06em}
.boot-error h1{font:500 clamp(27px,4vw,42px)/1.6 var(--serif);margin:12px 0 30px}
@media(max-width:620px){.wordmark .brand-name{display:inline-flex;font-size:22px}.wordmark .brand-name span{display:inline}.wordmark .wordmark-meta{display:none}.product-lockup{align-items:flex-start;flex-direction:column;gap:3px;margin-bottom:22px}.footer-brand .brand-name{font-size:19px}.footer-brand>.footer-brand-meta{display:block}.boot-error>div{padding:34px 8px}}

/* Responsive layout system: phone / tablet / desktop */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:clip}
body,#app,.home-main,.profile-page,.stage-form-page,.report-page{min-width:0}
img{max-width:100%}
.site-header>*,.hero>*,.profile-page>*,.stage-form-grid>*,.report-hero>*,.report-layout>*{min-width:0}
.stage-question,.report-section,.answer-fact,.evidence-group,.response-path{overflow-wrap:anywhere}
.stage-question{scroll-margin-top:24px}

@media(pointer:coarse){
  button,select,.radio-row{min-height:44px}
  .under-link{padding-block:10px}
}

/* Tablet: keep the editorial rhythm, but use the available width deliberately. */
@media(min-width:700px) and (max-width:1023px){
  .site-header{height:80px;padding-inline:28px}
  .site-header nav{gap:14px}
  .site-header nav>button:not(.header-cta),.header-tools>.plain-link{display:none}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero-copy{max-width:760px;padding:clamp(60px,8vw,84px) 8vw 54px}
  .hero h1{font-size:clamp(48px,7vw,64px);white-space:normal}
  .hero-photo{height:clamp(360px,52vw,500px);min-height:0;border-bottom-left-radius:0}
  .tier-section{padding:68px 28px 72px}
  .tiers{grid-template-columns:repeat(3,minmax(0,1fr));max-width:820px}
  .tier{border-right:1px solid var(--line);border-bottom:0;padding:22px 12px 26px}
  .tier:last-child{border-right:0}
  .tier strong{font-size:clamp(68px,10vw,82px)}
  .tier p{font-size:14px;line-height:1.7}
  .photo-breathe{grid-template-columns:44% minmax(0,1fr)}
  .photo-breathe img{height:100%;min-height:280px}
  .photo-breathe div{padding:52px 6vw}
  .profile-page{grid-template-columns:1fr;padding:52px 40px 78px;gap:42px}
  .profile-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,38%);grid-template-rows:auto auto 1fr;column-gap:36px;align-items:start}
  .profile-intro .section-number,.profile-intro h1,.profile-intro p{grid-column:1}
  .profile-intro img{grid-column:2;grid-row:1/4;height:100%;min-height:280px;margin-top:0}
  .profile-intro h1{font-size:30px}
  .stage-form-page{padding:30px 40px 72px}
  .stage-intro{grid-template-columns:74px minmax(0,1fr)}
  .stage-question .radio-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-hero{grid-template-columns:minmax(0,52%) minmax(0,48%);min-height:440px}
  .report-hero>div{padding:52px 4vw 42px}
  .report-hero h1{font-size:clamp(31px,4.6vw,42px)}
  .report-hero figure{height:auto;min-height:440px;border-bottom-left-radius:28% 18%}
  .report-layout{grid-template-columns:1fr;padding:32px 40px 54px}
  .report-nav{position:static;border-right:0;border-bottom:1px solid var(--line);padding:0 0 20px;display:flex;flex-direction:row;align-items:center;gap:28px}
  .report-nav b{margin:0 auto 0 0}
}

/* Phone: one clear reading column, large tap targets, no accidental side scroll. */
@media(max-width:699px){
  .site-header{height:72px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .site-header nav,.header-tools{gap:7px}
  .site-header nav>button:not(.language-trigger):not(.header-cta),.header-tools>.plain-link{display:none}
  .wordmark .brand-name{font-size:clamp(20px,6vw,22px)}
  .language-trigger{min-width:92px}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero-copy{padding:50px max(20px,env(safe-area-inset-right)) 44px max(20px,env(safe-area-inset-left))}
  .hero h1{font-size:clamp(35px,10.8vw,43px);line-height:1.5;white-space:normal}
  .hero .hand-line{width:min(190px,58vw)}
  .hero .ink-button{width:100%;max-width:330px}
  .hero-photo{height:clamp(280px,84vw,360px);min-height:0;border-bottom-left-radius:0}
  .hero-photo figcaption{top:14%;right:6%;font-size:14px}
  .tier-section{padding:50px max(18px,env(safe-area-inset-right)) 58px max(18px,env(safe-area-inset-left))}
  .tier-section h2{font-size:clamp(27px,8vw,34px)}
  .tiers{grid-template-columns:1fr}
  .tier{border-right:0;border-bottom:1px solid var(--line);padding:24px 10px}
  .tier strong{font-size:clamp(70px,22vw,88px)}
  .photo-breathe{grid-template-columns:1fr}
  .photo-breathe img{height:210px}
  .photo-breathe div{padding:36px max(22px,env(safe-area-inset-right)) 40px max(22px,env(safe-area-inset-left))}
  .site-footer{margin-left:max(20px,env(safe-area-inset-left));margin-right:max(20px,env(safe-area-inset-right));gap:22px;padding-bottom:max(28px,env(safe-area-inset-bottom))}
  .profile-page{padding:36px max(18px,env(safe-area-inset-right)) 60px max(18px,env(safe-area-inset-left));gap:34px}
  .profile-intro h1{font-size:clamp(28px,8vw,34px)}
  .profile-intro img{height:clamp(190px,60vw,250px)}
  .profile-form h2{font-size:clamp(25px,7vw,29px)}
  .form-grid{grid-template-columns:1fr}
  .profile-next{float:none;width:100%}
  .stage-form-page{padding:18px max(16px,env(safe-area-inset-right)) 52px max(16px,env(safe-area-inset-left))}
  .stage-progress-copy{align-items:flex-start}
  .stage-form-grid{grid-template-columns:1fr;gap:20px}
  .stage-intro{grid-template-columns:52px minmax(0,1fr)}
  .stage-intro .section-number{font-size:27px}
  .stage-intro h1{font-size:22px}
  .stage-question legend{font-size:clamp(19px,5.6vw,22px)}
  .stage-question .radio-list{grid-template-columns:1fr}
  .stage-question .radio-row{font-size:15px;line-height:1.55}
  .stage-actions{padding-bottom:max(4px,env(safe-area-inset-bottom))}
  .report-hero{grid-template-columns:1fr;min-height:auto}
  .report-hero>div{padding:40px max(18px,env(safe-area-inset-right)) 36px max(18px,env(safe-area-inset-left))}
  .report-meta{align-items:flex-start}
  .report-hero h1{font-size:clamp(30px,8.8vw,36px)}
  .report-hero figure{height:250px;border-bottom-left-radius:0}
  .report-layout{grid-template-columns:1fr;padding:22px max(18px,env(safe-area-inset-right)) 46px max(18px,env(safe-area-inset-left))}
  .report-nav{position:static;display:flex;flex-direction:row;gap:22px;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:0 0 18px;scrollbar-width:none}
  .report-nav::-webkit-scrollbar{display:none}
  .report-nav b{margin-right:auto;white-space:nowrap}
  .report-nav a{white-space:nowrap}
  .section-head{grid-template-columns:54px minmax(0,1fr);gap:12px}
  .section-head h2{font-size:clamp(24px,7vw,28px)}
  .script-box{padding:20px}
  .report-close{grid-template-columns:1fr}
  .report-close img{height:170px}
  .report-close div{padding:32px max(20px,env(safe-area-inset-right)) 36px max(20px,env(safe-area-inset-left))}
}

@media(max-width:380px){
  .site-header .header-cta{display:none}
  .language-trigger{min-width:88px}
  .hero-copy{padding-top:42px}
  .hero h1{font-size:32px;letter-spacing:0}
  .product-lockup strong{font-size:18px}
  .profile-intro .section-number{font-size:48px}
  .stage-progress-copy{font-size:12px}
  .stage-heading strong{width:32px;height:32px}
  .stage-actions{gap:10px}
  .stage-actions .ink-button{padding-inline:14px}
}

@media(orientation:landscape) and (max-height:560px) and (max-width:1023px){
  .hero{grid-template-columns:minmax(0,54%) minmax(0,46%)}
  .hero-copy{padding:40px 5vw}
  .hero h1{font-size:clamp(35px,5vw,48px)}
  .hero-photo{height:auto;min-height:calc(100svh - 72px)}
}
