.eq-builder {
  padding-block: 44px 64px;
  background: var(--sb-surface-mint);
  scroll-margin-top: 20px;
}

/* 見積もりの相談用紙。入力と確認で同じ明細を参照する。 */
.eq-consult {
  --eq-form-edge: #87938e;
  --eq-form-value: #202020;
  --eq-form-pad: clamp(1rem, 2.3vw, 1.75rem);
  margin-top: clamp(2rem, 5vw, 4rem);
  color: var(--sb-world-ink);
}
.eq-consult__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--sb-world-wood-edge);
  scroll-margin-block-start: .35rem;
}
.eq-consult__heading h3 {
  margin: 0;
  font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.4 var(--sb-world-font-heading);
  scroll-margin-block-start: .35rem;
}
.eq-consult__heading button {
  flex: none;
  min-height: 44px;
}
.eq-consult__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 1fr);
  grid-template-areas: "fields receipt";
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.eq-consult__paper {
  grid-area: fields;
  min-width: 0;
}
.eq-consult__card,
.eq-consult__quote {
  box-sizing: border-box;
  min-width: 0;
  padding: var(--eq-form-pad);
  background: var(--eq-card-surface);
  border: 1px solid var(--sb-world-rule);
  border-top: 3px solid var(--sb-world-wood);
  border-radius: .25rem;
}
.eq-consult__card {
  margin: 0 0 .95rem;
}
.eq-received .cf-reply-notice {
  margin-block: 1rem;
  padding: 1rem;
  border-inline-start: 4px solid var(--sb-color-blue);
  background: var(--sb-surface-sky);
}
.eq-received .cf-reply-notice h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}
.eq-consult__card h4,
.eq-consult__card h4 label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  color: var(--sb-world-ink);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.5;
}
.eq-consult__card h4 small {
  font: 500 .8rem/1.5 var(--sb-world-font-body);
  color: var(--sb-world-muted);
}
.eq-consult__step {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  color: var(--sb-world-ink);
  background: var(--sb-world-gold);
  border-radius: 50%;
  font: 700 1rem/1 var(--sb-world-font-body);
}
.eq-consult__fields {
  display: grid;
  gap: 1.05rem;
  margin-top: 1.2rem;
}
.eq-consult__fields label {
  display: block;
  min-width: 0;
}
.eq-field-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .96rem;
  font-weight: 700;
}
.eq-field-label svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eq-field-label small {
  font-size: .75rem;
  font-weight: 500;
}
.eq-consult__card h4 .eq-field-label {
  font-size: inherit;
}
.eq-required {
  padding-inline: .4rem;
  background: var(--sb-surface-highlight, #ffe5a4);
  border-radius: .2rem;
}
.eq-consult__card :is(input, select, textarea) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  margin-top: .35rem;
  padding: .6rem .75rem;
  border: 1px solid var(--eq-form-edge);
  border-radius: .3rem;
  color: var(--eq-form-value);
  background: var(--eq-card-surface);
  font: 400 1rem/1.5 var(--sb-world-font-body);
}
.eq-consult__card textarea {
  resize: vertical;
}
.eq-consult__card :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--sb-world-focus);
  outline-offset: 2px;
}
.eq-consult__quote {
  grid-area: receipt;
  position: sticky;
  top: calc(var(--site-header-height, 82px) + .85rem);
  border-top-color: var(--sb-world-ink);
}
.eq-consult__quote h4 {
  margin: 0;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--sb-world-rule);
  font: 700 clamp(1.2rem, 2.1vw, 1.55rem)/1.4 var(--sb-world-font-heading);
}
.eq-consult__quote .eq-mini-lines {
  max-height: min(36vh, 18rem);
  overflow: auto;
}
.eq-consult__quote .eq-mini-lines li {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem .6rem;
  padding-block: .55rem;
  font-size: .94rem;
}
.eq-consult__quote .eq-mini-lines li > :first-child {
  grid-column: 1 / -1;
  font-weight: 700;
}
.eq-consult__quote .eq-mini-lines b,
.eq-receipt-total strong {
  color: var(--eq-form-value);
  font-variant-numeric: tabular-nums;
}
.eq-receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .7rem;
  margin: .75rem 0 .3rem;
  font-weight: 700;
}
.eq-receipt-total strong {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}
.eq-receipt-note, .eq-postal-help, .eq-message-help, .eq-consult__privacy, .eq-consult__demo {
  color: var(--sb-world-muted);
  font-size: .9rem;
  line-height: 1.65;
}
.eq-receipt-note, .eq-postal-help p {
  margin: 0;
}
.eq-consult__quote button {
  min-height: 44px;
}
.eq-address {
  padding: 0;
}
.eq-address summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 1rem var(--eq-form-pad);
  cursor: pointer;
  list-style: none;
}
.eq-address summary::-webkit-details-marker {
  display: none;
}
.eq-address summary::after {
  content: "";
  width: .55rem;
  height: .55rem;
  flex: none;
  margin-right: .2rem;
  border: solid var(--sb-world-action);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.eq-address[open] summary::after {
  transform: rotate(225deg);
}
.eq-address .eq-consult__fields {
  padding: 0 var(--eq-form-pad) var(--eq-form-pad);
  margin-top: .2rem;
}
.eq-address__locality, .eq-postal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.eq-postal-row {
  grid-template-columns: minmax(0, 14rem) auto;
  justify-content: start;
  align-items: end;
}
.eq-postal-button {
  min-height: 44px;
}
.eq-postal-help {
  margin-top: -.45rem;
}
.eq-postal-help [role=status]:not(:empty) {
  margin-top: .35rem;
  color: var(--sb-world-ink);
}
.eq-message-help, .eq-consult__demo {
  margin: .7rem 0;
}
.eq-consult__undecided {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  margin-bottom: .7rem;
  font-weight: 700;
}
.eq-consult__undecided input {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
}
.eq-consult__notice:not(:empty) {
  margin: 0 0 1rem;
  padding: .6rem .9rem;
  background: var(--eq-card-surface);
  border-left: 3px solid var(--sb-world-gold);
}
.eq-consult__notice:empty {
  display: none;
}
.eq-consult__review {
  margin: .65rem 0 0;
}
.eq-consult__review > div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: .6rem;
  padding-block: .55rem;
  border-bottom: 1px solid var(--sb-world-rule);
}
.eq-consult__review dt {
  color: var(--sb-world-muted);
}
.eq-consult__review dd, .eq-review-value {
  margin: 0;
  color: var(--eq-form-value);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.eq-review-value {
  margin-top: .7rem;
  line-height: 1.75;
}
.eq-review-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem .6rem;
}
.eq-review-heading button {
  min-height: 44px;
}
.eq-consult__review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
@media (max-width: 900px) {
  .eq-consult__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "receipt" "fields";
  }
  .eq-consult__quote {
    position: static;
    padding-block: .85rem .45rem;
  }
}
@media (max-width: 560px) {
  .eq-consult__quote .eq-mini-lines li > :first-child {
    grid-column: 1;
  }
  .eq-consult__quote .eq-mini-lines li > :nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .eq-consult__quote .eq-mini-lines li b {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .eq-address__locality, .eq-postal-row, .eq-consult__review > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .eq-consult__review > div {
    gap: .2rem;
  }
  .eq-postal-button {
    justify-self: start;
  }
  .eq-consult__heading button {
    padding-inline: .3rem;
  }
}

.eq-eyebrow {
  margin: 0;
  color: var(--sb-color-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.eq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  gap: 36px;
  align-items: start;
}

.eq-choices {
  min-width: 0;
}

.eq-group-heading {
  position: relative;
  margin-bottom: 18px;
}

.eq-group-heading h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.5;
}

.eq-group-heading h3 small {
  font-size: 12px;
  font-weight: 500;
}

.eq-group-heading p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.7;
}

