/* 内申点シミュレーター */
#app { --ns-1: #ffd9c7; --ns-2: #ffe9b8; --ns-3: #eef0f4; --ns-4: #d6ecff; --ns-5: #c9f0d8; }
.naishin-warn { margin-bottom: 10px; }
.naishin-set { padding: 10px 14px; margin-bottom: 12px; }
.naishin-set summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.naishin-sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .naishin-sgrid { grid-template-columns: 1fr; } }
.naishin-ratio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.naishin-mult { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.naishin-mult label { display: grid; gap: 2px; font-size: 12.5px; font-weight: 800; color: var(--ink2); }
.naishin-mult .input, .naishin-ratio .input { width: 100%; }
.naishin-who { align-items: flex-end; gap: 8px; margin-bottom: 4px; }
.naishin-who .field { min-width: 220px; }
.naishin-one { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .naishin-one { grid-template-columns: 1fr; } }
.naishin-grid th, .naishin-grid td { padding: 3px; text-align: center; }
.naishin-grid thead th { font-size: 12.5px; white-space: nowrap; }
.naishin-grid thead th small { display: block; color: var(--purple); font-weight: 900; font-size: 11px; }
.naishin-grid tbody th { white-space: nowrap; font-size: 13px; }
.naishin-grid tbody th small { color: var(--ink2); font-weight: 700; font-size: 11px; }
.naishin-grid tr.off td, .naishin-grid tr.off th { opacity: .4; }
.naishin-g { width: 100%; min-width: 34px; height: 44px; border: 2px solid var(--line); border-radius: 11px; font-weight: 900; font-size: 19px; font-family: var(--head); cursor: pointer; background: var(--card); color: var(--ink); touch-action: manipulation; transition: transform .08s; }
.naishin-g:active { transform: scale(.92); }
.naishin-g:disabled { cursor: default; }
.naishin-g.v0 { border-style: dashed; color: var(--ink3); font-size: 14px; }
.naishin-g.v1, .naishin-in.v1 { background: var(--ns-1); } .naishin-g.v2, .naishin-in.v2 { background: var(--ns-2); } .naishin-g.v3, .naishin-in.v3 { background: var(--ns-3); }
.naishin-g.v4, .naishin-in.v4 { background: var(--ns-4); } .naishin-g.v5, .naishin-in.v5 { background: var(--ns-5); }
@media (prefers-color-scheme: dark) { #app { --ns-1: #5a3426; --ns-2: #574a22; --ns-3: #33363d; --ns-4: #20405e; --ns-5: #1f4a33; } }
.naishin-res { display: grid; gap: 12px; }
.naishin-big { border: 2.5px solid var(--line); border-radius: 18px; padding: 12px 16px; background: var(--card); box-shadow: var(--sh-sm); display: grid; gap: 4px; }
.naishin-big > small { font-weight: 900; color: var(--ink2); }
.naishin-big b { font-size: 54px; line-height: 1; font-family: var(--head); }
.naishin-big > span { font-size: 18px; font-weight: 800; color: var(--ink2); }
.naishin-big em { font-style: normal; font-size: 12.5px; color: #b45309; font-weight: 800; }
.naishin-bar { height: 12px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.naishin-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); transition: width .25s; }
.naishin-plan { padding: 12px 14px; }
.naishin-plan .row { align-items: center; gap: 6px; }
.naishin-tgt { width: 96px; font-size: 18px; font-weight: 900; }
.naishin-ck { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: 13.5px; }
.naishin-ck input { width: 17px; height: 17px; }
.naishin-steps { margin: 0; padding-left: 22px; display: grid; gap: 3px; }
.naishin-steps li::marker { font-weight: 900; color: var(--purple); }
.naishin-cwrap { max-height: 72vh; }
.naishin-ctable th, .naishin-ctable td { padding: 2px; text-align: center; }
.naishin-ctable th.sub { font-size: 11px; min-width: 30px; }
.naishin-sticky { position: sticky; left: 0; z-index: 2; background: var(--card) !important; white-space: nowrap; text-align: left !important; padding: 2px 8px !important; min-width: 110px; box-shadow: 1px 0 0 var(--line-soft); }
thead .naishin-sticky { z-index: 3; background: var(--bg2) !important; }
.naishin-sticky .no { display: inline-block; min-width: 22px; color: var(--ink3); font-size: 12px; font-weight: 800; }
.naishin-in { width: 30px; height: 32px; text-align: center; border: 1.5px solid var(--line-soft); border-radius: 7px; font-weight: 900; font-size: 15px; color: var(--ink); background: var(--card); padding: 0; }
.naishin-in.v0 { background: var(--card); }
.naishin-out { min-width: 64px; font-size: 16px; }
.naishin-out small { color: #b45309; font-size: 11px; }
@media (max-width: 480px) {
  .naishin-grid th, .naishin-grid td { padding: 1px; }
  .naishin-g { min-width: 28px; height: 40px; font-size: 16px; border-radius: 9px; }
  .naishin-grid thead th { font-size: 11px; }
  .naishin-grid tbody th { font-size: 11.5px; }
  .naishin-big b { font-size: 46px; }
}
