/* ============================================================
   AI仕事力診断 — color system
   キーカラー：#22334B（ネイビー） / #2251FF（ビビッドブルー） / #00AEEF（シアン）
   フォントカラー：#00366B（ネイビー） / #6E6E6E（グレー）
   役割：ビビッドブルー＝伸びしろ・操作、シアン＝すでに浮いている分、
        ネイビー＝面で置く箇所（法人CTA・レベル章）
   ============================================================ */

:root {
  color-scheme: light;
  --surface-0:   #ffffff;   /* page ground   */
  --surface-1:   #ffffff;   /* card / chart  */
  --surface-2:   #e9eff8;   /* track / inset */
  --border:      #d3ddea;
  --grid:        #e2eaf4;   /* chart grid    */
  --text-1:      #00366b;   /* font color / navy  */
  --text-2:      #6e6e6e;   /* font color / grey  */
  --text-3:      #7a8089;
  --accent:      #2251ff;   /* key color / vivid blue */
  --accent-soft: rgba(34, 81, 255, .10);
  --accent-ink:  #1b3ec7;
  --on-accent:   #ffffff;
  --cyan:        #00aeef;   /* key color / cyan */
  --cyan-soft:   rgba(0, 174, 239, .14);
  --navy:        #22334b;   /* key color / navy */
  --on-navy:     #ffffff;
  --radius:      14px;
  --shadow:      0 1px 2px rgba(0,54,107,.04), 0 6px 18px rgba(0,54,107,.05);
}
/* OSのダークモードには追従しない。会場のQRから開く前提で、
   誰の端末でも同じ白基調・同じ色で出す。
   ダークが必要になったら <html data-theme="dark"> で下のブロックが効く。 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-0:   #0e1826;
  --surface-1:   #182640;
  --surface-2:   #22334b;
  --border:      #2e405c;
  --grid:        #293a54;
  --text-1:      #eef3fa;
  --text-2:      #a9b4c2;
  --text-3:      #7f8a98;
  --accent:      #4d6dff;
  --accent-soft: rgba(77, 109, 255, .20);
  --accent-ink:  #9db3ff;
  --on-accent:   #ffffff;
  --cyan:        #35c6f4;
  --cyan-soft:   rgba(53, 198, 244, .18);
  --navy:        #22334b;
  --on-navy:     #ffffff;
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-0);
  color: var(--text-1);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "palt" 1;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 480px; margin: 0 auto; padding: 0 20px 64px; }
.screen { display: none; }
.screen.is-active { display: block; animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- shared ---------- */
h1, h2, h3 { line-height: 1.4; margin: 0; letter-spacing: .01em; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--accent); text-transform: uppercase; margin: 0 0 8px;
}
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
}
.btn {
  display: block; width: 100%; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font: 700 16px/1 inherit; padding: 17px 20px; letter-spacing: .04em;
  font-family: inherit; transition: filter .15s ease, transform .1s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border); font-weight: 600;
}
.btn:focus-visible, .opt:focus-visible, .job:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.muted { color: var(--text-3); font-size: 13px; }

/* ---------- TOP ---------- */
.top { padding-top: 72px; text-align: center; }
.top__brand { font: 800 12px/1 inherit; letter-spacing: .3em; color: var(--text-3); }
.top__h { font-size: 30px; font-weight: 800; margin: 26px 0 14px; letter-spacing: .02em; }
.top__lead { color: var(--text-2); font-size: 15px; margin: 0 0 30px; }
.top__meta {
  display: flex; justify-content: center; gap: 0; margin: 0 0 32px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-1); overflow: hidden;
}
.top__meta div { flex: 1; padding: 14px 4px; }
.top__meta div + div { border-left: 1px solid var(--border); }
.top__meta b { display: block; font-size: 17px; font-weight: 800; }
.top__meta span { font-size: 11px; color: var(--text-3); letter-spacing: .06em; }

/* ---------- job select ---------- */
.job {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 10px;
  font: 600 15px/1.5 inherit; color: var(--text-1);
  transition: border-color .15s, background .15s;
}
.job:hover { border-color: var(--accent); background: var(--accent-soft); }
.job::after { content: "→"; color: var(--text-3); font-weight: 400; }