.eq-line {
  padding-block: 18px 22px;
  border-top: 2px solid var(--sb-color-ink);
}

.eq-line__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.eq-line__heading h4 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
}

.eq-remove {
  --sb-button-height: 44px;
  --sb-button-padding: 7px 10px;
  --sb-button-size: 15px;
  --sb-button-gap: 5px;
  --sb-button-line-width: 1px;
  --sb-button-bg: var(--sb-surface-paper);
  --sb-button-hover-bg: var(--sb-color-cream);
  --sb-button-hover-shadow: none;
  --sb-button-hover-transform: none;
  --sb-button-active-transform: none;
  flex-shrink: 0;
}

.eq-remove svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.eq-text-button {
  min-height: 38px;
  padding: 5px 8px;
  border: 0;
  color: var(--sb-color-ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.eq-type-picker > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.eq-type-picker summary::-webkit-details-marker {
  display: none;
}

.eq-type-picker:not([open]) > summary {
  color: var(--sb-color-blue);
}

.eq-type-note {
  margin: 2px 0 10px;
  color: var(--sb-text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.eq-type-picker:not([open]) > .eq-type-note {
  display: none;
}

.eq-types {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 0 14px;
}

.eq-type-option {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 9px 2px 7px;
  border: 1px solid var(--sb-color-ink);
  border-radius: 5px;
  color: var(--sb-color-ink);
  background: var(--eq-card-surface);
  font: inherit;
  cursor: pointer;
}

.eq-type-option__name {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.eq-type-option__name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
}

.eq-type-option svg {
  width: 100%;
  height: 136px;
}

.eq-flag-fabric {
  fill: var(--sb-color-yellow);
}

.eq-flag-pole {
  fill: none;
  stroke: var(--sb-color-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.eq-type-option__dimensions {
  display: grid;
  gap: 1px;
  margin-top: 3px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.eq-type-option__dimensions small {
  font-size: 10px;
  font-weight: 400;
}

.eq-type-option__state {
  margin-top: 6px;
  padding: 3px 5px;
  font-size: 11px;
  font-weight: 800;
}

.eq-type-option[aria-pressed="true"] {
  border-color: var(--sb-color-blue);
  color: var(--sb-color-ink);
}

.eq-type-option[aria-pressed="true"] .eq-flag-pole {
  stroke: var(--sb-color-ink);
}

.eq-type-option:disabled {
  color: var(--sb-text-muted);
  background: var(--eq-card-surface);
  cursor: default;
}

.eq-type-option:disabled .eq-flag-fabric {
  fill: var(--sb-border-soft);
}

.eq-line__body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.eq-line__visual {
  display: grid;
  place-items: center;
  color: var(--sb-color-ink);
}

.eq-line__visual svg {
  width: 48px;
  height: 76px;
}

.eq-line__visual img {
  width: 54px;
  height: 58px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.eq-quantity label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
}

.eq-stepper {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sb-color-ink);
  border-radius: 5px;
  background: var(--eq-card-surface);
}

.eq-stepper button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--sb-color-ink);
  background: var(--sb-color-cream);
  font-size: 20px;
  cursor: pointer;
}

.eq-stepper button:disabled {
  color: var(--sb-text-muted);
  background: var(--sb-border-warm);
  cursor: default;
}

.eq-stepper input {
  box-sizing: border-box;
  width: 76px;
  min-width: 0;
  height: 44px;
  padding: 6px 2px;
  border: 0;
  color: var(--sb-color-ink);
  background: transparent;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
}

.eq-stepper > span {
  padding-right: 9px;
  font-size: 14px;
}

.eq-line__amount {
  min-width: 0;
  text-align: right;
}

.eq-line__amount strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 23px;
  font-weight: 900;
}

.eq-line__amount small {
  display: block;
  margin-top: 5px;
  color: var(--sb-text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.eq-error {
  margin: 12px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--sb-color-coral);
  font-size: 13px;
  font-weight: 700;
}

.eq-add {
  --sb-button-height: 46px;
  --sb-button-padding: 10px 18px;
  --sb-button-bg: var(--sb-color-cream);
  --sb-button-hover-bg: var(--sb-color-cream);
  margin-top: 4px;
  font-size: 16px;
}

.eq-undo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-block: 12px;
  padding: 12px;
  border-left: 4px solid var(--sb-color-blue);
  background: var(--eq-card-surface);
  font-size: 15px;
  line-height: 1.6;
}

.eq-undo__button {
  --sb-button-height: 44px;
  --sb-button-padding: 7px 12px;
  --sb-button-bg: var(--sb-surface-paper);
  --sb-button-hover-bg: var(--sb-surface-paper);
  --sb-button-hover-shadow: none;
  --sb-button-hover-transform: none;
  --sb-button-active-transform: none;
  flex-shrink: 0;
}

.eq-stand-group {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 3px solid var(--sb-color-ink);
}

.eq-stand-picker {
  --sb-disclosure-bg: var(--eq-card-surface);
  --sb-disclosure-hover-bg: var(--eq-card-surface);
  margin-top: 12px;
  border: 1px solid var(--sb-color-ink);
  border-radius: 5px;
  background: var(--eq-card-surface);
}

.eq-stand-picker > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--sb-disclosure-bg);
  font-weight: 800;
}

.eq-stand-options {
  padding-inline: 14px;
}

.eq-stand-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--sb-border-soft);
  color: var(--sb-color-ink);
  background: var(--eq-card-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.eq-stand-option:not(:disabled):hover .eq-stand-option__copy strong {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.eq-stand-option img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.eq-stand-option__copy {
  flex: 1;
  min-width: 0;
}

.eq-stand-option__copy strong,
.eq-stand-option__copy small,
.eq-stand-option__copy > span {
  display: block;
  line-height: 1.6;
}

.eq-stand-option__copy strong {
  font-size: 15px;
}

.eq-stand-option__copy small {
  color: var(--sb-text-muted);
  font-size: 11px;
}

.eq-stand-option__copy > span {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
}

.eq-stand-option__action {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--sb-color-cream);
  background: var(--sb-color-blue);
  font-size: 12px;
  font-weight: 800;
}

.eq-stand-option:disabled {
  cursor: default;
}

.eq-stand-option:disabled .eq-stand-option__action {
  color: var(--sb-color-ink);
  background: var(--sb-border-soft);
}

.eq-stand-note {
  padding: 0 16px 8px;
  font-size: 12px;
  line-height: 1.8;
}

.eq-stand-line {
  padding-block: 14px;
  border-top: 1px solid var(--sb-border-soft);
}

.eq-stand-line h4 {
  font-size: 16px;
}

.eq-summary {
  position: sticky;
  top: 116px;
  min-width: 0;
  padding: 22px;
  border: 2px solid var(--sb-color-ink);
  border-radius: 5px;
  background: var(--sb-surface-paper);
  box-shadow: 7px 7px 0 var(--sb-color-pink);
  scroll-margin-top: 20px;
}

.eq-summary__header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sb-color-ink);
}

