/* =====================================================================
   style.css — 資産の取り崩し・資産寿命 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 結果値・内訳はタブ幅数字で桁を揃える */
.sg-result__value,
.sg-result-row__value {
  font-variant-numeric: tabular-nums;
}

/* 補助ラベルを入力直下に詰める */
.sg-field .sg-help {
  margin-top: var(--sg-space-1);
}

/* モード切替タブ（ラジオをボタン風に） */
.dd-modes {
  display: flex;
  gap: 8px;
  margin-bottom: var(--sg-space-4);
}
.dd-modes label {
  flex: 1 1 0;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.dd-modes input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dd-modes label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.08);
  font-weight: 600;
  color: var(--sg-primary, #3b5bdb);
}

/* 利回り別 早見表 */
.dd-table-card {
  margin-top: var(--sg-space-4);
}
.dd-table-title {
  font-size: 1.05rem;
  margin: 0 0 var(--sg-space-2);
}
.dd-table-wrap {
  overflow-x: auto;
}
.dd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.dd-table th,
.dd-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
  text-align: left;
  white-space: nowrap;
}
.dd-table thead th {
  font-size: 0.85rem;
  color: var(--sg-muted, #777);
  font-weight: 600;
}
.dd-table tbody th {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dd-table tbody td {
  font-variant-numeric: tabular-nums;
}
