/* 評定平均・概評計算くん */
.hy-scope { flex: 1 1 220px; }
.hy-note { margin: 0 0 12px; }
.hy-h { font-size: 15px; font-weight: 900; }
.hy-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .hy-years { grid-template-columns: 1fr; } }
.hy-yearcol { display: grid; gap: 8px; align-content: start; }
.hy-sublist { display: grid; gap: 4px; }
.hy-subrow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 52px auto; gap: 4px; align-items: center; }
.hy-subrow .input { min-height: 34px; padding: 3px 6px; font-size: 13.5px; }
.hy-u { text-align: center; }
.hy-gridwrap { max-height: 72vh; }
.hy-grid { width: auto; font-size: 13px; }
.hy-grid th, .hy-grid td { padding: 2px; text-align: center; }
.hy-grid .hy-stick { position: sticky; left: 0; z-index: 2; background: var(--bg2); text-align: left; padding: 2px 8px; white-space: nowrap; min-width: 120px; }
.hy-grid thead .hy-stick { z-index: 3; }
.hy-grid thead tr:nth-child(2) th { top: 31px; }
.hy-no { display: inline-block; min-width: 22px; color: var(--ink3); font-size: 11.5px; font-weight: 700; }
.hy-k { font-size: 12px; white-space: nowrap; }
.hy-k.k0 { background: #fde2e1; } .hy-k.k1 { background: #fcebd5; } .hy-k.k2 { background: #fdf3c7; } .hy-k.k3 { background: #e2eefc; } .hy-k.k4 { background: #ddf3e8; } .hy-k.k5 { background: #ede4fb; }
.hy-k.k6 { background: #fbe3f1; } .hy-k.k7 { background: #dcf0fa; } .hy-k.k8 { background: #f1ebdd; } .hy-k.k9 { background: #e6e9ef; } .hy-k.k10 { background: #e0f2f0; }
:root[data-theme='dark'] .hy-k, .hy-k { color: #1d2433; }
.hy-sn { font-size: 11px; font-weight: 700; line-height: 1.15; white-space: normal !important; min-width: 40px; max-width: 54px; vertical-align: bottom !important; }
.hy-sn span { display: block; writing-mode: vertical-rl; margin: 0 auto; max-height: 96px; overflow: hidden; }
.hy-sn small { display: block; font-size: 10px; color: var(--ink3); }
.hy-sn.off { opacity: .45; }
.hy-c { padding: 1px !important; }
.hy-in { width: 38px; height: 32px; border: 1.5px solid var(--line-soft); border-radius: 7px; text-align: center; font: inherit; font-weight: 800; font-size: 15px; background: var(--card); color: var(--ink); }
.hy-in:focus { outline: none; border-color: var(--chu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chu) 30%, transparent); }
.hy-in.v1 { background: color-mix(in srgb, var(--bad) 28%, var(--card)); }
.hy-in.v2 { background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.hy-in.v4 { background: color-mix(in srgb, var(--ok) 10%, var(--card)); }
.hy-in.v5 { background: color-mix(in srgb, var(--ok) 24%, var(--card)); }
.hy-avg { white-space: nowrap; padding: 2px 6px !important; }
.hy-avg b { font-size: 14px; margin-right: 4px; }
.hy-band { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-weight: 900; font-size: 13px; border: 1.5px solid var(--line); color: #1d2433; }
.hy-band.bA { background: #ffd23f; } .hy-band.bB { background: #9fd8ff; } .hy-band.bC { background: #bdf0d4; } .hy-band.bD { background: #f2e3c6; } .hy-band.bE { background: #ffc9c2; }
.hy-onehead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.hy-onesum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.hy-onesum > div { border: 2px solid var(--line); border-radius: 12px; padding: 4px 10px; background: var(--card); display: grid; line-height: 1.25; }
.hy-onesum small { font-size: 11.5px; color: var(--ink2); }
.hy-onesum b { font-size: 24px; font-family: var(--head); }
.hy-bandbig.bA { color: #b58500; } .hy-bandbig.bE { color: var(--bad); }
.hy-onelist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .hy-onelist { grid-template-columns: 1fr; } }
.hy-onelist .card { display: grid; gap: 6px; }
.hy-onerow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.hy-onerow > span { font-weight: 700; font-size: 14px; line-height: 1.25; min-width: 0; }
.hy-onerow small { display: block; font-size: 11px; color: var(--ink3); font-weight: 400; }
.hy-onerow .seg button { padding: 4px 0; width: 36px; min-height: 36px; font-size: 15px; }
@media (max-width: 400px) { .hy-onerow { grid-template-columns: 1fr; } }
.hy-resgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 900px) { .hy-resgrid { grid-template-columns: 1fr; } }
.hy-rule { border-top: 1.5px dashed var(--line-soft); padding-top: 8px; display: grid; gap: 4px; }
.hy-crit { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 76px auto auto; gap: 5px; align-items: center; }
.hy-crit .input { min-height: 36px; padding: 3px 6px; font-size: 14px; }
@media (max-width: 480px) { .hy-crit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hy-dist { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; margin-top: 12px; align-items: stretch; }
@media (max-width: 900px) { .hy-dist { grid-template-columns: 1fr; } }
.hy-distbars { border: 2px solid var(--line); border-radius: 14px; background: var(--card); padding: 8px 12px; display: grid; gap: 4px; }
.hy-db { display: grid; grid-template-columns: 26px minmax(0, 1fr) 46px 70px; gap: 8px; align-items: center; font-size: 13px; }
.hy-db .bar { height: 14px; background: var(--bg2); border-radius: 5px; overflow: hidden; }
.hy-db .bar i { display: block; height: 100%; }
.hy-db .bar i.bA { background: #ffd23f; } .hy-db .bar i.bB { background: #5bb8f5; } .hy-db .bar i.bC { background: #4fcf8b; } .hy-db .bar i.bD { background: #d9b26a; } .hy-db .bar i.bE { background: #ff8a7a; }
.hy-db small { color: var(--ink3); font-size: 11.5px; }
.hy-official { border: 2px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--yellow) 18%, var(--card)); padding: 8px 12px; display: grid; gap: 2px; align-content: center; }
.hy-official.ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); }
.hy-official small { font-size: 11.5px; color: var(--ink2); }
.hy-official b { font-size: 16px; }
.hy-reswrap { max-height: 75vh; }
.hy-res th, .hy-res td { padding: 4px 6px; white-space: nowrap; font-size: 13.5px; }
.hy-res .hy-stick { position: sticky; left: 0; z-index: 2; background: var(--bg2); }
.hy-res thead .hy-stick { z-index: 3; }
.hy-res td.num { text-align: center; font-variant-numeric: tabular-nums; }
.hy-res td.low { color: var(--bad); font-weight: 700; }
.hy-res td.high { color: var(--ok); font-weight: 700; }
.hy-res td.tot { font-weight: 900; font-size: 15px; }
.hy-abs { width: 64px; min-height: 30px !important; padding: 2px 4px !important; text-align: center; }
.hy-j { white-space: normal !important; min-width: 150px; }
.hy-ok { color: var(--ok); font-weight: 900; }
.hy-ng { color: var(--bad); font-weight: 900; }
.hy-ng small { display: block; font-weight: 500; color: var(--ink2); font-size: 11.5px; line-height: 1.3; }
select.hy-pick { width: auto; max-width: 100%; }
.hy-sheetwrap { border: 2px solid var(--line); border-radius: 16px; background: var(--card); padding: 16px; overflow-x: auto; }
.hy-sheet { min-width: 0; }
.hy-sh-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.hy-sh-head h2 { margin: 0; font-size: 24px; }
.hy-sh-big { display: flex; gap: 8px; }
.hy-sh-big > div { border: 2px solid var(--line); border-radius: 12px; padding: 2px 12px; text-align: center; line-height: 1.2; }
.hy-sh-big small { display: block; font-size: 11px; color: var(--ink2); }
.hy-sh-big b { font-size: 30px; font-family: var(--head); }
.hy-sh-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.hy-sh-t th, .hy-sh-t td { border: 1px solid var(--line-soft); padding: 4px 6px; text-align: center; }
.hy-sh-t thead th { background: var(--bg2); }
.hy-sh-t tbody th { background: var(--bg2); writing-mode: horizontal-tb; }
.hy-sh-t td.l { text-align: left; }
.hy-sh-t td.off { opacity: .4; }
.hy-sh-t .kav { font-weight: 900; }
.hy-sh-t .na { color: var(--ink3); }
.hy-sh-calc { margin-top: 10px; font-size: 14.5px; }
.hy-sh-crit { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.hy-sh-crit span { border: 1.5px solid var(--line); border-radius: 99px; padding: 1px 10px; font-size: 13px; font-weight: 700; }
.hy-sh-crit .ok { background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.hy-sh-crit .ng { background: color-mix(in srgb, var(--bad) 12%, var(--card)); }
.hy-sh-foot { margin-top: 8px; font-size: 12px; color: var(--ink2); }
@media (max-width: 480px) { .hy-sh-t { font-size: 12.5px; } .hy-sh-t th, .hy-sh-t td { padding: 3px; } .hy-sh-big b { font-size: 24px; } }
