/* ─────────────────────────────────────────────
   キャリア現在地 — 地形図をモチーフにしたトークン
   ───────────────────────────────────────────── */
:root {
  --paper: #EEF1EC;
  --paper-2: #E1E7DF;
  --surface: #FAFBF8;
  --ink: #1C2B36;
  --ink-2: #4A5A63;
  --line: #C3CCC1;
  --forest: #2F6B5A;
  --forest-ink: #FFFFFF;
  --forest-soft: #D6E4DC;
  --signal: #F2C230;
  --signal-ink: #1C2B36;
  --alert: #A3472F;
  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --s1: 13px; --s2: 15px; --s3: 17px; --s4: 20px; --s5: 25px; --s6: 31px; --s7: 39px;
  --pad: 20px;
  --max: 640px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16201F; --paper-2: #1E2A28; --surface: #1A2524; --ink: #E6ECE7; --ink-2: #A9B7B1;
    --line: #34443F; --forest: #5FA88E; --forest-ink: #0E1716; --forest-soft: #23392F; --signal: #E8B923; --alert: #E08A70;
  }
}
:root[data-theme="dark"] {
  --paper: #16201F; --paper-2: #1E2A28; --surface: #1A2524; --ink: #E6ECE7; --ink-2: #A9B7B1;
  --line: #34443F; --forest: #5FA88E; --forest-ink: #0E1716; --forest-soft: #23392F; --signal: #E8B923; --alert: #E08A70;
}
*, *::before, *::after { box-sizing: inherit; }
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.8; font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--forest); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── ヘッダー ── */
.bar { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--s2); color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.logo svg { width: 22px; height: 22px; }

/* ── ボタン ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--forest); color: var(--forest-ink); font-weight: 700; font-size: var(--s3);
  text-decoration: none; transition: transform .12s ease, filter .12s;
}
.btn:active { transform: translateY(1px); filter: brightness(.95); }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { min-height: 44px; font-size: var(--s2); padding: 0 16px; }
.textbtn { background: none; border: 0; padding: 8px 0; color: var(--forest); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── TOP ── */
.hero { padding: 20px 0 8px; }
.hero h1 { font-size: var(--s6); line-height: 1.35; margin: 12px 0 14px; font-weight: 900; letter-spacing: .01em; }
.hero h1 span { display: block; }
.hero .lead { font-size: var(--s3); color: var(--ink-2); margin: 0 0 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--s1); }
.meta li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--forest); margin: 0 6px 2px 0; border-radius: 50%; }
.resume { margin-top: 14px; font-size: var(--s2); }

.mapfig { margin: 28px 0 8px; background: var(--surface); border: 1px solid var(--line); padding: 14px 14px 10px; position: relative; }
.mapfig figcaption { font-size: var(--s1); color: var(--ink-2); margin-top: 6px; }
.map svg { display: block; width: 100%; height: auto; }
.map .grid { stroke: var(--line); }
.map .axis { stroke: var(--ink-2); stroke-width: 1.2; }
.map .contour { fill: none; stroke: var(--forest); stroke-opacity: .2; }
.map text { fill: var(--ink-2); font-family: var(--font); font-size: 11px; }
.map .qlabel { fill: var(--ink); font-weight: 700; font-size: 12px; }
.map .pin { fill: var(--signal); stroke: var(--ink); stroke-width: 2; }
.map .pinring { fill: none; stroke: var(--signal); stroke-width: 2; }
.map.animate .pin, .map.animate .pinring { animation: pinmove 2.4s cubic-bezier(.3,.7,.2,1) .4s both; }
@keyframes pinmove { 0% { transform: translate(var(--fx), var(--fy)); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(0, 0); } }

