:root {
  --bg: #ececec;
  --card: #ffffff;
  --line: #d5d5d5;
  --text: #222222;
  --muted: #666666;
  --accent: #0c8a41;
  --accent-hover: #087234;
  --accent-soft: #f1fbf5;
  --accent-border-soft: #b7d8c5;
  --accent-value: #e5f7ec;
  --accent-ring: #0c8a4133;
  --accent-shadow: rgba(12, 138, 65, 0.22);
  --accent-shadow-strong: rgba(12, 138, 65, 0.3);
  --accent-floating-shadow: rgba(0, 94, 39, 0.28);
  --action-red: var(--accent);
  --action-red-hover: var(--accent-hover);
  --price-red: #d00b26;
  --accent-dark: #1f1f1f;
  --page-max-width: 1248px;
  --page-gutter: 24px;
  --brand-green: #0c8a41;
  --brand-green-hover: #087234;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "游ゴシック Medium", "Yu Gothic Medium", 游ゴシック, "Yu Gothic", 游ゴシック体, YuGothic, "Hiragino Kaku Gothic ProN", HiraKakuProN-W3, "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page-header {
  padding: 0 0 12px;
  border-bottom: 0;
  background: transparent;
  width: 100%;
  margin: 0;
}

.page-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
  height: 144px;
  margin-left: 0;
  margin-right: 0;
  padding: 0 56px;
  background: #fff;
}