.eq-summary__header p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.eq-summary__header > span {
  align-self: center;
  color: var(--sb-text-muted);
  font-size: 9px;
  letter-spacing: .1em;
}

.eq-summary h3 {
  margin: 18px 0 16px;
  font-size: 20px;
}

.eq-summary__empty {
  color: var(--sb-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.eq-summary__lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eq-summary__lines > li:not(.eq-undo) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 8px;
  padding-block: 12px;
  border-bottom: 1px solid var(--sb-border-warm);
  font-size: 16px;
}

.eq-summary__lines b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  text-align: right;
}

.eq-summary__item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.eq-summary__detail {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-left: 32px;
}

.eq-summary__quantity {
  flex-shrink: 0;
  font-size: 14px;
}

.eq-summary__remove {
  --sb-button-padding: 7px 8px;
  --sb-button-size: 14px;
}

.eq-summary__lines > .eq-undo {
  margin-block: 10px;
}

.eq-summary__thumb {
  flex: 0 0 24px;
}

.eq-summary__thumb :is(svg, img) {
  display: block;
  width: 24px;
  height: 38px;
  object-fit: contain;
}

.eq-summary__breakdown {
  margin: 16px 0;
  font-size: 13px;
}

.eq-summary__breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.eq-summary__breakdown dd {
  margin: 0;
  font-weight: 700;
}

