:root{
  --brand:#0077d9; --brand-dark:#005bab; --brand-soft:#e8f3fd;
  --ink:#14243a; --sub:#5a6b80; --line:#d7e2ee; --bg:#f4f8fc; --card:#fff;
  --star:#f5a000; --star-off:#c9d4e0; --ok:#12805c;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP","Yu Gothic",sans-serif;line-height:1.7;min-height:100dvh}
.progress{position:fixed;inset:0 0 auto 0;height:5px;background:var(--line);z-index:10}
.progress-bar{height:100%;width:0;background:var(--brand);transition:width .35s ease}
.shell{max-width:640px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;padding:0 20px env(safe-area-inset-bottom)}
.top{display:flex;justify-content:space-between;align-items:center;padding:20px 0 8px;font-size:13px;color:var(--sub)}
.brand{font-weight:700;letter-spacing:.08em;color:var(--brand-dark);font-size:12px}
.brand small{display:block;font-weight:400;letter-spacing:.04em;color:var(--sub);font-size:11px}
.count{font-variant-numeric:tabular-nums;font-weight:700}
main{flex:1;display:flex;flex-direction:column;outline:none;padding-bottom:28px}
.stage{flex:1;display:flex;flex-direction:column;justify-content:center;animation:in .32s ease both}
@keyframes in{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
.stage.back{animation-name:inBack}
@keyframes inBack{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
.chip{align-self:flex-start;background:var(--brand-soft);color:var(--brand-dark);font-weight:700;font-size:13px;padding:4px 12px;border-radius:99px;margin:8px 0 14px}
.q{font-size:clamp(21px,5.6vw,27px);line-height:1.5;font-weight:800;margin:0 0 8px}
.hint{font-size:14px;color:var(--sub);margin:0 0 20px}
.opts{display:grid;gap:10px;margin:6px 0 0}
.opt{display:flex;align-items:center;gap:14px;width:100%;text-align:left;font:inherit;color:inherit;background:var(--card);border:2px solid var(--line);border-radius:14px;padding:14px 16px;min-height:60px;cursor:pointer;transition:border-color .15s,background .15s,transform .1s}
.opt:hover{border-color:var(--brand)}
.opt:active{transform:scale(.985)}
.opt:focus-visible,.ghost:focus-visible,.btn:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.opt.sel{border-color:var(--brand);background:var(--brand-soft)}
.stars{flex:none;font-size:19px;letter-spacing:2px;color:var(--star);white-space:nowrap;min-width:66px}
.stars .off{color:var(--star-off)}
.opt .label{font-size:16px;line-height:1.5}
.nav{display:flex;justify-content:space-between;align-items:center;margin-top:18px}
.ghost{font:inherit;background:none;border:0;color:var(--sub);text-decoration:underline;text-underline-offset:3px;padding:10px 4px;cursor:pointer;font-size:14px}
.ghost[disabled]{opacity:.35;cursor:default;text-decoration:none}
/* result */
.result{animation:in .5s ease both;padding-top:6px}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--brand)}
.result h1{font-size:clamp(22px,6vw,28px);line-height:1.45;margin:6px 0 12px}
.lead{color:var(--sub);font-size:15px;margin:0 0 20px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px 18px 16px;margin:0 0 16px}
.card h2{font-size:15px;margin:0 0 12px;color:var(--brand-dark)}
.card p{margin:0 0 8px}
.hero{background:linear-gradient(135deg,#0077d9,#3aa0f0);color:#fff;border:0}
.hero h2{color:#cfe8ff}
.hero .title{font-size:19px;font-weight:800;line-height:1.5;margin:0 0 10px}
.hero p{color:#fff}
.action{background:#fff;color:var(--ink)!important;border-radius:12px;padding:12px 14px;margin-top:12px}
.action b{display:block;color:var(--brand-dark);font-size:12px;margin-bottom:2px}
.row{margin:0 0 12px}
.row .name{display:flex;justify-content:space-between;font-size:14px;margin-bottom:4px}
.row .name b{font-weight:700}
.row .name span{color:var(--sub);font-variant-numeric:tabular-nums}
.track{height:12px;background:#e6edf5;border-radius:99px;overflow:hidden}
.fill{height:100%;width:0;background:#7fb8ea;border-radius:99px;transition:width .9s cubic-bezier(.2,.8,.2,1)}
.row.pri .fill{background:var(--brand)}
.row.pri .name b::after{content:"まず見直したい";margin-left:8px;font-size:11px;background:var(--brand);color:#fff;padding:2px 8px;border-radius:99px;font-weight:700}
.note{font-size:12.5px;color:var(--sub)}
.steps{display:grid;gap:10px}
.step{display:flex;gap:12px}
.step .n{flex:none;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;font-weight:800;font-size:13px;display:grid;place-items:center;margin-top:2px}
.step b{display:block;font-size:15px}
.step span{font-size:14px;color:var(--sub)}
.cta{background:var(--ink);color:#fff;border:0;text-align:center;padding:24px 18px}
.cta h2{color:#fff;font-size:18px;margin-bottom:6px}
.cta p{color:#c9d6e6;font-size:14px;margin-bottom:16px}
.btns{display:grid;gap:10px}
.btn{display:block;text-decoration:none;font-weight:800;font-size:16px;padding:16px;border-radius:14px;text-align:center}
.btn.primary{background:var(--brand);color:#fff}
.btn.line{background:#06c755;color:#fff}
.btn.off{opacity:.55;pointer-events:none;border:2px dashed #fff}
.dev{font-size:12px;color:#ffd27a;margin-top:12px}
.again{display:block;margin:6px auto 0}
.foot{font-size:11.5px;color:var(--sub);text-align:center;margin:18px 0 0}
@media (prefers-reduced-motion:reduce){.stage,.result{animation:none}.fill,.progress-bar{transition:none}}
/* ---- ChatGPT活用度診断：結果ページの追加分 ---- */
.typehero{background:linear-gradient(135deg,#0b3d91,#0077d9 60%,#3aa0f0);color:#fff;border:0;text-align:center;padding:26px 18px 22px}
.typehero .small{font-size:12px;letter-spacing:.14em;color:#cfe8ff;margin:0 0 4px}
.typehero .tname{font-size:clamp(26px,7.6vw,36px);font-weight:900;line-height:1.2;margin:0;letter-spacing:.04em}
.typehero .tname{margin:2px 0 10px!important}
.typehero .rank{display:inline-block;margin:10px 0 12px;background:#fff;color:var(--brand-dark);font-weight:800;font-size:14px;padding:4px 14px;border-radius:99px}
.typehero .tcatch{font-size:16px;font-weight:700;margin:0 0 10px}
.typehero p{color:#fff;margin:0 0 6px}
.typehero .strength{font-size:14.5px;color:#e7f3ff;text-align:left;background:rgba(255,255,255,.12);border-radius:12px;padding:12px 14px;margin-top:10px}
.radarwrap{display:flex;justify-content:center;margin:2px 0 6px}
.radar{width:100%;max-width:380px;height:auto;overflow:visible}
.radar .ring{fill:none;stroke:#d7e2ee;stroke-width:1}
.radar .spoke{stroke:#d7e2ee;stroke-width:1}
.radar .shape{fill:rgba(0,119,217,.22);stroke:#0077d9;stroke-width:2.5;stroke-linejoin:round;transform-origin:50% 50%;transform-box:view-box;transform:scale(.05);opacity:0;transition:transform .9s cubic-bezier(.2,.8,.2,1),opacity .6s}
.radar .shape.on{transform:scale(1);opacity:1}
.radar .dot{fill:#0077d9}
.radar text{font-size:12.5px;fill:#14243a;font-weight:700}
.radar text.pct{font-size:11px;fill:#5a6b80;font-weight:600}
.radar text.top{fill:#0b3d91}
.radar text.weakx{fill:#c2410c}
.caution{background:#fff8ec;border:1px solid #f6d9a8}
.caution h2{color:#b45309}
.gap-item{padding:14px 0;border-top:1px dashed var(--line)}
.gap-item:first-of-type{border-top:0;padding-top:0}
.gap-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px}
.gap-head b{font-size:16px}
.badge{font-size:11.5px;font-weight:800;padding:2px 10px;border-radius:99px;white-space:nowrap}
.badge.big{background:#ffe6e0;color:#c2410c}.badge.some{background:#fff1d6;color:#a16207}.badge.close{background:#e6f2ff;color:#005bab}.badge.strong{background:#dff5ea;color:#12805c}.badge.unknown{background:#eceff3;color:#5a6b80}
.gap-item .fill{background:#f08a5d}
.gap-item .note{margin:6px 0 10px}
.lockbox{position:relative;border:2px dashed #b9cde3;border-radius:12px;padding:12px 14px;background:#f6faff}
.lockbox .lk{font-size:12px;font-weight:800;color:var(--brand-dark);display:flex;align-items:center;gap:6px;margin-bottom:6px}
.lockbox .what{font-size:14px;margin:0 0 8px}
.skel{height:9px;border-radius:99px;background:linear-gradient(90deg,#dbe6f2,#eef3f9,#dbe6f2);margin:7px 0}
.skel.s2{width:86%}.skel.s3{width:62%}
.axcard{border-top:1px solid var(--line);padding:14px 0}
.axcard:first-of-type{border-top:0;padding-top:2px}
.axcard .ah{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:2px}
.axcard .ah b{font-size:16px}
.axcard .ah .no{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--brand-soft);color:var(--brand-dark);font-size:12px;font-weight:800;margin-right:8px}
.axcard p{font-size:14px;margin:4px 0 8px}
.axcard .basis{font-size:11.5px;color:var(--sub);margin:6px 0 0}
.cta .price{display:inline-block;background:#fff;color:var(--ink);border-radius:99px;font-size:13px;font-weight:800;padding:2px 12px;margin-left:6px}
.cta .btn.primary{padding:18px 16px;font-size:17px}
.cta .sub{display:inline-block;margin-top:14px;color:#9fb4cc;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.cta .sub.off{text-decoration:none;opacity:.6}
@media (prefers-reduced-motion:reduce){.radar .shape{transition:none}}

/* ---- タイプカラー（結果ページ）---- */
.result{--type:#0077d9;--type-bg:#e8f3fd}
.typehero{background:linear-gradient(145deg,color-mix(in srgb,var(--type) 62%,#0f172a),color-mix(in srgb,var(--type) 84%,#0f172a))!important}
.typehero .small{color:rgba(255,255,255,.82)}
.portrait{display:block;width:min(86%,330px);aspect-ratio:1;margin:0 auto 14px;padding:0;border:4px solid #fff;border-radius:22px;overflow:hidden;background:var(--type-bg);box-shadow:0 8px 24px rgba(0,0,0,.28)}
.portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.radar .shape{fill:color-mix(in srgb,var(--type) 24%,transparent);stroke:var(--type)}
.radar .dot{fill:var(--type)}
.radar text.top{fill:var(--type)}
.typehero .tcatch{text-shadow:0 1px 0 rgba(0,0,0,.15)}

.cert-holder{margin:6px -6px 14px;border-radius:10px;overflow:hidden;box-shadow:0 2px 10px rgba(20,36,58,.18);background:#fffdf8;aspect-ratio:1123/794}
.cert-img{display:block;width:100%;height:auto}
.cert-skel{display:grid;place-items:center;height:100%;color:var(--sub);font-size:14px}
.cert-save{width:100%;border:0;font:inherit;font-weight:800}
.cert-save[aria-disabled=true]{opacity:.5;pointer-events:none}

.share-btn{width:100%;border:0;font:inherit;font-weight:800;cursor:pointer}
