:root{
  --bg:#f6f4fb; --panel:#fff; --ink:#23212b; --sub:#7b7788; --line:#e6e2ef;
  --accent:#6c5ce7; --accent2:#efecfd; --agree:#2eb88a; --dis:#8e6fd8; --warn:#d9403a;
  --nt:#8e6fd8; --nf:#2eb88a; --sj:#3d8fe0; --sp:#e7a83a;
  --mono:"SFMono-Regular",Menlo,Consolas,"Courier New",monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:#e9e6f1;color:var(--ink);font-family:"Hiragino Sans","Noto Sans JP","Yu Gothic UI",system-ui,sans-serif;-webkit-font-smoothing:antialiased;overscroll-behavior:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
ul{list-style:none}
#app{position:relative;max-width:560px;height:100%;height:100dvh;margin:0 auto;background:var(--bg);overflow:hidden}
.screen{position:absolute;inset:52px 0 0;display:none;flex-direction:column}
.screen.show{display:flex}

/* ボタン */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 28px;border-radius:999px;font-weight:700;font-size:16px;text-decoration:none;transition:transform .1s,opacity .2s}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(108,92,231,.28)}
.btn.line{color:var(--accent);border:1.5px solid var(--accent);background:#fff}
.btn.ghost{color:var(--sub)}
.btn.share{background:#23212b;color:#fff}
.btn.danger{background:var(--warn);color:#fff}
.btn.x{background:#000;color:#fff}
.btn.x::before{content:"𝕏";font-size:18px}

/* 作中サイトのヘッダー */
.site-head{position:absolute;left:0;right:0;top:0;height:52px;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);backdrop-filter:blur(6px)}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:15px;letter-spacing:.04em}
.logo i{width:22px;height:22px;border-radius:7px;background:conic-gradient(var(--nt) 0 25%,var(--nf) 0 50%,var(--sj) 0 75%,var(--sp) 0);transform:rotate(45deg) scale(.82)}
.sh-r{font-size:11px;font-weight:700;color:var(--accent);background:var(--accent2);padding:4px 10px;border-radius:999px}
#app.ended .site-head{display:none}
#app.ended #result{top:0}

/* トップ */
#top{overflow-y:auto;align-items:center;text-align:center;padding:26px 20px 24px}
.hero{width:100%;padding:30px 20px 26px;border-radius:24px;background:linear-gradient(160deg,#fff 0%,#f1edff 100%);box-shadow:0 10px 30px rgba(80,60,160,.08)}
.h-sup{font-size:12px;letter-spacing:.3em;color:var(--accent);font-weight:700;margin-bottom:10px}
.hero h1{font-size:25px;line-height:1.5;letter-spacing:.02em;margin-bottom:10px}
.h-lead{font-size:13px;color:var(--sub);margin-bottom:20px}
.h-shapes{display:flex;justify-content:center;gap:12px;margin-bottom:18px}
.h-shapes i{width:40px;height:40px;border-radius:12px;opacity:.9;animation:bob 3s ease-in-out infinite}
.h-shapes i:nth-child(2){animation-delay:.4s;border-radius:50%}
.h-shapes i:nth-child(3){animation-delay:.8s;transform:rotate(45deg)}
.h-shapes i:nth-child(4){animation-delay:1.2s;border-radius:50% 50% 12px 12px}
@keyframes bob{50%{translate:0 -6px}}
.g-nt{background:var(--nt)}.g-nf{background:var(--nf)}.g-sj{background:var(--sj)}.g-sp{background:var(--sp)}
.h-count{font-size:12px;color:var(--sub);margin-bottom:18px}
.h-count b{color:var(--ink);font-variant-numeric:tabular-nums}
.hero .btn{width:100%;max-width:300px;margin-bottom:10px}
.t-notes{margin-top:18px;font-size:12px;color:var(--sub);line-height:1.9}
.t-foot{margin-top:16px;font-size:11px;letter-spacing:.3em;color:#aaa}

/* タイプを選ぶ */
#pick{overflow-y:auto;padding:24px 18px}
.pk-in{text-align:center}
.sec-sup{font-size:12px;letter-spacing:.3em;color:var(--accent);font-weight:700;margin-bottom:6px}
.pk-h{font-size:22px;margin-bottom:6px}
.pk-lead{font-size:13px;color:var(--sub);margin-bottom:18px}
.pk-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:16px}
.pk-grid button{padding:12px 2px 10px;border-radius:14px;background:#fff;border:1.5px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:3px}
.pk-grid button b{font-family:var(--mono);font-size:15px;letter-spacing:.04em}
.pk-grid button small{font-size:10px;color:var(--sub)}
.pk-grid button i{width:10px;height:10px;border-radius:50%}
.pk-grid button:active{border-color:var(--accent)}

/* 質問 */
#quiz{padding:22px 18px}
.qz-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.qz-no{font-size:13px;font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}
.qz-bar{flex:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.qz-bar i{display:block;height:100%;width:0;background:var(--accent);transition:width .35s}
.qz-body{flex:1;display:flex;flex-direction:column;justify-content:center;padding-bottom:40px}
.qz-q{font-size:20px;font-weight:700;line-height:1.7;text-align:center;margin-bottom:36px;min-height:3.4em;transition:opacity .25s}
.qz-q.fade{opacity:0}
.scale{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 4px}
.scale button{border-radius:50%;border:2.5px solid;flex:none;transition:background .15s,transform .1s}
.scale button:active{transform:scale(.9)}
.scale .s3{width:46px;height:46px}.scale .s2{width:38px;height:38px}.scale .s1{width:31px;height:31px}.scale .s0{width:26px;height:26px;border-color:#c7c3d1}
.scale .a{border-color:var(--agree)}.scale .d{border-color:var(--dis)}
.scale .a.on{background:var(--agree)}.scale .d.on{background:var(--dis)}.scale .s0.on{background:#c7c3d1}
.scale-lb{display:flex;justify-content:space-between;margin-top:12px;font-size:12px;font-weight:700}
.scale-lb .a{color:var(--agree)}.scale-lb .d{color:var(--dis)}

/* 分析中 */
#wait{align-items:center;justify-content:center;gap:22px}
.spin{width:54px;height:54px;border-radius:50%;border:5px solid var(--line);border-top-color:var(--accent);animation:sp 1s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.w-msg{font-size:15px;color:var(--sub);min-height:1.5em}

/* 結果 */
#res{overflow:hidden}
.rs{height:100%;overflow-y:auto;padding:16px 14px 0;-webkit-overflow-scrolling:touch}
.card{background:#fff;border-radius:20px;padding:20px 18px;margin-bottom:12px;box-shadow:0 4px 16px rgba(80,60,160,.06)}
.card h3{font-size:14px;letter-spacing:.06em;color:var(--sub);margin-bottom:12px;display:flex;align-items:center;gap:8px}
.card h3::before{content:"";width:4px;height:14px;border-radius:2px;background:var(--accent)}
.hero-card{text-align:center;padding:26px 18px 22px;background:linear-gradient(170deg,#fff 30%,var(--tint,#f1edff) 100%)}
.rc-sup{font-size:13px;color:var(--sub);margin-bottom:12px}
.emblem{width:118px;height:118px;margin:0 auto 14px;border-radius:34px;background:var(--tc,var(--accent));display:flex;align-items:center;justify-content:center;transform:rotate(-6deg);box-shadow:0 12px 28px rgba(0,0,0,.12)}
.emblem span{font-family:var(--mono);font-size:30px;font-weight:800;color:#fff;letter-spacing:.04em;transform:rotate(6deg)}
.rc-name{font-size:24px;letter-spacing:.04em;margin-bottom:6px}
.rc-sub{font-size:13px;color:var(--sub);margin-bottom:14px}
.viewers{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--sub);background:var(--bg);padding:6px 12px;border-radius:999px}
.viewers i{width:7px;height:7px;border-radius:50%;background:#e5484d;animation:blink 1.6s infinite}
.viewers b{color:var(--ink);font-variant-numeric:tabular-nums}
@keyframes blink{50%{opacity:.25}}
.desc p{font-size:15px;line-height:1.95;margin-bottom:10px}
.desc p:last-child{margin-bottom:0}
.desc .sign{text-align:right;font-size:13px;color:var(--sub)}
.sw{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sw-h{font-size:12px;font-weight:700;margin-bottom:8px}
.sw-h.good{color:var(--agree)}.sw-h.bad{color:var(--dis)}
.sw li{font-size:14px;line-height:1.6;padding:6px 0;border-bottom:1px dashed var(--line)}
.match{display:flex;flex-direction:column;gap:8px}
.match li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--bg)}
.match .mi{flex:none;width:52px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:13px;font-weight:800;color:#fff}
.match .mt{font-size:14px;line-height:1.5}
.match .mt small{display:block;font-size:12px;color:var(--sub)}
.match .mi.q{background:#3a3742}
.jobs{display:flex;flex-wrap:wrap;gap:8px}
.jobs li{font-size:14px;padding:7px 14px;border-radius:999px;background:var(--accent2);color:#4b3fb3}
.same{width:100%;border-collapse:collapse;font-size:13px}
.same td{padding:9px 4px;border-bottom:1px solid var(--line);vertical-align:top}
.same td:first-child{color:var(--sub);font-variant-numeric:tabular-nums;white-space:nowrap;width:1%}
.same td:last-child{text-align:right;color:var(--sub);white-space:nowrap}
.same tr.me td{color:var(--accent);font-weight:700}
.revs li{padding:10px 0;border-bottom:1px solid var(--line)}
.revs li:last-child{border-bottom:0}
.revs .st{font-size:12px;color:#f5b301;letter-spacing:.05em}
.revs .st s{color:#ddd;text-decoration:none}
.revs p{font-size:14px;line-height:1.7;margin:2px 0}
.revs small{font-size:11px;color:var(--sub)}
.revs li.new{animation:fade .6s}
.pop{font-size:15px;margin-bottom:10px}
.pop b{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.pop-bar{height:8px;border-radius:4px;background:var(--line);overflow:hidden;margin-bottom:8px}
.pop-bar i{display:block;height:100%;width:44%;background:var(--tc,var(--accent));transition:width 1s linear}
.note{font-size:11px;color:var(--sub);line-height:1.6}
.left-card{text-align:center}
.left-card h3{justify-content:center}
.left{font-family:var(--mono);font-size:54px;font-weight:700;letter-spacing:.04em;font-variant-numeric:tabular-nums;margin:2px 0 6px}
.left.red{color:var(--warn)}
.left-card .note{margin-bottom:18px}
.left-card .btn{width:100%;max-width:300px;margin-bottom:10px}
.rs-foot{padding:22px 0 36px;text-align:center;font-size:11px;color:#a7a3b3;line-height:2}
.rs-foot .links{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.rs-foot button{font-size:11px;color:#a7a3b3;text-decoration:underline}

/* 書き換え・消去 */
.card.altered .emblem{background:#3a3742}
.card.wiped *{color:#d6d3de!important;border-color:#eee!important}
.card.wiped .emblem,.card.wiped .mi,.card.wiped .jobs li,.card.wiped .pop-bar i{background:#e9e7ee!important}

/* 削除の確認 */
.sheet{position:absolute;inset:0;z-index:6;display:none;align-items:flex-end;justify-content:center;background:rgba(20,18,30,.45)}
.sheet.show{display:flex;animation:fade .2s}
.sh-card{width:100%;background:#fff;border-radius:22px 22px 0 0;padding:24px 20px calc(20px + env(safe-area-inset-bottom));text-align:center}
.sh-h{font-size:17px;font-weight:700;margin-bottom:8px}
.sh-t{font-size:13px;color:var(--sub);line-height:1.8;margin-bottom:18px}
.sh-card .btn{width:100%;max-width:320px;margin-bottom:8px}

/* 時間切れ */
#app.glitch .rs{animation:shake .12s steps(2) infinite}
@keyframes shake{0%{transform:translate(0)}50%{transform:translate(-2px,1px)}100%{transform:translate(2px,-1px)}}
.fadeout{transition:opacity 1.2s;opacity:0!important}

/* エンディング */
#result{background:#0f0e13;color:#eee;align-items:center;justify-content:safe center;overflow-y:auto;text-align:center;padding:32px 24px}
.r-end{font-size:12px;letter-spacing:.3em;color:#888;margin-bottom:10px}
#result h2{font-size:26px;letter-spacing:.08em;margin-bottom:18px}
.r-text{font-size:14px;line-height:2;color:#bbb;margin-bottom:26px;white-space:pre-line}
#result .btn{width:100%;max-width:280px;margin-bottom:10px;border-radius:10px}
#result .btn.x{background:#fff;color:#000}
#result .btn.ghost{color:#999}
.r-col{width:100%;max-width:320px;margin-bottom:24px;text-align:left}
.r-prog{font-size:12px;letter-spacing:.15em;color:#999;text-align:center;margin-bottom:10px}
.r-ends{list-style:none;display:flex;flex-direction:column;gap:6px}
.r-ends li{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:baseline;padding:9px 12px;border:1px solid #2b2933;border-radius:10px;background:#17161c}
.r-ends .n{font-size:11px;color:#777;letter-spacing:.05em}
.r-ends b{font-size:14px;font-weight:700;color:#ddd}
.r-ends small{grid-column:2;font-size:11px;color:#777;line-height:1.5}
.r-ends small:empty{display:none}
.r-ends li.no b{color:#555;letter-spacing:.2em}
.r-ends li.now{border-color:#6a6675;background:#201f27}
.r-ends li.now .n{color:#ddd}
.r-ends li.got small{color:#b4a7f5}
.r-note{font-size:11px;color:#666;line-height:1.8;margin-top:14px}
#result .t-foot{color:#555}
.small-ghost{min-height:40px!important}

/* アンケート */
.endpop{position:absolute;inset:0;z-index:20;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.6)}
.endpop.show{display:flex;animation:fade .25s ease}
@keyframes fade{from{opacity:0}to{opacity:1}}
.ep-card{position:relative;width:100%;max-width:360px;max-height:100%;overflow-y:auto;background:#fff;color:#1d1d1f;border-radius:18px;padding:26px 20px 20px;text-align:center}
.ep-x{position:absolute;right:8px;top:6px;width:36px;height:36px;font-size:22px;color:#999}
.ep-head{font-size:16px;font-weight:700;margin-bottom:16px}
.ep-label{font-size:12px;color:#7a7a80;margin-bottom:6px}
.stars{display:flex;justify-content:center;gap:6px;margin-bottom:14px}
.star{font-size:30px;color:#ddd;cursor:pointer;line-height:1;user-select:none}
.star.on{color:#f5b301}
.fb-text{width:100%;height:84px;border:1px solid #e4e4e2;border-radius:10px;padding:10px;font:inherit;font-size:14px;resize:none;margin-bottom:6px}
.fb-err{min-height:18px;font-size:12px;color:#d33;margin-bottom:6px}
.fb-send{width:100%;border-radius:10px}
.fb-send:disabled{opacity:.5}
.fb-thanks{display:none;font-size:14px;padding:18px 0}
.ep-div{height:1px;background:#eee;margin:18px 0 14px}
.portal-pitch{font-size:12px;color:#555;line-height:1.7;margin-bottom:10px}
.portal-btn{width:100%;background:#1b1f1d;color:#fff;border-radius:10px}

.mute{position:absolute;right:62px;top:11px;z-index:6;width:30px;height:30px;border-radius:50%;font-size:13px;color:var(--sub);background:#fff;border:1px solid var(--line)}
.mute.off{text-decoration:line-through;opacity:.6}
#app.ended .mute{display:none}

@media (max-height:640px){
  .hero{padding:22px 16px 18px}
  .hero h1{font-size:21px}
  .h-shapes{margin-bottom:12px}
  .h-shapes i{width:32px;height:32px}
  .qz-q{font-size:18px;margin-bottom:26px}
}
@media (max-width:360px){
  .scale .s3{width:40px;height:40px}.scale .s2{width:33px;height:33px}.scale .s1{width:27px;height:27px}.scale .s0{width:22px;height:22px}
}
.viewers[hidden]{display:none}
.card.wiped h3::before{background:#e2dfe8}

/* 見ている人の通知 */
.toast{position:absolute;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));z-index:8;transform:translate(-50%,20px);opacity:0;pointer-events:none;display:flex;align-items:center;gap:8px;max-width:calc(100% - 32px);padding:11px 16px;border-radius:999px;background:#23212b;color:#fff;font-size:13px;white-space:nowrap;box-shadow:0 10px 26px rgba(0,0,0,.25);transition:opacity .35s,transform .35s}
.toast::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#e5484d;animation:blink 1.2s infinite}
.toast.show{opacity:1;transform:translate(-50%,0)}
.desc p.letter{white-space:pre-line}
/* END2：次の人の画面を、外から見ている */
#app.watching::after{content:"";position:absolute;inset:0;z-index:7;pointer-events:auto;background:radial-gradient(ellipse at center,rgba(0,0,0,0) 45%,rgba(10,8,16,.55) 100%)}

/* v3：闇バイトの振り分け */
.t-fine{max-width:300px;margin:6px auto 0;font-size:10px;line-height:1.6;color:#aaa6b6}
.qz-note{font-size:12px;line-height:1.6;color:var(--accent);background:var(--accent2);border-radius:10px;padding:8px 12px;text-align:center}
.qz-note[hidden]{display:none}
.ad{position:relative;background:linear-gradient(160deg,#fffdf4 0%,#fff3d6 100%);border:1px solid #f3dfa8}
.ad-pr{position:absolute;right:14px;top:12px;font-size:10px;font-weight:700;color:#b08a2e;border:1px solid #e3c87d;border-radius:4px;padding:1px 6px}
.ad-h{font-size:16px;font-weight:700;line-height:1.6;margin-bottom:12px}
.ad-h b{color:#b0661a}
.ad-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ad-tags li{font-size:13px;font-weight:700;padding:5px 12px;border-radius:999px;background:#fff;border:1px solid #f0d493;color:#8a5a10}
.rs-foot .fine{font-size:10px;line-height:1.6;color:#b9b5c4;padding:0 10px}
.desc p.memo{font-size:13px;line-height:1.7;padding:8px 10px;margin-bottom:8px;border-radius:10px;background:#f5f4f7;white-space:pre-line}
.desc p.memo b{display:block;color:var(--warn);font-size:14px}
.desc p.memo-h{font-size:12px;color:var(--sub);margin-bottom:8px}
.card.altered h3::before{background:var(--warn)}
#offer{background:#fff;overflow-y:auto;padding:28px 20px}
.of-in{max-width:420px;margin:0 auto;width:100%}
.of-sup{font-size:11px;letter-spacing:.2em;color:var(--sub);margin-bottom:8px}
.of-h{font-size:24px;margin-bottom:16px;padding-bottom:12px;border-bottom:2px solid var(--ink)}
.of-warn{font-size:14px;font-weight:700;color:var(--warn);background:#fdeceb;border-radius:8px;padding:10px 12px;margin-bottom:14px}
.of-warn[hidden]{display:none}
.of-lead{font-size:16px;font-weight:700;line-height:1.8;margin-bottom:16px}
.of-dl{display:grid;grid-template-columns:auto 1fr;border-top:1px solid var(--line)}
.of-dl dt,.of-dl dd{padding:12px 6px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.6;animation:fade .5s}
.of-dl dt{color:var(--sub);white-space:nowrap;padding-right:14px}
.of-dl dd.red{color:var(--warn);font-weight:700}
.of-foot{margin-top:18px;font-size:11px;color:var(--sub);line-height:1.6}

/* v4：本物の診断サイトらしく */
.sh-nav{display:flex;align-items:center;gap:12px}
.burger{display:flex;flex-direction:column;gap:4px;width:20px}
.burger i{height:2px;border-radius:1px;background:var(--ink)}
.mute{right:104px}
#top{padding:18px 16px 0}
.hero{text-align:center}
.h-badge{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:999px;padding:4px 12px 4px 4px;margin-bottom:16px}
.h-badge b{font-size:10px;color:#fff;background:var(--accent);border-radius:999px;padding:2px 8px}
.h-lead b{color:var(--ink);font-variant-numeric:tabular-nums}
.btn .arr{font-weight:400}
.h-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0 12px}
.h-trust li{font-size:10px;color:var(--sub);background:#fff;border-radius:12px;padding:8px 4px;line-height:1.4}
.h-trust b{display:block;font-size:13px;color:var(--ink)}
.lp-sec{width:100%;margin-top:30px;text-align:left}
.lp-h{font-size:18px;margin-bottom:6px;text-align:center}
.lp-lead{font-size:13px;color:var(--sub);text-align:center;margin-bottom:14px}
.lp-groups{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lp-groups .g{background:#fff;border-radius:16px;padding:14px 12px;display:flex;flex-direction:column;gap:4px;box-shadow:0 4px 14px rgba(80,60,160,.06)}
.lp-groups .g i{width:26px;height:26px;border-radius:9px;margin-bottom:4px}
.lp-groups .nt i{background:var(--nt)}.lp-groups .nf i{background:var(--nf);border-radius:50%}.lp-groups .sj i{background:var(--sj);transform:rotate(45deg) scale(.85)}.lp-groups .sp i{background:var(--sp);border-radius:50% 50% 9px 9px}
.lp-groups b{font-size:14px}
.lp-groups small{font-size:10.5px;color:var(--sub);line-height:1.5}
.lp-voice{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.lp-voice li{display:flex;gap:12px;align-items:flex-start;background:#fff;border-radius:16px;padding:14px}
.lp-voice .av{flex:none;width:36px;height:36px;border-radius:50%;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.lp-voice p{font-size:13px;line-height:1.7}
.lp-voice small{display:block;font-size:11px;color:var(--sub)}
.lp-faq{background:#fff;border-radius:14px;margin-top:8px;padding:0 14px}
.lp-faq summary{font-size:14px;font-weight:700;padding:14px 0;cursor:pointer;list-style:none;display:flex;justify-content:space-between}
.lp-faq summary::after{content:"+";color:var(--accent)}
.lp-faq[open] summary::after{content:"−"}
.lp-faq summary::-webkit-details-marker{display:none}
.lp-faq p{font-size:13px;color:var(--sub);line-height:1.7;padding-bottom:14px}
.lp-foot{width:100%;margin-top:30px;padding:20px 0 24px;border-top:1px solid var(--line);font-size:11px;color:#a7a3b3;line-height:2}
.lp-foot .links{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 14px}
.lp-foot .t-notes{margin-top:10px;font-size:11px}
.cookie{position:sticky;bottom:0;z-index:4;width:calc(100% + 32px);margin:0 -16px;display:flex;align-items:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(35,33,43,.96);color:#ddd}
.cookie p{flex:1;font-size:10.5px;line-height:1.5}
.cookie button{flex:none;font-size:12px;font-weight:700;color:#23212b;background:#fff;border-radius:999px;padding:8px 14px}
.cookie.gone{display:none}
.qz-pct{font-size:12px;color:var(--sub);font-variant-numeric:tabular-nums;min-width:3em;text-align:right}
.qz-tip{font-size:11.5px;color:var(--sub);line-height:1.6;text-align:center;margin-bottom:4px}
.qz-card{background:#fff;border-radius:22px;padding:30px 12px 24px;box-shadow:0 6px 20px rgba(80,60,160,.07)}
.qz-card .qz-q{margin-bottom:28px}
.qz-back{margin:18px auto 0;font-size:13px;color:var(--sub)}
.w-bar{width:180px;height:4px;border-radius:2px;background:var(--line);overflow:hidden}
.w-bar i{display:block;height:100%;width:0;background:var(--accent)}
#wait.show .w-bar i{animation:wfill 3s ease-out forwards}
@keyframes wfill{to{width:100%}}
.sharebar{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;padding-top:14px;border-top:1px dashed var(--line);font-size:11px;color:var(--sub)}
.sharebar .sb{font-size:12px;font-weight:700;border-radius:999px;padding:6px 12px;color:#fff}
.sb.x{background:#000}.sb.ln{background:#06c755}.sb.cp{background:#fff;color:var(--ink);border:1px solid var(--line)}
.tabs{position:sticky;top:-16px;z-index:3;display:flex;gap:4px;overflow-x:auto;margin:0 -14px 12px;padding:8px 14px;background:rgba(246,244,251,.94);backdrop-filter:blur(6px);scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none;font-size:13px;font-weight:700;color:var(--sub);padding:7px 14px;border-radius:999px}
.tabs button.on{color:#fff;background:var(--accent)}
.axes{display:flex;flex-direction:column;gap:14px}
.ax-t{display:flex;align-items:baseline;gap:8px;margin-bottom:6px;font-size:13px}
.ax-t b{font-size:18px;color:var(--tc,var(--accent));font-variant-numeric:tabular-nums}
.ax-bar{height:10px;border-radius:5px;background:var(--line);overflow:hidden}
.ax-bar i{display:block;height:100%;border-radius:5px;background:var(--tc,var(--accent));transition:width .8s}
.ax.red .ax-t b{color:var(--warn)}.ax.red .ax-bar i{background:var(--warn)}
.card.wiped .ax-bar i{background:#e9e7ee!important}
@media (max-height:640px){.h-badge{display:none}.h-shapes{display:none}}
.mute{right:126px}
.qz-body{justify-content:flex-start;padding-top:6vh}
@media (max-width:374px){.sh-r{display:none}.mute{right:50px}.logo{font-size:14px}}
/* エンド前：自分のタイミングで進む */
.go-end{position:absolute;left:50%;bottom:calc(76px + env(safe-area-inset-bottom));z-index:9;transform:translate(-50%,12px);opacity:0;pointer-events:none;min-height:48px;padding:0 26px;border-radius:999px;background:#23212b;color:#fff;font-weight:700;font-size:15px;box-shadow:0 10px 26px rgba(0,0,0,.3);transition:opacity .4s,transform .4s;white-space:nowrap}
.go-end.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}

/* v6：口コミの写真・面接記録 */
.rv-ph{display:block;width:96px;height:96px;margin:6px 0 4px;border-radius:10px;overflow:hidden;background:var(--line)}
.rv-ph img{width:100%;height:100%;object-fit:cover;display:block}
.card.wiped .rv-ph img{filter:grayscale(1);opacity:.25}
.lb{position:absolute;inset:0;z-index:9;display:none;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;background:rgba(10,8,16,.92)}
.lb.show{display:flex;animation:fade .2s}
.lb img{max-width:100%;max-height:80%;border-radius:8px}
.lb p{font-size:12px;color:#999}
.desc .iv{padding:10px 12px;margin-bottom:8px;border-radius:10px;background:#f5f4f7;transition:background .4s}
.desc .iv p{margin:0;line-height:1.6}
.desc .iv-q{font-size:14px;font-weight:700}
.desc .iv-a{font-size:13px;color:var(--sub)}
.desc .iv-was{display:block;font-size:11px;color:#b3afbf;margin:2px 0}
.desc .iv-j{display:block;font-size:13px;color:var(--warn);margin-top:2px}
.desc .iv.real{background:#fbeeee}
.desc .iv.real .iv-q{color:#7a1e1a}

/* v7：適職診断・面接記録の画面 */
.lp-know{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.lp-know li{display:flex;align-items:center;gap:12px;background:#fff;border-radius:14px;padding:12px 14px}
.lp-know b{flex:none;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px}
.lp-know p{font-size:14px;font-weight:700;line-height:1.5}
.lp-know small{display:block;font-size:11px;font-weight:400;color:var(--sub)}
.jobs-card .jobs{display:flex;flex-direction:column;gap:8px}
.jobs-card .jobs li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--bg);color:var(--ink);font-size:16px;font-weight:700}
.jobs-card .jobs li b{flex:none;width:28px;height:28px;border-radius:50%;background:var(--tc,var(--accent));color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}
.jobs-card .jobs li:first-child{background:var(--tint,var(--accent2))}
.jobs-card .jobs li span{flex:1}
.jobs-card .jobs li em{font-style:normal;font-size:12px;font-weight:700;color:var(--tc,var(--accent))}
.jobs-card.altered .jobs li b{background:var(--warn)}
.jobs-card.altered .jobs li:first-child{background:#fbeeee}
.jobs-now{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line)}
.jobs-now[hidden]{display:none}
.jn-h{font-size:12px;font-weight:700;color:#b0661a;margin-bottom:8px}
.jobs-now ul{display:flex;flex-wrap:wrap;gap:6px}
.jobs-now li{font-size:12.5px;font-weight:700;padding:6px 12px;border-radius:999px;background:#fff6e3;border:1px solid #f0d493;color:#8a5a10}
#iv{background:#f3f2f6;overflow-y:auto;padding:22px 16px 40px}
.iv-in{max-width:460px;margin:0 auto;width:100%}
.iv-sup{font-size:11px;letter-spacing:.12em;color:var(--sub);margin-bottom:6px}
.iv-h{font-size:24px;padding-bottom:10px;border-bottom:2px solid var(--ink);margin-bottom:10px}
.iv-who{font-size:13px;color:var(--ink);margin-bottom:6px}
.iv-lead{font-size:13px;color:var(--warn);font-weight:700;margin-bottom:14px}
.iv-list .iv{padding:12px 14px;margin-bottom:8px;border-radius:12px;background:#fff;transition:background .4s,box-shadow .3s}
.iv-list .iv p{margin:0;line-height:1.6}
.iv-list .iv-q{font-size:15px;font-weight:700}
.iv-list .iv-a{font-size:13px;color:var(--sub)}
.iv-list .iv-was{display:block;font-size:11px;color:#b3afbf;margin:2px 0}
.iv-list .iv-j{display:block;font-size:13px;color:var(--warn);margin-top:2px}
.iv-list .iv-j[hidden]{display:none}
.iv-list .iv.now{box-shadow:0 0 0 2px var(--warn)}
.iv-list .iv.real{background:#fbeeee}
.iv-list .iv.real .iv-q{color:#7a1e1a}
.iv-list .sign{text-align:right;font-size:13px;color:var(--sub);margin-top:6px}
.iv-end{display:none;text-align:center;margin-top:18px}
.iv-end.show{display:block;animation:fade .6s}
.iv-stamp{display:inline-block;font-size:30px;font-weight:800;color:var(--warn);border:4px solid var(--warn);border-radius:10px;padding:4px 22px;transform:rotate(-8deg);margin-bottom:12px;letter-spacing:.2em}
.iv-sum{font-size:13px;color:var(--ink);margin-bottom:16px}
.iv-end .btn{width:100%;max-width:300px}
.desc .iv-j[hidden]{display:none}
/* v7b：サイト名「MBTIであなたに合った仕事がわかる」（長いので小さめ・ログインは隠す） */
.logo{font-size:13px;letter-spacing:.01em;white-space:nowrap;min-width:0}
.logo>span{overflow:hidden;text-overflow:ellipsis}
.sh-r{display:none}
.mute{right:52px}
@media (max-width:374px){.logo{font-size:11px}.logo i{width:18px;height:18px}.mute{right:46px}}

/* v8：取り消し線なし・お仕事を見る・担当者とのトーク */
.iv-list .iv-was,.desc .iv-was{text-decoration:none;color:#8a8696;font-size:12px}
.left{font-size:20px;font-family:inherit;font-weight:700;margin:4px 0 8px}
.left b{font-size:46px;font-family:var(--mono);color:var(--warn);margin-right:4px}
#app.chatting .site-head,#app.chatting .mute{display:none}
#chat{top:0;background:#7f9cc7;display:none;flex-direction:column}
#chat.show{display:flex}
.ch-head{flex:none;height:52px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#273246;color:#fff}
.ch-back{font-size:28px;line-height:1;opacity:.8}
.ch-name{flex:1;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-menu{font-size:18px;opacity:.8}
.ch-body{flex:1;overflow-y:auto;padding:14px 12px 20px;display:flex;flex-direction:column;gap:10px}
.ch-sys{align-self:center;font-size:11px;color:#fff;background:rgba(0,0,0,.18);border-radius:999px;padding:3px 12px;margin-bottom:4px}
.ch-row{display:flex;align-items:flex-end;gap:6px;max-width:100%;animation:fade .25s}
.ch-row.me{justify-content:flex-end}
.ch-av{flex:none;align-self:flex-start;width:34px;height:34px;border-radius:50%;background:#3a3742;color:#fff;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center}
.ch-b{max-width:72%;font-size:14.5px;line-height:1.55;padding:9px 12px;border-radius:18px;background:#fff;color:#111;word-break:break-word}
.ch-row.me .ch-b{background:#8de055}
.ch-b.typing{color:#999;letter-spacing:.2em}
.ch-b.ph{padding:0;overflow:hidden;width:62%;border-radius:14px}
.ch-b.ph img{display:block;width:100%}
.ch-meta{flex:none;font-size:10px;color:#eef;white-space:pre-line;text-align:right;line-height:1.3}
.ch-reply{flex:none;display:none;gap:8px;padding:10px 12px calc(12px + env(safe-area-inset-bottom));background:#f4f4f6;border-top:1px solid #ddd}
.ch-reply.show{display:flex;animation:fade .3s}
.ch-btn{flex:1;min-height:46px;border-radius:999px;background:#fff;border:1.5px solid #c9c9d1;font-size:15px;font-weight:700}
.ch-btn:active{background:#eee}
.ch-body.ended{padding-bottom:140px}