.band { background: var(--paper-2); margin-top: 36px; padding: 32px 0; }
.band h2, .sect h2 { font-size: var(--s5); line-height: 1.4; margin: 0 0 16px; font-weight: 900; }
.learn { list-style: none; margin: 0; padding: 0; }
.learn li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.learn li:last-child { border-bottom: 1px solid var(--line); }
.learn svg { width: 28px; height: 28px; color: var(--forest); margin-top: 2px; }
.learn b { display: block; font-size: var(--s3); }
.learn span { color: var(--ink-2); font-size: var(--s2); }
.outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.outcomes li { border: 1.5px solid var(--ink); padding: 4px 12px; font-size: var(--s2); font-weight: 700; background: var(--surface); }
.outcomes li.hl { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.sect { padding: 32px 0 8px; }
.note { font-size: var(--s1); color: var(--ink-2); }

/* ── 診断画面 ── */
.quiz { min-height: 100%; display: flex; flex-direction: column; }
.qhead { position: sticky; top: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 5; padding-bottom: 10px; }
.qhead .row { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 8px 8px 8px 0; font-size: var(--s2); color: var(--ink-2); cursor: pointer; min-height: 44px; }
.back svg { width: 18px; height: 18px; }
.remain { font-size: var(--s1); color: var(--ink-2); }
.progress { display: grid; grid-template-columns: 8fr 8fr 7fr; gap: 4px; }
.progress .seg { height: 6px; background: var(--line); position: relative; overflow: hidden; }
.progress .seg i { position: absolute; inset: 0; background: var(--forest); transform-origin: left; transform: scaleX(0); transition: transform .35s ease; }
.progress-labels { display: grid; grid-template-columns: 8fr 8fr 7fr; gap: 4px; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.progress-labels .on { color: var(--ink); font-weight: 700; }

.qbody { padding: 20px 0 32px; flex: 1; }
.qtext:focus { outline: none; }
.qtext { font-size: var(--s5); line-height: 1.45; font-weight: 900; margin: 0 0 8px; }
.qsub { color: var(--ink-2); font-size: var(--s2); margin: 0 0 16px; }
.opts { display: grid; gap: 8px; margin-top: 20px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; cursor: pointer; font-size: var(--s3); line-height: 1.5;
  transition: border-color .12s, background .12s;
}
@media (hover: hover) { .opt:hover { border-color: var(--ink-2); } }
.opt.sel { border-color: var(--forest); background: var(--forest-soft); font-weight: 700; }
.opt .lv { display: inline-flex; gap: 3px; flex: none; }
.opt .lv i { width: 7px; height: 16px; background: var(--line); }
.opt .lv i.f { background: var(--forest); }
.bip { margin-top: 20px; }
.bip .stmt { padding: 14px 16px; background: var(--surface); border-left: 4px solid var(--ink); font-size: var(--s3); font-weight: 700; line-height: 1.55; }
.bip .stmt.r { border-left-color: var(--forest); }
.bip .dots { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; padding: 18px 0 6px; }
.bip .dot { border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); cursor: pointer; padding: 0; transition: background .12s, transform .12s; }
.bip .dot:nth-child(1), .bip .dot:nth-child(5) { width: 52px; height: 52px; }
.bip .dot:nth-child(2), .bip .dot:nth-child(4) { width: 42px; height: 42px; }
.bip .dot:nth-child(3) { width: 34px; height: 34px; border-color: var(--ink-2); }
.bip .dot:nth-child(4), .bip .dot:nth-child(5) { border-color: var(--forest); }
.bip .dot.sel { background: var(--forest); border-color: var(--forest); transform: scale(1.06); }
.bip .dot:nth-child(-n+2).sel { background: var(--ink); border-color: var(--ink); }
.bip .dotlabels { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 11px; color: var(--ink-2); text-align: center; line-height: 1.35; padding-bottom: 18px; }
.react { margin-top: 18px; padding: 10px 14px; border-left: 4px solid var(--signal); background: var(--surface); font-size: var(--s2); animation: fadein .25s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.qanim { animation: qin .28s ease both; }
@keyframes qin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.checkpoint h2, .checkpoint .cp-h { font-size: var(--s5); margin: 8px 0 12px; line-height: 1.45; font-weight: 900; }
.facetbars { margin: 18px 0 20px; display: grid; gap: 10px; }
.facetbar { display: grid; grid-template-columns: 5.5em 1fr 2.5em; align-items: center; gap: 10px; font-size: var(--s2); }
.facetbar .track { height: 12px; background: var(--line); position: relative; }
.facetbar .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--forest); }
.facetbar.low .track i { background: var(--alert); }
.facetbar .n { font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; font-size: var(--s1); }

