/* =====================================================================
   style.css — ブロック塀・モルタルの材料計算 ツール固有の微調整のみ（bw-）。
   共通スタイルは /_shared/shirugear.css（結果表示は sg-result）。
   ===================================================================== */
.sg-result__value,
.sg-result-row__value {
  font-variant-numeric: tabular-nums;
}
.sg-result-row__value { text-align: right; overflow-wrap: anywhere; }
.sg-field .sg-help { margin-top: var(--sg-space-1); }

/* タブ（ブロック塀／モルタル）と入力方法の切替 */
.bw-tabs,
.bw-modes {
  display: flex;
  gap: 8px;
  margin-bottom: var(--sg-space-4);
}
.bw-tabs label,
.bw-modes label {
  flex: 1 1 0;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.bw-tabs label { font-size: 1rem; padding: 12px 8px; }
.bw-tabs input,
.bw-modes input { position: absolute; opacity: 0; pointer-events: none; }
.bw-tabs label:has(input:checked),
.bw-modes label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.08);
  font-weight: 600;
  color: var(--sg-primary, #3b5bdb);
}
.bw-tabs label:has(input:focus-visible),
.bw-modes label:has(input:focus-visible) { outline: 2px solid var(--sg-primary, #3b5bdb); outline-offset: 2px; }

/* 法令の目安チェック */
.bw-alert {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--sg-danger, #c92a2a);
  border-radius: var(--sg-radius, 8px);
  background: rgba(201, 42, 42, 0.06);
  color: var(--sg-danger, #c92a2a);
}
.bw-alert__head { margin: 0 0 4px; font-weight: 700; }
.bw-alert ul { margin: 0; padding-left: 1.2em; line-height: 1.7; }
.bw-ok { margin: 10px 0 0; font-weight: 600; color: var(--sg-success, #1b7a3e); line-height: 1.7; }

.bw-wide { margin-top: var(--sg-space-3, 12px); overflow-x: auto; }
.bw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.bw-table th,
.bw-table td {
  border-bottom: 1px solid var(--sg-border, #d9dee8);
  padding: 8px 6px;
  text-align: right;
  line-height: 1.5;
}
.bw-table thead th { text-align: center; font-weight: 600; }
.bw-table tbody th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; }

.bw-list { margin: 10px 0 0; padding-left: 1.2em; line-height: 1.8; }
.bw-list li + li { margin-top: 4px; }
.bw-src a { overflow-wrap: anywhere; }

/* hidden 属性を共有の .sg-field などの display 指定より優先する */
[hidden] { display: none !important; }