.eq-summary__total {
  margin-top: 16px;
  padding: 16px 14px;
  border-top: 3px solid var(--sb-color-yellow);
  background: var(--sb-color-cream);
}

.eq-summary__total > p:first-child {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 800;
}

.eq-summary__total > p:first-child small {
  margin-left: 5px;
  font-size: 11px;
}

.eq-summary__total > strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.eq-summary__pending {
  margin: 4px 0;
  font-size: 16px;
  font-weight: 800;
}

.eq-summary__known {
  margin-bottom: 0;
  font-size: 12px;
}

.eq-summary__excluded {
  margin: 12px 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.eq-summary__excluded > span {
  color: var(--sb-color-blue);
}

.eq-summary__note {
  margin: 10px 0;
  color: var(--sb-text-muted);
  font-size: 11px;
  line-height: 1.8;
}

.eq-summary__actions {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.eq-summary__actions .sb-button {
  --sb-button-padding: 11px 10px;
  width: 100%;
  font-size: 14px;
}

.eq-summary__actions > a {
  justify-self: center;
  font-size: 14px;
}

.eq-copy-status {
  font-size: 13px;
  font-weight: 800;
}

.eq-copy-status:empty {
  margin: 0;
}

.eq-copy-sheet {
  margin-top: 16px;
  border-top: 1px solid var(--sb-border-warm);
  font-size: 12px;
}

.eq-copy-sheet summary {
  display: flex;
  justify-content: space-between;
  padding-block: 12px;
}

.eq-copy-sheet textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--sb-color-ink);
  border-radius: 4px;
  color: var(--sb-color-ink);
  background: var(--eq-card-surface);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.eq-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eq-mobile-total {
  display: none;
}

.eq-mobile-total[data-obscured] {
  visibility: hidden;
  pointer-events: none;
}

.eq-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.eq-fallback > p {
  flex-basis: 100%;
}

.eq-builder :is(button, input, select, summary, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--sb-color-blue);
  outline-offset: 3px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .eq-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
  }

  .eq-types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .eq-line__body {
    grid-template-columns: 42px 1fr;
  }

  .eq-line__amount {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .eq-builder {
    padding-block: 32px 42px;
    scroll-margin-top: 16px;
  }

  .eq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .eq-summary {
    position: static;
    scroll-margin-top: 16px;
  }

  .eq-summary__total > strong {
    font-size: 36px;
  }

  .eq-mobile-total {
    position: fixed;
    z-index: 80;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 570px;
    margin-inline: auto;
    padding: 10px 14px;
    border: 2px solid var(--sb-color-ink);
    border-radius: 7px;
    color: var(--sb-color-cream);
    background: var(--sb-color-ink);
    box-shadow: 0 3px 16px color-mix(in srgb, var(--sb-color-ink) 18%, transparent);
  }

  .eq-mobile-total > div {
    min-width: 0;
  }

  .eq-mobile-total > div > span {
    display: block;
    font-size: 10px;
  }

  .eq-mobile-total strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
  }

  .eq-mobile-total > a {
    flex-shrink: 0;
    padding: 10px 0;
    color: var(--sb-color-cream);
    font-size: 12px;
    font-weight: 800;
    text-underline-offset: 4px;
  }

  /* ローカルの比較ナビがある間だけ、肉球ボタンとの重なりを避ける。 */
  .page-estimate:has(#neko-demo-navigator) .eq-mobile-total {
    bottom: max(78px, env(safe-area-inset-bottom));
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .eq-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .eq-remove {
    --sb-button-size: 14px;
    --sb-button-padding: 7px 8px;
  }

  .eq-types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .eq-type-option {
    padding-block: 8px;
  }

  .eq-type-option svg {
    height: 110px;
  }

  .eq-group-heading h3 {
    gap: 10px;
    font-size: 19px;
  }

  .eq-line__body {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .eq-line__amount {
    grid-column: 2;
    text-align: left;
  }

  .eq-line__amount strong {
    font-size: 24px;
  }

  .eq-line__amount small {
    margin-top: 2px;
    font-size: 12px;
  }

  .eq-line__visual {
    grid-row: span 2;
  }

  .eq-summary {
    padding: 18px;
    box-shadow: 5px 5px 0 var(--sb-color-pink);
  }

  .eq-stand-options {
    padding-inline: 10px;
  }

  .eq-stand-option {
    gap: 8px;
  }

  .eq-stand-option img {
    flex-basis: 46px;
    width: 46px;
    height: 56px;
  }

  .eq-stand-option__copy strong {
    font-size: 13px;
  }

  .eq-stand-option__action {
    padding: 7px;
    font-size: 11px;
  }
}
/* 工房の見積もり台。既存の計算と相談試作の操作を保持する。 */
.estimate-world .eq-builder {
  --eq-card-surface: var(--sb-world-reading-surface);
  padding-block: .5rem 2rem;
  background: transparent;
  scroll-margin-top: 7rem;
}
.estimate-world .eq-layout {
  grid-template-columns: minmax(0, 1.8fr) minmax(19rem, 1fr);
  gap: 2rem;
  align-items: start;
}
.estimate-world .eq-group-heading {
  position: relative;
  margin-bottom: .75rem;
  padding: 0;
}
.estimate-world .eq-group-heading h3 {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.25rem;
}
.estimate-world .eq-line,
.estimate-world .eq-stand-line {
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--sb-world-rule);
  border-radius: var(--sb-world-sheet-radius);
  background: var(--eq-card-surface);
  box-shadow: var(--sb-world-sheet-shadow);
}
.estimate-world .eq-line__heading {
  align-items: center;
  margin-bottom: .75rem;
}
.estimate-world .eq-line__heading h4 {
  font-size: 1.3rem;
}
.estimate-world .eq-remove {
  --sb-button-height: 2.75rem;
  --sb-button-padding: .4rem .65rem;
  --sb-button-shadow: none;
  --sb-button-bg: transparent;
  font-size: .75rem;
}
.estimate-world .eq-type-picker > summary {
  min-height: 2.75rem;
  padding: .6rem .85rem;
  border: 1px solid var(--sb-world-rule);
  border-radius: .7rem;
  color: var(--sb-world-action);
  background: var(--eq-card-surface);
  font-size: .875rem;
}
.estimate-world .eq-types {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin-block: .8rem 0;
}
.estimate-world .eq-type-note {
  margin-top: .8rem;
  font-size: var(--sb-world-type-note);
}
.estimate-world .eq-type-option {
  padding: .7rem .25rem;
  border-color: var(--sb-world-rule);
  border-radius: .8rem;
  box-shadow: 0 2px 0 var(--sb-world-wood);
  transition: background-color .18s, border-color .18s;
}
.estimate-world .eq-type-option svg {
  height: 104px;
}
.estimate-world .eq-type-option__name small,
.estimate-world .eq-type-option__dimensions,
.estimate-world .eq-type-option__dimensions small,
.estimate-world .eq-type-option__state {
  font-size: var(--sb-world-type-label);
}
.estimate-world .eq-type-option[aria-pressed="true"] {
  border-color: var(--sb-world-action);
  background: var(--eq-card-surface);
  box-shadow: inset 0 0 0 1px var(--sb-world-action);
}
.estimate-world .eq-flag-fabric {
  fill: var(--sb-world-accent);
}
.estimate-world .eq-type-option[aria-pressed="true"] .eq-flag-fabric {
  fill: var(--sb-world-gold);
}
.estimate-world .eq-line__body {
  grid-template-columns: 8rem minmax(0, 1fr);
  grid-template-areas: "visual quantity" "visual amount" "dimensions dimensions";
  gap: .8rem 1.3rem;
  align-items: center;
  margin-top: 1.2rem;
}
.estimate-world .eq-line__visual {
  grid-area: visual;
  align-self: stretch;
  min-height: 10rem;
  border-radius: 50% 50% .8rem .8rem;
  background: linear-gradient(180deg, transparent 70%, var(--sb-world-field-leaf) 70%);
}
.estimate-world .eq-line__visual svg {
  width: 7rem;
  height: 12rem;
}
.estimate-world .eq-line__visual img {
  width: 6.5rem;
  height: 7rem;
}
.estimate-world .eq-quantity {
  grid-area: quantity;
}
.estimate-world .eq-line__amount {
  grid-area: amount;
  text-align: left;
}
.estimate-world .eq-line__amount-label {
  display: block;
  margin-bottom: .3rem;
  font-size: .75rem;
  color: var(--sb-world-muted);
}
.estimate-world .eq-line__amount .eq-line-manual {
  display: block;
  font-size: 1.06rem;
  line-height: 1.55;
}
.estimate-world .eq-line-consult {
  min-height: 44px;
  color: var(--sb-world-action);
  text-align: start;
}
.estimate-world .eq-stand-option__copy .eq-stand-fit {
  color: var(--sb-world-action);
  font-size: .875rem;
  font-weight: 700;
}
.estimate-world .eq-line__amount strong {
  color: var(--sb-world-action);
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
}
.estimate-world .eq-line__amount small {
  font-size: var(--sb-world-type-note);
}
.estimate-world .eq-line__dimensions {
  grid-area: dimensions;
  margin: 0;
  padding-top: .7rem;
  border-top: 1px dashed var(--sb-world-rule);
  color: var(--sb-world-muted);
  font-size: .8rem;
}
.estimate-world .eq-stepper {
  border-color: var(--sb-world-rule);
  border-radius: .65rem;
}
.estimate-world .eq-stepper button {
  background: var(--sb-world-field-leaf);
}
.estimate-world .eq-add {
  width: 100%;
  margin-top: .5rem;
  --sb-button-bg: var(--eq-card-surface);
  --sb-button-hover-bg: var(--eq-card-surface);
}
.estimate-world .eq-stand-group {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sb-world-rule);
}
.estimate-world .eq-stand-picker {
  border-color: var(--sb-world-rule);
  border-radius: 1rem;
  box-shadow: var(--sb-world-sheet-shadow);
}
.estimate-world .eq-stand-option {
  border-color: var(--sb-world-rule);
  padding-block: 1rem;
}
.estimate-world .eq-stand-option__action {
  border-radius: 999px;
}
.estimate-world .eq-summary {
  top: 6.5rem;
  padding: 1.5rem;
  border: 1px solid var(--sb-world-wood-edge);
  border-top: 6px solid var(--sb-world-wood);
  border-radius: 1rem;
  color: var(--sb-world-ink);
  background: var(--eq-card-surface);
  box-shadow: var(--sb-world-sheet-shadow);
}
.estimate-world .eq-summary__header {
  border-color: var(--sb-world-rule);
}
.estimate-world .eq-summary h3 {
  font-family: var(--sb-world-font-heading);
  font-size: 1.8rem;
  font-weight: 600;
}
.estimate-world .eq-summary__thumb svg {
  width: 1.25rem;
  height: 3rem;
}
.estimate-world .eq-summary__total {
  border-top: 0;
  border-radius: .75rem;
  background: var(--eq-card-surface);
}
.estimate-world .eq-summary__total > strong {
  color: var(--sb-world-action);
  font-size: clamp(2rem, 3vw, 2.6rem);
}
.estimate-world .eq-summary__excluded {
  padding-left: .75rem;
  border-left: 3px solid var(--sb-world-gold);
  font-size: .875rem;
}
.estimate-world .eq-summary__note {
  font-size: var(--sb-world-type-note);
  line-height: 1.8;
}
.estimate-world .eq-summary__actions [data-consult-open] {
  --sb-button-bg: var(--sb-world-gold);
  --sb-button-ink: var(--sb-world-ink);
  --sb-button-hover-bg: var(--sb-world-gold);
}
.estimate-world .eq-mobile-total {
  border: 1px solid var(--sb-world-wood-edge);
  border-radius: 1rem;
  color: var(--sb-world-ink);
  background: var(--eq-card-surface);
  box-shadow: 0 -3px 20px rgb(23 62 80 / 10%);
}
.estimate-world .eq-mobile-total strong {
  color: var(--sb-world-action);
}
.estimate-world .eq-mobile-total small {
  display: block;
  font-size: .75rem;
}
.estimate-world .eq-mobile-total > a {
  color: var(--sb-world-action);
}
@media (max-width: 900px) {
  .estimate-world .eq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .estimate-world .eq-summary {
    position: static;
  }
}
@media (max-width: 600px) {
  .estimate-world .eq-line,
  .estimate-world .eq-stand-line {
    padding: .9rem;
  }
  .estimate-world .eq-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }
  .estimate-world .eq-type-option svg {
    height: 76px;
  }
  .estimate-world .eq-line__body {
    grid-template-columns: minmax(3.8rem, .7fr) minmax(0, 1.5fr);
    gap: .6rem .7rem;
  }
  .estimate-world .eq-line__visual svg {
    width: 100%;
    height: 10rem;
  }
  .estimate-world .eq-line__visual img {
    width: 100%;
    height: 5rem;
  }
  .estimate-world .eq-stepper {
    display: flex;
    width: 100%;
  }
  .estimate-world .eq-stepper input {
    flex: 1 1 0;
    width: 1rem;
  }
  .estimate-world .eq-stepper > span {
    padding-right: .25rem;
  }
  .estimate-world .eq-line__amount strong {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  }
  .estimate-world .eq-summary {
    padding: 1.15rem;
  }
  .estimate-world .eq-group-heading h3 {
    font-size: 1.1rem;
  }
}
/* 長い商品名も読めるよう、狭い画面の削除は押せる大きさのアイコンにする。 */
.estimate-world .eq-summary__counts {
  color: var(--sb-world-action);
  font-size: .875rem;
  font-weight: 700;
}
@media (max-width: 600px) {
  .estimate-world .eq-line__heading > .eq-remove {
    width: 2.75rem;
    min-width: 2.75rem;
    padding: 0;
    font-size: 0;
  }
  .estimate-world .eq-line__heading > .eq-remove svg {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
  }
}