/* ---------- quiz ---------- */
.progress { padding: 22px 0 8px; }
.progress__bar { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s ease; }
.progress__txt {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-3); margin-top: 8px; letter-spacing: .04em;
}
.q__num { font: 800 13px/1 inherit; color: var(--accent); letter-spacing: .12em; }
.q__text { font-size: 19px; font-weight: 700; margin: 12px 0 24px; line-height: 1.7; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 16px; margin-bottom: 8px; cursor: pointer;
  font: 500 15px/1.4 inherit; color: var(--text-1);
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt.is-picked { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.opt__key {
  flex: 0 0 24px; height: 24px; border-radius: 6px; background: var(--surface-2);
  color: var(--text-3); font: 700 12px/24px inherit; text-align: center;
}
.opt.is-picked .opt__key { background: var(--accent); color: var(--on-accent); }
.q__back {
  margin-top: 14px; background: none; border: 0; color: var(--text-3);
  font: 500 13px/1 inherit; cursor: pointer; padding: 8px 0;
}

/* ---------- result ---------- */
.hero { text-align: center; padding: 34px 0 6px; }
.hero__label { font-size: 12px; color: var(--text-3); letter-spacing: .18em; font-weight: 700; }
.hero__score { font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 6px 0 0; }
.hero__score span { font-size: 22px; font-weight: 700; margin-left: 4px; color: var(--text-2); }
.hero__level {
  display: inline-block; margin: 16px 0 0; padding: 6px 16px; border-radius: 999px;
  background: var(--navy); color: var(--on-navy);
  font: 700 12px/1.6 inherit; letter-spacing: .14em;
}
.hero__name { font-size: 26px; font-weight: 800; margin: 12px 0 0; letter-spacing: .04em; }
.hero__msg { color: var(--text-2); font-size: 15px; margin: 12px 0 0; text-align: left; }

/* radar */
.radar { margin: 24px 0 0; padding: 18px 8px 10px; position: relative; }
.radar__svg { width: 100%; height: auto; display: block; overflow: visible; }
.radar__poly { transform-origin: 50% 46.7%; animation: grow .7s cubic-bezier(.22,1,.36,1) both .15s; }
@keyframes grow { from { transform: scale(.02); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.radar__tip {
  position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 14px));
  background: var(--text-1); color: var(--surface-1);
  padding: 7px 11px; border-radius: 8px; font-size: 12px; line-height: 1.5;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.radar__tip.is-on { opacity: 1; }
.radar__tip b { font-size: 13px; }
.vertex { cursor: pointer; }

/* bars */
.bars { margin-top: 6px; }
.bar { display: grid; grid-template-columns: 84px 1fr 38px; align-items: center; gap: 10px; padding: 7px 0; }
.bar__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.bar.is-hi .bar__label { color: var(--text-1); font-weight: 800; }
.bar__track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar__fill {
  height: 100%; background: var(--accent); opacity: .42;
  border-radius: 0 4px 4px 0; transition: width .6s cubic-bezier(.22,1,.36,1);
}
.bar.is-hi .bar__fill { opacity: 1; }
.bar__val { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar__badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: .08em; vertical-align: 1px;
  background: var(--accent-soft); color: var(--accent-ink);
}

/* insight blocks */
.block { margin-top: 14px; }
.block__body { color: var(--text-2); font-size: 14.5px; margin: 8px 0 0; }
.block__title { font-size: 21px; font-weight: 800; margin-top: 2px; }
.block--next { border-left: 3px solid var(--accent); }

/* CTA */
.cta {
  margin-top: 30px; background: var(--navy); border: 1px solid var(--navy);
  border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
  color: var(--on-navy);
}
.cta__q { font-size: 14px; color: rgba(255,255,255,.72); margin: 0; }
.cta__h { font-size: 25px; font-weight: 800; margin: 8px 0 14px; line-height: 1.45; }
.cta__body { font-size: 14px; color: rgba(255,255,255,.78); text-align: left; margin: 0 0 20px; }
.cta__tag { font-size: 11px; letter-spacing: .18em; font-weight: 800; color: var(--cyan); }
.cta .btn { background: var(--on-navy); color: var(--navy); }
.cta .btn:hover { filter: brightness(.94); }
.cta .btn:focus-visible { outline-color: var(--cyan); }
.cta__slogan { margin-top: 22px; font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.62); }
.cta__slogan b { display: block; font-size: 15px; letter-spacing: .3em; color: var(--on-navy); margin-top: 6px; }

/* share / footer bits */
.share { display: flex; gap: 8px; margin-top: 12px; }
.share .btn { font-size: 14px; padding: 14px; }
.devbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--text-1); color: var(--surface-1);
  font: 500 11px/1 inherit; padding: 8px 12px; display: flex; gap: 10px;
  align-items: center; justify-content: center; flex-wrap: wrap;
}
.devbar button {
  background: rgba(255,255,255,.14); color: inherit; border: 0; border-radius: 5px;
  padding: 5px 9px; font: 600 11px/1 inherit; cursor: pointer;
}
.flags { font-size: 11px; color: var(--text-3); margin-top: 10px; }
.flags code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- form ---------- */
.fld { display: block; margin: 16px 0 0; }
.fld__l { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.req {
  font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 2px 6px; border-radius: 4px; margin-left: 4px;
}
.fld input, .fld select {
  width: 100%; padding: 13px 14px; font: 500 16px/1.4 inherit;   /* 16px未満はiOSでズームする */
  color: var(--text-1); background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 10px; appearance: none;
}
.fld input:focus, .fld select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.fld input[aria-invalid="true"], .fld select[aria-invalid="true"] { border-color: #e34948; }
.more { margin: 18px 0 4px; }
.more summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent);
  list-style: none; padding: 8px 0;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "＋ "; font-weight: 800; }
