/* =====================================================================
   style.css — FX損益・pips計算 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

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

/* 損失（損益マイナス）のときは値を控えめな警告色にする */
.sg-result.is-loss .sg-result__value {
  color: var(--sg-danger);
}

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

/* 通貨ペア／売買方向のセグメント選択 */
.fx-seg {
  display: flex;
  gap: 8px;
  margin-top: var(--sg-space-1);
}
.fx-seg 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;
}
.fx-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fx-seg label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: var(--sg-primary-soft, rgba(59, 91, 219, 0.08));
  font-weight: 600;
  color: var(--sg-primary, #3b5bdb);
}

/* 早見表の行区切り */
.fx-table th,
.fx-table td {
  border-bottom: 1px solid var(--sg-border, #e2e6ee);
}