.analyzing { padding: 80px 0; }
.analyzing ol { list-style: none; padding: 0; margin: 24px 0 0; }
.analyzing li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.analyzing li.done { color: var(--ink); }
.analyzing li .ck { width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; flex: none; }
.analyzing li.done .ck { background: var(--forest); border-color: var(--forest); }

/* ── 結果 ── */
.rcard {
  margin: 12px 0 0; background: var(--surface); border: 2px solid var(--ink); position: relative; overflow: hidden;
}
.rcard .top { padding: 18px 18px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rcard .kicker { font-size: var(--s1); color: var(--ink-2); }
.rcard .code { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: .08em; color: var(--tc, var(--forest)); }
.rcard .tname { font-size: var(--s6); font-weight: 900; line-height: 1.3; margin: 10px 18px 4px; }
.rcard .tname.long { font-size: 27px; }
.rcard .tcatch { margin: 0 18px 14px; font-size: var(--s3); color: var(--ink-2); }
.rcard .axes { padding: 4px 18px 16px; display: grid; gap: 10px; }
.axis { display: grid; grid-template-columns: 2.6em 1fr 2.6em; align-items: center; gap: 8px; font-size: var(--s1); font-weight: 700; }
.axis span:last-child { text-align: right; }
.axis .track { height: 10px; background: var(--paper-2); position: relative; }
.axis .track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-2); }
.axis .track i { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; background: var(--tc, var(--forest)); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); }
.axis .pct { grid-column: 1 / -1; font-weight: 400; color: var(--ink-2); font-size: 11px; margin-top: -4px; text-align: center; }
.rcard .verdict { background: var(--ink); color: var(--paper); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rcard .verdict small { display: block; font-size: 11px; opacity: .8; }
.rcard .verdict b { font-size: var(--s4); line-height: 1.35; }
.rcard .verdict .state { font-size: var(--s1); border: 1px solid currentColor; padding: 2px 8px; white-space: nowrap; }
.rcard .rfoot { padding: 8px 18px; font-size: 11px; color: var(--ink-2); display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.sharerow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.sharerow .btn { min-height: 48px; font-size: var(--s2); padding: 0 10px; }
.sharemore { display: flex; gap: 16px; justify-content: center; margin-top: 6px; font-size: var(--s2); }

.rsec { padding: 28px 0 4px; border-bottom: 1px solid var(--line); }
.rsec:last-of-type { border-bottom: 0; }
.rsec h2 { font-size: var(--s4); line-height: 1.45; margin: 0 0 12px; font-weight: 900; }
.rsec h3 { font-size: var(--s3); margin: 20px 0 8px; }
.rsec p { margin: 0 0 14px; }
.headline { font-size: var(--s5); line-height: 1.45; font-weight: 900; margin: 0 0 12px; }
.reasons { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.reasons li { display: grid; grid-template-columns: 1fr; padding: 8px 0 8px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--forest); padding-left: 12px; background: var(--surface); margin-bottom: 4px; }
.reasons li span { font-size: var(--s1); color: var(--ink-2); }
.reasons li b { font-size: var(--s2); }
.reasons.counter li { border-left-color: var(--ink-2); }
.rank { display: grid; gap: 6px; margin: 8px 0 16px; }
.rank .r { display: grid; grid-template-columns: 9.5em 1fr 2.8em; gap: 8px; align-items: center; font-size: var(--s1); }
.rank .r .track { height: 10px; background: var(--paper-2); position: relative; }
.rank .r .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); }
.rank .r.top { font-weight: 700; }
.rank .r.top .track i { background: var(--forest); }
.rank .r .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.insight { padding: 14px 16px; background: var(--signal); color: var(--signal-ink); font-weight: 700; line-height: 1.7; margin: 0 0 16px; }
.plan { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.plan li { position: relative; padding: 0 0 20px 40px; }
.plan li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--forest-ink); font-weight: 900; display: grid; place-items: center; font-size: var(--s2); }
.plan li::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.plan li:last-child::after { display: none; }
.plan .when { font-size: var(--s1); color: var(--forest); font-weight: 700; }
.plan b { display: block; font-size: var(--s3); line-height: 1.55; margin: 2px 0 4px; }
.plan span { color: var(--ink-2); font-size: var(--s2); }
.gauge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0 8px; }
.gauge div { height: 12px; background: var(--paper-2); }
.gauge.low div:nth-child(1), .gauge.mid div:nth-child(-n+2), .gauge.high div { background: var(--forest); }
.gauge.high div { background: var(--alert); }
.gauge-l { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11px; color: var(--ink-2); margin-bottom: 10px; }
.gauge-l span:nth-child(2) { text-align: center; } .gauge-l span:nth-child(3) { text-align: right; }
.lvl { font-size: var(--s4); font-weight: 900; }
.twocol { display: grid; gap: 0 24px; }
@media (min-width: 560px) { .twocol { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; margin: 0 0 12px; padding: 0; }
.ticks li { padding: 8px 0 8px 26px; position: relative; border-top: 1px dashed var(--line); font-size: var(--s2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px; border-left: 2.5px solid var(--forest); border-bottom: 2.5px solid var(--forest); transform: rotate(-45deg); }
.ticks.warn li::before { width: 12px; height: 12px; border: 0; top: 14px; background: var(--alert); transform: none; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.roles li { padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); font-size: var(--s2); }
.roles.bridge li { border-color: var(--forest); border-width: 1.5px; font-weight: 700; }
.statebox { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ads { margin-top: 12px; }
.adnote { font-size: var(--s1); color: var(--ink-2); padding: 10px 12px; background: var(--paper-2); margin-bottom: 10px; }
.ad { border: 1.5px solid var(--line); background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
.ad .adh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ad .tag { font-size: 11px; font-weight: 700; border: 1px solid var(--ink-2); color: var(--ink-2); padding: 0 6px; flex: none; }
.ad b { font-size: var(--s3); }
.ad .cat { font-size: var(--s1); color: var(--ink-2); }
.ad p { font-size: var(--s2); margin: 6px 0 10px; }
.noads { font-size: var(--s2); }
.noads li { margin-bottom: 6px; }
.resource { padding: 14px 16px; border: 2px solid var(--alert); background: var(--surface); margin: 8px 0 16px; }
.compare { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; font-size: var(--s2); }
.compare .d { font-weight: 700; font-variant-numeric: tabular-nums; }
.again { padding: 28px 0 12px; }
.foot { padding: 28px 0 40px; font-size: var(--s1); color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: var(--s2); z-index: 50; animation: fadein .2s ease both; max-width: 90vw; }

/* 静的ページ（タイプ一覧・テーマ・シェア着地） */
.page h1 { font-size: var(--s6); line-height: 1.35; margin: 16px 0 12px; font-weight: 900; }
.page .lead { font-size: var(--s3); color: var(--ink-2); }
.page ul.pts { padding-left: 1.2em; } .page ul.pts li { margin-bottom: 10px; }
.typelist { list-style: none; padding: 0; margin: 16px 0; }
.typelist li { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.typelist .c { font-weight: 900; font-size: var(--s5); letter-spacing: .06em; }
.typelist b { font-size: var(--s3); display: block; }
.typelist span { color: var(--ink-2); font-size: var(--s2); }
.prose h2 { font-size: var(--s4); margin: 28px 0 8px; }
.prose p, .prose li { font-size: var(--s2); }

@media (max-width: 360px) {
  .rcard .code { font-size: 34px; }
  .rcard .tname, .rcard .tname.long { font-size: 24px; }
  .qtext { font-size: var(--s4); }
}
@media (min-width: 720px) {
  .hero h1 { font-size: var(--s7); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ── 行動プラン内の広告（小さめ） ── */
.ad { position: relative; }
.ad.compact { margin: 10px 0 0; padding: 10px 12px; border-style: dashed; }
.ad.compact p { margin: 4px 0 8px; font-size: var(--s1); }
.ad.compact .btn { min-height: 40px; }

/* ── 有料レポートの案内 ── */
.offer { background: var(--surface); border: 2px solid var(--ink); padding: 20px 18px 6px; margin: 28px 0 0; }
.offer h2 { margin-top: 0; }
.offer .sample { position: relative; border-left: 4px solid var(--line); padding: 8px 0 0 12px; margin: 8px 0 16px; max-height: 128px; overflow: hidden; }
.offer .sample p { font-size: var(--s2); color: var(--ink-2); margin: 4px 0 0; }
.offer .sample::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(transparent, var(--surface)); }
.offer .btn { margin-bottom: 10px; }

/* ── 有料レポート ── */
.report h1 { font-size: var(--s5); line-height: 1.4; margin: 6px 0 8px; }
.rp-code { display: block; font-size: var(--s7); letter-spacing: .08em; color: var(--tc, var(--forest)); line-height: 1.1; }
.rp-head { padding: 8px 0 12px; border-bottom: 2px solid var(--ink); }
.rp-sum { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: var(--s2); }
.rp-sum th, .rp-sum td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp-sum th { width: 9em; color: var(--ink-2); font-weight: 500; }
.rp-toc { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--s2); }
.rp-toc ol { margin: 6px 0 0; padding-left: 0; list-style: none; }
.rp-toc li { padding: 3px 0; }
.rp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
mark.fill { background: color-mix(in srgb, var(--signal) 45%, transparent); color: inherit; padding: 0 2px; }
.rp-item { margin: 0 0 18px; }
.rp-label { font-weight: 700; font-size: var(--s2); margin-bottom: 4px; }
.rp-draft { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; margin: 0 0 4px !important; line-height: 1.9; }
.rp-pair { margin: 0 0 14px; display: grid; gap: 6px; }
.rp-pair div { padding: 10px 14px; background: var(--surface); border-left: 4px solid var(--line); font-size: var(--s2); }
.rp-pair .ng { color: var(--ink-2); }
.rp-pair .ok { border-left-color: var(--forest); font-weight: 700; }
.rp-pair span, .rp-script span { display: block; font-size: 11px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.rp-script { padding-left: 1.4em; margin: 0 0 12px; }
.rp-script li { margin-bottom: 10px; font-size: var(--s2); }
.rp-tip { padding: 10px 14px; background: var(--paper-2); font-size: var(--s2); }
.rp-q { padding-left: 1.2em; margin: 0 0 12px; } .rp-q li { margin-bottom: 8px; font-size: var(--s2); }
.rp-week { padding: 10px 0; border-top: 1px dashed var(--line); }
.rp-week b { display: block; font-size: var(--s2); color: var(--forest); margin-bottom: 4px; }
.rp-check { display: grid; grid-template-columns: 28px 1fr; gap: 6px; align-items: start; padding: 6px 0; font-size: var(--s2); cursor: pointer; }
.rp-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--forest); }
.rp-check input:checked + span { color: var(--ink-2); text-decoration: line-through; }
.rp-role { border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; margin: 0 0 10px; }
.rp-rh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rp-rh span { font-size: 11px; color: var(--ink-2); border: 1px solid var(--line); padding: 0 6px; flex: none; }
.rp-role dl { margin: 6px 0 0; font-size: var(--s2); }
.rp-role dt { font-size: 11px; color: var(--ink-2); font-weight: 700; margin-top: 6px; }
.rp-role dd { margin: 0; }
.rp-sheet { width: 100%; border-collapse: collapse; font-size: var(--s2); }
.rp-sheet th { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; width: 55%; border-top: 1px solid var(--ink); }
.rp-sheet th small { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--s1); margin-top: 4px; }
.rp-sheet td { border-top: 1px solid var(--ink); border-left: 1px solid var(--line); min-height: 64px; height: 72px; }
.rp-disc { margin: 24px 0; }
.pv-overlay { position: fixed; inset: 0; z-index: 70; background: var(--paper); overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: 40px; }
.legal th { width: 9em; }

@media print {
  :root { --paper: #fff; --surface: #fff; --paper-2: #f2f2f2; }
  body { background: #fff; font-size: 11pt; }
  .noprint, .bar, .foot, .rp-bar, [data-copy] { display: none !important; }
  .rsec { break-inside: avoid-page; border-bottom: 0; }
  .rp-role, .rp-pair, .rp-week { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  mark.fill { background: #fff3b0; }
}

/* ── 結果：要約・目次・発見・タイプの深掘り ── */
.tldr { margin: 18px 0 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 12px 0 6px; }
.tldr h2 { font-size: var(--s3); margin: 0 0 6px; }
.tldr dl { margin: 0; }
.tldr dl > div { display: grid; grid-template-columns: 4.6em 1fr; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); }
.tldr dl > div:first-child { border-top: 0; }
.tldr dt { font-size: var(--s1); font-weight: 700; color: var(--forest); padding-top: 2px; }
.tldr dd { margin: 0; font-weight: 700; font-size: var(--s2); line-height: 1.6; }
.rnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; margin: 8px 0 0; background: var(--paper); scrollbar-width: none; }
.rnav::-webkit-scrollbar { display: none; }
.rnav a { flex: 1 0 auto; justify-content: center; padding: 6px 10px; min-height: 44px; display: inline-flex; align-items: center; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-size: var(--s1); font-weight: 700; border-radius: 6px; background: var(--surface); }
.rsec { scroll-margin-top: 64px; }
.finds { list-style: none; counter-reset: fd; margin: 18px 0 8px; padding: 0; }
.finds li { counter-increment: fd; position: relative; padding: 12px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--signal); }
.finds li::before { content: "発見 " counter(fd); display: inline-block; font-size: 11px; font-weight: 900; background: var(--signal); color: var(--signal-ink); padding: 1px 8px; margin-bottom: 6px; letter-spacing: .06em; }
.finds b { display: block; font-size: var(--s3); line-height: 1.5; margin-bottom: 4px; }
.finds p { margin: 0 !important; font-size: var(--s2); color: var(--ink-2); }
.agenote, .shine { padding: 10px 14px; background: var(--surface); border-left: 4px solid var(--signal); font-size: var(--s2); }
.agenote span, .shine span { display: block; font-size: var(--s1); font-weight: 700; color: var(--ink-2); }
.axisread { list-style: none; margin: 0 0 12px; padding: 0; }
.axisread li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: var(--s2); }
.axisread li span { display: block; color: var(--ink-2); font-size: var(--s1); }
.pair { padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; }
.pair .pl { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 8px; margin-right: 8px; background: var(--paper-2); }
.pair a { color: var(--ink); }
.pair p { margin: 6px 0 0 !important; font-size: var(--s2); color: var(--ink-2); }
.axis .track i.fr { background: var(--surface); box-shadow: 0 0 0 1.5px var(--ink-2); width: 14px; height: 14px; margin-left: -7px; top: -2px; border: 0; }
.vs { border: 2px solid var(--forest); padding: 16px 16px 4px; margin-top: 18px; background: var(--surface); }
.vsbanner { padding: 10px 14px; border-left: 4px solid var(--forest); background: var(--surface); font-size: var(--s2); margin: 0 0 12px; }
.cp-axes { display: grid; gap: 14px; margin: 18px 0; }
.cp-axes .track i { background: var(--forest); }
.hist { margin: 0 0 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); }
.hist svg { display: block; width: 100%; height: auto; }
.hist .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.hist polyline { fill: none; stroke-width: 2.5; }
.hist .s { stroke: var(--forest); fill: var(--forest); }
.hist .r { stroke: var(--alert); fill: var(--alert); }
.hist polyline.s, .hist polyline.r { fill: none; }
.hist text { fill: var(--ink-2); font-size: 10px; font-family: var(--font); }
.hist figcaption { font-size: var(--s1); color: var(--ink-2); display: flex; gap: 14px; }
.hist .ks::before, .hist .kr::before { content: ""; display: inline-block; width: 12px; height: 3px; margin: 0 4px 3px 0; background: var(--forest); }
.hist .kr::before { background: var(--alert); }
