.tool.wide { max-width: 1180px; }
.layout2 { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 28px; align-items: start; }
.qcol { position: sticky; top: 64px; max-height: calc(100vh - 76px); overflow-y: auto; padding-right: 4px; }
.qhead { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.qcol .step { padding: 14px 14px 12px; margin-bottom: 10px; }
.qcol .step h2 { font-size: 14.5px; margin-bottom: 8px; }
.qcol .choices span { padding: 7px 11px; font-size: 13.5px; }
.qcol .inline input { font-size: 16px; width: 170px; }
.inline.sub { margin-top: 10px; font-size: 14px; color: var(--muted); }
.rcol { min-width: 0; }
.placeholder { color: var(--muted); text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: 12px; }

/* サマリー */
.sum { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 26px; }
.sum-main, .sum-side { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.sum-main { border-color: var(--accent); background: var(--accent-soft); }
.sum-l { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.sum-v { margin: 2px 0 8px; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; }
.sum-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.sum-items a { color: var(--text); }
.sum-side p { margin: 0 0 8px; font-size: 13.5px; }
.sum-n { font-size: 26px; font-weight: 800; color: var(--accent); margin-right: 2px; }
.sum-dl { color: var(--warn); font-weight: 600; line-height: 1.6; }
.sum-k { color: var(--muted); }

.r2 { margin: 0 0 30px; }
.r2-h { font-size: 18px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.r2-sub { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.g-h { font-size: 14px; color: var(--muted); margin: 18px 0 8px; }

/* 期限のタイムライン */
.tl2 { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.tl2 li { position: relative; display: grid; grid-template-columns: 170px 64px 1fr; gap: 8px; padding: 7px 0 7px 12px; font-size: 14px; line-height: 1.6; }
.tl2 li::before { content: ""; position: absolute; left: -21px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 2px solid var(--bg); }
.tl2 .k-deadline::before { background: var(--ng); }
.tl2 .k-todo::before { background: var(--accent); }
.tl2 .k-ms::before { background: var(--text); }
.tl2 .past { opacity: 0.5; }
.tl2-date { font-variant-numeric: tabular-nums; color: var(--muted); }
.tl2-kind { font-size: 11.5px; font-weight: 700; border-radius: 4px; padding: 1px 6px; height: fit-content; text-align: center; background: var(--line); }
.k-deadline .tl2-kind { background: var(--ng-soft); color: var(--ng); }
.k-todo .tl2-kind { background: var(--accent-soft); color: var(--accent); }
.k-ms .tl2-kind { background: var(--surface); border: 1px solid var(--line); }
.tl2-note { color: var(--muted); font-size: 12.5px; }

/* 干渉 */
.ix { display: grid; gap: 10px; }
.ix-item { border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 0 10px 10px 0; padding: 12px 14px; background: var(--surface); }
.ix-item p { margin: 0; font-size: 14px; line-height: 1.75; }
.ix-t { font-weight: 700; margin-bottom: 2px !important; }
.ix-t::before { content: "⇄ "; color: var(--warn); }

/* 制度カード */
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; scroll-margin-top: 70px; }
.c-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-top h3 { font-size: 15.5px; margin: 0; }
.chip { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.s-yes { color: var(--ok); background: var(--ok-soft); }
.s-dep { color: var(--warn); background: var(--warn-soft); }
.s-no { color: var(--ng); background: var(--ng-soft); }
.c-head { margin: 8px 0 4px; font-size: 14px; line-height: 1.7; }
.c-kubun { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.c-amount { margin: 6px 0 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.c-amount-l { margin: 0; font-size: 12px; color: var(--muted); }
.c-opts { margin: 8px 0 0; padding-left: 1.2em; font-size: 13px; line-height: 1.7; }
.c-more { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.c-more > summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; }
.c-more ul { margin: 6px 0; padding-left: 1.2em; font-size: 13px; line-height: 1.7; }
.c-links { font-size: 13px; margin: 6px 0; }
.c-links a, .c-src a { color: var(--accent); }
.c-src-h { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.c-src { font-size: 12px !important; }

/* 次にやること・広告枠 */
.ad-zone { margin-top: 14px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.ad-label { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.ad-slot { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.ad-t { margin: 0; font-weight: 700; font-size: 14px; }
.ad-w { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ad-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .layout2 { grid-template-columns: 1fr; }
  .qcol { position: static; max-height: none; overflow: visible; }
  .sum { grid-template-columns: 1fr; }
  .tl2 li { grid-template-columns: 1fr; gap: 2px; }
  .tl2-kind { width: fit-content; }
}
[hidden] { display: none !important; }
.jump { display: none; }
@media (max-width: 900px) {
  .jump {
    display: block; position: fixed; right: 16px; bottom: 16px; z-index: 20;
    background: var(--accent); color: var(--surface); text-decoration: none; font-weight: 700; font-size: 14px;
    padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
  }
}
.sum-note { margin: 0 0 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* あなたがすること（カード内） */
.c-act { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); }
.c-act.hi { box-shadow: inset 3px 0 0 var(--accent); }
.c-act-h { margin: 0; font-size: 12px; font-weight: 700; color: var(--accent); display: flex; justify-content: space-between; gap: 8px; }
.c-act-by { color: var(--ng); }
.c-act-do { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.65; }
.c-act-why { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* あなたがすること（一覧） */
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acts li { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.acts li.hi { border-left: 4px solid var(--accent); }
.acts-when { font-size: 13px; font-weight: 700; color: var(--ng); font-variant-numeric: tabular-nums; }
.acts-do { margin: 0; font-size: 14px; line-height: 1.7; }
.acts-do a { color: var(--accent); font-weight: 700; text-decoration: none; }
.acts-why { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* もっと良くするには */
.advs { display: grid; gap: 10px; margin-bottom: 14px; }
.adv { border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); }
.adv-k { margin: 0; font-size: 12px; font-weight: 700; display: flex; gap: 10px; }
.adv-k span { font-weight: 600; color: var(--muted); }
.a-better { border-left: 4px solid var(--ok); } .a-better .adv-k { color: var(--ok); }
.a-warn { border-left: 4px solid var(--ng); } .a-warn .adv-k { color: var(--ng); }
.a-tip { border-left: 4px solid var(--accent); } .a-tip .adv-k { color: var(--accent); }
.adv-t { margin: 4px 0 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
.adv-e { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.adv-d { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.adv-hint { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; }
.derived { margin: 8px 0 0; font-size: 13px; color: var(--accent); font-weight: 600; }

/* 就職時期のグラフ */
.curve { margin: 4px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.curve figcaption { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.curve svg { width: 100%; height: auto; display: block; }
.g-l { stroke: var(--line); stroke-width: 1; }
.g-t, .b-x { font-size: 10.5px; fill: var(--muted); text-anchor: end; }
.b-x { text-anchor: middle; }
.b-sal { fill: var(--line); }
.b-ben.r70 { fill: var(--c-pay); }
.b-ben.r60 { fill: color-mix(in srgb, var(--c-pay) 60%, var(--surface)); }
.b-ben.r0 { fill: var(--c-proc); }
.bar.sel rect { stroke: var(--text); stroke-width: 1.5; }
.c-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.c-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.l-b70 { background: var(--c-pay); } .l-b60 { background: color-mix(in srgb, var(--c-pay) 60%, var(--surface)); } .l-b0 { background: var(--c-proc); } .l-sal { background: var(--line); }
.c-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
@media (max-width: 900px) { .acts li { grid-template-columns: 1fr; gap: 2px; } }

/* 要件のチェック（再就職手当など） */
.c-checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; line-height: 1.6; }
.c-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; }
.ck-i { font-weight: 800; text-align: center; border-radius: 4px; }
.ck-ok .ck-i { color: var(--ok); }
.ck-ng .ck-i { color: var(--ng); }
.ck-unknown .ck-i { color: var(--warn); }
.ck-ng { font-weight: 600; }
.ck-n { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.c-checks.big { font-size: 14.5px; gap: 8px; }

/* 辞めた後のお金の出入り */
.opt { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
#area { font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); max-width: 100%; }
.f-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.f-head > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.f-k { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
.f-v { margin: 2px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.f-v.in { color: var(--ok); } .f-v.out { color: var(--ng); }
.f-in { fill: var(--ok); opacity: .75; } .f-out { fill: var(--ng); opacity: .7; }
.f-net { fill: var(--text); } .f-net.neg { fill: var(--ng); }
.g-l.dash { stroke-dasharray: 3 4; }
.l-in { background: var(--ok); opacity: .75; } .l-out { background: var(--ng); opacity: .7; } .l-net { background: var(--text); border-radius: 50% !important; }
.f-strat { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.f-sh { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; }
.f-strat ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.f-strat li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 14px; padding: 6px 8px; border-radius: 8px; }
.f-strat li strong { font-variant-numeric: tabular-nums; margin-left: auto; }
.f-strat li.best { background: var(--ok-soft); }
.f-strat li em { flex-basis: 100%; font-style: normal; font-size: 12px; color: var(--ok); font-weight: 700; }
.f-scroll { overflow-x: auto; }
.f-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.f-table th, .f-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.f-table thead th { font-size: 12px; color: var(--muted); }
.f-table tbody th { white-space: nowrap; font-weight: 600; }
.f-table tbody th span { display: block; font-size: 11px; color: var(--accent); }
.f-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.f-table td.minus { color: var(--ng); }
.f-i { display: block; white-space: nowrap; }
.f-i small { color: var(--muted); }
.f-i.muted { color: var(--muted); }
.f-worst { background: var(--ng-soft); }
@media (max-width: 900px) { .f-head { grid-template-columns: 1fr; } }

/* 退職日を比べる */
.hk-dates { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.hk-dates label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); font-weight: 700; }
.hk-dates input { font-size: 15px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.f-table.hk th, .f-table.hk td { text-align: left; white-space: normal; font-weight: 400; }
.f-table.hk thead th { font-weight: 700; color: var(--text); font-size: 13px; }
.f-table.hk thead th span { display: inline-block; margin-left: 4px; font-size: 11px; color: var(--accent); }
.f-table.hk tbody th { font-weight: 700; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.f-table.hk td small { display: block; color: var(--muted); font-size: 12px; }
.f-table.hk td.hk-best { box-shadow: inset 0 0 0 2px var(--ok); border-radius: 6px; }

/* 無料の打ち出し・印刷・カレンダー・窓口 */
.free-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--ok-soft); color: var(--text); font-size: 14px; line-height: 1.7; }
.free-note strong { color: var(--ok); }
.tools-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 14px; }
.btn { font: inherit; font-size: 13.5px; font-weight: 700; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); cursor: pointer; }
.btn:hover { background: var(--accent-soft); }
.madoguchi { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.madoguchi li { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.madoguchi span { color: var(--muted); }
@media (max-width: 900px) { .madoguchi li { grid-template-columns: 1fr; gap: 2px; } }
@media print {
  .topbar, .qcol, .tools-bar, .jump, .no-print, .hk-dates, .adv-hint, .badge { display: none !important; }
  .layout2 { display: block; }
  .tool.wide { max-width: none; }
  body { background: #fff; }
  .r2 { break-inside: avoid-page; }
  .c-card, .adv, .ix-item, .f-head > div { break-inside: avoid; }
  details > summary { display: none; }
}
.profile-bar { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
.linkbtn { font: inherit; font-size: 12px; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0 0 0 6px; }
.th-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; margin-top: 8px; cursor: pointer; }
.ad-slot.pub { border-color: var(--ok); }
/* スマホ：答えた数と結果への移動 */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar:not([hidden]) {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 30; text-align: center;
    background: var(--surface); color: var(--muted); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px;
    padding: 11px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.14);
  }
  .mbar.ready { background: var(--accent); color: var(--surface); border-color: var(--accent); }
  .rcol { padding-bottom: 64px; }
}
@media print { .mbar { display: none !important; } }
.layout2 > * { min-width: 0; }
#area { width: 100%; }
@media (max-width: 900px) { .layout2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .mbar.ready.away { display: none !important; } }
