.inquiry-container {
  max-width: 1020px;
  margin: auto;
  padding: 64px 0 2rem;
  font-family: sans-serif;
}
.inquiry-container.main {
  max-width: 1020px;
  width: 100%;
  margin-top: 0;
  padding-top: 32px;
  /*height: 80vh;*/
}

.step-progress {
  display: flex;
  width: 100%;
  margin: 0;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

.step {
  flex: 1;
  background-color: #ccc;
  color: #000;
  padding: 12px 0;
  position: relative;
}

.step:first-child::after {
  content: "";
  position: absolute;
  top: 0px;
  right: -23px;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 24px solid #131B3C;
  z-index: 2;
}
.step.confirm_first {
  background-color: #eee;
}
.step.confirm_first::after {
  border-left: 24px solid #eee;
}

.step:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 24px solid #dcdcdc;
  z-index: 1;
}
.step:nth-child(2) {
  background-color: #dddddd;
}
.step.current {
  background-color: #131B3C;
  color: white;
}
.step.confirm_second::before {
  border-top: 23px solid transparent;
  border-left: 24px solid #131B3C;
}

/* 送信エラー画面：3段目は「完了」ではなく別表記・赤系（オレンジの current と差別化） */
.step-progress--error .step.confirm_first::after {
  border-left-color: #dddddd;
}
.step-progress--error .step.step-error-current {
  background-color: #b71c1c;
  color: #fff;
}
.step-progress--error .step.step-error-current::before {
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 24px solid #dddddd;
}

.car-info {
  max-width: 370px;
  margin-right: 1%;
}
.car-info h3 {
  background: #131B3C;
  color: white;
  padding: 8px;
  margin-bottom: 10px;
}

.car-detail {
  display: flex;
  gap: 20px;
  padding: 15px;
  margin-bottom: 30px;
}

.car-image {
  width: 150px;
  height: 100px;
  background: #ccc;
}

.car-specs ul {
  list-style: none;
  padding: 0;
}

.car-specs p {
  margin: 4px 0;
}

.highlight {
  color: #ea5413;
  font-weight: bold;
}

