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

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

/* 後継者の地図 */
.sc-map { min-width: 1180px; font-size: 12.5px; }
.sc-map th, .sc-map td { padding: 5px 4px; }
.sc-map thead th { vertical-align: bottom; }
.sc-map .sc-jh { min-width: 15em; vertical-align: bottom; }
.sc-map .sc-jh, .sc-map tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 1px 0 0 var(--line2); }
.sc-map tr.sc-focus th { background: #eff6ff; }
.sc-map .sc-gh { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; padding-bottom: 3px; }
.sc-map .sc-nh, .sc-map .sc-sh { text-align: center; white-space: nowrap; }
.sc-ph { width: 66px; }
.sc-pbtn { appearance: none; font: inherit; width: 100%; min-height: 78px; cursor: pointer; display: grid; justify-items: center; align-content: start; gap: 1px; padding: 5px 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-align: center; }
.sc-pbtn:hover { border-color: #94a3b8; background: var(--any-bg); }
.sc-pbtn b { font-size: 12.5px; }
.sc-pbtn small { font-size: 10px; line-height: 1.3; color: var(--muted); font-weight: 500; }
.sc-pbtn em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #14532d; background: #dcfce7; border-radius: 999px; padding: 0 6px; margin-top: 2px; }
.sc-pbtn[aria-pressed="true"] { border-color: #fca5a5; background: #fef2f2; }
.sc-pbtn[aria-pressed="true"] b { text-decoration: line-through; color: var(--muted); }
.sc-pbtn[aria-pressed="true"] em { color: #991b1b; background: #fee2e2; }
.sc-jr th { font-weight: 700; color: var(--ink2); font-size: 12.5px; }
.sc-jr th small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.sc-c { text-align: center; font: 600 12.5px var(--latin); }
.sc-c span { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 6px; }
.sc-l0 span { color: #94a3b8; background: #f8fafc; }
.sc-l1 span { color: #92400e; background: #fef3c7; }
.sc-l2 span { color: #14532d; background: #bbf7d0; }
.sc-l3 span { color: #fff; background: #15803d; }
.sc-cout span { color: #94a3b8; background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 4px, #e2e8f0 4px, #e2e8f0 8px); }
.sc-n { text-align: center; font: 600 13px var(--latin); }
.sc-st { text-align: center; white-space: nowrap; }
.sc-pill { font-size: 12px; font-weight: 700; white-space: nowrap; }
.sc-pill::before { margin-right: 3px; }
.sc-p-ng { color: #b91c1c; } .sc-p-ng::before { content: "✕"; }
.sc-p-warn { color: #b45309; } .sc-p-warn::before { content: "△"; }
.sc-p-thin { color: #075985; } .sc-p-thin::before { content: "◇"; }
.sc-p-ok { color: #15803d; } .sc-p-ok::before { content: "○"; }
.sc-map tr.sc-focus th, .sc-map tr.sc-focus td { background: #eff6ff; }
.sc-loadr th { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sc-load { text-align: center; font: 600 12px var(--latin); color: var(--ink2); }
.sc-load.sc-heavy { color: #92400e; background: #fffbeb; }
.sc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--ink2); }
.sc-lg { display: inline-flex; align-items: center; gap: 5px; }
.sc-lg i { font: 600 11px var(--latin); font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 18px; border-radius: 5px; }
.sc-lg i.sc-l0 { color: #94a3b8; background: #f8fafc; border: 1px solid var(--line); }
.sc-lg i.sc-l1 { color: #92400e; background: #fef3c7; }
.sc-lg i.sc-l2 { color: #14532d; background: #bbf7d0; }
.sc-lg i.sc-l3 { color: #fff; background: #15803d; }
.sc-lg i.sc-lout { color: #94a3b8; background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 4px, #e2e8f0 4px, #e2e8f0 8px); }
.sc-lnote { color: var(--muted); }

/* 地図の見立て */
.sc-verdict { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; border-radius: 10px; padding: 9px 12px; border: 1px solid var(--line); }
.sc-verdict b { font-size: 17px; }
.sc-verdict span { font-size: 12.5px; color: var(--ink2); }
.sc-verdict.sc-ok { background: #f0fdf4; border-color: #bbf7d0; } .sc-verdict.sc-ok b { color: #14532d; }
.sc-verdict.sc-warn { background: #fffbeb; border-color: #fde68a; } .sc-verdict.sc-warn b { color: #92400e; }
.sc-verdict.sc-ng { background: #fef2f2; border-color: #fecaca; } .sc-verdict.sc-ng b { color: #991b1b; }
.sc-out2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px 18px; align-items: start; }
.sc-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sc-msgs li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; font-size: 12.5px; color: var(--ink2); }
.sc-msgs em { font-style: normal; font-weight: 700; color: var(--ink); margin-right: 6px; }
.sc-m-ng b { color: #b91c1c; }
.sc-m-warn b { color: #b45309; }
.sc-who { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.sc-solo { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.sc-solo li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; font-size: 12.5px; color: var(--ink2); background: #fef2f2; border-radius: 8px; padding: 5px 9px; }
.sc-solo b { color: #991b1b; }

/* 計画の表・役の代わり */
.sc-ptbl { min-width: 1120px; }
.sc-ptbl tbody th { width: 15em; font-weight: 700; color: var(--ink2); }
.sc-ptbl td:nth-child(2) { width: 9.5em; }
.sc-ptbl td:nth-child(5) { min-width: 22em; }
.sc-pj { display: block; margin-bottom: 6px; }
.sc-try { white-space: normal; text-align: left; line-height: 1.4; font-size: 12px; padding: 4px 10px; }
.sc-inc { color: var(--muted); }
.sc-arrow { margin: 0 4px; color: var(--muted); }
.sc-ptbl td b { color: #14532d; }
.sc-rev { display: block; margin-top: 3px; font: 600 11.5px var(--latin); color: var(--muted); }
.sc-dtbl { min-width: 860px; }
.sc-dtbl tbody th { font-weight: 700; color: var(--ink2); }

/* 育て方 */
.sc-mt2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: start; }
.sc-dl { margin: 0; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 5px 10px; font-size: 12.5px; }
.sc-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.sc-dl dd { margin: 0; color: var(--ink2); }
.sc-fact { margin: 0; font-size: 13px; color: var(--ink2); }

/* 残す形 */
.sc-tpl { padding: 12px 14px; min-width: 0; }
.sc-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.sc-tplh .sc-h4 { margin: 0; }
.sc-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; }
.sc-ltbl { min-width: 2300px; }
.sc-ltbl th { white-space: nowrap; }
.sc-ltbl td:first-child { min-width: 14em; }
.sc-ltbl td:last-child { min-width: 22em; }
.sc-ltbl2 { min-width: 1700px; }
.sc-ltbl2 td:nth-child(6) { min-width: 22em; }

.sc-pbtn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1100px) {
  .sc-out2, .sc-mt2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sc-clab { min-width: 0; width: 100%; }
  .sc-map .sc-jh { min-width: 10em; }
  .sc-map tbody th { font-size: 11.5px; }
  .sc-tbl th, .sc-tbl td { padding: 5px 6px; }
  .sc-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sc-dl dd { margin-bottom: 4px; }
}
