/* =====================================================================
   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);
}

/* 区切り線 */
.sg-hr {
  border: none;
  border-top: 1px solid var(--sg-border, #e5e7eb);
  margin: var(--sg-space-4) 0;
}

/* 割り付けタイプの選択カード */
.es-types {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sg-space-2);
}
.es-types label {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  cursor: pointer;
  user-select: none;
}
.es-types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.es-types label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.08);
}
.es-types__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.es-types label:has(input:checked) .es-types__title {
  color: var(--sg-primary, #3b5bdb);
}
.es-types__desc {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--sg-muted, #777);
}