/* 数量欄のフォーカスは、切り抜かれる入力の外側ではなくステッパー全体に示す。 */
.estimate-world .eq-stepper:has(input:focus-visible) {
  outline: 2px solid var(--sb-world-focus);
  outline-offset: 3px;
}

.estimate-world .eq-stepper input:focus-visible {
  outline: none;
}

.estimate-world .eq-stepper button:focus-visible {
  outline: 2px solid var(--sb-world-focus);
  outline-offset: -4px;
}

/* V2: 合計と次の操作を先に読み、品目数で金額の位置が動かない見積もり札。 */
.estimate-world .eq-summary h3 {
  margin-block: .8rem .5rem;
}

.estimate-world .eq-summary__counts {
  margin-block: .4rem .65rem;
}

.estimate-world .eq-summary__total {
  margin-top: .65rem;
}

.estimate-world .eq-summary__actions {
  gap: .5rem;
}

.estimate-world .eq-summary__detail-title {
  margin: 1.25rem 0 .25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sb-world-rule);
  font-size: .875rem;
  font-weight: 700;
}
.estimate-world .eq-summary h3 {
  margin-block: 0 .4rem;
  font-size: 1.3rem;
}
.eq-summary--empty :is(.eq-summary__total, .eq-summary__excluded, [data-open-details]) {
  display: none;
}
.eq-edit-total {
  display: none;
}
.eq-mini-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--sb-world-ink);
  font-variant-numeric: tabular-nums;
}
.eq-mini-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: .5rem;
  padding-block: .32rem;
  border-bottom: 1px solid var(--sb-world-rule);
  font-size: .85rem;
}
.eq-mini-lines li b {
  text-align: right;
}
.eq-summary .eq-mini-lines {
  max-height: clamp(4rem, 17dvh, 9rem);
  overflow: auto;
}
.eq-mini-caption {
  display: flex;
  justify-content: space-between;
  color: var(--sb-world-ink);
  font-size: .8rem;
}
.eq-summary--empty .eq-mini-caption {
  display: none;
}
@media (max-width: 600px) {
  .eq-mini-lines li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .eq-mini-lines li > span:first-child {
    grid-column: 1 / -1;
    font-weight: 700;
  }
}
.eq-detail-dialog {
  box-sizing: border-box;
  width: min(30rem, calc(100% - 2rem));
  max-height: calc(100dvh - 3rem);
  margin: auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--sb-world-ink);
  background: var(--eq-card-surface);
  border: 1px solid var(--sb-world-wood-edge);
  border-top: 5px solid var(--sb-world-wood);
  border-radius: 1rem;
}
.eq-detail-dialog::backdrop {
  background: rgb(19 42 43 / 45%);
}
.eq-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.eq-detail-heading h3 {
  font-family: var(--sb-world-font-heading);
}
.eq-detail-sum {
  padding-block: .7rem;
  color: var(--sb-world-action);
  border-top: 1px solid var(--sb-world-rule);
}
@media (min-width: 901px) {
  .estimate-world .eq-summary {
    position: sticky;
    top: calc(var(--site-header-height, 82px) + .6rem);
    padding: 1.1rem;
  }
}
@media (max-width: 900px) {
  .eq-edit-total:not([hidden]) {
    display: grid;
    gap: .15rem;
    margin-top: .55rem;
    padding-top: .45rem;
    border-top: 1px solid var(--sb-world-rule);
    color: var(--sb-world-ink);
    font-size: .85rem;
  }
  .eq-edit-total b {
    color: var(--sb-world-action);
    font-size: 1.05rem;
  }
  .eq-edit-total button {
    justify-self: start;
    min-height: 44px;
  }
}

.estimate-world .eq-summary__lines > [data-summary-row] {
  gap: .25rem .6rem;
  padding-block: .55rem;
}

.estimate-world .eq-summary__thumb svg {
  height: 2.1rem;
}

.estimate-world .eq-summary__detail {
  margin-top: 0;
}

.estimate-world .eq-line__amount-label {
  color: var(--sb-world-action);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.7;
}