.more[open] summary::before { content: "− "; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 20px; accent-color: var(--accent); }
.chk a { color: var(--accent); }
#leadForm .btn { margin-top: 22px; }
.formErr { color: #e34948; font-size: 13px; font-weight: 600; margin: 12px 0 0; }
.pending { opacity: .6; pointer-events: none; }
.offline {
  background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; font-weight: 600; margin-top: 12px;
}

/* ============================================================
   浮く時間（結果画面のメイン）
   ============================================================ */
.hero--time { padding: 30px 0 4px; }
.hero--time .hero__score { font-size: 82px; color: var(--accent); }
.hero--time .hero__score span {
  display: block; font-size: 15px; font-weight: 700;
  color: var(--text-2); letter-spacing: .1em; margin: 8px 0 0;
}
.hero__cap { font-size: 14.5px; color: var(--text-2); margin: 14px 0 0; font-weight: 600; }
.hero__year { font-size: 14px; color: var(--text-2); margin: 16px 0 0; }
.hero__year b { font-size: 20px; font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums; }
.est {
  font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--text-3); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; margin-left: 8px; vertical-align: 2px;
}

/* いま浮いている分＋伸びしろ を積み上げる。全体幅＝理論上の上限 */
.gauge { margin: 22px 0 0; }
.gauge__track {
  display: flex; height: 14px; border-radius: 99px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.gauge__now { background: var(--cyan); transition: width .6s cubic-bezier(.22,1,.36,1); }
.gauge__gap { background: var(--accent); transition: width .6s cubic-bezier(.22,1,.36,1); }
.gauge__legend {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 9px; font-size: 12px; color: var(--text-2);
}
.gauge__legend b { color: var(--text-1); font-weight: 800; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-right: 5px; background: var(--accent); }
.dot--now { background: var(--cyan); }

/* ---------- 内訳 ---------- */
.tbars { margin: 18px 0 4px; }
.tbar { padding: 11px 0; }
.tbar + .tbar { border-top: 1px solid var(--border); }
.tbar__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.tbar__name { font-size: 13.5px; font-weight: 700; color: var(--text-1); line-height: 1.4; }
.tbar__val {
  margin-left: auto; flex: 0 0 auto; font-size: 17px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.tbar__val i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.tbar__track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.tbar__fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .7s cubic-bezier(.22,1,.36,1); }
.tbar__sub { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* ---------- 時間の調整 ---------- */
.hrs { padding-top: 4px; }
.hrs__row { display: block; margin: 14px 0 0; }
.hrs__l {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 2px;
}
.hrs__l b { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums; }
.hrs__l i { font-style: normal; font-size: 11px; color: var(--text-3); }
.hrs__warn {
  background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px;
  padding: 9px 11px; font-size: 12px; font-weight: 600; margin: 14px 0 0;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border);
}
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -9px;
  border-radius: 99px; background: var(--accent); border: 3px solid var(--surface-1);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 99px; background: var(--accent);
  border: 3px solid var(--surface-1); box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
input[type="range"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 99px; }
.btn--sm { font-size: 13px; padding: 11px; margin-top: 18px; }

/* ---------- 試算の前提 ---------- */
.assump { font-size: 12.5px; color: var(--text-2); }
.assump p { margin: 10px 0 0; }
.assump__h { font-size: 12px; font-weight: 800; color: var(--text-1); margin: 4px 0 8px !important; }
.assump__r {
  display: flex; justify-content: space-between; font-size: 12.5px;
  padding: 5px 0; border-bottom: 1px dashed var(--border);
}
.assump__r b { font-variant-numeric: tabular-nums; color: var(--text-1); }

/* ---------- スコア（時間が浮かない理由） ---------- */
.scoreRow { display: flex; align-items: center; gap: 16px; margin: 16px 0 0; }
.scoreRow__n { font-size: 54px; margin: 0; flex: 0 0 auto; }
.scoreRow__n span { font-size: 16px; }
.scoreRow .hero__name { font-size: 20px; margin: 6px 0 0; }

/* ---------- 法人 ---------- */
.corp__l { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 20px 0 2px; }
.corp__l b { font-size: 17px; font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums; }
.corp__out {
  margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.corp__out div {
  display: flex; align-items: baseline; gap: 8px; padding: 12px 14px;
  font-size: 12.5px; color: var(--text-3);
}
.corp__out div + div { border-top: 1px solid var(--border); }
.corp__out b {
  margin-left: auto; font-size: 22px; font-weight: 800;
  color: var(--text-1); font-variant-numeric: tabular-nums;
}
.corp__money { background: var(--accent-soft); }
.corp__money b { color: var(--accent-ink); }
.corp__note { font-size: 11.5px; color: var(--text-3); margin: 12px 0 0; line-height: 1.7; }
