/* =====================================================================
   style.css — 砂利・砕石・砂の量と重さの計算 ツール固有の微調整のみ（gq-）。
   共通スタイルは /_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); }

/* 面積の入力方法の切替 */
.gq-modes {
  display: flex;
  gap: 8px;
  margin-bottom: var(--sg-space-4);
}
.gq-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;
}
.gq-modes input { position: absolute; opacity: 0; pointer-events: none; }
.gq-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);
}
.gq-modes label:has(input:focus-visible) { outline: 2px solid var(--sg-primary, #3b5bdb); outline-offset: 2px; }

.gq-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}
.gq-check input { width: 20px; height: 20px; accent-color: var(--sg-primary, #3b5bdb); }

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

.gq-basis {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--sg-muted, #667);
  text-align: left;
  overflow-wrap: anywhere;
}

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

.gq-h3 { font-size: 1rem; margin: 18px 0 4px; }
.gq-list { margin: 10px 0 0; padding-left: 1.2em; line-height: 1.8; }
.gq-list li + li { margin-top: 4px; }
.gq-src a { overflow-wrap: anywhere; }

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