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

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

.sg-result__value,
.hc-item__month,
.hc-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;
}

.hc-sub {
  margin-bottom: var(--sg-space-2);
}

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

/* 安い順のリスト */
.hc-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  text-align: left;
}
.hc-item {
  padding: 10px 0;
  border-top: 1px solid var(--sg-border, #e5e7eb);
}
.hc-item__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hc-item__rank {
  flex: none;
  width: 1.6em;
  height: 1.6em;
  line-height: 1.6em;
  border-radius: 50%;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--sg-border, #e5e7eb);
  color: var(--sg-fg, #1a2230);
}
.hc-item.is-best .hc-item__rank {
  background: var(--sg-primary, #3b5bdb);
  color: var(--sg-primary-fg, #fff);
}
.hc-item__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
}
.hc-item.is-best .hc-item__name {
  font-weight: 700;
}
.hc-item__month {
  flex: none;
  font-weight: 700;
}
.hc-bar {
  height: 8px;
  margin: 6px 0 4px calc(1.6em + 8px);
  border-radius: 4px;
  background: var(--sg-surface-2, rgba(0, 0, 0, 0.05));
  overflow: hidden;
}
.hc-bar__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--sg-muted, #8a94a6);
}
.hc-item.is-best .hc-bar__fill {
  background: var(--sg-primary, #3b5bdb);
}
.hc-item__meta {
  margin: 0 0 0 calc(1.6em + 8px);
  font-size: 0.8rem;
  color: var(--sg-muted, #5a6573);
  line-height: 1.6;
}
.hc-break {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--sg-radius, 8px);
  background: var(--sg-surface-2, rgba(59, 91, 219, 0.06));
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: left;
}

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