html body.cards-page .page-header > .top-hero-banner,
html body.index-page .page-header > .top-hero-banner {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

html body.cards-page .page-header > .mitsumo-banner,
html body.index-page .page-header > .mitsumo-banner {
  width: min(var(--page-max-width), calc(100% - (var(--page-gutter) * 2)));
  margin-left: auto;
  margin-right: auto;
}

.page-header-logo {
  margin: 0;
  flex: 0 0 auto;
}

.page-header-logo img {
  display: block;
  width: 228px;
  height: 57px;
  max-width: 228px;
  object-fit: contain;
}

.theme-toggle-button {
  width: 18px;
  height: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: transparent;
  cursor: pointer;
  opacity: 0.34;
  padding: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-button:hover,
.theme-toggle-button:focus-visible {
  opacity: 0.82;
  background: var(--accent);
  border-color: var(--accent-hover);
  outline: none;
  transform: translateY(-1px);
}

.height-design-toggle-button {
  background: color-mix(in srgb, #008842 28%, transparent);
}

.height-design-toggle-button:hover,
.height-design-toggle-button:focus-visible,
body.height-design-current .height-design-toggle-button {
  opacity: 0.82;
  background: #008842;
  border-color: #007236;
}

.height-buttons-row-toggle-button {
  background: color-mix(in srgb, #f39a00 30%, transparent);
}

.height-buttons-row-toggle-button:hover,
.height-buttons-row-toggle-button:focus-visible,
body.height-buttons-row .height-buttons-row-toggle-button {
  opacity: 0.82;
  background: #f39a00;
  border-color: #d47f00;
}

.page-header h1 {
  margin: 0;
  font-size: 24px;
  color: var(--accent-dark);
}

.page-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 500px) {
  .page-header-top {
    padding-inline: 20px;
  }

  .page-header-logo img {
    width: min(228px, 70vw);
    height: auto;
    aspect-ratio: 228 / 57;
  }
}

@media (max-width: 768px) {
  .page-header-top {
    justify-content: flex-end;
    height: 66px;
    padding: 0 20px;
  }

  .page-header-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .page-header-logo img {
    width: min(228px, 42vw);
    height: auto;
    aspect-ratio: 228 / 57;
  }

}

@media (min-width: 769px) {
}

.layout {
  display: block;
  width: min(1248px, 100%);
  margin: 0 auto;
  padding: 16px 24px 24px;
}

.layout.layout-with-left-filter {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.layout.layout-with-left-filter .workflow-panel {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.layout.layout-with-left-filter .filter-panel {
  grid-column: 1 / -1;
  margin: 0;
}

.layout.layout-with-left-filter .result-panel {
  grid-column: 1 / -1;
}

.layout.layout-with-left-filter .filter-panel.hidden-panel + .result-panel {
  grid-column: 1 / -1;
}

.layout.layout-with-left-filter .filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layout.layout-with-left-filter .filter-section.price-wide {
  grid-column: auto;
}

.layout.layout-with-left-filter .cards-container,
.layout.layout-with-left-filter .handrail-cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.filter-panel,
.result-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-panel {
  --accent: #d00b26;
  --accent-hover: #d00b26;
  --accent-soft: #fff5f6;
  --accent-border-soft: #f2b8be;
  --accent-value: #ffe6e8;
  --accent-ring: #d00b2633;
  --accent-shadow: rgba(208, 11, 38, 0.22);
  --accent-shadow-strong: rgba(208, 11, 38, 0.3);
  --accent-floating-shadow: rgba(208, 11, 38, 0.28);
  --action-red: #d00b26;
  --action-red-hover: #d00b26;
  --price-red: #d00b26;
  padding: 14px;
  width: 100%;
  display: block;
  margin: 0 0 18px;
}

.filter-panel .range-fill {
  background: linear-gradient(90deg, #d00b26 0%, #d00b26 100%);
}

.filter-panel .range-input::-webkit-slider-thumb {
  border-color: #d00b26;
  box-shadow: 0 2px 6px rgba(208, 11, 38, 0.22);
}

.filter-panel .range-input::-moz-range-thumb {
  border-color: #d00b26;
  box-shadow: 0 2px 6px rgba(208, 11, 38, 0.22);
}

.filter-panel .value-slider-row.is-adjusting .value-slider-pill {
  background: #d00b26;
  border-color: #d00b26;
}

.result-panel {
  width: 100%;
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-header h2,
.result-toolbar h2 {
  margin: 0;
  font-size: 18px;
}

.clear-button {
  border: 1px solid var(--accent-dark);
  background: #fff;
  color: var(--accent-dark);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.clear-button:hover {
  background: #f6f6f6;
}

.result-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  align-self: flex-start;
}

.selection-reset-button:disabled {
  border-color: #d0d0d0;
  color: #999;
  background: #f7f7f7;
  cursor: not-allowed;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  min-height: 24px;
}

.filter-chip {
  background: #f5f5f5;
  border: 1px solid #cccccc;
  border-left: 3px solid var(--accent);
  color: #333;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 10px;
}

.filter-section {
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 10px;
  margin: 0;
}

.filter-section.price-wide {
  grid-column: 1 / -1;
}

.filter-detail-panel {
  grid-column: 1 / -1;
  border: 2px solid color-mix(in srgb, var(--brand-green) 58%, #ffffff);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.filter-detail-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #222;
  cursor: pointer;
  background: transparent;
}

.filter-detail-title {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 2px 12px;
  width: min(100%, 950px);
  box-sizing: border-box;
  padding: 0;
  color: #4a4a4a;
  text-align: left;
}

.filter-detail-title-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-green) 12%, #ffffff);
  color: var(--brand-green);
}

.filter-detail-title-icon i {
  font-size: 22px;
  line-height: 1;
}

.filter-detail-title-main {
  font-size: 18px;
  color: var(--brand-green);
  line-height: 1.25;
}

.filter-detail-title-note {
  display: block;
  margin-top: 0;
  color: #616161;
  font-weight: 400;
  line-height: 1.35;
}

.filter-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -6px;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #fff;
  background: var(--accent);
  color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.filter-detail-badge[hidden] {
  display: none;
}

.filter-detail-badge,
.value-slider-pill,
.slider-scale-label,
.price-box-label,
.price-inline-input,
.height-preset-value,
.price-line span:last-child,
.price-sub-line span:last-child,
.selection-summary-price-row span:last-child,
.selection-summary-price-total span:last-child,
.selection-summary-price-total {
  font-family: "Noto Sans JP", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.filter-detail-summary::-webkit-details-marker {
  display: none;
}

.filter-detail-toggle-label {
  position: static;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  min-width: 88px;
  padding: 0 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-green) 12%, #ffffff);
  border: 0;
  color: #0c8a41;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.filter-detail-summary:hover .filter-detail-toggle-label,
.filter-detail-summary:focus-visible .filter-detail-toggle-label,
.filter-detail-toggle-label:hover,
.filter-detail-toggle-label:focus-visible {
  background: color-mix(in srgb, var(--brand-green) 16%, #ffffff);
  color: #0c8a41;
}

.filter-detail-toggle-label span {
  display: inline;
}

.filter-detail-toggle-label i {
  font-size: 13px;
  color: #0c8a41;
  transition: transform 0.2s ease;
}

.filter-detail-panel[open] > .filter-detail-summary .filter-detail-toggle-label i {
  transform: rotate(180deg);
}

.filter-detail-summary::after {
  content: "";
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.filter-detail-panel[open] > .filter-detail-summary::after {
  transform: rotate(-90deg);
}

.filter-detail-summary::after,
.filter-detail-panel[open] > .filter-detail-summary::after {
  content: none;
  display: none;
}

@media (max-width: 980px) {
  .filter-detail-summary {
    padding: 10px 16px;
  }

  .filter-detail-title {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 2px 8px;
  }

  .filter-detail-title-icon {
    width: 44px;
    height: 44px;
  }

  .filter-detail-title-icon i {
    font-size: 22px;
  }

  .filter-detail-toggle-label {
    min-width: 74px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 7px;
  }
}

.filter-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  padding: 10px;
}

.filter-detail-grid > .filter-section {
  min-width: 0;
}

.preset-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-filter-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d8ddd9;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.preset-filter-button:hover,
.preset-filter-button:focus-visible {
  border-color: var(--accent);
}

.preset-filter-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.preset-filter-button.is-unavailable,
.option-chip.is-unavailable {
  border-color: #d7d7d7;
  background: #eeeeee;
  color: #999999;
  box-shadow: none;
  cursor: not-allowed;
}

.preset-filter-button.is-unavailable:hover,
.preset-filter-button.is-unavailable:focus-visible,
.option-chip.is-unavailable:hover,
.option-chip.is-unavailable:focus-visible {
  border-color: #d7d7d7;
  background: #eeeeee;
  color: #999999;
}

.floor-type-chip.is-unavailable .floor-type-chip-image {
  filter: grayscale(1);
  opacity: 0.42;
}

.floor-type-chip.is-unavailable .floor-type-chip-label {
  background: rgba(90, 90, 90, 0.74);
  color: #e5e5e5;
}

.floor-type-wide,
.dimensions-filter-section {
  grid-column: 1 / -1;
}

.filter-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
}

.filter-heading-icon {
  width: var(--filter-heading-icon-size, 2.35em);
  height: var(--filter-heading-icon-size, 2.35em);
  flex: 0 0 auto;
  object-fit: contain;
}

.filter-heading-icon-large {
  width: var(--filter-heading-icon-large-size, 2.75em);
  height: var(--filter-heading-icon-large-size, 2.75em);
}

.filter-heading-icon-dimension {
  width: var(--filter-heading-icon-dimension-size, 2.55em);
  height: var(--filter-heading-icon-dimension-size, 2.55em);
}

.filter-heading-icon-small {
  width: var(--filter-heading-icon-small-size, 2.2em);
  height: var(--filter-heading-icon-small-size, 2.2em);
}

.filter-heading-icon-floor {
  width: var(--filter-heading-icon-floor-size, 1.65em);
  height: var(--filter-heading-icon-floor-size, 1.65em);
}

.filter-heading-icon-xl {
  width: var(--filter-heading-icon-xl-size, 3.1em);
  height: var(--filter-heading-icon-xl-size, 3.1em);
}

.filter-icon-size-control {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  opacity: 0.28;
  transition: opacity 0.2s ease;
}

.filter-icon-size-control:hover,
.filter-icon-size-control:focus-within {
  opacity: 0.88;
}

.filter-icon-size-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.filter-icon-size-button:hover,
.filter-icon-size-button:focus-visible {
  border-color: #999;
  color: #222;
  outline: none;
}

.filter-section-collapsible {
  padding: 0;
  overflow: hidden;
}

.filter-section-collapsible > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
}

.filter-section-collapsible > summary::-webkit-details-marker {
  display: none;
}

.filter-section-collapsible > summary h3 {
  margin: 0;
}

.filter-section-collapsible > summary::after {
  content: "＜";
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.filter-section-collapsible[open] > summary::after {
  transform: rotate(-90deg);
}

.filter-section-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.dimensions-filter-section {
  background: #f9f9f9;
}

.dimensions-filter-section .filter-section-body {
  padding: 0;
}

.filter-sub-block {
  display: grid;
  gap: 4px;
}

.dimensions-filter-section .filter-sub-block {
  gap: 8px;
  padding: 10px;
  border: 1px solid #efefef;
  border-radius: 8px;
  background: #fff;
}

.filter-sub-label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

.option-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.option-chip-group > .value-slider-row {
  flex: 1 1 100%;
  width: 100%;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b6b6b6;
  border-radius: 8px;
  background: #f1f1f1;
  color: #444;
  padding: 7px 14px;
  min-width: 132px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.option-chip:hover {
  background: #ebebeb;
}

.option-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: inset 0 0 0 1px #ffffff66;
}

.floor-type-chip-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.floor-type-chip {
  position: relative;
  display: block;
  min-width: 0;
  height: 100%;
  min-height: 118px;
  padding: 0;
  overflow: hidden;
  border: 2px solid #dddddd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.floor-type-chip:hover {
  background: #fff;
  border-color: #cfcfcf;
}

.floor-type-chip.active {
  background: #fff;
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(213, 0, 0, 0.12);
}

.floor-type-chip-check {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.95));
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.2s, transform 0.2s;
}

.floor-type-chip.active .floor-type-chip-check {
  opacity: 1;
  transform: scale(1);
}

.floor-type-chip.active .floor-type-chip-label {
  background: var(--accent);
  color: #fff;
}

.floor-type-chip-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f7f7f7;
}

.floor-type-chip-label {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.price-slider-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 10px;
}

.price-wide .price-slider-row {
  grid-template-columns: 120px minmax(0, 1fr) 120px;
}

.price-manual-row {
  margin-top: 8px;
}

.price-box-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  background: #f4f4f4;
  color: #555;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.price-box-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
}

.price-inline-input {
  width: 86px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: #333;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.currency-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.currency-prefix {
  color: #666;
  font-size: 13px;
  font-weight: 600;
}

.number-input-currency {
  text-align: right;
}

.double-range {
  position: relative;
  height: 34px;
}

.range-track,
.range-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 999px;
}

.range-track {
  width: 100%;
  background: #e5ddd8;
}

.range-fill {
  background: linear-gradient(90deg, #be2b2b 0%, #d84848 100%);
  left: 0;
  right: 0;
}

.range-input {
  position: absolute;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fffdfb;
  border: 2px solid #c53b3b;
  box-shadow: 0 2px 6px rgba(103, 31, 31, 0.2);
  cursor: pointer;
}

.range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fffdfb;
  border: 2px solid #c53b3b;
  box-shadow: 0 2px 6px rgba(103, 31, 31, 0.2);
  cursor: pointer;
}

.range-input::-webkit-slider-runnable-track {
  background: transparent;
}

.range-input::-moz-range-track {
  background: transparent;
}

.value-slider-row {
  display: grid;
  gap: 10px;
}

.value-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.value-slider-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 96px;
  padding: 4px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #f9f9f9;
  color: #5d514a;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.value-slider-row.is-adjusting .value-slider-pill {
  background: #b93535;
  border-color: #b93535;
  color: #fff;
}

.slider-scale {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: start;
  gap: 8px;
}

.slider-scale-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.slider-scale-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d8c9c0;
}

