/* =====================================================================
   style.css — 教育費シミュレーター ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 金額はタブ幅数字で桁を揃える */
.sg-result__value,
.sg-result-row__value,
.ec-table td {
  font-variant-numeric: tabular-nums;
}

/* 各段階の入力行 */
.ec-stage {
  padding: var(--sg-space-3, 12px) 0;
  border-bottom: 1px solid var(--sg-border, #e2e5ec);
}
.ec-stage:first-child {
  padding-top: 0;
}
.ec-stage__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--sg-space-2, 8px);
}
.ec-stage__name {
  font-weight: 600;
}
.ec-stage__years {
  font-size: 0.85rem;
  color: var(--sg-muted, #777);
}
.ec-stage__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ec-stage__controls .ec-track,
.ec-stage__controls .sg-select {
  flex: 0 0 auto;
  min-width: 8.5em;
}

/* 年額入力（数値 + 単位） */
.ec-annual {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ec-annual__input {
  width: 6.5em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ec-annual__unit {
  font-size: 0.9rem;
  color: var(--sg-muted, #777);
  white-space: nowrap;
}

/* 大学の詳細入力欄 */
.ec-univ-detail {
  margin-top: var(--sg-space-2, 8px);
  display: grid;
  gap: 10px;
  padding: var(--sg-space-3, 12px);
  border-radius: 10px;
  background: var(--sg-surface-2, #f4f6fb);
}
.ec-univ-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ec-univ-field .sg-help {
  margin: 0;
}

/* 進路パターン早見表 */
.ec-guide .sg-help {
  margin-top: var(--sg-space-2, 8px);
}
.ec-table-wrap {
  margin-top: var(--sg-space-3, 12px);
  overflow-x: auto;
}
.ec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.ec-table th,
.ec-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--sg-border, #e2e5ec);
}
.ec-table thead th {
  font-weight: 600;
  color: var(--sg-muted, #777);
  border-bottom-width: 2px;
  text-align: left;
}
.ec-table thead th:last-child,
.ec-table td {
  text-align: right;
  white-space: nowrap;
}
.ec-table tbody th {
  text-align: left;
  font-weight: 500;
}
