/* =====================================================================
   style.css — 睡眠負債チェック ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 数値入力＋単位の横並び */
.sg-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-input--num {
  width: 6.5em;
  text-align: right;
}
.sg-unit {
  color: var(--sg-muted, #777);
  font-size: 0.95rem;
}

/* モード切替 */
.sg-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* テキストボタン（まとめて埋める） */
.sg-textbtn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  color: var(--sg-accent, #3b5bdb);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
}

/* 7日分の入力 */
.sg-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 16px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-day {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.sg-day__label {
  flex: 0 0 3.5em;
  font-size: 0.9rem;
  color: var(--sg-muted, #555);
}
.sg-day__input {
  width: 4.5em;
  text-align: right;
}
.sg-day__unit {
  color: var(--sg-muted, #777);
  font-size: 0.85rem;
}

/* サブ統計 */
.sg-substats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: var(--sg-space-3, 12px);
  padding-top: var(--sg-space-3, 12px);
  border-top: 1px solid var(--sg-border, #e5e7eb);
}
.sg-substat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sg-substat__label {
  font-size: 0.78rem;
  color: var(--sg-muted, #777);
}
.sg-substat__value {
  font-size: 1.1rem;
  font-weight: 600;
}

/* 評価コメント */
.sg-comment {
  margin-top: var(--sg-space-3, 12px);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sg-subtle-bg, #f4f6fb);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* 日別の棒グラフ */
.sg-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sg-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sg-bar-row__label {
  flex: 0 0 3.6em;
  font-size: 0.85rem;
  color: var(--sg-muted, #555);
}
.sg-bar-track {
  position: relative;
  flex: 1 1 auto;
  height: 18px;
  background: var(--sg-track, #eceef4);
  border-radius: 5px;
  overflow: hidden;
}
.sg-bar-fill {
  height: 100%;
  border-radius: 5px 0 0 5px;
  transition: width 0.15s ease;
}
.sg-bar-ideal {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 0;
  border-left: 2px dashed var(--sg-fg, #333);
  opacity: 0.65;
  overflow: visible;
}
.sg-bar-row__val {
  flex: 0 0 4.2em;
  text-align: right;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
