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

/* 免責の注意書きボックス */
.sg-callout {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-left: 4px solid #e8590c;
  border-radius: 8px;
  background: var(--sg-surface-2, #fff8f3);
  line-height: 1.75;
  font-size: 0.92rem;
}

/* 対象日ボタン */
.sg-btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--sg-border, #e5e7eb);
  background: var(--sg-surface, #fff);
  color: inherit;
}
.sg-btn:hover { border-color: var(--sg-accent, #3b5bdb); }

/* 対象日の3要素 */
.sg-bio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--sg-space-3, 12px);
}
.sg-bio-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "head meta" "bar bar";
  gap: 4px 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-bio-row__head { grid-area: head; display: flex; align-items: center; gap: 8px; }
.sg-bio-row__dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.sg-bio-row__name { font-weight: 600; }
.sg-bio-row__meta { grid-area: meta; display: flex; align-items: center; gap: 10px; }
.sg-bio-row__pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.sg-bio-row__state {
  font-size: 0.8rem;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--sg-border, #e5e7eb);
}
.sg-bio-row__state.is-high { color: #2f9e44; border-color: #a3e0b6; }
.sg-bio-row__state.is-low { color: #1971c2; border-color: #a5cdf0; }
.sg-bio-row__state.is-critical { color: #e8590c; border-color: #f5c199; }

/* ミニバー（中央0基準） */
.sg-bio-row__bar {
  grid-area: bar;
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--sg-surface-2, #eef1f6);
}
.sg-bio-row__bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: var(--sg-border, #cbd2df);
}
.sg-bio-row__fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
}

/* グラフ */
.sg-bio-chart { width: 100%; overflow-x: auto; }
.sg-bio-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 480px;
}
.sg-bio-grid { stroke: var(--sg-border, #e5e7eb); stroke-width: 1; }
.sg-bio-axis0 { stroke: var(--sg-muted, #98a2b3); stroke-width: 1.5; }
.sg-bio-today { stroke: var(--sg-accent, #3b5bdb); stroke-width: 1; stroke-dasharray: 4 3; }
.sg-bio-tick { fill: var(--sg-muted, #777); font-size: 11px; }
.sg-bio-tick--c { text-anchor: middle; }

/* レジェンド */
.sg-bio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  font-size: 0.9rem;
}
.sg-bio-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.sg-bio-swatch { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
