:root{
  --ink:#38362f;
  --muted:#6f6a5e;
  --green:#496b5a;
  --green-dark:#345143;
  --green-soft:#e4ede3;
  --gold:#9b7a3e;
  --brown-dark:#4b3424;
  --line:#b89a62;
  --paper:#f8f4e9;
  --white:#fff;
  --serif:'Yu Mincho','Hiragino Mincho ProN','HGS明朝E','Noto Serif CJK JP',serif;
  --sans:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic','Noto Sans CJK JP',sans-serif;
  --shadow:3px 5px 8px 0 rgba(0,0,0,.17)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#d8c5a5 url('./assets/back.jpg') repeat;color:var(--ink);font-family:var(--serif);font-size:15px;line-height:1.85;letter-spacing:.035em}
button,a{font:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
[hidden]{display:none!important}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #6f8b79;outline-offset:4px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.container{width:min(100%,1130px);margin:auto;padding-left:34px;padding-right:34px}
.skip-link{position:fixed;top:-100px;left:12px;z-index:100;background:white;padding:12px}
.skip-link:not(:focus){visibility:hidden}
.skip-link:focus{top:10px;visibility:visible}
.diagnosis-shell{padding-top:30px;padding-bottom:55px}
.diagnosis-cover{display:block;width:100%;margin:0 auto}
.diagnosis-cover img{display:block;width:100%;height:auto;box-shadow:var(--shadow)}
.result-page-title{display:none;margin:30px auto 42px;color:var(--ink);font-size:clamp(38px,5vw,62px);font-weight:600;line-height:1.5;letter-spacing:.08em;text-align:center}
.is-result .diagnosis-cover{display:none}
.is-result .result-page-title{display:block}
.is-result .result-wrap{margin-top:0}
.app-card{position:relative;max-width:940px;min-height:485px;margin:74px auto 0;padding:62px 70px;background:#f9f6ed url('./assets/inner_back.jpg') repeat;border:1px solid rgba(155,122,62,.18);box-shadow:var(--shadow);overflow:hidden}
.intro{text-align:center;max-width:720px;margin:auto}
.screen-label{font-size:14px;color:var(--muted);letter-spacing:.08em}
.intro h2,.status-screen h2,.question-screen h2{font-size:30px;font-weight:600;line-height:1.65;letter-spacing:.055em}
.intro h2{margin-bottom:35px}
.intro-copy{padding:25px 30px;border:1px solid rgba(155,122,62,.17);background:rgba(255,255,255,.48);font-size:16px;line-height:2;text-align:left}
.intro-actions{display:flex;align-items:center;justify-content:center;gap:90px;margin-top:54px}
.intro-list{display:inline-grid;flex:0 0 auto;gap:10px;text-align:left;color:#5f665d;font-size:15px}
.check-item{display:flex;align-items:center;gap:11px}
.check-item svg{width:22px;height:22px;flex:0 0 22px;color:#708b68}
.primary-button{min-height:58px;display:inline-flex;align-items:center;justify-content:center;gap:15px;padding:13px 44px;border:1px solid var(--green);border-radius:2px;background:var(--green);color:#fff;font-family:var(--sans);font-size:16px;font-weight:600;letter-spacing:.05em;transition:background .15s,transform .15s}
.primary-button:hover{background:var(--green-dark);transform:translateY(-1px)}
.primary-button .arrow{font-size:20px;font-weight:400}
.status-screen{text-align:center}
.status-screen .question-top{text-align:left}
.status-screen .screen-label{margin-bottom:18px}
.status-screen h2{margin-bottom:35px;font-size:32px}
.choice-list{display:grid;gap:14px;text-align:left}
.choice-button{width:100%;min-height:70px;display:flex;align-items:center;justify-content:space-between;padding:15px 27px;border:1px solid rgba(100,92,74,.2);border-radius:2px;background:rgba(255,255,255,.8);box-shadow:0 2px 5px rgba(70,55,30,.06);font-family:var(--serif);font-size:18px;line-height:1.55;text-align:left;transition:background .15s,border-color .15s,transform .15s}
.choice-button:hover,.choice-button[aria-pressed=true]{background:#f5f8f2;border-color:#789077;transform:translateY(-1px)}
.choice-button[aria-pressed=true]{box-shadow:0 0 0 2px rgba(92,123,95,.2)}
.choice-arrow{color:#7b8376;font-size:24px;font-weight:300}
.question-screen{max-width:780px;margin:auto}
.question-top{margin-bottom:27px}
.back-button,.restart-button{border:0;background:none;color:#60675f;padding:4px 0;font-size:15px}
.back-button:hover,.restart-button:hover{text-decoration:underline;text-underline-offset:5px}
.progress-meta{display:flex;align-items:center;margin-bottom:8px}
.question-count{font-family:Georgia,serif;color:#60675f;font-size:18px;letter-spacing:.06em}
.progress{height:8px;margin-bottom:35px;border-radius:10px;background:#dbcfbc;overflow:hidden}
.progress-fill{display:block;height:100%;border-radius:inherit;background:#62816d;transition:width .3s}
.progress-step-1{width:16.6667%}.progress-step-2{width:33.3333%}.progress-step-3{width:50%}.progress-step-4{width:66.6667%}.progress-step-5{width:83.3333%}.progress-step-6{width:100%}
.question-screen h2{margin-bottom:31px;font-size:28px;text-align:left}
.page-note{margin-top:42px;color:var(--brown-dark);font-size:13px;text-align:center}
.result-wrap{max-width:940px;margin:74px auto 0}
.result-card{position:relative;overflow:hidden;padding:56px 70px 62px;border:1px solid rgba(155,122,62,.18);background:#f9f6ed url('./assets/inner_back.jpg') repeat;box-shadow:var(--shadow);text-align:center}
.result-heading{color:#5c5938;font-size:30px;font-weight:600;letter-spacing:.12em}
.result-illustration{display:block;width:min(260px,55%);height:auto;margin:4px auto}
.result-prefix{color:#6b675e;font-size:14px}
.result-card>h3{margin:4px 0 24px;font-size:30px;font-weight:600;line-height:1.55;letter-spacing:.055em}
.result-description{max-width:720px;margin:0 auto;font-size:15px;line-height:2;text-align:left}
.result-points{max-width:720px;margin:30px auto 0;padding:27px 35px 28px;border:1px solid rgba(100,92,74,.15);background:rgba(255,255,255,.78);text-align:left}
.result-points-inner{display:table;max-width:100%;margin:0 auto;text-align:left}
.result-points h3{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin-bottom:15px;font-family:var(--sans);font-size:18px;letter-spacing:.02em}
.result-points h3 svg{width:23px;height:23px;color:#6d8b65}
.result-points ul{margin:0;padding:0;list-style:none;display:grid;gap:9px}
.result-points li{position:relative;padding-left:33px;font-family:var(--sans);font-size:15px;line-height:1.8}
.result-points li:before{content:'✓';position:absolute;left:0;top:.04em;width:20px;height:20px;display:grid;place-items:center;border:1px solid #789471;border-radius:50%;color:#6e8c65;font-size:13px;font-weight:700;line-height:1}
.next-steps{margin-top:74px;padding:52px 48px 44px;border:1px solid rgba(155,122,62,.18);background:#f9f6ed url('./assets/inner_back.jpg') repeat;box-shadow:var(--shadow)}
.next-kicker{color:#4c6554;font-family:Georgia,serif;font-size:13px;font-weight:600;letter-spacing:.25em;text-align:center}
.next-steps>h2{margin:5px 0 2px;font-size:29px;font-weight:500;letter-spacing:.1em;text-align:center}
.next-lead{margin-bottom:30px;color:#6c6d64;font-size:14px;text-align:center}
.step-list{display:grid;gap:25px}
.step-card{display:grid;grid-template-columns:54px 1fr auto;gap:20px;align-items:center;padding:17px 20px;border:1px solid rgba(100,92,74,.18);background:rgba(255,255,255,.78)}
.step-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#eef1e7;color:#5f785b}
.step-icon svg{width:26px;height:26px}
.step-copy small{display:inline-block;margin-bottom:3px;padding:1px 8px;border-radius:99px;background:#edf1e7;color:#63705e;font-family:var(--sans);font-size:13px;line-height:1.6}
.step-copy h3{font-size:18px;font-weight:600;letter-spacing:.04em}
.step-copy p{color:#707168;font-family:var(--sans);font-size:13px;line-height:1.7}
.step-link{width:190px;min-width:190px;height:52px;min-height:52px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;gap:10px;padding:9px 16px;border:1px solid var(--green);border-radius:2px;color:var(--green);font-family:var(--sans);font-size:14px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.step-link:hover{background:var(--green);color:#fff}
.step-card:first-child .step-link{background:var(--green);color:#fff}
.step-card:first-child .step-link:hover{background:var(--green-dark)}
.result-actions{margin-top:27px;text-align:center}
.site-footer{min-height:104px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid rgba(75,52,36,.46);color:var(--brown-dark)}
.site-footer>span:first-child{font-family:Georgia,serif;font-size:15px;color:var(--brown-dark)}
.footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;font-family:var(--sans);font-size:13px;line-height:2}
.footer-item{display:inline-flex;align-items:center;white-space:nowrap}
.footer-item+.footer-item:before{content:'｜';padding:0 7px;color:var(--brown-dark)}
.footer-links a:hover{text-decoration:underline;text-underline-offset:4px;color:var(--green)}
.screen-enter{animation:screen-in .28s ease-out}
@keyframes screen-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  .container{padding-left:20px;padding-right:20px}
  .diagnosis-shell{padding-top:20px;padding-bottom:38px}
  .result-page-title{margin:20px auto 34px;font-size:clamp(34px,9vw,50px)}
  .app-card,.result-wrap{margin-top:42px}
  .app-card{min-height:0;padding:42px 25px}
  .intro h2,.status-screen h2{font-size:25px}
  .intro-copy{padding:20px;font-size:15px}
  .intro-actions{flex-direction:column;align-items:stretch;gap:32px;margin-top:38px}
  .intro-list{margin:0 auto}
  .primary-button{width:100%;font-size:16px}
  .status-screen h2{margin-bottom:27px}
  .choice-button{min-height:64px;padding:13px 18px;font-size:17px}
  .question-top{margin-bottom:22px}
  .progress{margin-bottom:27px}
  .question-screen h2{font-size:24px;line-height:1.65}
  .page-note{margin-top:30px}
  .result-card{padding:42px 25px 40px}
  .result-heading{font-size:26px}
  .result-card>h3{font-size:25px}
  .result-description{font-size:15px}
  .result-points{padding:23px 20px 24px}
  .result-points h3{font-size:17px}
  .next-steps{margin-top:42px;padding:38px 20px 32px}
  .next-steps>h2{font-size:27px}
  .step-card{grid-template-columns:55px 1fr;gap:13px;padding:16px}
  .step-copy h3{font-size:18px}
  .step-link{grid-column:1/-1;width:100%;min-width:0;height:54px;margin-top:2px}
  .site-footer{align-items:flex-start;flex-direction:column;gap:10px;padding-top:22px;padding-bottom:22px}
  .footer-links{justify-content:flex-start}
}
@media(max-width:420px){
  .container{padding-left:14px;padding-right:14px}
  .diagnosis-shell{padding-top:14px}
  .app-card{padding-left:18px;padding-right:18px}
  .status-screen h2{font-size:23px}
  .question-screen h2{font-size:22px}
  .choice-button{font-size:16px}
  .result-card{padding-left:18px;padding-right:18px}
  .result-heading{font-size:24px}
  .result-card>h3{font-size:23px}
  .result-points{padding-left:15px;padding-right:15px}
  .result-points-inner{display:block;width:100%}
  .next-steps{padding-left:14px;padding-right:14px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
