/* 鉄筋の質量・本数 — ツール固有のスタイル（共通は /_shared/kanejaku.css） */
.rb-form { margin: 0 0 1.25rem; }
.rb-group { border: 0; border-top: 2px solid var(--kj-line-strong); margin: 0; padding: 0.9rem 0 0.2rem; min-width: 0; }
.rb-group legend { padding: 0 0.5rem 0 0; }
.rb-rows { display: grid; gap: 0; margin: 0 0 0.6rem; border-top: 1px solid var(--kj-line); }
.rb-row {
  display: grid;
  grid-template-columns: 2rem minmax(9rem, 1.4fr) minmax(6rem, 1fr) minmax(5rem, 1fr) auto;
  gap: 0 0.75rem;
  align-items: end;
  padding: 0.6rem 0 0;
  border-bottom: 1px solid var(--kj-line);
}
.rb-row .kj-field { margin-bottom: 0.6rem; }
.rb-row__no { font-family: var(--kj-mono); font-weight: 800; align-self: center; text-align: center; background: var(--kj-navy); color: var(--kj-on-navy); }
.rb-del { margin-bottom: 0.6rem; padding: 0.45rem 0.8rem; box-shadow: none; }
.rb-del:active { transform: none; }
.rb-readouts { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.rb-errors { margin: 0 0 1.25rem; padding-left: 1.2em; }
.rb-total th, .rb-total td { font-weight: 800; border-top: 2px solid var(--kj-line-strong); }
#out-lines td { font-size: 0.84rem; }
.rb-mass-out { font-family: var(--kj-mono); font-weight: 700; background: var(--kj-slab); border: 2px solid var(--kj-line-strong); padding: 0.6rem 0.8rem; }
.rb-formula {
  font-family: var(--kj-mono);
  font-weight: 800;
  background: var(--kj-slab);
  border-left: 6px solid var(--kj-yellow);
  padding: 0.6rem 0.9rem;
}
@media (max-width: 560px) {
  .rb-row { grid-template-columns: 2rem 1fr 1fr; }
  .rb-row__no { grid-row: span 2; align-self: stretch; display: flex; align-items: center; justify-content: center; margin-bottom: 0.6rem; }
  .rb-row > .kj-field:nth-of-type(1) { grid-column: 2 / 4; }
  .rb-del { grid-column: 2 / 4; justify-self: end; }
}
.rb-sub td { font-size: 0.8rem; color: var(--kj-ink-soft); border-top: hidden; padding-top: 0; }
@media (max-width: 480px) {
  #out-size { font-size: 0.8rem; }
  #out-size th, #out-size td { padding: 0.4rem 0.4rem; }
  #out-size thead th { white-space: normal; }
}
@media (max-width: 480px) {
  #quick-table, #spec-table { font-size: 0.8rem; }
  #quick-table th, #quick-table td, #spec-table th, #spec-table td { padding: 0.4rem 0.35rem; }
  #quick-table thead th, #spec-table thead th { white-space: normal; }
}
#spec-table thead th:first-child, #quick-table thead th:first-child { white-space: nowrap; }
