/* VTuber16タイプ診断 */
.sd-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(15, 15, 26, .95); backdrop-filter: blur(8px); z-index: 20; }
.sd-brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.sd-by { display: flex; align-items: center; gap: 6px; color: var(--quiet); font-size: 12px; text-decoration: none; }
.sd-by img { height: 22px; }
.sd-main { max-width: 680px; margin: 0 auto; padding: 20px 16px 40px; }
.sd-hero { text-align: center; padding: 24px 4px 8px; }
.sd-hero h1 { font-size: 30px; margin: 6px 0 8px; }
.sd-hero p { line-height: 1.8; color: var(--quiet); margin: 6px 0; }
.sd-hero .btn.big { margin-top: 18px; }
.sd-kicker { color: #bf94ff; font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.sd-lead { font-size: 18px; color: var(--ink) !important; font-weight: 700; }
.sd-note { font-size: 13px; color: var(--quiet); }
.sd-small { font-size: 12px; color: var(--quiet); line-height: 1.7; }
.sd-p { line-height: 1.85; margin: 8px 0; }
.sd-art { margin: 26px 0 10px; }
.sd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .sd-grid { grid-template-columns: repeat(4, 1fr); } }
.sd-tcard { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: var(--ink); }
.sd-tcard b { font-size: 14px; line-height: 1.3; }
.sd-tcard span { font-size: 11px; color: var(--quiet); line-height: 1.5; }
.sd-pic { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(150deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 50) 70% 30%)); display: flex; align-items: center; justify-content: center; }
.sd-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sd-pic span { font-weight: 800; color: rgba(255, 255, 255, .9); font-size: 22px; }
.sd-pic.lg { width: 180px; margin: 14px auto; border-radius: 18px; }
.sd-pic.lg span { font-size: 44px; }
.sd-pic.sm { width: 100%; }
.sd-partner .sd-pic.sm { width: 56px; flex: none; }
.sd-partner .sd-pic.sm span { font-size: 15px; }
/* 質問 */
.sd-prog { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sd-prog div { height: 100%; background: linear-gradient(90deg, #9147ff, #ff5fa2); transition: width .25s; }
.sd-count { text-align: center; color: var(--quiet); font-size: 13px; margin: 10px 0; }
.sd-break { margin: 6px 0 12px; padding: 10px 14px; border-radius: 10px; background: rgba(145, 71, 255, .15); text-align: center; font-size: 14px; }
.sd-q { padding: 8px 0; }
.sd-qtext { font-size: 20px; font-weight: 700; line-height: 1.6; margin: 18px 0 22px; min-height: 3.2em; }
.sd-opts { display: flex; flex-direction: column; gap: 10px; }
.sd-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 15px; text-align: left; cursor: pointer; }
.sd-opt:hover { border-color: #7a5cc4; }
.sd-opt.on { border-color: var(--accent); background: rgba(145, 71, 255, .22); }
.sd-opt i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--quiet); flex: none; }
.sd-opt.on i { background: var(--accent); border-color: var(--accent); }
.sd-opt b { width: 24px; height: 24px; border-radius: 6px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; flex: none; }
.sd-err { color: var(--warn); font-size: 13px; margin-top: 8px; }
.sd-nav { justify-content: space-between; margin-top: 20px; }
/* 結果 */
.sd-res-head { text-align: center; padding: 16px 0 8px; }
.sd-res-head h1 { font-size: 30px; margin: 4px 0; background: linear-gradient(90deg, #ff9ecb, #bf94ff, #6ad1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sd-catch { font-size: 17px; font-weight: 700; margin: 6px 0 12px; }
.sd-res-head p { line-height: 1.8; }
.sd-sec { margin: 26px 0; }
.sd-sec h2 { font-size: 18px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.sd-sec h2 .ic { color: #bf94ff; }
.sd-list { margin: 6px 0; padding-left: 20px; line-height: 1.8; }
.sd-list li { margin: 4px 0; }
.sd-game { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; background: var(--panel); }
.sd-gname { font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sd-game p { margin: 6px 0; line-height: 1.7; font-size: 14px; }
.sd-memo { font-size: 13px !important; color: var(--quiet); }
.chip.solo { background: rgba(106, 209, 255, .15); }
.sd-link { font-size: 13px; }
.sd-partners { display: flex; flex-direction: column; gap: 10px; }
.sd-partner { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--panel); }
.sd-partner span { display: block; font-size: 13px; color: var(--quiet); line-height: 1.6; margin-top: 2px; }
.sd-invite { padding: 12px 14px; border-radius: 12px; background: rgba(106, 209, 255, .08); border: 1px solid rgba(106, 209, 255, .3); }
.sd-invite p { margin: 0 0 8px; line-height: 1.7; }
.sd-axis { margin: 16px 0; }
.sd-axt { font-weight: 700; margin-bottom: 6px; }
.sd-axbar { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--quiet); }
.sd-axbar span:last-child { text-align: right; }
.sd-axbar span.on { color: var(--ink); font-weight: 800; }
.sd-axbar .bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(145, 71, 255, .5), rgba(255, 255, 255, .08) 50%, rgba(106, 209, 255, .5)); }
.sd-axbar .bar i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.sd-mid { font-size: 14px; color: var(--quiet); }
.sd-prefs { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.sd-pref { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.sd-pref b { font-size: 16px; }
.sd-pc { display: block; color: #ff9ecb; font-weight: 700; font-size: 13px; margin: 2px 0 6px; }
.sd-pref p { margin: 4px 0; line-height: 1.7; font-size: 14px; }
.sd-more summary { cursor: pointer; color: var(--accent2); margin: 8px 0; }
.sd-find .sd-btns { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.sd-guide h2 { font-size: 20px; }
.sd-guide p { line-height: 1.8; }
body.sd .card-box { margin: 18px 0; }
body.sd .card-box h2 { font-size: 18px; margin-top: 0; }
/* キャラクター画像：背景透過なので無地の台にのせ、全体が見えるように */
.sd-pic:has(img) { background: #1f1f23; border: 1px solid #2f2f35; }
.sd-pic img { object-fit: contain; padding: 6%; box-sizing: border-box; }
.sd-pic img + span { display: none; }
.sd-pic.lg { width: 220px; }
.sd-prem { border-color: #4a3a73; }
.sd-mlbl { display: block; font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #bf94ff; margin-bottom: 6px; }
.sd-plist { margin: 8px 0 12px; padding-left: 18px; line-height: 1.8; }
.sd-trial { border: 1px solid #ffc44d; border-radius: 4px; padding: 8px 12px; color: #ffe2a0; font-size: 13px; line-height: 1.7; }
.sd-hintq { font-size: 12px; color: #adadb8; margin: 8px 0 0; }

/* タイトルのすぐ右に by Vマッチ */
.sd-brandrow { display: flex; align-items: center; gap: 10px; }
.sd-play { margin: 4px 0 12px; }
.sd-playtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sd-ptag { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(191, 148, 255, .5); color: #bf94ff; font-weight: 700; font-size: 14px; }
/* 結果の最初の画面（タイプ → 相手 → 登録ボタン をスクロールなしで） */
.sd-rh { padding: 8px 0 0; }
.sd-rh .sd-kicker { font-size: 15px; }
.sd-rh .sd-pic.lg { width: 132px; margin: 6px auto 6px; border-radius: 20px; }
.sd-rh h1 { font-size: clamp(30px, 8.8vw, 46px); line-height: 1.22; margin: 4px 0 6px; }
.sd-rh .sd-catch { font-size: clamp(16px, 4.5vw, 21px); line-height: 1.55; margin: 4px 0 8px; }
.sd-htags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 0 0; }
.sd-htags span { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--quiet); }
.sd-match { margin: 14px 0 0; padding: 16px; border-radius: 14px; background: linear-gradient(180deg, #221836, var(--panel)); border: 1px solid #3b2a63; }
.sd-match h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.sd-match h2 b { color: #bf94ff; font-size: 20px; }
.sd-mlead { margin: 4px 0 10px; }
.sd-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sd-person { background: var(--panel); border-radius: 10px; padding: 8px 4px 6px; text-align: center; overflow: hidden; }
.sd-person b { display: block; font-size: 12px; line-height: 1.3; color: var(--quiet); font-weight: 500; word-break: break-all; }
.sd-face { width: 32px; height: 32px; margin: 0 auto 4px; border-radius: 50%; filter: blur(5px); background: radial-gradient(circle at 50% 38%, hsl(var(--h) 80% 85%) 0 28%, transparent 29%), radial-gradient(circle at 50% 110%, hsl(var(--h) 70% 70%) 0 55%, transparent 56%), hsl(var(--h) 30% 28%); }
.sd-person.more { display: grid; place-items: center; color: #bf94ff; font-weight: 800; font-size: 13px; }
.sd-person.more[hidden] { display: none; }
.sd-why { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12.5px; color: var(--quiet); }
.sd-why li { position: relative; padding-left: 18px; margin: 3px 0; }
.sd-why li::before { content: "✓"; position: absolute; left: 0; color: #3ddc97; font-weight: 800; }
.sd-ctas { display: grid; gap: 8px; margin-top: 12px; }
.sd-cta { flex-direction: column; line-height: 1.35; padding-top: 12px; padding-bottom: 12px; text-align: center; }
.sd-cta small { display: block; font-weight: 500; font-size: 11px; opacity: .85; margin-top: 2px; }
.btn.discord { background: #5865f2 !important; border-color: #5865f2 !important; color: #fff !important; }
.sd-inapp { margin: 0; font-size: 12px; line-height: 1.6; color: #ffd27a; background: #2a1f05; border: 1px solid #4a3608; border-radius: 8px; padding: 8px 10px; }
.sd-match2 { margin: 26px 0; }
.sd-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sd-clamp.open { -webkit-line-clamp: unset; display: block; }
.sd-morebtn { background: none; border: 0; color: #bf94ff; font-size: 13px; padding: 2px 0; cursor: pointer; }
.sd-pair { align-items: center; }
.sd-go { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: #bf94ff; white-space: nowrap; padding-left: 8px; }
.sd-fold { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 8px 0; }
.sd-fold > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; display: flex; justify-content: space-between; }
.sd-fold > summary::-webkit-details-marker { display: none; }
.sd-fold > summary::after { content: "＋"; color: var(--quiet); }
.sd-fold[open] > summary::after { content: "－"; }
.sd-fold > .in { padding: 0 14px 12px; }
.sd-fold .sd-sec { margin: 0; }
.sd-fold .sd-sec > h2 { display: none; }
.sd-invite .row { margin-top: 8px; }
.sd-lower { margin-top: 30px; padding-top: 6px; border-top: 1px dashed var(--line); }
.sd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(15, 15, 26, 0), rgba(15, 15, 26, .96) 30%); }
.sd-sticky .btn { max-width: 520px; margin: 0 auto; box-shadow: 0 6px 18px rgba(145, 71, 255, .35); }
@media (min-width: 760px) { .sd-sticky { display: none; } }
/* もっと詳しく：種類ごとのカード */
.sd-detail { display: grid; gap: 14px; margin: 26px 0; }
.sd-two { display: grid; gap: 14px; }
@media (min-width: 600px) { .sd-two { grid-template-columns: 1fr 1fr; } }
.sd-dcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px; }
.sd-dcard.good { border-color: rgba(61, 220, 151, .35); }
.sd-dcard.warn { border-color: rgba(255, 184, 77, .35); }
.sd-dh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sd-dh h2 { margin: 0; font-size: 17px; line-height: 1.4; }
.sd-dic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.sd-dic .ic { width: 18px; height: 18px; }
.sd-dh.good .sd-dic { background: rgba(61, 220, 151, .15); color: #3ddc97; }
.sd-dh.warn .sd-dic { background: rgba(255, 184, 77, .15); color: #ffb84d; }
.sd-dh.pink .sd-dic { background: rgba(255, 95, 162, .15); color: #ff7fb6; }
.sd-dh.blue .sd-dic { background: rgba(106, 209, 255, .15); color: #6ad1ff; }
.sd-dh.yellow .sd-dic { background: rgba(255, 214, 102, .15); color: #ffd666; }
.sd-dh.purple .sd-dic { background: rgba(191, 148, 255, .15); color: #bf94ff; }
.sd-dl { list-style: none; margin: 0; padding: 0; }
.sd-dl li { position: relative; padding: 9px 0 9px 26px; line-height: 1.75; border-top: 1px solid var(--line); font-size: 14.5px; }
.sd-dl li:first-child { border-top: 0; padding-top: 2px; }
.sd-dl li::before { position: absolute; left: 2px; top: 9px; font-weight: 800; }
.sd-dl li:first-child::before { top: 2px; }
.sd-dl.good li::before { content: "✓"; color: #3ddc97; }
.sd-dl.warn li::before { content: "!"; color: #ffb84d; left: 6px; }
.sd-bubbles { display: grid; gap: 8px; }
.sd-bubbles p { position: relative; margin: 0; padding: 10px 14px; background: var(--bg, #0f0f1a); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; line-height: 1.7; font-size: 14.5px; }
.sd-bubbles p::before { content: "「"; color: #ff7fb6; font-weight: 800; }
.sd-bubbles p::after { content: "」"; color: #ff7fb6; font-weight: 800; }
.sd-roles, .sd-plans { display: grid; gap: 8px; }
.sd-roles > div, .sd-plans > div { padding: 10px 14px; border-radius: 10px; background: var(--bg, #0f0f1a); border: 1px solid var(--line); line-height: 1.7; font-size: 14.5px; }
.sd-roles b, .sd-plans b { display: block; font-size: 15px; margin-bottom: 2px; }
.sd-roles b { color: #6ad1ff; }
.sd-plans b { color: #bf94ff; }
.sd-roles span, .sd-plans span { color: var(--quiet); }
.sd-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-steps li { counter-increment: st; position: relative; padding-left: 38px; line-height: 1.75; font-size: 14.5px; min-height: 28px; }
.sd-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 214, 102, .15); color: #ffd666; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
/* 4つの傾向・好きな遊び方も同じカードに */
.sd-rh ~ #axes, #axes { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }

/* 質問文の高さをそろえる（答えると自動で次に進むので、選択肢の位置がずれないように） */
.sd-q .sd-qtext { min-height: calc(1.6em * 3); display: flex; align-items: flex-start; }
/* 押しやすく：小さなリンクに余白 */
.sd-morebtn { padding: 10px 0; min-height: 44px; }
.sd-link { display: inline-block; padding: 10px 0; }
.foot a { display: inline-block; padding: 10px 4px; }
.sd-fold > summary, details > summary { min-height: 44px; align-items: center; }
