/* EQAO模試の成績表の中身(総合判定のカード・科目のカード・項目別評価・見出し・レーダー・講評)の見た目(2026-09-25)。
   在籍生の成績表(moshi-result.html)・塾外生の成績表(moshi-guest-result.html)・模試トップの成績表のサンプル(moshi.html)で共通。
   描くのは js/moshi-result-view.js(総合判定のカードは各ページ)。ページごとの違いは、各ページの <style> で上書きする */
.card {
  background: white; border-radius: 16px; padding: 24px; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.card h2 { font-size: 17px; font-weight: 700; color: #333; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #e8eaf6; color: #1a237e;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* 総合 */
.overview { background: linear-gradient(135deg, #1a237e 0%, #283593 100%); color: #fff; }
.ov-meta { font-size: 13px; opacity: .85; line-height: 1.9; }
.ov-main { display: flex; align-items: flex-end; gap: 24px; margin: 18px 0 4px; flex-wrap: wrap; }
.ov-score { font-size: 46px; font-weight: 700; line-height: 1; }
.ov-score small { font-size: 18px; font-weight: 400; opacity: .8; margin-left: 4px; }
.ov-judge {
  background: rgba(255,255,255,.16); border-radius: 12px; padding: 10px 20px; text-align: center;
}
.ov-judge-label { font-size: 11px; opacity: .85; }
.ov-judge-value { font-size: 26px; font-weight: 700; line-height: 1.3; }
.ov-judge-text { font-size: 12px; opacity: .9; }
.ov-note { font-size: 12px; opacity: .8; margin-top: 14px; line-height: 1.8; }

/* 科目 */
.subject-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.subject-total { font-size: 15px; font-weight: 700; color: #1a237e; }
.radar-wrap { display: flex; justify-content: center; margin: 6px 0 20px; overflow: hidden; }
/* 見出しごとのレーダー(面接のノンバーバル / バーバル。radarGroups)。広い画面は横に2つ、640px 以下は縦に並べる */
.radar-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 20px; }
.radar-cell { margin: 0; min-width: 0; }
.radar-cell .radar-wrap { margin: 4px 0 0; }
.radar-title { font-size: 12px; font-weight: 700; color: #1a237e; text-align: center; }
@media (max-width: 640px) { .radar-split { grid-template-columns: 1fr; gap: 16px; } }
/* 点数のバー: バー同士・項目名とバー・見出しの前後にゆとりを持たせる(2026-09-28。狭くて見づらいとの指摘)。サンプルと成績表の2ページで共通 */
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 1fr 44px; gap: 12px; align-items: center; }
.bar-name { font-size: 13px; color: #444; }
/* 項目の見出し(面接のノンバーバル / バーバル)。最初の見出しの上には線を引かない */
.bar-group { font-size: 12px; font-weight: 700; color: #1a237e; padding-top: 16px; border-top: 1px solid #eef0f6; }
.bar-group:first-child { padding-top: 0; border-top: none; }
.bar-track { height: 8px; background: #eef0f6; border-radius: 4px; overflow: hidden; margin-top: 7px; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-score { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sc-excellent { color: #2e7d32; } .sc-good { color: #1565c0; }
/* 「あと一歩」は、点数の文字だけ濃いオレンジにする(白地で 4.5:1)。棒・点・凡例の丸は #ef6c00 のまま */
.sc-average { color: #bf360c; } .sc-low { color: #c62828; }
.fb {
  margin-top: 18px; padding: 16px 18px; background: #f7f8fc;
  border-radius: 12px; font-size: 14px; line-height: 2; color: #444;
}
.fb-label { font-size: 11px; font-weight: 700; color: #767676; letter-spacing: .08em; margin-bottom: 6px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: #767676; margin-top: 18px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.caution { font-size: 12.5px; color: #767676; line-height: 2; }
