:root {
color-scheme: light;
}
html, body {
    background-color:#fff;
    color:#111;
}
.contents {
    padding: 6rem 1.5rem
}
@media screen and (max-width: 768px) {
    .contents {padding: 3rem 1.5rem;}
}

.inquiry-container {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
  font-family: sans-serif;
}
.inquiry-container.main {
  max-width: 1200px;
  width: 100%;
  margin-top: 0;
}

.step-progress {
  display: flex;
  width: 100%;
  margin: 20px 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: -11px;
  width: 0;
  height: 0;
    border-top: 22.5px solid transparent;
    border-bottom: 22.5px solid transparent;
    border-left: 11px solid #e00923;
  z-index: 2;
}
.step.confirm_first {
  background-color: #eee;
}
.step.confirm_first::after {
  border-left: 11px solid #eee;
}

.step:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
    border-top: 22.5px solid transparent;
    border-bottom: 22.5px solid transparent;
  border-left: 11px solid #dcdcdc;
  z-index: 1;
}
.step:nth-child(2) {
  background-color: #dddddd;
}
.step.current {
  background-color: #e00923;
  color: white;
}
.step.confirm_second::before {
  border-left: 11px solid #e00923;
}
.car-info {
  max-width: 380px;
  margin-right: 1%;
  width: 100%;
}
.car-info h3 {
  background: #e00923;
  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: #e00923;
  font-weight: bold;
}

.form-section {
  background: #fff;
  padding: 0 20px 20px 20px;
  flex:1;
}

.form-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  row-gap: 15px;
  column-gap: 20px;
}

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

.label.required span {
    background-color: #e00923;
    color: #fff;
    padding: 0px 10px 1px;
    font-size: 10px;
    margin-left: 10px;
}

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;
}

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

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

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

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

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

.confirm-buttons .confirm {
  background: #e00923;
  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: #e00923;
  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: #e00923;
  font-size: 12px;
}
.inquiry-container .column {
  flex-direction: initial;
  font-size: 16px;
}
.inquiry-container .column > div {
  display: block;
}
.flex {
  display: flex;
}
.column {
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 12px;
  flex-direction: column;
  align-self: flex-start;
  flex: 1;
}
@media screen and (max-width: 768px) {

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 95%;

}
  .form-grid {
    grid-template-columns: 1fr;
    row-gap: 5px;
    font-size: 12px;
  }
  .label {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .car-detail {
    padding: 0px;
    margin-bottom: 15px;
  }
  .form-section {
    padding: 30px 0 0 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;
  }
  /* 確認画面 */
  body .confirm-table {
    min-width: auto;
  }
  body .confirm-table tr {
    display: flex;
    flex-direction: column;
  }

  body .confirm-table th,
  body .confirm-table td {
    border: none;
  }
  body .confirm-table th {
    width: 100%;
    font-weight: normal;
    border-top: 1px solid #eeeeee;
  }
  .confirm-buttons .back {
    border-radius: 10px;
    text-align: center;
    width: 51%;
    margin: 0 auto;
  }
  .step {
    font-size: 12px;
  }
  .step:first-child::after {
    border-top: 21px solid transparent;
    border-bottom: 21px solid transparent;
    border-left: 12px solid #e00923;
  }
  .step:last-child::before {
    border-top: 21px solid transparent;
    border-bottom: 21px solid transparent;
    border-left: 12px solid #dcdcdc;
  }
  .step.confirm_first::after {
    border-left: 12px solid #eee;
  }
  .step.confirm_second::before {
    border-left: 12px solid #e00923;
  }
  .car-info h3 {
    padding: 8px 8px 8px 16px;
    font-size: 13px;
  }
  .thanks-message {
    min-width: auto;
  }
  .thanks-message p {
    padding-left: 0%;
  }
  .car-info.thanks {
    margin-top: 65px;
  }
  .thanks-message h2 {
    font-size: 18px;
  }
  .return-link a {
    display: block;
    width: 100%;
  }
  .inquiry-container .column {
    flex-direction: column;
  }
  .column {
    width: 100%;
  }
  .inquiry-container {
    padding: 2rem 0;
  }
}

/* .cars-info-mail {
    display: flex;
    gap: 15px;
} */
.car-specs-section {
    flex: 0 0 40%;
}
.ui-datepicker th {
    padding: .7em .3em!important;
    text-align: center;
    font-weight: bold;
    border: 0;
}