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

/* 結果値はタブ幅数字で桁を揃える */
.sg-result__value {
  font-variant-numeric: tabular-nums;
}

/* 簡易カレンダー */
.dow-calendar {
  margin-top: var(--sg-space-4, 16px);
}
.dow-calendar__caption {
  text-align: center;
  font-weight: 600;
  margin-bottom: var(--sg-space-2, 8px);
}
.dow-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.dow-grid__head {
  font-size: 0.8rem;
  color: var(--sg-muted, #777);
  padding: 4px 0;
}
.dow-grid__cell {
  padding: 6px 0;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.dow-grid__cell--empty {
  visibility: hidden;
}
.dow-grid__cell--sun {
  color: #d64545;
}
.dow-grid__cell--sat {
  color: #3b5bdb;
}
.dow-grid__cell--target {
  background: var(--sg-primary, #3b5bdb);
  color: #fff;
  font-weight: 700;
}

/* 同じ日付・前後の年の曜日一覧 */
.dow-years {
  margin-top: var(--sg-space-4, 16px);
}
.dow-years__caption {
  text-align: center;
  font-weight: 600;
  margin-bottom: var(--sg-space-2, 8px);
}
.dow-years__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
}
.dow-years__cell {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 6px;
  border: 1px solid var(--sg-border, #e2e2e2);
  font-variant-numeric: tabular-nums;
}
.dow-years__cell--target {
  border-color: var(--sg-primary, #3b5bdb);
  background: color-mix(in srgb, var(--sg-primary, #3b5bdb) 12%, transparent);
  font-weight: 700;
}
.dow-years__year {
  font-size: 0.85rem;
  color: var(--sg-muted, #777);
}
.dow-years__cell--target .dow-years__year {
  color: inherit;
}
.dow-years__dow {
  font-weight: 600;
}
