/* 等級とキャリアの梯子。style.css・flow.css・cm.css の上に重ねる（接頭辞 ld-） */
.ld-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.ld-nl { display: block; margin: 6px 0 0; }
.ld-inl { display: inline; margin: 0 0 0 6px; padding: 0; }
.ld-tips { margin-top: 12px; }
.ld-mt { margin-top: 10px; }
.ld-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.ld-box { padding: 12px 14px; min-width: 0; }
.ld-tbl { font-size: 12.5px; }
.ld-tbl th, .ld-tbl td { padding: 6px 8px; }
.ld-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ld-sub { margin: 12px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ld-small { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* 操作の枠 */
.ld-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.ld-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ld-clab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 5.5em; }
.ld-scene { margin: 0; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }
.ld-scene b { color: var(--ink); margin-right: 4px; }
.ld-scene b.ld-to { margin: 0; color: #14532d; }

/* 期待の表 */
.ld-lv { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.ld-lvtbl { min-width: 900px; table-layout: fixed; }
.ld-lvtbl thead th:first-child, .ld-lvtbl tbody th { width: 9.5em; }
.ld-lvtbl tbody th { font-weight: 700; color: var(--ink2); font-size: 12px; }
.ld-lvtbl thead th:first-child, .ld-lvtbl tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 1px 0 0 var(--line2); }
.ld-lvtbl td.ld-trk, .ld-lvtbl th.ld-trk { background: #fbfdfb; }
.ld-lvtbl td.ld-on, .ld-lvtbl th.ld-on { background: #f0fdf4; }
.ld-lvtbl tr.ld-vrow th { color: #14532d; }
.ld-gbtn { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; text-align: left; width: 100%; cursor: pointer; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; display: flex; align-items: center; gap: 6px; }
.ld-gbtn:hover { border-color: #94a3b8; background: var(--any-bg); }
.ld-gbtn[aria-pressed="true"] { border-color: #15803d; background: #dcfce7; }
.ld-gno { font: 600 11px var(--latin); background: var(--ink); color: #fff; border-radius: 5px; padding: 1px 6px; flex: none; }
.ld-h4 .ld-gno { font-size: 12px; }
.ld-tag { font-size: 12px; font-weight: 700; color: #14532d; }
.ld-tag::before { content: "・"; }
.ld-dl { margin: 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 10px; font-size: 12.5px; }
.ld-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.ld-dl dd { margin: 0; color: var(--ink2); }
.ld-ul { margin: 0; padding-left: 1.2em; font-size: 12.5px; color: var(--ink2); display: grid; gap: 3px; }
.ld-diff { margin: 0; font-size: 12.5px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 10px; }
.ld-diff b { display: block; font-size: 12px; color: #14532d; margin-bottom: 2px; }

/* 2 つの道の比べ */
.ld-trtbl { min-width: 720px; }
.ld-trtbl tbody th { font-weight: 700; color: var(--ink2); white-space: nowrap; }
.ld-trtbl td { width: 42%; }

/* 昇格の練習 */
.ld-pr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.ld-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ld-item { appearance: none; font: inherit; text-align: left; width: 100%; cursor: pointer; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); }
.ld-item:hover { border-color: #94a3b8; background: var(--any-bg); }
.ld-item.ld-picked { border-color: #86efac; background: #f7fef9; }
.ld-in { width: 22px; height: 22px; border-radius: 50%; background: #0f172a; color: #fff; font: 600 11.5px/22px var(--latin); text-align: center; }
.ld-item.ld-picked .ld-in { background: #15803d; }
.ld-it { display: grid; gap: 3px; min-width: 0; }
.ld-itt { font-size: 13px; }
.ld-rec { font-size: 11.5px; color: var(--muted); }
.ld-badge { justify-self: start; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.ld-b-ok { background: #dcfce7; color: #14532d; }
.ld-b-warn { background: #fef3c7; color: #92400e; }
.ld-b-ng { background: #fee2e2; color: #991b1b; }
.ld-verdict { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; border-radius: 10px; padding: 9px 12px; border: 1px solid var(--line); background: var(--any-bg); }
.ld-verdict b { font-size: 17px; }
.ld-verdict span { font-size: 12.5px; color: var(--ink2); }
.ld-verdict.ld-ok { background: #f0fdf4; border-color: #bbf7d0; } .ld-verdict.ld-ok b { color: #14532d; }
.ld-verdict.ld-warn { background: #fffbeb; border-color: #fde68a; } .ld-verdict.ld-warn b { color: #92400e; }
.ld-verdict.ld-ng { background: #fef2f2; border-color: #fecaca; } .ld-verdict.ld-ng b { color: #991b1b; }
.ld-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ld-rows li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; font-size: 12.5px; color: var(--ink2); border-radius: 8px; padding: 6px 9px; background: var(--line2); }
.ld-rows li b { display: block; color: var(--ink); }
.ld-rows li.ld-r-ok { background: #f0fdf4; } .ld-rows li.ld-r-ok .ld-rk { color: #15803d; }
.ld-rows li.ld-r-ng { background: #fef2f2; } .ld-rows li.ld-r-ng .ld-rk { color: #b91c1c; }
.ld-rk { font-weight: 700; white-space: nowrap; }
.ld-rv { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: #14532d; }
.ld-rv-gap { color: #92400e; }
.ld-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ld-msgs li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; font-size: 12.5px; color: var(--ink2); }
.ld-msgs em { font-style: normal; font-weight: 700; color: var(--ink); margin-right: 6px; }
.ld-m-ng b { color: #b91c1c; }
.ld-m-warn b { color: #b45309; }
.ld-next { margin: 0; font-size: 12.5px; color: var(--ink2); background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px; }

/* 給与の帯 */
.ld-bands { display: grid; gap: 8px; }
.ld-band { display: grid; grid-template-columns: 13em minmax(0, 1fr) 15em; gap: 10px; align-items: center; font-size: 12.5px; }
.ld-bn { font-weight: 700; color: var(--ink2); }
.ld-bt { position: relative; height: 24px; background: var(--line2); border-radius: 6px; }
.ld-bt i { position: absolute; top: 0; bottom: 0; background: #15803d; border-radius: 6px; opacity: .85; }
.ld-bn em { display: block; font: 600 11.5px var(--latin); font-style: normal; color: var(--muted); }
.ld-bnote { font-size: 12px; color: var(--muted); }
.ld-axis .ld-bt { background: none; height: 16px; border-top: 1px solid var(--line); border-radius: 0; }
.ld-ticks em { position: absolute; top: 2px; transform: translateX(-50%); font: 500 11px var(--latin); color: var(--muted); font-style: normal; }

/* 残す形 */
.ld-tpls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; align-items: start; }
.ld-tpl { padding: 12px 14px; min-width: 0; }
.ld-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ld-tplh .ld-h4 { margin: 0; }
.ld-pre { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 10px 12px; font: 500 12px/1.6 var(--latin); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow-y: auto; }
.ld-ltbl { min-width: 2000px; }
.ld-ltbl th { white-space: nowrap; }
.ld-ltbl td { min-width: 9em; }

.ld-gbtn:focus-visible, .ld-item:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1280px) {
  .ld-lv { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .ld-pr, .ld-tpls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ld-clab { min-width: 0; width: 100%; }
  .ld-tbl th, .ld-tbl td { padding: 5px 6px; }
  .ld-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ld-dl dd { margin-bottom: 4px; }
  .ld-rows li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ld-band { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .ld-bnote:empty { display: none; }
  .ld-axis .ld-bn { display: none; }
}
