/* 求人診断（独立ページ版）
 *   サイト本体のCSSは読みこまない。ここだけで完結する。
 *   body[data-v] で方向（a ものがたり / b マガジン / c アプリ / cmp 比較ページ）を切り替える。
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--f-b); font-weight: 500; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
[hidden] { display: none !important; }
ul { list-style: none; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* ---------- 色と文字（方向ごと） ---------- */
body { --bg: #f4f5f7; --ink: #16181d; --sub: #6a7080; --card: #fff; --line: #e3e6ec; --acc: #0b7a63; --acc-ink: #fff; --acc2: #e8f5f1; --pick: #f2a900; --radius: 16px; --f-b: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif; --f-d: var(--f-b); --shadow: 0 6px 20px rgba(20, 30, 50, .08); }
body[data-v="a"] { --bg: #bfe9ff; --ink: #1b2a5c; --sub: #5b6a94; --card: #fff; --line: #1b2a5c; --acc: #ff7a1a; --acc-ink: #fff; --acc2: #fff0c2; --pick: #ffc21a; --radius: 12px; --f-b: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; --f-d: "DotGothic16", "Zen Maru Gothic", sans-serif; --shadow: 0 4px 0 #1b2a5c; background: linear-gradient(180deg, #5cc1ff 0%, #a9e2ff 34%, #e6f8ff 62%, #fff6d8 100%) fixed; }
body[data-v="b"] { --bg: #fff3dc; --ink: #1c1712; --sub: #6e6152; --card: #fffdf8; --line: #1c1712; --acc: #ff4a26; --acc-ink: #fff; --acc2: #ffe14d; --pick: #ff4a26; --radius: 14px; --f-d: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif; --shadow: 4px 4px 0 #1c1712; background-image: radial-gradient(rgba(28, 23, 18, .09) 1.2px, transparent 1.3px); background-size: 14px 14px; }
body[data-v="cmp"] { --bg: #f1efe9; --ink: #1d1c1a; --sub: #6c685f; --acc: #1d1c1a; }

.sd-stage { max-width: 480px; margin: 0 auto; padding: 44px 18px 48px; min-height: 100dvh; }
.sd-home { position: fixed; top: 8px; right: 10px; z-index: 50; font-size: 11px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; text-decoration: none; }
.scr { animation: scr-in .4s ease both; }
@keyframes scr-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- ボタン ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; border-radius: 99px; font-weight: 900; font-size: 15px; text-decoration: none; text-align: center; transition: transform .12s ease, filter .12s ease; }
.btn:active { transform: scale(.97); }
.btn--lg { padding: 17px 20px; font-size: 17px; }
.btn--main { background: var(--acc); color: var(--acc-ink); box-shadow: var(--shadow); }
.btn--sub { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--line { background: #06c755; color: #fff; }
.btn--ghost { color: var(--sub); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
body[data-v="b"] .btn--main, body[data-v="b"] .btn--line { border: 2.5px solid var(--line); }

/* ---------- 選択肢 ---------- */
.opts { display: grid; gap: 10px; }
.opts.is-lock { pointer-events: none; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .12s ease, box-shadow .15s ease, background .15s ease; animation: opt-in .35s ease both; }
.opt:nth-child(2) { animation-delay: .04s; } .opt:nth-child(3) { animation-delay: .08s; } .opt:nth-child(4) { animation-delay: .12s; } .opt:nth-child(5) { animation-delay: .16s; } .opt:nth-child(6) { animation-delay: .2s; } .opt:nth-child(7) { animation-delay: .24s; }
@keyframes opt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.opt:active { transform: scale(.98); }
.opt__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--acc2); color: var(--acc); font-size: 18px; }
.opt__tx { flex: 1; min-width: 0; }
.opt__tx b { display: block; font-weight: 900; font-size: 15px; line-height: 1.4; }
.opt__tx small { display: block; font-size: 12px; color: var(--sub); line-height: 1.5; }
.opt__ck { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); transition: all .15s ease; }
.opt.is-on { box-shadow: inset 0 0 0 2.5px var(--acc); }
.opt.is-on .opt__ck { background: var(--acc); box-shadow: inset 0 0 0 5px var(--card), 0 0 0 2px var(--acc); }

/* ---------- 地図 ---------- */
.area { display: grid; gap: 12px; }
.map { width: 100%; height: auto; display: block; }
.map__r { cursor: pointer; outline: none; }
.map__r rect { fill: var(--card); stroke: var(--line); stroke-width: 1.5; transition: fill .15s ease, transform .15s ease; transform-box: fill-box; transform-origin: center; }
.map__r text { font-family: var(--f-b); font-weight: 900; font-size: 13px; fill: var(--ink); pointer-events: none; }
.map__r text.is-s { font-size: 10.500px; }
.map__r.is-hover rect { fill: var(--acc2); }
.map__r.is-on rect { fill: var(--acc); stroke: var(--acc); transform: scale(1.05); }
.map__r.is-on text { fill: var(--acc-ink); }
.map__r:focus-visible rect { stroke: var(--acc); stroke-width: 3; }
.area__any { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 99px; font-weight: 900; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.area__any.is-on { background: var(--acc); color: var(--acc-ink); box-shadow: none; }

/* ---------- チャート ---------- */
.radar { width: 100%; max-width: 260px; margin: 0 auto; display: block; }
.radar__grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar__axis { stroke: var(--line); stroke-width: 1; }
.radar__label { font-family: var(--f-b); font-size: 12px; font-weight: 900; fill: var(--ink); }
.radar__data { fill: var(--acc); fill-opacity: .3; stroke: var(--acc); stroke-width: 2.5; stroke-linejoin: round; transform-origin: 50% 50%; animation: radar-in .8s cubic-bezier(.2, 1.3, .4, 1) .2s both; }
.radar__dot { fill: var(--acc); animation: scr-in .4s ease .7s both; }
@keyframes radar-in { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
.bars { display: grid; gap: 10px; }
.bars__row { display: grid; grid-template-columns: 4.500em 1fr 2em; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.bars__track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bars__fill { display: block; height: 100%; width: var(--v); border-radius: 99px; background: var(--acc); animation: bar-in .9s cubic-bezier(.2, .9, .3, 1) .2s both; transform-origin: left; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: none; } }
.bars__num { text-align: right; font-variant-numeric: tabular-nums; color: var(--sub); }

/* ---------- スワイプ ---------- */
.sw { position: relative; height: 290px; margin: 6px auto 0; max-width: 300px; touch-action: pan-y; }
.sw__card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 20px; text-align: center; border-radius: 22px; background: var(--card); border: 3px solid var(--line); box-shadow: var(--shadow); transform: translateY(calc(var(--d, 0) * 10px)) scale(calc(1 - var(--d, 0) * .05)); user-select: none; -webkit-user-select: none; touch-action: none; cursor: grab; }
.sw__no { position: absolute; top: 12px; left: 16px; font-family: var(--f-d); font-size: 13px; color: var(--sub); }
.sw__ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--acc2); border: 3px solid var(--line); font-size: 38px; }
.sw__t { font-family: var(--f-d); font-size: 21px; line-height: 1.35; font-weight: 400; }
.sw__s { font-size: 13px; color: var(--sub); }
.sw__stamp { position: absolute; top: 18px; padding: 2px 12px; border: 4px solid; border-radius: 8px; font-family: var(--f-d); font-size: 24px; pointer-events: none; }
.sw__stamp--yes { right: 14px; color: #0aa35a; transform: rotate(12deg); opacity: var(--yes, 0); }
.sw__stamp--no { left: 14px; color: #e0352b; transform: rotate(-12deg); opacity: var(--no, 0); }
.sw-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.sw-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; border-radius: 99px; border: 2.5px solid var(--line); font-family: var(--f-d); font-size: 17px; background: var(--card); box-shadow: var(--shadow); }
.sw-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.sw-btn--yes { background: var(--acc2); }

/* ---------- 結果 ---------- */
.res { display: grid; gap: 18px; }
.res-type { padding: 22px 18px 18px; border-radius: calc(var(--radius) + 8px); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 14px; position: relative; overflow: hidden; }
.res-type__label { font-family: var(--f-d); font-size: 12px; letter-spacing: .14em; color: var(--acc); }
.res-type__main { display: flex; align-items: flex-end; gap: 12px; }
.res-type__chara { width: 86px; height: auto; flex: none; animation: chara-pop .6s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
@keyframes chara-pop { from { transform: translateY(20px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.res-type__pre { font-size: 13px; font-weight: 700; color: var(--sub); }
.res-type__name { font-family: var(--f-d); font-size: 29px; line-height: 1.25; font-weight: 900; letter-spacing: .01em; }
.res-type__catch { font-size: 13.500px; font-weight: 700; margin-top: 6px; line-height: 1.6; }
.res-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.res-chips li { font-size: 11.500px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--acc2); }
.res-talk { display: flex; gap: 12px; align-items: flex-start; }
.res-talk__face { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--acc2); object-fit: cover; object-position: top; box-shadow: inset 0 0 0 2px var(--line); }
.res-talk__body { flex: 1; padding: 14px 16px; border-radius: 4px var(--radius) var(--radius) var(--radius); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; display: grid; gap: 10px; }
.res-talk__advice b { display: block; font-size: 12px; color: var(--acc); font-weight: 900; }
.res-h { font-family: var(--f-d); font-size: 21px; line-height: 1.4; margin-top: 10px; font-weight: 900; }
.res-h--sub { font-size: 17px; margin-top: 14px; }
.res-sub { font-size: 12.500px; color: var(--sub); margin-top: -12px; }
.jobs { display: grid; gap: 14px; }
.job { border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.job.is-pick { box-shadow: 0 0 0 2.5px var(--pick), var(--shadow); }
/* 求人の画像は縦横の比がまちまち（16:10・4:3 など）。切らずに、元の比のまま全部見せる */
.job__img { display: block; position: relative; background: var(--acc2); min-height: 60px; }
.job__img img { width: 100%; height: auto; display: block; }
.job__rank { position: absolute; top: 0; left: 0; min-width: 38px; padding: 3px 10px; font-family: var(--f-d); font-size: 17px; text-align: center; background: var(--ink); color: var(--bg); border-radius: 0 0 12px 0; }
.job.is-pick .job__rank { background: var(--pick); color: #1a1500; }
body[data-v="b"] .job.is-pick .job__rank { color: #fff; }
.job__body { padding: 14px 16px 16px; display: grid; gap: 9px; }
.job__badge { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-size: 11.500px; font-weight: 900; padding: 2px 10px 2px 7px; border-radius: 99px; background: var(--pick); color: #1a1500; }
body[data-v="b"] .job__badge { color: #fff; }
.job__title { font-size: 15px; line-height: 1.5; font-weight: 900; }
.job__title a { text-decoration: none; }
.job__id { font-size: 12px; color: var(--sub); margin: 0 0 0 10px; white-space: nowrap; }
.job__area { flex-wrap: wrap; }
.job__id b { font-weight: 700; letter-spacing: .02em; user-select: all; }
.job__area { display: flex; align-items: center; gap: 4px; font-size: 12.500px; color: var(--sub); }
.job__nums { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.job__num { display: flex; align-items: baseline; gap: 5px; }
.job__num span { font-size: 11px; font-weight: 700; color: var(--sub); }
.job__num b { font-family: var(--f-d); font-size: 28px; line-height: 1; color: var(--acc); font-weight: 900; }
.job__num i { font-style: normal; font-size: 12.500px; font-weight: 900; }
.job__num em { font-style: normal; font-size: 14px; font-weight: 900; }
.job__hits { display: flex; flex-wrap: wrap; gap: 5px; }
.job__hits li { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.job__btns { display: grid; grid-template-columns: 1.300fr 1fr; gap: 8px; margin-top: 4px; }
.job__btns .btn { padding: 11px 8px; font-size: 13.500px; box-shadow: none; }
.job__btns .btn--sub { box-shadow: inset 0 0 0 2px var(--line); }
.res-cta { display: grid; gap: 14px; margin-top: 8px; }
.res-line { padding: 18px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 8px; text-align: center; }
.res-line__t { font-weight: 900; font-size: 16px; }
.res-line__d { font-size: 12.500px; color: var(--sub); }
.err { text-align: center; display: grid; gap: 16px; padding-top: 80px; }

/* =====================================================
 * A ものがたり
 * ===================================================== */
.a { display: grid; gap: 12px; }
.a-hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-pips { display: flex; gap: 6px; }
.a-pips i { width: 22px; height: 8px; border-radius: 2px; background: var(--line); transition: background .3s ease; }
.a-pips i.is-done { background: var(--acc); }
.a-pips i.is-now { background: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .4; } }
.a-count { display: flex; align-items: baseline; gap: 4px; font-family: var(--f-d); font-size: 12px; color: var(--sub); padding: 4px 12px; border-radius: 6px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease; }
.a-count b { font-size: 22px; color: var(--acc); font-weight: 400; font-variant-numeric: tabular-nums; min-width: 3.200em; text-align: right; }
.a-count.is-flash { box-shadow: inset 0 0 0 2px var(--acc), 0 0 18px rgba(255, 201, 60, .5); }
.a-stage { position: relative; height: 200px; display: flex; justify-content: center; align-items: flex-end; margin-bottom: -22px; }
.a-glow { position: absolute; bottom: 4px; left: 50%; width: 200px; height: 200px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 60, .28), transparent 65%); }
.a-chara { position: relative; height: 200px; width: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); animation: idle 3.200s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes idle { 50% { transform: scaleY(1.018) translateY(-2px); } }
.a-chara.is-hop { animation: hop .5s ease; }
@keyframes hop { 30% { transform: translateY(-22px) scale(1.03, .97); } 60% { transform: translateY(0) scale(.97, 1.03); } }
.a-box { position: relative; z-index: 2; min-height: 104px; padding: 22px 16px 18px; border-radius: 10px; background: rgba(13, 18, 48, .94); box-shadow: inset 0 0 0 2px #f3f1e7, 0 0 0 2px #0b1027, var(--shadow); font-family: var(--f-d); font-size: 16px; line-height: 1.75; cursor: pointer; }
.a-name { position: absolute; top: -13px; left: 14px; padding: 0 12px; border-radius: 4px; background: var(--acc); color: var(--acc-ink); font-size: 13px; }
.a-next { position: absolute; right: 12px; bottom: 8px; width: 0; height: 0; border: 6px solid transparent; border-top: 8px solid var(--acc); opacity: 0; }
.a-box.is-wait .a-next { opacity: 1; animation: bob .8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
.a-cmd { display: grid; gap: 10px; min-height: 60px; }
.opts--cmd .opt { border-radius: 8px; padding: 10px 12px; }
.opts--cmd .opt__ic { width: 34px; height: 34px; border-radius: 6px; }
.opts--cmd .opt__ck { display: none; }
.opts--cmd .opt.is-on { background: var(--acc); color: var(--acc-ink); }
.opts--cmd .opt.is-on small { color: inherit; }
.opts--cmd .opt.is-on .opt__ic { background: rgba(0, 0, 0, .15); color: inherit; }
.a-back { display: flex; align-items: center; gap: 4px; justify-self: start; font-size: 12.500px; color: var(--sub); padding: 6px 0; }
.a-load { display: flex; justify-content: center; gap: 10px; padding: 20px; }
.a-load i { width: 12px; height: 12px; background: var(--acc); animation: ld 1s ease-in-out infinite; }
.a-load i:nth-child(2) { animation-delay: .15s; } .a-load i:nth-child(3) { animation-delay: .3s; }
@keyframes ld { 50% { transform: translateY(-12px); opacity: .5; } }
body[data-v="a"] .res-type { box-shadow: inset 0 0 0 2px var(--acc), var(--shadow); }
body[data-v="a"] .res-type__name { color: var(--acc); font-weight: 400; }
body[data-v="a"] .res-h, body[data-v="a"] .job__num b, body[data-v="a"] .job__rank { font-weight: 400; }

/* =====================================================
 * B マガジン
 * ===================================================== */
.b { display: grid; gap: 14px; }
.b-tape { justify-self: start; padding: 3px 14px; background: var(--ink); color: var(--acc2); font-weight: 900; font-size: 13px; transform: rotate(-2deg); }
.b-ttl { font-family: var(--f-d); font-weight: 400; font-size: clamp(38px, 12vw, 54px); line-height: 1.16; display: grid; }
.b-ttl em { font-style: normal; color: var(--acc); background: linear-gradient(transparent 62%, var(--acc2) 62%); }
.b-hero { position: relative; height: 230px; display: flex; justify-content: center; }
.b-hero::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 230px; height: 230px; transform: translateX(-50%); border-radius: 50%; background: var(--acc2); border: 3px solid var(--line); }
.b-hero img { position: relative; height: 240px; width: auto; margin-top: -6px; }
.b-burst { position: absolute; right: 0; top: 6px; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--acc); color: #fff; border: 3px solid var(--line); font-weight: 900; font-size: 12px; line-height: 1.35; transform: rotate(8deg); box-shadow: var(--shadow); }
.b-burst b { font-family: var(--f-d); font-weight: 400; font-size: 22px; display: block; }
.b-lead { font-weight: 700; font-size: 14px; }
.b-top { display: flex; align-items: center; gap: 10px; }
.b-bk { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--card); }
.b-no { font-family: var(--f-d); font-size: 15px; line-height: 1; }
.b-no b { font-size: 34px; font-weight: 400; color: var(--acc); margin: 0 4px 0 2px; }
.b-no i { font-style: normal; font-size: 13px; color: var(--sub); }
.b-cnt { margin-left: auto; padding: 4px 12px; border: 2.5px solid var(--line); border-radius: 99px; background: var(--acc2); font-size: 11.500px; font-weight: 900; transition: transform .2s ease; }
.b-cnt b { font-family: var(--f-d); font-weight: 400; font-size: 16px; margin: 0 3px; font-variant-numeric: tabular-nums; }
.b-cnt.is-flash { transform: scale(1.12) rotate(-3deg); }
.b-q { font-family: var(--f-d); font-weight: 400; font-size: 27px; line-height: 1.35; }
.b-say { display: flex; align-items: center; gap: 10px; }
.b-say img { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2.5px solid var(--line); background: var(--acc2); object-fit: cover; object-position: top; }
.b-say p { position: relative; padding: 8px 14px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--card); font-size: 13px; font-weight: 700; line-height: 1.5; }
.opts--tile { grid-template-columns: 1fr 1fr; }
.opts--tile .opt { flex-direction: column; text-align: center; gap: 8px; padding: 16px 10px; border: 2.5px solid var(--line); box-shadow: var(--shadow); }
.opts--tile .opt:nth-child(odd) { transform: rotate(-.8deg); } .opts--tile .opt:nth-child(even) { transform: rotate(.8deg); }
.opts--tile .opt__ic { width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--line); font-size: 24px; color: var(--ink); }
.opts--tile .opt__ck { display: none; }
.opts--tile .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.opts--tile .opt.is-on { background: var(--acc); color: #fff; transform: translate(3px, 3px) rotate(0); box-shadow: 1px 1px 0 var(--line); }
.opts--tile .opt.is-on small { color: #fff; }
body[data-v="b"] .map__r rect { stroke-width: 2.500; }
body[data-v="b"] .area__any { border: 2.5px solid var(--line); box-shadow: var(--shadow); }
.b-load { text-align: center; justify-items: center; padding-top: 80px; }
.b-load img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--line); background: var(--acc2); object-fit: cover; object-position: top; animation: hop 1s ease infinite; }
.b-load__t { font-family: var(--f-d); font-size: 34px; }
.b-load__bar { width: 220px; height: 16px; border: 2.5px solid var(--line); border-radius: 99px; background: var(--card); overflow: hidden; }
.b-load__bar span { display: block; height: 100%; background: var(--acc); animation: fill 1.500s ease forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.b-load__s { font-size: 13px; font-weight: 700; }
body[data-v="b"] .res-type, body[data-v="b"] .job, body[data-v="b"] .res-line { border: 2.5px solid var(--line); }
body[data-v="b"] .res-type__name { font-weight: 400; font-size: 25px; color: var(--acc); }
body[data-v="b"] .res-h, body[data-v="b"] .job__num b, body[data-v="b"] .job__rank { font-weight: 400; }
body[data-v="b"] .res-h { display: inline-block; justify-self: start; background: linear-gradient(transparent 60%, var(--acc2) 60%); }
body[data-v="b"] .job.is-pick { box-shadow: 5px 5px 0 var(--pick); }

/* =====================================================
 * C アプリ
 * ===================================================== */
.c { display: grid; gap: 16px; padding-bottom: 84px; }
.c-intro { padding-top: 24px; padding-bottom: 0; gap: 14px; }
.c-ava { width: 88px; height: 88px; border-radius: 50%; background: var(--acc2); object-fit: cover; object-position: top; }
.c-kick { font-size: 13px; font-weight: 900; color: var(--acc); letter-spacing: .08em; }
.c-ttl { font-size: 30px; line-height: 1.4; font-weight: 900; letter-spacing: .01em; }
.c-lead { color: var(--sub); font-size: 14px; }
.c-pts { display: grid; gap: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 4px 16px; margin: 6px 0; }
.c-pts li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.c-pts li:last-child { border: 0; }
.c-pts .ic { color: var(--acc); }
.c-bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.c-bar span { display: block; height: 100%; background: var(--acc); border-radius: 99px; transition: width .5s cubic-bezier(.2, .9, .3, 1); }
.c-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--sub); font-weight: 700; }
.c-bk { display: flex; align-items: center; gap: 2px; }
.c-step { font-variant-numeric: tabular-nums; }
.c-q { font-size: 25px; line-height: 1.45; font-weight: 900; }
.c-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); margin-top: -8px; }
.c-hint img { width: 30px; height: 30px; border-radius: 50%; background: var(--acc2); object-fit: cover; object-position: top; }
.opts--row { gap: 8px; }
.opts--row .opt { box-shadow: var(--shadow); padding: 14px 16px; }
.opts--row .opt.is-on { box-shadow: inset 0 0 0 2px var(--acc), var(--shadow); background: var(--acc2); }
.opts--row .opt.is-on .opt__ic { background: var(--acc); color: #fff; }
.c-foot { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: baseline; gap: 6px; padding: 10px 22px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12.500px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); white-space: nowrap; transition: background .25s ease; }
.c-foot b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 2.800em; text-align: right; }
.c-foot.is-flash { background: var(--acc); }
.c-load { place-items: center; text-align: center; padding-top: 140px; color: var(--sub); font-weight: 700; }
.c-ring { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body[data-v="c"] .res-type__label { font-weight: 900; }

/* =====================================================
 * 比較ページ
 * ===================================================== */
.cmp { max-width: 560px; margin: 0 auto; padding: 36px 18px 64px; display: grid; gap: 14px; }
.cmp__kicker { font-size: 12.500px; font-weight: 900; color: var(--sub); letter-spacing: .08em; }
.cmp__title { font-size: 34px; font-weight: 900; line-height: 1.2; }
.cmp__lead { font-size: 14px; }
.cmp__legend { font-size: 12.500px; color: var(--sub); }
.cmp__h { font-size: 18px; font-weight: 900; margin-top: 22px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.cmp__note { font-size: 12.500px; color: var(--sub); }
.mk { display: inline-block; padding: 1px 9px; border-radius: 4px; font-size: 12px; font-weight: 900; margin-right: 6px; }
.mk--star { background: #ffd23c; color: #1d1c1a; }
.mk--x { background: #c9c5bb; color: #4a463e; }
.cmp-card { padding: 18px; border-radius: 16px; display: grid; gap: 8px; background: #fff; color: #1d1c1a; }
.cmp-card__name { font-size: 24px; font-weight: 900; line-height: 1.3; display: flex; align-items: baseline; gap: 10px; }
.cmp-card__name span { font-size: 14px; opacity: .6; }
.cmp-card__catch { font-weight: 900; font-size: 14px; }
.cmp-card__desc { font-size: 13px; opacity: .85; }
.cmp-card__go { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.cmp-card__go a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #1d1c1a; font-size: 12.500px; font-weight: 900; text-decoration: none; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .8); }
.cmp-card__go img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top; background: #eee; flex: none; }
.cmp-card--a { background: linear-gradient(180deg, #7fd0ff, #e6f8ff); color: #1b2a5c; box-shadow: inset 0 0 0 2.5px #1b2a5c, 0 4px 0 #1b2a5c; font-family: "Zen Maru Gothic", sans-serif; }
.cmp-card--a .cmp-card__name { font-family: "DotGothic16", sans-serif; font-weight: 400; color: #ff7a1a; }
.cmp-card--b { background: #fff3dc; border: 2.5px solid #1c1712; box-shadow: 4px 4px 0 #1c1712; }
.cmp-card--b .cmp-card__name { font-family: "Dela Gothic One", sans-serif; font-weight: 400; color: #ff4a26; }
.cmp-card--c { background: #fff; box-shadow: 0 6px 20px rgba(20, 30, 50, .08); }
.cmp-card--c .cmp-card__name { color: #0b7a63; }
.cmp-card--x { background: transparent; box-shadow: inset 0 0 0 1.5px #c9c5bb; color: #6c685f; }
.cmp-card--x .cmp-card__name { font-size: 17px; text-decoration: line-through; }
.cmp-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-ch figure { background: #fff; border-radius: 16px; padding: 16px 12px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.cmp-ch img { height: 220px; width: auto; }
.cmp-ch figcaption { font-size: 12px; color: var(--sub); display: grid; gap: 4px; justify-items: center; }
.cmp-ch strong { font-size: 15px; color: var(--ink); }
.cmp-ch .mk { margin: 0; }
.cmp-ch img { max-width: 100%; object-fit: contain; }
.cmp-ch figure.is-x { opacity: .55; background: transparent; box-shadow: inset 0 0 0 1.5px #c9c5bb; }
.cmp-ch figure.is-x img { height: 130px; }
.cmp-ch__go { display: flex; gap: 6px; margin-top: 4px; }
.cmp-ch__go a { width: 38px; padding: 4px 0; border-radius: 99px; font-weight: 900; font-size: 13px; text-align: center; text-decoration: none; color: #1d1c1a; box-shadow: inset 0 0 0 2px #1d1c1a; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.b-load img.b-think { width: auto; height: 200px; border: 0; border-radius: 0; background: none; animation: idle 1.6s ease-in-out infinite; }
.c-think { height: 170px; width: auto; }
.c-load { padding-top: 70px; gap: 18px; }
.cmp-ch__poses { display: flex; gap: 4px; justify-content: center; }
.cmp-ch .cmp-ch__poses img { height: 74px; width: auto; }

/* ---- A：明るいゲーム画面（青空・白いウィンドウ・紺のふち） ---- */
body[data-v="a"] .btn--main { box-shadow: inset 0 0 0 2.5px var(--line), 0 4px 0 var(--line); text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
body[data-v="a"] .btn--main:active { transform: translateY(3px); box-shadow: inset 0 0 0 2.5px var(--line), 0 1px 0 var(--line); }
body[data-v="a"] .a-pips i { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 3px; }
body[data-v="a"] .a-pips i.is-done { background: var(--pick); }
body[data-v="a"] .a-pips i.is-now { background: var(--acc); }
body[data-v="a"] .a-count { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); border-radius: 8px; }
body[data-v="a"] .a-count.is-flash { box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line), 0 0 0 5px rgba(255, 194, 26, .7); }
body[data-v="a"] .a-stage::before, body[data-v="a"] .a-stage::after { content: ""; position: absolute; top: 18px; width: 92px; height: 30px; border-radius: 99px; background: #fff; opacity: .9; box-shadow: 26px -14px 0 4px #fff, 52px 0 0 -2px #fff; animation: cloud 14s ease-in-out infinite alternate; }
body[data-v="a"] .a-stage::before { left: -6px; }
body[data-v="a"] .a-stage::after { right: 46px; top: 64px; transform: scale(.7); animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes cloud { from { margin-left: -8px; } to { margin-left: 14px; } }
body[data-v="a"] .a-glow { width: 150px; height: 26px; bottom: 16px; border-radius: 50%; background: rgba(27, 42, 92, .16); }
body[data-v="a"] .a-chara { filter: none; }
body[data-v="a"] .a-box { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 3px var(--line), inset 0 0 0 6px #fff, inset 0 0 0 7.5px #cfe0ff, 0 5px 0 var(--line); border-radius: 14px; }
body[data-v="a"] .a-name { box-shadow: inset 0 0 0 2px var(--line); border-radius: 6px; padding: 1px 14px; }
body[data-v="a"] .opts--cmd .opt { box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); border-radius: 10px; }
body[data-v="a"] .opts--cmd .opt:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--line), 0 1px 0 var(--line); }
body[data-v="a"] .opts--cmd .opt.is-on { background: var(--pick); color: var(--ink); }
body[data-v="a"] .opts--cmd .opt.is-on .opt__ic { background: #fff; color: var(--acc); }
body[data-v="a"] .map__r rect { stroke-width: 2; }
body[data-v="a"] .map__r.is-on rect { stroke: var(--line); }
body[data-v="a"] .area__any { box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
body[data-v="a"] .a-back { color: var(--ink); opacity: .7; }
body[data-v="a"] .res-type { box-shadow: inset 0 0 0 3px var(--line), 0 5px 0 var(--line); }
body[data-v="a"] .res-type__name { color: var(--acc); }
body[data-v="a"] .res-talk__body, body[data-v="a"] .res-line { box-shadow: inset 0 0 0 2px var(--line); }
body[data-v="a"] .job { box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); }
body[data-v="a"] .job.is-pick { box-shadow: inset 0 0 0 3px var(--acc), 0 4px 0 var(--line); }
body[data-v="a"] .job__rank { color: #fff; }
body[data-v="a"] .job.is-pick .job__rank { color: var(--ink); }
body[data-v="a"] .job__btns .btn--main { box-shadow: inset 0 0 0 2px var(--line); }
body[data-v="a"] .a-stage { margin-bottom: 8px; }
body[data-v="a"] .a-glow { bottom: -8px; }
body[data-v="a"] .res-type__name { -webkit-text-stroke: .7px currentColor; letter-spacing: .02em; }
body[data-v="a"] .a-count b { -webkit-text-stroke: .4px currentColor; }

/* ---------- 結果：左（タイプ）と右（求人）のまとまり ---------- */
.res__side, .res__main { display: grid; gap: 18px; align-content: start; min-width: 0; }

/* =====================================================
 * PC（幅 900px 以上）：横に広く使う
 * ===================================================== */
@media (min-width: 900px) {
	.sd-stage { max-width: 1080px; padding: 56px 32px 72px; }
	.sd-home { top: 14px; right: 18px; font-size: 12.500px; padding: 6px 14px; }

	/* 質問：左にキャラとセリフ、右に選択肢 */
	.a { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); grid-template-areas: "hud hud" "stage cmd" "box cmd" "back cmd"; column-gap: 48px; align-items: start; }
	.a-hud { grid-area: hud; margin-bottom: 8px; }
	.a-stage { grid-area: stage; height: 320px; }
	.a-chara { height: 320px; }
	body[data-v="a"] .a-glow { width: 220px; height: 34px; }
	.a-box { grid-area: box; font-size: 18px; min-height: 130px; padding: 26px 22px 22px; }
	.a-name { font-size: 15px; top: -15px; }
	.a-cmd { grid-area: cmd; align-self: center; min-height: 0; }
	.a-cmd > .btn { max-width: 360px; }
	.a-back { grid-area: back; }
	.a-pips i { width: 44px; height: 10px; }
	.a-count { font-size: 14px; padding: 6px 16px; }
	.a-count b { font-size: 28px; }
	.opts--cmd { grid-template-columns: 1fr 1fr; gap: 12px; }
	.opts--cmd .opt { padding: 14px 16px; }
	.opts--cmd .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.opt__tx b { font-size: 16px; }
	.opt__tx small { font-size: 13px; }
	.area { max-width: 460px; margin: 0 auto; width: 100%; }

	/* 結果：左にタイプ（スクロールしても残る）、右に求人を2列 */
	.res { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 36px; align-items: start; }
	.res__side { position: sticky; top: 24px; }
	.res-type__name { font-size: 32px; }
	.res-h { margin-top: 0; font-size: 24px; }
	.res-h--sub { margin-top: 18px; font-size: 19px; }
	.res-sub { font-size: 13.500px; }
	.jobs { grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
	.res-cta { grid-template-columns: 1fr 1fr; align-items: start; margin-top: 18px; }
	.res-cta > .btn--main { align-self: center; }
	.res-cta > .btn--ghost { grid-column: 1 / -1; }

	/* B・C（ボツ案）も崩れないよう、中央の細い列のままにする */
	body[data-v="b"] .sd-stage, body[data-v="c"] .sd-stage { max-width: 520px; }
	body[data-v="b"] .res, body[data-v="c"] .res { grid-template-columns: 1fr; }
	body[data-v="b"] .res__side, body[data-v="c"] .res__side { position: static; }
	body[data-v="b"] .jobs, body[data-v="c"] .jobs, body[data-v="b"] .res-cta, body[data-v="c"] .res-cta { grid-template-columns: 1fr; }
}
/* タブレット（600〜899px）：1列のまま、求人だけ2列 */
@media (min-width: 600px) and (max-width: 899px) {
	.sd-stage { max-width: 720px; }
	body[data-v="a"] .a { max-width: 520px; margin: 0 auto; }
	body[data-v="a"] .jobs { grid-template-columns: 1fr 1fr; align-items: start; }
	body[data-v="a"] .res__side { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* 比較ページ：表紙の案 */
.cmp-cover { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; }
.cmp-cover strong { font-size: 17px; }
.cmp-cover__d { font-size: 13px; color: var(--sub); }
.cmp-cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.cmp-cover .cmp-cover__sp { max-width: 300px; }
@media (min-width: 900px) { body[data-v="cmp"] .cmp { max-width: 1040px; } body[data-v="cmp"] .cmp-card, body[data-v="cmp"] .cmp-ch { max-width: 560px; } }

/* 比較ページ：実際のトップページで見るリンク */
.cmp-cover__links { display: flex; flex-wrap: wrap; gap: 10px; }
.cmp-cover__links a { display: inline-block; padding: 12px 18px; border-radius: 999px; background: #1b2a5c; color: #fff; font-weight: 700; text-decoration: none; }
.cmp-cover__live { font-size: 13px; font-weight: 700; color: #1b6fd6; }
