/* =====================================================================
   style.css — 誕生日の一致確率（バースデーパラドックス） ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 日数プリセットボタン */
.sg-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sg-space-2, 8px);
}
.sg-preset {
  cursor: pointer;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--sg-border, #e5e7eb);
  background: var(--sg-surface, #fff);
  color: var(--sg-fg, #222);
}
.sg-preset:hover {
  border-color: var(--sg-accent, #3b5bdb);
  color: var(--sg-accent, #3b5bdb);
}

/* 結果の補助行 */
.sg-subresults {
  display: flex;
  flex-direction: column;
  margin-top: var(--sg-space-3, 12px);
  border-top: 1px solid var(--sg-border, #e5e7eb);
}
.sg-subrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sg-space-3, 12px);
  padding: 7px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-subrow__key {
  color: var(--sg-muted, #555);
  font-size: 0.92rem;
}
.sg-subrow__val {
  font-weight: 600;
  text-align: right;
}

/* しきい値一覧 */
.sg-threshold {
  display: flex;
  flex-direction: column;
}
.sg-threshold-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-threshold-row__key {
  color: var(--sg-muted, #555);
}
.sg-threshold-row__val {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* 早見表 */
.sg-chart {
  display: flex;
  flex-direction: column;
}
.sg-chart-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-chart-row--head {
  font-size: 0.82rem;
  color: var(--sg-muted, #777);
  font-weight: 600;
}
.sg-chart-row.is-current {
  background: var(--sg-accent-soft, #eef2ff);
  border-radius: 6px;
}
.sg-chart-row__key {
  flex: 0 0 auto;
  font-weight: 600;
}
.sg-chart-row__val {
  flex: 0 0 auto;
  color: var(--sg-muted, #555);
  text-align: right;
}

/* 解説文 */
.sg-prose p {
  margin: 0 0 var(--sg-space-3, 12px);
  line-height: 1.8;
}
.sg-prose p:last-child {
  margin-bottom: 0;
}
