/* 模試結果まとめ */
.mg-head { display: grid; gap: 10px; margin-bottom: 12px; }
.mg-head .note { margin: 0; }
.mg-bar { flex-wrap: wrap; gap: 8px; align-items: center; }
.mg-sel { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.mg-sel .input { width: auto; max-width: min(100%, 320px); }
.mg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; margin-bottom: 12px; }
.mg-kpi { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--card); box-shadow: var(--sh-sm); padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.mg-kpi small { flex-basis: 100%; color: var(--ink3); font-weight: 700; font-size: 12px; }
.mg-kpi b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mg-kpi span { font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }
.mg-kpi.wide { grid-column: span 2; }
@media (max-width: 560px) { .mg-kpi.wide { grid-column: auto; } }
.mg-up { color: var(--ok) !important; font-weight: 700; }
.mg-dn { color: var(--bad) !important; font-weight: 700; }
.mg-jbar { flex-basis: 100%; display: flex; gap: 2px; border-radius: 8px; overflow: hidden; min-height: 26px; }
.mg-jbar.sm { min-height: 14px; border-radius: 5px; }
.mg-j { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #1d2433; min-width: 0; white-space: nowrap; overflow: hidden; }
.j0 { --jc: #8fc1ff; } .j1 { --jc: #a6e3c4; } .j2 { --jc: #ffe08a; } .j3 { --jc: #ffc49b; } .j4 { --jc: #ffadad; } .j5 { --jc: #d5c2ff; } .j6 { --jc: #c9d1dc; } .j7 { --jc: #e3d4c4; }
.mg-j { background: var(--jc, #ddd); }
.mg-jb { display: inline-block; min-width: 1.9em; padding: 1px 7px; border-radius: 99px; background: var(--jc, var(--bg2)); color: #1d2433; font-weight: 800; font-size: 12.5px; text-align: center; }
.mg-t { font-size: 13.5px; }
.mg-t th, .mg-t td { white-space: nowrap; }
.mg-t td.c, .mg-t th.c { text-align: center; font-variant-numeric: tabular-nums; }
.mg-t th.main, .mg-t td.main { background: color-mix(in srgb, var(--blue) 5%, transparent); font-weight: 800; }
.mg-t td.b5 { background: color-mix(in srgb, var(--blue) 30%, transparent); }
.mg-t td.b4 { background: color-mix(in srgb, var(--blue) 19%, transparent); }
.mg-t td.b3 { background: color-mix(in srgb, var(--blue) 9%, transparent); }
.mg-t td.b1 { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.mg-t td.b0 { background: color-mix(in srgb, var(--bad) 19%, transparent); }
.mg-t tr.mg-none td { color: var(--ink3); }
.mg-t tfoot th { font-variant-numeric: tabular-nums; }
.mg-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-soft); text-underline-offset: 3px; }
.mg-link:hover { color: var(--blue); }
.mg-in { width: 4.2em; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 4px; text-align: center; font: inherit; color: inherit; font-variant-numeric: tabular-nums; }
.mg-in.wide { width: 13em; text-align: left; }
.mg-in:hover { border-color: var(--line-soft); }
.mg-in:focus { outline: none; border-color: var(--blue); background: var(--card); }
.mg-jsel { border: 1px solid var(--line-soft); border-radius: 99px; padding: 2px 6px; font: inherit; font-weight: 800; background: var(--jc, var(--card)); color: #1d2433; }
.mg-jsel.j-1 { background: var(--card); color: var(--ink); }
.mg-nav { gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.mg-chart { border: 1px solid var(--line-soft); border-radius: 16px; background: var(--card); box-shadow: var(--sh-sm); padding: 10px 8px 4px; margin-bottom: 12px; color: var(--ink); }
.mg-chart svg { width: 100%; height: auto; display: block; }
.mg-memo { margin-top: 12px; }
.mg-h3 { font-size: 16px; margin: 18px 0 8px; }
.mg-h3:first-child { margin-top: 0; }
.mg-moves { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mg-upc { border-color: color-mix(in srgb, var(--ok) 50%, var(--line-soft)); color: var(--ok); font-weight: 700; }
.mg-dnc { border-color: color-mix(in srgb, var(--bad) 45%, var(--line-soft)); color: var(--bad); font-weight: 700; }
.mg-foot { margin-top: 14px; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* 面談資料のプレビュー（紙に近い見た目） */
.mg-sheetpv { overflow-x: auto; }
.mg-sheetpv .mg-sh { background: #fff; color: #1d2433; border: 1px solid var(--line-soft); border-radius: 6px; box-shadow: var(--sh-sm); padding: 22px 24px; display: grid; gap: 12px; min-width: 560px; max-width: 820px; margin: 0 auto; font-size: 13px; }
.mg-sh-h { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #1f3a6b; padding-bottom: 6px; gap: 10px; }
.mg-sheetpv .mg-sh-h b { font-size: 19px; color: #1f3a6b; margin-right: 10px; }
.mg-sheetpv .mg-sh-h span { color: #555; font-size: 12.5px; }
.mg-sheetpv .mg-sh-h .nm { font-size: 19px; font-weight: 800; }
.mg-sheetpv .mg-sh-c svg { width: 100%; height: auto; display: block; }
.mg-sheetpv .mg-sh-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mg-sheetpv .mg-sh-t th, .mg-sheetpv .mg-sh-t td { border: 1px solid #aab; padding: 4px 5px; text-align: center; font-variant-numeric: tabular-nums; }
.mg-sheetpv .mg-sh-t th { background: #eef1f6; }
.mg-sheetpv .mg-sh-t td.l { text-align: left; }
.mg-sheetpv .mg-sh-t td small { display: block; color: #777; font-size: 11px; }
.mg-sheetpv .mg-sh-t .main { font-weight: 800; background: #f4f7fc; }
.mg-sheetpv .mg-sh-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-sheetpv .mg-sh-b > div { border: 1px solid #bbc; border-radius: 8px; padding: 8px 12px; min-height: 76px; }
.mg-sheetpv .mg-sh-b > div:first-child { grid-column: span 2; min-height: 0; }
.mg-sheetpv .mg-sh-b > div:last-child { grid-column: span 2; }
.mg-sheetpv .mg-sh-b p { margin: 4px 0 0; white-space: pre-wrap; }
.mg-sheetpv .mg-sh-f { font-size: 11.5px; color: #666; margin: 0; }
