/* Shared visual system: brand / action / reading surfaces / restrained accent. */
:root{--ink:#18364d;--muted:#506779;--brand:#123c5a;--action:#096ba4;--action-hover:#075785;--wash:#eaf4fb;--line:#c7d9e6;--red:#a9434c;--radius:18px;--shadow:0 12px 32px #173c5a0c}
*{box-sizing:border-box}html{color-scheme:light;scroll-behavior:smooth}body{margin:0;background:var(--wash);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.8}a{color:var(--action);text-underline-offset:4px}header,main,footer{margin:auto;padding:24px}header{max-width:none;background:var(--brand);border-bottom:4px solid #6bb4d9;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:18px max(24px,calc((100% - 1072px)/2))}.brand-group{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.brand{font-size:17px;font-weight:800;letter-spacing:.03em;color:#fff;text-decoration:none}.brand-diagnosis{font-size:13px;line-height:1.45;border-left:1px solid #78a5c4;padding-left:18px;color:#e2f1fb}.brand-diagnosis small{display:block;font-size:10px;letter-spacing:.13em;color:#b5d7ed}nav{display:flex;flex-wrap:wrap;gap:20px;font-size:13px}header nav a{color:#e2f1fb;text-decoration:none}header nav a:hover{text-decoration:underline}main{max-width:1120px;padding:36px 24px 16px;min-width:0}.hero{padding:16px 0 28px;max-width:820px}.eyebrow,.number{font-size:12px;letter-spacing:.08em;font-weight:800;color:var(--action)}h1{color:var(--brand);font-size:clamp(32px,4vw,48px);font-weight:850;line-height:1.35;letter-spacing:-.035em;margin:12px 0 20px}h2{color:var(--brand);font-size:25px;line-height:1.45;letter-spacing:-.02em}h3{color:var(--brand);font-size:19px;line-height:1.5}.lead{font-size:18px;line-height:1.8;color:var(--muted);max-width:680px}.note{font-size:13px;line-height:1.8;color:var(--muted)}p{margin:14px 0}.home-hero{max-width:none;background:#fff;border-radius:24px;padding:36px;box-shadow:var(--shadow);border:1px solid #d6e4ef;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:36px;align-items:start;margin-bottom:46px}.home-hero h1{grid-column:1;grid-row:1;margin:4px 0 14px;font-size:42px;line-height:1.4;position:relative}.home-hero h1:before{content:"";position:absolute;left:-17px;top:8px;width:4px;height:38px;border-radius:4px;background:var(--red)}.headline-tail{display:inline-block}.home-hero>.lead{grid-column:1;grid-row:2;font-size:17px;margin:0 0 12px}.home-hero>.note{grid-column:1;grid-row:3;margin:10px 0}.first-question{grid-column:2;grid-row:1 / 4;background:#edf6fc;border:1px solid #c0d9eb;border-radius:18px;padding:24px;margin:0}.first-question h2{font-size:21px;line-height:1.6;margin:0 0 18px}.first-question .number{display:block;font-size:12px;letter-spacing:.12em;margin-bottom:5px}.first-choices{display:grid;gap:12px}.first-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:60px;border:1px solid var(--action);border-bottom:3px solid #074c75;border-radius:10px;padding:14px 18px;background:var(--action);color:#fff;font-weight:750;font-size:16px;line-height:1.6;text-decoration:none;box-shadow:0 4px 9px #096ba416}.first-choice:hover{background:var(--action-hover)}.first-choice:active{background:#064a73;box-shadow:none}.secondary-entry{grid-column:2;grid-row:4;margin:16px 0 0}.button,button{font:inherit}.button,button[type=submit]{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:14px 22px;min-height:52px;background:var(--action);color:#fff;border:1px solid var(--action);border-radius:10px;font-size:16px;font-weight:750;line-height:1.6;text-decoration:none;text-align:center;cursor:pointer}.button:hover,button[type=submit]:hover{background:var(--action-hover)}.button:active,button[type=submit]:active{background:#064a73}.button.secondary{border:1px solid #6d9bb9;background:#fff;color:var(--brand);font-size:14px;font-weight:650;box-shadow:none}.button.secondary:hover{background:#e4f1fa}.compare-button{width:100%}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #c77c2a;outline-offset:4px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0 28px}.card,fieldset,.result{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow);min-width:0;overflow-wrap:anywhere}.card h2{font-size:23px;margin:18px 0 12px}.card h2:first-child{margin-top:0}.card p{color:var(--muted)}.card-step{display:flex;align-items:center;gap:12px}.card-step .number{letter-spacing:.04em}.grid .card{border-top:4px solid #5ea4ca}.home-hero+section>h2{font-size:28px;margin-top:0}main>section.card{margin:20px 0}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:28px 0}.actions>a:not(.button){font-size:14px}.question-nav{display:flex;gap:24px;position:sticky;top:0;z-index:2;padding:14px 18px;margin:0 0 26px;background:#f5f9fc;border:1px solid var(--line);border-radius:14px;box-shadow:0 5px 18px #16374d0a;width:max-content;max-width:100%}.step-button{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:66px;min-height:52px;padding:7px 10px;line-height:1.15;text-decoration:none;border:1px solid #89b1cd;border-radius:9px;background:#e3f0f9;color:var(--brand);font-size:17px;font-weight:800;cursor:pointer}.question-nav .step-button:before{content:"STEP";font-size:9px;letter-spacing:.1em;font-weight:650;margin-bottom:4px}.question-nav .step-button:not(:last-child):after{content:"";position:absolute;left:calc(100% + 1px);top:50%;width:24px;height:1px;background:#b2cbdc}.step-button[aria-current=step]{background:var(--brand);color:#fff;border:1px solid var(--brand);border-bottom:4px solid var(--red)}.step-button:disabled{background:#edf1f4;color:#687a87;border-color:#d3dde4;cursor:not-allowed}.step-button:hover:not(:disabled):not([aria-current=step]){background:#cee5f5}.card-step .step-button{width:46px;min-height:46px;font-size:15px}.question-nav:has(+ form fieldset:nth-child(1) input:checked) [data-question="0"]:not([aria-current]){border-color:#096ba4;background:#d3eafb;color:#074c75}.question-nav:has(+ form fieldset:nth-child(2) input:checked) [data-question="1"]:not([aria-current]){border-color:#096ba4;background:#d3eafb;color:#074c75}.question-nav:has(+ form fieldset:nth-child(3) input:checked) [data-question="2"]:not([aria-current]){border-color:#096ba4;background:#d3eafb;color:#074c75}fieldset{margin:28px 0 32px;padding:20px 26px 26px;border-top:4px solid #67a6cc}legend{font-size:23px;font-weight:800;line-height:1.6;color:var(--brand);padding:0 10px;scroll-margin-top:108px;max-width:100%}label{display:flex;gap:12px;align-items:flex-start;padding:15px 18px;margin:12px 0 0;border:1px solid #9fbdd2;border-radius:10px;background:#f7fbfe;color:#214b68;cursor:pointer;line-height:1.7;min-height:56px}label:hover{border-color:var(--action);background:#e9f4fc}label:has(input:checked){background:var(--action);border-color:var(--action);color:#fff;font-weight:700}input{flex-shrink:0;margin-top:7px;accent-color:var(--action)}label:has(input:checked) input{accent-color:#fff}#check-form{max-width:850px}#check-form button[type=submit]{margin-top:0}.result{border-top:5px solid var(--action);padding:36px;max-width:920px}.pill{display:inline-block;padding:4px 12px;border-radius:6px;background:#e6f2fb;color:#235b7d;font-size:11px;font-weight:700;letter-spacing:.03em}#result-title{font-size:36px;line-height:1.5;margin:20px 0 28px;color:var(--brand);letter-spacing:-.025em}#result h3{font-size:18px;margin:26px 0 10px;padding-left:12px;border-left:3px solid #68a6cc}#result-reason{max-width:760px;color:#3d5b70}.steps{padding:0;list-style:none;counter-reset:action}.steps li{counter-increment:action;position:relative;margin:12px 0;padding:15px 18px 15px 52px;border-radius:10px;background:#eef6fc;line-height:1.8;max-width:800px}.steps li:before{content:counter(action,decimal-leading-zero);position:absolute;left:16px;top:17px;color:var(--action);font-size:13px;font-weight:800}main:has(#result)>.hero h1{font-size:24px;letter-spacing:0;color:#49677e}main:has(#dating)>section[id]{border-left:4px solid #5ea4ca;padding:28px 32px;max-width:920px}main:has(#dating)>section[id]>.number{display:inline-block;background:#e6f2fb;padding:4px 10px;border-radius:6px}main:has(#dating)>section[id]>h2{font-size:26px}main:has(#dating)>section[id]>p:last-child{padding-top:16px;border-top:1px solid #dfebf3}main:has(#dating)>section[id] strong{color:var(--brand)}.email-button{overflow-wrap:anywhere}footer{max-width:none;background:#dcecf7;border-top:1px solid #b4cddf;margin-top:46px;padding:28px max(24px,calc((100% - 1072px)/2));color:#415f75;font-size:13px}footer strong{color:var(--brand);font-size:14px}footer nav{margin:16px 0;gap:20px}footer a{color:#365d78}section[id]{scroll-margin-top:26px}table{width:100%;border-collapse:collapse}td,th{padding:12px;text-align:left;border-bottom:1px solid var(--line)}.table-wrap{overflow-x:auto}.banner{max-width:100%;height:auto}.notice{padding:10px 20px;background:#deedf8;font-size:13px;text-align:center}[hidden]{display:none!important}
@media(max-width:800px){header{align-items:flex-start;flex-wrap:wrap;gap:12px}.brand-group{gap:12px}.brand-diagnosis{padding-left:12px}header nav{gap:18px}.home-hero{column-gap:24px;padding:28px}.home-hero h1{font-size:34px}.first-question{padding:20px}}
@media(max-width:650px){header{display:block;padding:14px 18px 12px}.brand-group{flex-wrap:nowrap;gap:10px}.brand{font-size:14px;letter-spacing:0}.brand-diagnosis{padding-left:10px;font-size:11px;flex-shrink:0}.brand-diagnosis small{font-size:9px}header nav{margin-top:10px;font-size:12px;gap:18px}main{padding:20px 14px 8px}.hero{padding:6px 4px 18px}h1{font-size:30px;line-height:1.45;margin:10px 0 16px}h2{font-size:23px}h3{font-size:18px}.lead{font-size:16px}.home-hero{display:block;border-radius:18px;padding:22px 18px 20px;margin-bottom:30px}.home-hero h1{font-size:clamp(26px,7.3vw,31px);line-height:1.45;margin:0 0 12px}.home-hero h1:before{left:-10px;top:7px;width:3px;height:28px}.home-hero>.lead{font-size:15px;margin:0 0 20px;line-height:1.7}.first-question{padding:18px 14px;border-radius:14px;margin-top:16px}.first-question h2{font-size:18px;line-height:1.6;margin-bottom:14px}.first-question .number{margin-bottom:3px}.first-choices{gap:10px}.first-choice{font-size:15px;padding:13px 14px;min-height:54px}.home-hero>.note{font-size:11px;margin:12px 0}.secondary-entry{margin:14px 0 0}.button.secondary{font-size:13px;line-height:1.6;padding:11px 12px}.home-hero+section>h2{font-size:24px;padding-left:4px}.grid{grid-template-columns:1fr;gap:16px;margin:20px 0}.card,fieldset,.result{padding:22px 20px;border-radius:14px}.card h2{font-size:22px}.grid .card{box-shadow:none}.note{font-size:12px}.question-nav{gap:20px;padding:10px 12px;margin-bottom:24px;border-radius:12px}.question-nav .step-button{width:62px;min-height:50px}.question-nav .step-button:not(:last-child):after{width:20px}.question-nav .step-button:before{font-size:9px}fieldset{margin:24px 0 28px;padding:14px 16px 18px}legend{font-size:19px;padding:0 6px;scroll-margin-top:100px}label{padding:14px 12px;font-size:15px;min-height:56px}input{margin-top:7px}.result{padding:24px 20px}#result-title{font-size:28px;line-height:1.5;margin:18px 0 24px}#result h3{font-size:17px}main:has(#result)>.hero h1{font-size:21px}.steps li{font-size:15px;padding:14px 14px 14px 44px}.steps li:before{left:12px}.actions{align-items:stretch;gap:16px;margin:24px 0}.actions .button{width:100%;font-size:15px}main:has(#dating)>section[id]{padding:22px 20px}main:has(#dating)>section[id]>h2{font-size:23px}.email-button{font-size:14px;padding:12px}.button,button[type=submit]{max-width:100%;font-size:15px}footer{margin-top:32px;padding:24px 20px}footer nav{gap:16px;font-size:12px}footer strong{font-size:13px}}
.question-nav:has(+ form fieldset:nth-child(1) input:checked) [data-question="0"]:not([aria-current])::before,.question-nav:has(+ form fieldset:nth-child(2) input:checked) [data-question="1"]:not([aria-current])::before,.question-nav:has(+ form fieldset:nth-child(3) input:checked) [data-question="2"]:not([aria-current])::before{content:"✓ STEP"}

/* Diagnostic-first opening; original brand palette and navigation behavior retained. */
.mobile-site-nav{display:none}.home-hero h1{font-size:38px;line-height:1.4}.title-prefix{display:block;width:max-content;margin-bottom:12px;padding:4px 10px;border-radius:5px;background:#e5f1fa;color:var(--action);font-size:14px;font-weight:800;letter-spacing:.02em}.home-hero>.empathy-hook{font-size:18px;color:var(--ink);line-height:1.7;margin:2px 0 8px}.entry-progress{display:flex;gap:22px;justify-content:center;margin-top:18px}.entry-progress span{position:relative;color:#627e91;font-size:12px;font-weight:750;line-height:1.8}.entry-progress span:not(:last-child):after{content:"";position:absolute;left:calc(100% + 5px);top:50%;width:12px;height:1px;background:#b8cfdf}.entry-progress [aria-current=step]{color:var(--red);border-bottom:2px solid var(--red)}
@media(max-width:650px){header nav{display:none}.mobile-site-nav{display:flex;border-top:1px solid #b4cddf;padding-top:16px;margin-bottom:0;gap:18px}.brand-diagnosis small{display:none}header{padding:13px 18px}.brand-group{align-items:center}.home-hero{padding-top:20px}.home-hero h1{font-size:clamp(27px,7.5vw,31px);line-height:1.35;margin-bottom:12px}.title-prefix{font-size:13px;line-height:1.5;padding:3px 9px;margin-bottom:9px}.home-hero h1:before{top:42px;height:29px}.home-hero>.empathy-hook{font-size:15px;line-height:1.7;margin:0 0 16px}.first-question{margin-top:12px}.first-question h2{font-size:18px}.entry-progress{margin-top:14px}.home-hero>.note{margin:10px 0}.secondary-entry{margin-top:12px}}
.first-question h2{text-wrap:balance}

/* Introductory numbers are peers; live question navigation keeps its state styles. */
.card-step .step-button,.card-step .step-button:disabled,.card-step .step-button:hover{background:#e3f0f9;color:var(--brand);border:1px solid #89b1cd;border-radius:9px;box-shadow:none;font-weight:800;filter:none}

/* One footer, with site navigation and operator links in their proper hierarchy. */
.footer-brand{display:flex;align-items:baseline;gap:10px}.footer-brand span{font-size:12px;color:#415f75}.footer-site-menu{display:none}.footer-menus h2{display:none}.footer-operator-menu nav{margin:16px 0}.footer-copyright{margin:18px 0 0;font-size:12px;color:#506779}
@media(max-width:650px){footer{padding:26px 20px 20px}.footer-brand{display:block}.footer-brand strong{font-size:15px}.footer-brand span{display:block;margin-top:2px;font-size:12px}.footer-menus{display:grid;gap:22px;margin-top:24px}.footer-site-menu{display:block}.footer-menus h2{display:block;font-size:12px;letter-spacing:.05em;font-weight:800;color:var(--brand);margin:0 0 10px}.footer-menus nav{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:13px;line-height:1.9;margin:0}.footer-copyright{margin:24px 0 0;padding-top:16px;border-top:1px solid #b4cddf;font-size:11px}}

/* Final silver palette: surfaces only; existing layout, navy and blue actions retained. */
:root{--wash:#f4f5f7;--line:#d5dce3;--shadow:0 12px 32px #18364d08}
.home-hero{border-color:#dce1e7}
.first-question{background:#f1f4f7;border-color:#cdd7e0}
.question-nav{background:#f5f6f8}
footer{background:#e9edf2;border-top-color:#cbd3dc}
.footer-copyright{border-top-color:#cbd3dc}
.home-hero h1:before{background:var(--action)}
.entry-progress [aria-current=step]{color:var(--action);border-bottom-color:var(--action)}
.step-button[aria-current=step]{border-bottom-color:var(--action)}
.entry-progress span{color:var(--muted)}

/* Service reading: normal inline flow with standard Japanese kinsoku. */
.service-page main{max-width:60rem}
.service-page main .hero{max-width:none}
.service-page main p{max-inline-size:none;line-height:1.9;white-space:normal;word-break:normal;overflow-wrap:normal;line-break:strict;text-wrap:wrap}
.service-page .card{overflow-wrap:normal}
.service-page main h1,.service-page main h2{word-break:normal;overflow-wrap:normal;line-break:strict;text-wrap:wrap}
.service-page .service-name{white-space:nowrap;word-break:keep-all;overflow-wrap:normal}
