/* =====================================================================
   style.css — 大掃除の段取り表 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* hidden 属性を共有CSSの display 指定に負けさせない */
[hidden] {
  display: none !important;
}

.sg-result__value,
.op-day__time,
.op-item__min,
.op-table .num {
  font-variant-numeric: tabular-nums;
}

.sg-field .sg-help {
  margin-top: var(--sg-space-1);
}

.sg-hr {
  border: none;
  border-top: 1px solid var(--sg-border, #e5e7eb);
  margin: var(--sg-space-4) 0;
}

.op-error {
  margin: 12px 0 0;
  color: var(--sg-danger, #c92a2a);
  font-size: 0.9rem;
}

/* 掃除する場所のチェック */
.op-places-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: var(--sg-space-2);
}
.op-places-btns {
  display: flex;
  gap: 12px;
}
.op-link-btn {
  padding: 4px 0;
  border: none;
  background: none;
  color: var(--sg-primary, #3b5bdb);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.op-places {
  display: grid;
  gap: 12px;
}
.op-group {
  margin: 0;
  padding: 0;
  border: none;
}
.op-group__title {
  padding: 0;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sg-muted, #5a6573);
}
.op-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin: 0 14px 0 0;
  font-size: 0.92rem;
  cursor: pointer;
}
.op-check input,
.op-item__label input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--sg-primary, #3b5bdb);
}

/* 結果のボタンと進み具合 */
.op-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.op-progress {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

/* 日ごとの段取り */
.op-days {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.op-day {
  padding: 10px 0;
  border-top: 1px solid var(--sg-border, #e5e7eb);
  break-inside: avoid;
}
.op-day.is-empty .op-day__date {
  color: var(--sg-muted, #5a6573);
}
.op-day__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.op-day__date {
  font-weight: 700;
}
.op-day__kind {
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sg-surface-2, rgba(0, 0, 0, 0.05));
  color: var(--sg-muted, #5a6573);
}
.op-day__kind.is-off {
  background: var(--sg-primary-soft, rgba(59, 91, 219, 0.12));
  color: var(--sg-primary, #3b5bdb);
}
.op-day__time {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--sg-muted, #5a6573);
}
.op-items {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.op-item {
  padding: 4px 0;
}
.op-item__label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  cursor: pointer;
}
.op-item__name {
  flex: 1 1 auto;
  min-width: 0;
}
.op-item__min {
  flex: none;
  font-size: 0.85rem;
  color: var(--sg-muted, #5a6573);
}
.op-item.is-done .op-item__name {
  text-decoration: line-through;
  color: var(--sg-muted, #5a6573);
}
.op-item__tip {
  margin: 0 0 4px 26px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--sg-muted, #5a6573);
}
.op-unplaced {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--sg-radius, 8px);
  background: var(--sg-warm-soft, rgba(201, 42, 42, 0.06));
}
.op-unplaced__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.9rem;
}
.op-unplaced__list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* 早見表 */
.op-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 320px;
}
.op-table th,
.op-table td {
  padding: 8px;
  text-align: left;
}
.op-table th {
  border-bottom: 2px solid var(--sg-border, #ddd);
}
.op-table td {
  border-bottom: 1px solid var(--sg-border, #eee);
}
.op-table .num {
  text-align: right;
  white-space: nowrap;
}

/* 印刷：入力欄や周りを隠して段取り表だけ */
@media print {
  .op-noprint,
  .sg-card[aria-labelledby^="sg-"],
  .sg-note,
  .sg-sidebar,
  .adsbygoogle,
  header,
  footer {
    display: none !important;
  }
  .op-item__tip {
    display: none;
  }
}