.inquiry-form-column {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.form-section {
  background: #fff;
  padding: 0 0px 20px 20px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.inquiry-validation-errors {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid #ea5413;
  border-radius: 6px;
  background: #fff5f0;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.inquiry-validation-errors .error-messages__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: bold;
  color: #c43e0a;
}

.inquiry-validation-errors .error-messages__list {
  margin: 0;
  padding-left: 1.25em;
  list-style: disc;
}

.inquiry-validation-errors .error-messages__list li {
  margin: 4px 0;
  color: #333;
}

.form-grid {
  display: grid;
  /* 固定幅だと flex 内で親より広くなり飛び出すため可変列にする */
  grid-template-columns: minmax(130px, 200px) minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  row-gap: 0;
  /* column-gap だと横線が列間で途切れるため、ラベル側 padding で間隔を取る */
  column-gap: 0;
  font-size: 12px;
  align-items: start;
}

@media (min-width: 769px) {
  .form-grid > .label {
    padding-right: 20px;
    box-sizing: border-box;
  }
}

/* 項目間の仕切り（PC・SP共通でグリッド子に適用） */
.form-grid > * {
  min-width: 0;
  border-top: 1px solid #eee;
  padding-top: 14px;
  padding-bottom: 14px;
}
@media (max-width: 768px) {
  .form-grid > * {
    padding: 8px 0;
  }
}

.form-grid > *:nth-child(-n + 2) {
  border-top: none;
  padding-top: 0;
}

.form-grid > .privacy-consent-block {
  padding-bottom: 0;
}

/* 個人情報同意：チェックの直下に「はこちら」を並べ、入力列に揃える */
.privacy-consent-block {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.label.required span {
  background-color: #ea1313;
  color: #fff;
  padding: 2px 10px;
  font-size: 12px;
  margin-left: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 4px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

textarea {
  resize: vertical;
}

/* 来店/オンライン商談 希望日時の備考（管理画面の営業日備考・営業時間備考） */
.visit-remark {
  margin-top: 6px;
  padding: 8px 10px;
  background: #fff7ed;
  border: 1px solid #f0c28a;
  border-left: 4px solid #ea5413;
  border-radius: 4px;
  color: #4a2a10;
  font-size: 12px;
  line-height: 1.55;
}

.visit-remark__label {
  display: inline-block;
  font-weight: bold;
  color: #c43e0a;
  font-size: 11px;
  margin-bottom: 2px;
}

.visit-remark__body {
  margin: 2px 0 4px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #333;
}

.visit-remark__guide {
  margin: 0;
  font-size: 11px;
  color: #8a4a1a;
}

/* お問い合わせ種別「来店予約」「オンライン商談予約」選択時のみ表示（JS で .visit-remark-visible を付与） */
.visit-remark--for-visit:not(.visit-remark-visible),
.visit-remark--for-online:not(.visit-remark-visible) {
  display: none;
}

/* 来店予約／オンライン商談の希望日時欄は、種別チェック時（.field-active）のみ表示 */
.form-grid > .visit-field,
.form-grid > .online-field {
  display: none;
}
.form-grid > .visit-field.field-active,
.form-grid > .online-field.field-active {
  display: block;
}
.form-grid > .label.visit-field.field-active,
.form-grid > .label.online-field.field-active {
  display: flex;
}

.submit-area {
  margin-top: 30px;
  text-align: center;
}
.submit-area button {
  background: #131B3C;
  color: white;
  padding: 12px 40px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.submit-area button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.confirm-table {
  width: 100%;
  min-width: 677px;
  border-collapse: collapse;
}

.confirm-table th,
.confirm-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.confirm-table th {
  background-color: #f4f4f4;
  width: 200px;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 20px;
}

.confirm-buttons .confirm {
  background: #ea5413;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
}

.confirm-buttons .back {
  background: #888;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
}

.thanks-message {
  text-align: center;
  border-radius: 8px;
  min-width: 700px;
}

.thanks-message h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.thanks-message p {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: left;
  padding-left: 9%;
}

.return-link {
  margin-top: 30px;
}

.return-link a {
  background: #131B3C;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
}
.hidden {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}
.thanks-message .attention {
  color: #ea1313;
  font-size: 12px;
}
.inquiry-container .column {
  flex-direction: initial;
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.inquiry-container .column > div {
  display: block;
}
@media screen and (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
    font-size: 12px;
    align-items: start;
  }
  .privacy-consent-block {
    grid-column: 1;
  }
  .label {
    justify-content: flex-start;
    margin-top: 0;
  }
  .car-detail {
    padding: 0px;
    margin-bottom: 15px;
  }
  .form-section {
    /* padding: 30px 0 0 0; */
    padding: 0;
  }
  .label.required span {
    font-size: 10px;
  }
  .submit-area button {
    width: 100%;
  }
  .label.hidden {
    margin-top: 0;
  }
  .sp-carname {
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 13px;
  }
  /* 確認画面（cars-index.css の .column { align-items: start } を上書き） */
  .inquiry-container .column {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
  }
  .inquiry-container .form-section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .confirm-table {
    min-width: 0;
    width: 100%;
    display: block;
    box-sizing: border-box;
  }
  .confirm-table tbody,
  .confirm-table tr {
    display: block;
    width: 100%;
  }

  .confirm-table th,
  .confirm-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
  }
  .confirm-table th {
    font-weight: normal;
    border-top: 1px solid #eeeeee;
  }
  .inquiry-container .confirm-buttons,
  .inquiry-container .confirm-buttons.column {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .confirm-buttons .confirm,
  .confirm-buttons .back {
    border-radius: 10px;
    text-align: center;
    width: 51%;
    margin: 0 auto;
    display: block;
  }
  .step {
    font-size: 11px;
  }

  .step:first-child::after {
    right: -24px;
    border-top: 18px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 24px solid #131B3C;
  }

  .step:last-child::before {
    border-top: 20px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 24px solid #dcdcdc;
  }
  .step.confirm_second::before {
    border-top: 20px solid transparent;
    border-left: 24px solid #131B3C;
    border-bottom: 22px solid transparent;
    left: -1px;
  }
  .step.confirm_first::after {
    border-left: 24px solid #eee;
    right: -24px;
  }
  .step-progress--error .step.confirm_first::after {
    border-left-color: #dddddd;
  }
  .step-progress--error .step.step-error-current::before {
    border-top: 20px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 24px solid #dddddd;
    left: -1px;
  }
  /* SP時：車両情報（car-info）を送信内容確認フォームの下に表示 */
  .inquiry-container .flex.column > .car-info {
    order: 2;
    margin-top: 1em;
  }
  .inquiry-container .flex.column > .inquiry-form-column {
    order: 1;
  }
  .car-info h3 {
    padding: 8px 8px 8px 16px;
    font-size: 13px;
  }
  .thanks-message {
    min-width: auto;
  }
  .thanks-message p {
    padding-left: 0%;
    font-size: 12px;
    font-weight: 500;
  }
  .car-info.thanks {
    margin-top: 65px;
  }
  .thanks-message h2 {
    font-size: 18px;
  }
  .return-link a {
    display: block;
    width: 100%;
  }
  .car-specs-grid,
  .price-section,
  .spec-item {
    font-size: 12px;
  }
  .inquiry-container {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 32px;
  }
  .inquiry-container.main {
    padding-top: 0;
  }
  p.substance {
    font-size: 32px;
  }
  .sp-ct-cus {
    margin-top: -30px;
  }
}
@media (min-width: 768px) {
  p.substance {
    font-size: 26px;
  }
}

/* 询价页NEW标志样式 */
.car-image-section .new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #131B3C;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 2px;
  z-index: 2;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 7天内：橙色背景，显示NEW */
.car-image-section .new-badge.with-new {
  background-color: #FFF600;
}

/* 7天外：灰色背景，只显示日期 */
.car-image-section .new-badge.date-only {
  background-color: transparent;
  box-shadow: none;
}

.car-image-section .new-badge .new-text {
  display: block;
  font-size: 11px;
  /* margin-bottom: 1px; */
  line-height: normal;
}
.car-image-section .new-badge .new-date {
  display: block;
  font-size: 11px;
  font-weight: normal;
}


.point-line-cus {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ea5413;
    padding: 0 5px;
    color: #fff;
    border-radius: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}
.info-line-kaike {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}
p.label.temopoint {
  font-size: 12px;
}
span.dvv {
  font-size: 12px;
}
.info-line-kaike p.label {
    font-size: 16px;
    font-weight: 600;
}
p.substance {
    font-weight: 600;
    color: #ea5413;
}
.gosen-line span {
    background-color: #ea5413;
    color: #fff;
    padding: 2px;
    border-radius: 50%;
}
.gosen-line strong {
    font-size: 16px;
    font-weight: 600;
    padding: 0 4px;
}
.gosen-line {
    border: 2px solid #ea5413;
    background-color: #fff3e2;
    color: #ea5413;
    font-size: 11px;
    padding: 5px 2px;
    font-weight: 600;
    margin-top: 5px;
    border-radius: 2px;
}
.gosen-line {
    text-align: center;
    letter-spacing: 1px;
}


.price-note-new .tooltip-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    border-radius: 50%;
    background: #fff;
    color: #ff5a1f;
    font-size: 11px;
    cursor: pointer;
}
.price-note-new .tooltip-content {
    position: absolute;
    top: 28px;
    left: 0px;
    width: 300px;
    background: #fff;
    border: 2px solid #ff5a1f;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 10;
}

/* mũi tên */
.price-note-new .tooltip-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    border-width: 0 8px 10px 8px;
    border-style: solid;
    border-color: transparent transparent #ff5a1f transparent;
}

.price-note-new .tooltip-content::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 20px;
    border-width: 0 8px 10px 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}
.label.temopoint.price-note-new {
    font-size: 12px;
    display: flex;
    gap: 5px;
    position: relative;
}
span.wuerf .gdgdgd {
    color: #ea5413;
    font-size: 12px;
}


.price-note {
    color: #ff5a1f;
    position: relative;
    border: 2px solid #ea5413;
    background-color: #fff3e2;
    color: #ea5413;
    font-size: 11px;
    padding: 5px 2px;
    font-weight: 600;
    margin-top: 5px;
    border-radius: 2px;
    text-align: center;
}

/* icon ? */
.tooltip-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: #ff5a1f;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* popup */
.tooltip-content {
    position: absolute;
    top: 30px;
    left: 0;
    width: 300px;
    background: #fff;
    border: 2px solid #ff5a1f;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 10;
}

/* mũi tên */
.tooltip-content::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    border-width: 0 8px 10px 8px;
    border-style: solid;
    border-color: transparent transparent #ff5a1f transparent;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 20px;
    border-width: 0 8px 10px 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* hover để hiện */
.tooltip-wrap:hover .tooltip-content {
    display: block;
}

/* フィールドごとのインラインエラーメッセージ */
.field-error {
    display: block;
    color: #d32f2f;
    font-size: 0.82em;
    margin-top: 5px;
    padding-left: 2px;
}

.field-error::before {
    content: "⚠ ";
}

/* エラー時のinput/select枠線ハイライト */
.is-invalid {
    border-color: #d32f2f !important;
    background-color: #fff5f5;
}

.form-grid > *:nth-last-child(2) {
    border-top: none;
}
.form-grid > *:last-child {
    border-top: none;
}
.form-section input[readonly] {
    background: #b5b5b5 !important;
    background-color: #b5b5b5 !important;
    cursor: not-allowed;
    opacity: .8;
}

.privacy-agree {
    margin-bottom: 10px;
}

.privacy-agree > label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-agree input[type="checkbox"][name="privacy_agree"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0;
}

@media (min-width: 769px) {
    .sp-ct-ct {
        display: none;
    }
}

@media (max-width: 768px) {
    .pc-ct-ct {
        display: none;
    }
}

.wholesale-transaction-notice {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 0px;
    background-color: #f8f8f8;
    color: #333;
}

.wholesale-transaction-notice h2 {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
}

.wholesale-transaction-notice ul {
    margin: 0;
    padding-left: 1.5em;
}

.wholesale-transaction-notice li {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.6;
}

.wholesale-transaction-notice li:first-child {
    margin-top: 0;
}

@media screen and (max-width: 768px) {
    .wholesale-transaction-notice {
        margin-top: 24px;
        padding: 20px 12px;
    }

    .wholesale-transaction-notice h2 {
        font-size: 12px;
    }

    .wholesale-transaction-notice li {
        font-size: 12px;
        line-height: 1.6;
    }
}