.slider-scale-label {
  color: #82756d;
  font-size: 11px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.value-slider-row-price {
  width: 100%;
}

.filter-panel .result-count {
  display: none;
}

.workflow-panel {
  margin: 14px 0 18px;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  padding: 10px;
  background: #fbfbfb;
  position: static;
  width: 100%;
  margin-left: 0;
}

body.step4-active .workflow-panel {
  position: static;
  top: auto;
  width: 100%;
  margin-left: 0;
}

.workflow-floating-bar {
  position: fixed;
  top: var(--workflow-floating-top, 14px);
  right: 0;
  transform: none;
  z-index: 85;
  width: min(540px, calc(100vw - 12px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 26px;
  border: 1px solid var(--accent);
  border-right: 0;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
  min-height: 58px;
  box-shadow: 0 10px 22px var(--accent-floating-shadow), 0 4px 14px rgba(22, 35, 55, 0.08);
}

.workflow-floating-back {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.workflow-floating-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.workflow-floating-step {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  white-space: normal;
  word-break: keep-all;
}

.workflow-floating-summary {
  text-align: left;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.2;
  width: 100%;
}

.workflow-floating-total {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.workflow-floating-detail-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.workflow-floating-detail-toggle i {
  transition: transform 0.16s ease;
}

.workflow-floating-selection-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -9px;
  left: -9px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #d00b26;
  color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(98, 0, 12, 0.28);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.workflow-floating-selection-badge[hidden] {
  display: none;
}

.workflow-floating-detail-toggle.is-open i {
  transform: rotate(90deg);
}

.workflow-panel > #selectionSummary {
  display: none !important;
}

.workflow-floating-details {
  position: fixed;
  top: var(--workflow-floating-details-top, 82px);
  right: 0;
  z-index: 84;
  width: min(960px, calc(100vw - 12px));
  max-height: calc(100vh - var(--workflow-floating-details-top, 82px) - 14px);
  overflow-y: auto;
  margin-bottom: 0;
  box-shadow: 0 8px 20px rgba(22, 35, 55, 0.08);
}

.workflow-floating-next {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  width: 180px;
  flex: 0 0 180px;
  text-align: center;
}

.workflow-floating-back {
  width: 88px;
  flex: 0 0 88px;
  text-align: center;
}

.workflow-floating-back.is-inactive,
.workflow-floating-next.is-inactive {
  visibility: hidden;
  pointer-events: none;
}

.workflow-floating-next:hover {
  background: #980000;
  border-color: #980000;
}

.workflow-floating-next.is-outline {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

.workflow-floating-next.is-outline:hover {
  background: #f6fff9;
  border-color: var(--accent);
}

.workflow-steps {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  justify-content: center;
}

.step-chip {
  border: 1px solid #d5d5d5;
  border-radius: 0;
  background: #ffffff;
  color: #111;
  padding: 6px 10px 7px 14px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 154px;
  min-height: 66px;
  max-width: 170px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.step-chip-title {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.step-chip-label {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
  word-break: keep-all;
}

.step-chip-value {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-chip.active .step-chip-value {
  color: #ffe7e7;
}

.step-chip.active .step-chip-title,
.step-chip.active .step-chip-label {
  color: #fff;
}

.step-chip.completed {
  background: #8a8a8a;
  border-color: #8a8a8a;
  color: #fff;
}

.step-chip.completed .step-chip-title,
.step-chip.completed .step-chip-label,
.step-chip.completed .step-chip-value {
  color: #fff;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.floating-next-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.floating-next-button.is-outline {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

.step-message {
  margin: 0 0 8px;
  color: #444;
  font-size: 12px;
}

.selection-info {
  border: 1px dashed #c4c4c4;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.workflow-panel .selection-info {
  display: block;
}

.selected-base-info-caption {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  margin-bottom: 6px;
}

.selected-base-info-empty {
  font-size: 13px;
  color: #666;
}

.selected-base-info-layout.selected-base-info-placeholder {
  min-height: 102px;
  justify-content: center;
  border-style: dashed;
  border-color: #bcbcbc;
  background: transparent;
}

.selected-base-info-placeholder .selected-base-info-empty {
  font-size: 14px;
  font-weight: 700;
  color: #777;
  text-align: center;
}

.selected-base-info-inline-note {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 340px;
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  white-space: normal;
}

.selected-base-info-inline-note-dashed {
  border: 1px dashed #bcbcbc;
  border-radius: 10px;
  padding: 8px 10px;
  background: transparent;
}

.selected-base-info-list {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.selected-base-info-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 300px;
  min-width: 300px;
  min-height: 118px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
}

.selected-base-info-image {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  background: #fafafa;
}

.selected-base-info-image .comp-product-image,
.selected-base-info-image img,
.selected-base-info-image svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.selected-base-info-main {
  min-height: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.selected-base-info-main-option {
  gap: 7px;
}

.selected-base-info-model {
  font-size: 18px;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.2;
}

.selected-base-info-badges {
  gap: 6px;
  flex-wrap: wrap;
}

.selected-base-info-subspec {
  font-size: 12px;
  color: #8d8d8d;
  line-height: 1.35;
}

.step-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0;
}

.step3-top-actions {
  margin: 10px 0;
}

.workflow-panel .step3-top-actions {
  justify-content: space-between;
}

.workflow-panel .selection-summary {
  margin-bottom: 8px;
  padding: 8px 10px;
}

.workflow-panel .selection-summary-content {
  gap: 8px;
  padding: 6px 2px 2px;
}

.workflow-panel .sel-label {
  min-width: 64px;
  padding: 2px 8px;
  font-size: 11px;
}

.workflow-panel .sel-row,
.workflow-panel .sel-value {
  font-size: 12px;
}

.primary-step-button,
.secondary-step-button,
.select-base-button {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}

.workflow-panel .secondary-step-button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
  border-color: #bdbdbd;
  background: #fafafa;
}

.primary-step-button,
.select-base-button {
  background: #f0f0f0;
  color: #333;
  border: 2px solid #ddd;
}

.primary-step-button:disabled {
  background: #e0e0e0;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
}

.secondary-step-button {
  background: #fff;
  border: 1px solid #999;
  color: #333;
}

.select-base-button {
  min-width: 92px;
  transition: all 0.2s ease;
}

.select-base-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--accent-shadow-strong);
}

.other-option-qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 8px;
  width: 100%;
}

.other-option-qty-label {
  font-size: 12px;
  color: #555;
  font-weight: 700;
  text-align: center;
  flex: 0 0 auto;
}

.other-option-qty-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d8d8;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}

.other-option-qty-button {
  width: 34px;
  min-height: 30px;
  border: 0;
  border-right: 1px solid #e5e5e5;
  background: #f7f7f7;
  color: #333;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.other-option-qty-button:last-child {
  border-right: 0;
  border-left: 1px solid #e5e5e5;
}

.other-option-qty-button:disabled {
  cursor: not-allowed;
  color: #aaa;
}

.other-option-qty-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1;
  padding: 3px 6px;
}

.other-option-qty-control.is-disabled {
  opacity: 0.5;
}

.option-price-box {
  align-items: flex-start;
}

.price-value-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.price-subline {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  line-height: 1.2;
}


.total-summary {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
}

.text-input,
.select-input,
.number-input {
  width: 100%;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 13px;
  background: #fff;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.slider-source-hidden {
  display: none;
}

.clearable-input {
  position: relative;
}

.clearable-input .number-input {
  padding-right: 30px;
}

.input-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #bbb;
  background: #fafafa;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: none;
}

.clearable-input.has-value .input-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-count {
  margin: 14px 0 0;
  font-size: 13px;
  color: #444;
}

.result-panel {
  padding: 12px;
}

.hidden-panel {
  display: none !important;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.result-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.option-selection-note {
  color: #777;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.result-toolbar p {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #ffffff);
  background: color-mix(in srgb, var(--accent) 10%, #ffffff);
  color: #1f4e34;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.result-toolbar #resultCount {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

@media (max-width: 768px) {
  .result-toolbar p {
    padding: 3px 9px;
  }

  .result-toolbar #resultCount {
    font-size: 20px;
  }
}

.display-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-button {
  border: 1px solid #a4a4a4;
  border-radius: 8px;
  padding: 8px 12px;
  background: #f0f0f0;
  color: #333;
  cursor: pointer;
  font-size: 13px;
}

.mode-button.active {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.sort-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.sort-box label {
  font-size: 12px;
  color: #555;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1650px;
}

.result-table th,
.result-table td {
  border-bottom: 1px solid #ececec;
  padding: 8px 10px;
  white-space: nowrap;
}

.result-table th {
  background: #f8f8f8;
  color: #555;
  font-size: 12px;
  text-align: left;
}

.result-table td {
  font-size: 13px;
}

.result-table td.num,
.result-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.result-table th.img-col,
.result-table td.img-cell {
  width: 280px;
  min-width: 280px;
  padding: 8px;
  text-align: center;
}

.result-table td.img-cell .table-image-frame {
  width: 250px;
  height: 180px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.result-table td.img-cell svg,
.result-table td.img-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.model-cell {
  font-weight: 700;
  color: #111;
}

.price-cell {
  font-weight: 700;
  color: var(--accent);
}

.steps-cell {
  text-align: center;
}

.steps-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f9f9f9;
  border: 1px solid #e2e2e2;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.group-heading-row td {
  background: linear-gradient(90deg, #fff3f3 0%, #f8f8f8 100%);
  color: #222;
  font-weight: 800;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid #d9d9d9;
  padding-top: 12px;
  padding-bottom: 12px;
}

.group-heading-title {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.empty-row td {
  text-align: center;
  color: #777;
  padding: 24px 12px;
}

@media (max-width: 1080px) {
  :root {
    --page-gutter: 20px;
  }

  .workflow-floating-step {
    font-size: 14px;
  }

  .workflow-floating-summary {
    font-size: 10px;
  }

  .layout.layout-with-left-filter {
    display: block;
  }

  .layout.layout-with-left-filter .workflow-panel,
  .layout.layout-with-left-filter .filter-panel,
  .layout.layout-with-left-filter .result-panel {
    grid-column: auto;
  }

  .step-chip {
    min-width: 120px;
    min-height: 60px;
    padding: 5px 9px 6px 12px;
    gap: 3px;
  }

  .step-chip-label {
    font-size: 12px;
  }

  .workflow-steps {
    justify-content: flex-start;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 16px;
  }

  .workflow-steps {
    gap: 0;
    margin-bottom: 4px;
    padding-bottom: 0;
  }

  .floor-type-chip-group {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 8px;
  }

  .floor-type-chip {
    min-height: 96px;
  }

  .selected-base-info-list {
    justify-content: flex-start;
  }

  .selected-base-info-layout {
    flex-basis: 270px;
    min-width: 270px;
    min-height: 108px;
    gap: 10px;
    padding: 12px;
  }

  .selected-base-info-image {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .selected-base-info-model {
    font-size: 18px;
  }

  .selected-base-info-subspec {
    font-size: 13px;
  }

  .workflow-floating-bar {
    right: 0;
    width: calc(100vw - 8px);
    gap: 6px;
    padding: 8px 10px 8px 22px;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
    min-height: 52px;
  }

  .workflow-floating-details {
    top: var(--workflow-floating-details-top, 74px);
    width: calc(100vw - 8px);
    max-height: calc(100vh - var(--workflow-floating-details-top, 74px) - 10px);
  }

  .workflow-floating-main {
    gap: 2px;
  }

  .workflow-floating-step {
    font-size: 12px;
  }

  .workflow-floating-summary {
    display: block;
    font-size: 10px;
  }

  .workflow-floating-back,
  .workflow-floating-next,
  .workflow-floating-detail-toggle {
    padding: 6px 8px;
    font-size: 11px;
  }

  .workflow-floating-selection-badge {
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    padding: 0;
    font-size: 10px;
  }

  .workflow-floating-next {
    width: 140px;
    flex-basis: 140px;
  }

  .workflow-floating-back {
    width: 72px;
    flex-basis: 72px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .price-slider-row,
  .price-wide .price-slider-row {
    grid-template-columns: 1fr;
  }

  .filter-section.price-wide {
    grid-column: auto;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .workflow-floating-bar {
    width: min(640px, calc(100vw - 32px));
  }
}

@media (max-width: 500px) {
  :root {
    --page-gutter: 12px;
  }
}

.handrail-table {
    min-width: 1100px;
}

.total-line {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e0e0e0;
  font-size: 15px;
  color: #111;
}

/* ── ステップ3 一覧切替トグル ── */
.step3-list-toggle {
  display: flex;
  gap: 8px;
  margin: 10px 0 6px;
}

.step4-details {
  margin-top: 8px;
}

.step4-details-body {
  padding: 0;
}

.result-list-details {
  margin-top: 8px;
}

.result-list-details > .result-toolbar {
  margin-top: 8px;
}

.result-list-summary {
  display: none;
}

.result-list-details.step4-collapsible {
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px 8px;
}

.result-list-details.step4-collapsible > .result-list-summary {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 10px 2px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.result-list-details.step4-collapsible > .result-list-summary::-webkit-details-marker {
  display: none;
}

.result-list-details.step4-collapsible > .result-list-summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  margin-right: 6px;
  color: var(--accent);
}

.result-list-details.step4-collapsible[open] > .result-list-summary::before {
  content: "-";
}

.list-toggle-button {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  background: #f5f5f5;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.list-toggle-button:hover:not(.active) {
  background: #ebebeb;
  border-color: #bbb;
}

.list-toggle-button.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* ── 選択状態サマリー（ステップ直下） ── */
.selection-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #f7f7f7;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(22, 35, 55, 0.05);
}

.selection-summary-content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 4px 4px;
  font-size: 13px;
  color: #444;
}

.selection-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
}

.selection-summary-card-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.selected-summary-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  flex: 0 0 300px;
  min-width: 300px;
  min-height: 150px;
  border: 1px solid #dddddd;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.selection-remove-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #777;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.selection-remove-button:hover,
.selection-remove-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.selected-summary-card-label {
  padding-right: 28px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.selected-summary-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-summary-card .selected-base-info-image {
  width: 86px;
  height: 86px;
  flex-basis: 86px;
}

.selected-summary-card .selected-base-info-main {
  gap: 6px;
}

.selected-summary-card .selected-base-info-model {
  font-size: 18px;
}

.selected-summary-card .selected-base-info-subspec {
  font-size: 12px;
  line-height: 1.35;
}

.selected-summary-card-empty {
  border-style: dashed;
  border-color: #bcbcbc;
  background: transparent;
}

.selected-summary-card-empty-text {
  font-size: 14px;
  font-weight: 700;
  color: #777;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
}

.selection-summary-content.is-empty {
  gap: 8px;
}

.selection-summary-helper {
  width: 100%;
  padding: 2px 0 6px;
  font-size: 12px;
  color: #666;
}

.selection-summary-content span {
  white-space: nowrap;
}

.sel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.sel-row-with-card {
  align-items: flex-start;
}

.sel-label {
  flex-shrink: 0;
  min-width: 80px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.sel-value {
  color: #222;
  font-weight: 600;
}

.sel-value-with-card {
  flex: 1;
  min-width: 0;
}

.selection-summary .selected-base-info-list-in-summary {
  overflow-x: auto;
  padding-bottom: 0;
}

.selection-summary .selected-base-info-layout {
  min-height: 118px;
}

.selection-summary .selected-base-info-placeholder {
  min-height: 118px;
}

.sel-price {
  margin-left: 6px;
  color: var(--accent);
  font-weight: 700;
}

.option-kind-note {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

/* ── 比較マトリクス表 ── */
.comparison-wrap { overflow-x: auto; margin-top: 8px; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.comparison-table th,
.comparison-table td { border: 1px solid #e0e0e0; padding: 8px 10px; text-align: center; }
.comp-corner { background: #f4f4f4; font-weight: 700; text-align: left; min-width: 140px; }
.comp-opt-col { background: #f4f4f4; font-weight: 700; min-width: 120px; }
.comp-base-cell { background: #fafafa; text-align: left; }
.comp-model { display: block; font-weight: 700; color: #222; }
.comp-base-price { display: block; font-size: 11px; color: #777; margin-top: 2px; }
.comp-base-price-value { font-size: 14px; font-weight: 700; }
.comp-total-cell { vertical-align: middle; }
.comp-total-price { display: block; font-weight: 700; font-size: 14px; color: #222; }
.comp-breakdown { display: block; font-size: 11px; color: #888; margin-top: 2px; }
.comp-best { background: #fff5f5; }
.comp-best .comp-total-price { color: var(--accent); }
.comp-best-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.comp-legend { font-size: 12px; color: #666; margin-bottom: 8px; }
.comp-empty { color: #888; font-size: 13px; }
.comp-section-title {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.compare-focus-heading {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 5px solid var(--price-red);
  background: #fff4f4;
  color: #8f0000;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.comp-image-cell {
  padding: 10px;
  background: #fcfcfc;
}

.comp-product-image {
  width: 220px;
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.comp-spec-table .comp-spec-label {
  background: #fafafa;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.compare-pick-button {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px var(--accent-shadow);
}

.compare-pick-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.comp-cta-wrap {
  margin-top: 14px;
  padding: 14px 12px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  row-gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.comp-cta-primary,
.comp-cta-secondary {
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}


.comp-cta-primary,
.comp-cta-secondary,
.confirm-cta-wrap .cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
}

.comp-cta-primary .cta-icon,
.comp-cta-secondary .cta-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  object-fit: contain;
}
.comp-cta-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.confirm-cta-wrap .comp-cta-primary[data-confirm-pdf-download] {
  background: var(--accent);
  border-color: var(--accent);
}

.comp-cta-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #999;
}

.comp-cta-link {
  width: 100%;
  margin-top: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}

.comp-cta-link:hover {
  color: #555;
  text-decoration: underline;
}

/* 選択済み本体行のハイライト */
.row-selected td { background: #fff8f8; }

/* シンプル確認カード（1つの商品用） */
.simple-confirmation {
  background: #fafafa;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.conf-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}
.conf-item:last-of-type {
  border-bottom: none;
}
.conf-label {
  font-weight: 600;
  color: #666;
  font-size: 13px;
  min-width: 120px;
}
.conf-value {
  flex: 1;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: #222;
}
.conf-price {
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  color: #222;
  min-width: 100px;
}
.conf-divider {
  text-align: center;
  padding: 4px 0;
  color: #999;
  font-size: 16px;
  font-weight: 300;
}
.conf-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  margin-top: 8px;
  border-top: 2px solid #ddd;
  background: #fff;
  padding: 12px;
  border-radius: 6px;
}
.conf-total-label {
  font-weight: 700;
  font-size: 14px;
  color: #222;
}
.conf-total-value {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

/* スペック情報表示 */
.spec-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.spec-container {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 0;
}
.spec-image-wrap {
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}
.spec-image-wrap .comp-product-image {
  width: 100%;
  max-width: 220px;
  height: 140px;
}
.comp-inline-image-wrap {
  margin-bottom: 8px;
  text-align: center;
}
.comp-inline-image-wrap .comp-product-image {
  width: 130px;
  height: 86px;
}
.spec-block-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
.comparison-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-spec-group + .option-spec-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}
.option-spec-group-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}
.option-spec-table + .option-spec-table {
  margin-top: 12px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #efefef;
  font-size: 13px;
}
.spec-row:last-child {
  border-bottom: none;
}
.spec-label {
  font-weight: 600;
  color: #666;
  flex: 0 0 auto;
  min-width: 110px;
}
.spec-value {
  text-align: right;
  color: #222;
  flex: 1;
}

/* 内容確認（cards/index 共通） */
.confirm-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
  gap: clamp(10px, 1.4vw, 14px);
  align-items: start;
}

.confirm-main,
.confirm-side {
  min-width: 0;
}


.model-meta-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.model-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d2d2d2;
  border-radius: 7px;
  background: #f7f7f7;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.confirm-layout-single .confirm-spec-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.confirm-layout-single .confirm-spec-main {
  padding: clamp(12px, 1.6vw, 18px) clamp(12px, 1.6vw, 18px) clamp(12px, 1.4vw, 16px);
  border-width: 1px;
}

.confirm-layout-single .base-main-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.confirm-layout-single .base-main-image {
  margin: 0;
  min-height: clamp(210px, 26vw, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-layout-single .base-main-image .comp-product-image {
  width: min(100%, 320px);
  max-width: 320px;
  height: 220px;
  transform: translateX(10px);
}

.confirm-layout-single .base-main-specs {
  min-width: 0;
}

.confirm-layout-single .confirm-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.confirm-layout-single .confirm-spec-sub {
  width: auto;
  min-width: 0;
}

.confirm-layout-single .confirm-option-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
}

.confirm-layout-single .confirm-option-card .confirm-option-image {
  margin: 0 0 8px;
}

.confirm-layout-single .confirm-option-card .confirm-option-specs {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.confirm-layout-single .confirm-option-card .confirm-option-specs .spec-row {
  min-height: 34px;
}

.confirm-layout-single .confirm-side-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}

.confirm-layout-single .confirm-spec-main .spec-model-name {
  font-size: 24px;
}

.confirm-layout-single .confirm-spec-main .spec-row {
  font-size: 14px;
}

.confirm-layout-single .confirm-option-main {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.confirm-layout-single .confirm-option-image {
  margin: 0;
}

.confirm-layout-single .confirm-option-image .comp-product-image {
  width: 100%;
  height: 180px;
}

.confirm-layout-single .confirm-option-specs {
  min-width: 0;
}

.confirm-layout-single .other-options-spec {
  max-width: none;
}

@media (max-width: 900px) {
  .confirm-layout-single .base-main-layout {
    grid-template-columns: 1fr;
  }

  .confirm-layout-single .confirm-option-grid {
    grid-template-columns: 1fr;
  }

  .confirm-layout-single .confirm-spec-sub {
    width: auto;
  }

}

.option-more-details {
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.option-more-summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #f7f7f7;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.option-more-summary::-webkit-details-marker {
  display: none;
}

.option-more-summary::before {
  content: "＋";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cfcfcf;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

.option-more-details[open] .option-more-summary::before {
  content: "－";
}

.option-more-summary::after {
  content: "タップで展開";
  font-size: 11px;
  font-weight: 600;
  color: #666;
}

.option-more-summary:hover {
  background: #fff;
  border-color: #c7c7c7;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.option-more-details[open] .option-more-summary {
  background: #fff3f3;
  border-color: color-mix(in srgb, var(--accent) 30%, #ffffff);
  color: #7f0000;
}

.option-more-details[open] .option-more-summary::after {
  content: "タップで閉じる";
  color: #7f0000;
}

.option-more-summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, #ffffff);
  outline-offset: 2px;
}

.option-more-body {
  padding: 0;
}

.confirm-spec-grid {
  grid-template-columns: repeat(auto-fit, minmax(286px, 320px));
  justify-content: start;
  gap: 12px;
  margin-bottom: 14px;
}

.confirm-spec-grid > .spec-container {
  width: 100%;
}

.spec-model-name {
  margin: 2px 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

.confirm-price-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.confirm-side-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #222;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #222;
}

.price-line span:last-child {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-plus {
  text-align: center;
  color: #999;
  font-size: 16px;
  line-height: 1;
  padding: 2px 0;
}

.price-sub-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #555;
  padding: 3px 0 3px 10px;
}

.price-sub-line span:last-child {
  font-weight: 600;
  color: #333;
  font-variant-numeric: tabular-nums;
}

.price-line.price-item {
  border-bottom: 1px solid #e9e9e9;
}

.price-line.price-meta {
  font-size: 13px;
  color: #666;
  padding: 5px 0;
}

.price-line.price-meta span:last-child {
  font-weight: 600;
}

.total-separator {
  border-top: 1px solid #d5d5d5;
  margin: 10px 0 8px;
}

.total-separator-strong {
  border-top-color: #999;
  border-top-width: 1px;
  margin-top: 8px;
}

.price-line.total-main {
  padding-top: 8px;
  font-size: 15px;
  font-weight: 700;
}

.price-line.total-main span:last-child {
  font-size: 24px;
  color: #d00b26;
}

.confirm-cta-wrap {
  width: min(96%, 1040px);
  margin: 26px auto 24px;
  padding: 10px;
  border: 0;
  gap: 12px;
}

.confirm-cta-wrap .comp-cta-primary,
.confirm-cta-wrap .comp-cta-secondary {
  width: min(360px, calc(50% - 10px));
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 9px 14px;
}

.confirm-cta-wrap .cta-main {
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.confirm-cta-wrap .cta-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.78;
}

@media (max-width: 1200px) {
  .confirm-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  }

  .confirm-cta-wrap {
    width: min(90%, 980px);
  }
}

@media (max-width: 1080px) {
  .confirm-layout {
    grid-template-columns: 1fr;
  }

  .confirm-compact-layout {
    grid-template-columns: 1fr;
  }

  .compact-base-main {
    grid-template-columns: 1fr;
  }

  .confirm-layout-single .confirm-spec-grid {
    grid-template-columns: 1fr;
  }

  .confirm-spec-grid {
    grid-template-columns: repeat(auto-fit, minmax(286px, 320px));
    justify-content: start;
  }
}

@media (max-width: 1400px) {
  .confirm-compact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.88fr);
    grid-template-areas:
      "base price"
      "options price";
  }

  .compact-title {
    font-size: 16px;
  }

}

@media (max-width: 1180px) {
  .confirm-compact-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "base"
      "options"
      "price";
  }

  .compact-title {
    font-size: 16px;
  }

}

@media (max-width: 900px) {
  .confirm-spec-grid {
    grid-template-columns: repeat(auto-fit, minmax(286px, 320px));
    justify-content: start;
  }

  .confirm-cta-wrap {
    width: 100%;
  }

  .confirm-cta-wrap .comp-cta-primary,
  .confirm-cta-wrap .comp-cta-secondary {
    width: 100%;
  }

  .price-line.total-main span:last-child {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .confirm-spec-grid {
    grid-template-columns: 1fr;
  }

  .confirm-layout-single .confirm-spec-main .spec-image-wrap {
    min-height: 230px;
  }

  .confirm-layout-single .confirm-spec-main .spec-image-wrap .comp-product-image {
    height: 180px;
  }
}

/* 手すりカード */
.handrail-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.handrail-card.selected-base {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.handrail-card-image {
  flex: 0 0 140px;
  border-radius: 6px;
  overflow: hidden;
}
.handrail-card-image svg { display: block; width: 100%; }
.handrail-card-body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.handrail-card-label { font-size: 15px; font-weight: 700; color: #222; margin: 0; }

.inquiry-page {
  width: min(100%, 1120px);
  margin: 0 auto;
  color: #333;
  font-family: "游ゴシック Medium", "Yu Gothic Medium", 游ゴシック, "Yu Gothic", 游ゴシック体, YuGothic, "Hiragino Kaku Gothic ProN", HiraKakuProN-W3, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.inquiry-heading {
  padding: 36px 0 38px;
}

.inquiry-heading p {
  margin: 28px 0 0;
  color: #333;
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0;
}

.inquiry-heading .inquiry-heading-intro {
  margin-top: 0;
}

.inquiry-title {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}

.required-mark,
.inquiry-privacy-link {
  color: #d6002f;
}

.inquiry-note-strong {
  margin-top: 24px;
  font-weight: 800;
  line-height: 1.55;
}

.inquiry-form {
  border-top: 1px solid #d8d8d8;
  background: #fff;
}

.inquiry-form.is-question .inquiry-quote-row {
  display: none;
}

.inquiry-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 78px;
  border-bottom: 1px solid #d8d8d8;
}

.inquiry-label {
  padding: 18px 40px;
  background: #f1f2f2;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.inquiry-control {
  padding: 18px 40px;
  min-width: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.inquiry-input,
.inquiry-select,
.inquiry-textarea {
  width: min(100%, 420px);
  min-height: 38px;
  border: 1px solid #bdbdc3;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font: inherit;
  padding: 7px 10px;
}

.inquiry-select {
  width: 200px;
}

.inquiry-type-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inquiry-type-button {
  display: inline-flex;
  cursor: pointer;
}

.inquiry-type-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.inquiry-type-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid #c8c8ce;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-weight: 800;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.inquiry-type-button input:checked + span {
  border-color: #d6002f;
  background: #d6002f;
  color: #fff;
  box-shadow: 0 3px 10px rgba(214, 0, 47, 0.18);
}

.inquiry-type-button input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, #d6002f 35%, #ffffff);
  outline-offset: 2px;
}

.inquiry-textarea {
  width: min(100%, 660px);
  min-height: 92px;
  resize: vertical;
}

.inquiry-textarea-large {
  min-height: 96px;
}

.inquiry-file-note {
  margin: 0 0 5px;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.inquiry-file-upload {
  max-width: 100%;
}

.inquiry-file-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 194px;
  height: 38.67px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.inquiry-file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 38.67px;
}

.inquiry-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 194px;
  min-height: 38.67px;
  padding: 8px 60px 8px 10px;
  border: 1px solid #bdbdc3;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  position: relative;
  pointer-events: none;
}

.inquiry-file-picker:focus-within .inquiry-file-button {
  border-color: #9aa5b1;
}

.inquiry-file-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #b8b8be;
  font-size: 20px;
  line-height: 1;
}

.inquiry-file-status {
  flex: 0 1 auto;
  max-width: calc(100% - 200px);
  color: #aaa;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-file-status.is-selected {
  color: #555;
}

.inquiry-file-picker[hidden] {
  display: none;
}

.inquiry-file-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding-top: 14px;
}

.inquiry-file-preview[hidden] {
  display: none;
}

.inquiry-file-preview-visual {
  display: flex;
  justify-content: center;
  width: min(100%, 440px);
}

.inquiry-file-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 76px;
  color: #777;
}

.inquiry-file-preview-icon i {
  font-size: 64px;
}

.inquiry-file-preview-icon[data-file-type="PDF"] {
  color: #f3160d;
}

.inquiry-file-preview-icon[data-file-type="XLS"] {
  color: #007d3c;
}

.inquiry-file-preview-icon[data-file-type="DOC"] {
  color: #1f66c1;
}

.inquiry-file-preview-icon[data-file-type="PPT"] {
  color: #d54d1f;
}

.inquiry-file-preview-image {
  display: block;
  width: auto;
  max-width: min(240px, 100%);
  max-height: 210px;
  object-fit: contain;
}

.inquiry-file-preview-name {
  margin: 0;
  color: #222;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.inquiry-file-remove {
  width: 41.61px;
  height: 24.21px;
  min-height: 0;
  padding: 1px 6px;
  border: 1px solid #8b8b8b;
  border-radius: 0;
  background: #f8f8f8;
  color: #000;
  font: inherit;
  font-size: 13.3px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.inquiry-file-remove:hover {
  background: #ededed;
}

.inquiry-help {
  margin: 0;
  padding: 5px 0 0;
  color: #444;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.inquiry-confirm-label,
.inquiry-small-label {
  display: block;
  margin: 11px 0 5px;
  color: #333;
  font-size: 16px;
}

.inquiry-confirm-label {
  margin: 0;
  padding: 5px 0 0;
  color: #444;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.inquiry-at {
  display: inline-block;
  margin: 0 5px;
}

.inquiry-model-list {
  display: grid;
  gap: 8px;
  width: min(100%, 660px);
}

.inquiry-model-item {
  border: 1px solid #d9d9df;
  border-radius: 6px;
  background: #fafafa;
  padding: 10px 12px;
}

.inquiry-model-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inquiry-model-category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eeeeee;
  color: #333;
  font-size: 12px;
  font-weight: 700;
}

.inquiry-model-detail {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: #555;
  font-size: 12px;
}

.inquiry-model-empty {
  margin: 0;
  color: #d6002f;
  font-weight: 700;
}

.inquiry-zip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inquiry-zip-row .inquiry-input {
  width: 124px;
}

.inquiry-address-button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: #f2f2f5;
  color: #333;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

.inquiry-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.inquiry-input-example {
  margin: 0;
  padding: 5px 0 0;
  color: #444;
  font-size: 12px;
  line-height: 1.5;
}

.inquiry-error {
  margin: 0;
  width: 100%;
  min-height: 0;
  background: transparent;
  color: #d3003b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 5px 0 0;
}

.inquiry-row.is-error .inquiry-input,
.inquiry-row.is-error .inquiry-select,
.inquiry-row.is-error .inquiry-textarea {
  border-color: #d8aeb8;
}

.inquiry-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 48px 20px 24px;
}

.inquiry-reset-button,
.inquiry-submit-button {
  min-width: 300px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.inquiry-reset-button {
  background: #efeff2;
  color: #222;
}

.inquiry-submit-button {
  background: #d6002f;
  color: #fff;
}

.inquiry-back-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 12px;
  cursor: pointer;
}

.inquiry-back-button:hover {
  text-decoration: underline;
}

.inquiry-form.is-confirm-ready::after {
  content: "お問い合わせを受け付けました。";
  display: block;
  margin: 0 auto 28px;
  width: fit-content;
  max-width: calc(100% - 40px);
  border: 1px solid #d6002f;
  border-radius: 6px;
  background: #fff7f9;
  color: #d6002f;
  font-weight: 700;
  padding: 10px 14px;
}

.inquiry-submit-status {
  margin: 28px auto 0;
  width: fit-content;
  max-width: calc(100% - 40px);
  border: 1px solid #6fab75;
  border-radius: 6px;
  background: #f5fff6;
  color: #1d6b2a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  padding: 10px 14px;
}

.inquiry-submit-status.is-error {
  border-color: #d6002f;
  background: #fff7f9;
  color: #d6002f;
}

.inquiry-sent-page {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 72px 20px;
  box-sizing: border-box;
}

.inquiry-sent-content {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.inquiry-sent-message {
  margin: 0;
  color: #111827;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.inquiry-sent-receipt {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.7;
}

.inquiry-sent-receipt strong {
  font-size: 20px;
}

.inquiry-sent-close-button {
  min-width: min(320px, 100%);
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: #d6003d;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.inquiry-confirm-page {
  padding-top: 34px;
}

.inquiry-confirm-heading {
  padding: 42px 0 90px;
}

.inquiry-confirm-title {
  margin-bottom: 28px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
}

.inquiry-confirm-heading p {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.75;
}

.inquiry-confirm-table {
  border-top: 1px solid #d6d6d8;
  background: #fff;
}

.inquiry-confirm-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border-bottom: 1px solid #d6d6d8;
}

.inquiry-confirm-row-label {
  display: flex;
  align-items: center;
  padding: 18px 40px 20px;
  background: #f1f1f3;
  color: #111827;
  font-size: 16px;
  line-height: 1.55;
}

.inquiry-confirm-row-value {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 18px 0 20px 40px;
  box-sizing: border-box;
  color: #111827;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.inquiry-confirm-row.is-empty .inquiry-confirm-row-label,
.inquiry-confirm-row.is-empty .inquiry-confirm-row-value {
  min-height: 60.67px;
}

.inquiry-confirm-row.is-one-line .inquiry-confirm-row-label,
.inquiry-confirm-row.is-one-line .inquiry-confirm-row-value {
  min-height: 62.67px;
}

.inquiry-confirm-row.is-two-lines .inquiry-confirm-row-label,
.inquiry-confirm-row.is-two-lines .inquiry-confirm-row-value {
  min-height: 91.67px;
}

.inquiry-confirm-row.is-two-lines .inquiry-confirm-row-value {
  display: block;
}

.inquiry-confirm-actions {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(240px, 360px);
  justify-content: center;
  gap: 22px;
  padding: 58px 20px 20px;
}

.inquiry-confirm-back-button,
.inquiry-confirm-send-button {
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.inquiry-confirm-back-button {
  background: #f0f0f2;
  color: #222;
}

.inquiry-confirm-send-button {
  background: #d6003d;
  color: #fff;
}

@media (max-width: 760px) {
  .inquiry-title {
    font-size: 20px;
  }

  .inquiry-row {
    grid-template-columns: 1fr;
  }

  .inquiry-label,
  .inquiry-control {
    padding: 14px 16px;
  }

  .inquiry-file-picker {
    width: 100%;
    gap: 8px;
  }

  .inquiry-file-button {
    width: min(194px, 100%);
  }

  .inquiry-file-status {
    max-width: calc(100% - 202px);
  }

  .inquiry-label {
    font-weight: 400;
  }

  .inquiry-model-detail {
    flex-direction: column;
    gap: 3px;
  }

  .inquiry-reset-button,
  .inquiry-submit-button {
    width: 100%;
    min-width: 0;
  }

  .inquiry-confirm-page {
    padding-top: 0;
  }

  .inquiry-confirm-heading {
    padding: 24px 0 34px;
  }

  .inquiry-confirm-heading p {
    font-size: 15px;
  }

  .inquiry-confirm-row {
    grid-template-columns: 1fr;
  }

  .inquiry-confirm-row-label,
  .inquiry-confirm-row-value {
    padding: 14px 16px;
    font-size: 15px;
  }

  .inquiry-confirm-row-label {
    min-height: 48px;
  }

  .inquiry-confirm-actions {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 16px 14px;
  }
}

body.inquiry-window {
  background: #fff;
}

body.inquiry-window .hero-image-toggle-button,
body.inquiry-window .top-hero-banner,
body.inquiry-window .hero-tutorial-slot,
body.inquiry-window .mitsumo-banner {
  display: none !important;
}

body.index-page.inquiry-window .workflow-steps,
body.inquiry-window .filter-panel,
body.inquiry-window .result-panel,
body.inquiry-window .selection-summary,
body.inquiry-window .workflow-floating-bar,
body.inquiry-window .workflow-floating-details,
body.inquiry-window #step4Panel > .step-actions {
  display: none !important;
}

body.inquiry-window .layout {
  display: block;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 16px 20px 28px;
}

body.inquiry-window .workflow-panel {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

body.inquiry-window .step-panel {
  display: none;
}

body.inquiry-window #step4Panel {
  display: block;
}

body.inquiry-window .step4-details,
body.inquiry-window .step4-details-body,
body.inquiry-window .total-summary {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
