@charset "UTF-8";

.dflex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact .container,
.listing-request .container {
  max-width: 1000px;
}

.must {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 40px;
  height: 30px;
  background-color: #DC1432;
  background-image: unset;
  border: 0;
  padding: 0;
  font-size: 14px;
  padding-bottom: 2px;
}

.max-200px {
  max-width: 200px;
}

.must.arbitrary {
  background-color: #6C757D;
  text-shadow: unset;
}

.contact__form table tbody tr {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 25px 0;
}

.contact__form table tbody tr:nth-child(1) {
  padding: 0 0 25px;
}

.contact__form table tbody tr:nth-last-child(1) {
  padding: 25px 0 0;
}

.contact__form table tbody tr th {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.contact__form table,
.contact__form table tbody,
.contact__form table tbody tr td {
  width: 100%;
}

.contact__form table tbody tr td.flexinput {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact__form table.bb {
  border-bottom: solid 2px #E9ECEF;
}

.contact__form table.bb tbody tr:nth-last-child(1) {
  padding-bottom: 50px;
}


.contact__form .subttl {
  font-size: 22px;
  margin-bottom: 30px;
}

/* Text inputs and textarea */
.contact__form table tbody tr td input[type="text"],
.contact__form table tbody tr td input[type="tel"],
.contact__form table tbody tr td input[type="email"] {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 10px;
  font-family: var(--font-family);
  border: solid 1px rgba(206, 212, 218, 1);
  border-radius: 10px;
}

.contact__form table tbody tr td textarea {
  width: 100%;
  border: solid 1px rgba(206, 212, 218, 1);
  border-radius: 10px;
  padding: 10px;
  line-height: 25px;
}

/* Radio button row */
.contact__form table tbody tr td .radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact__form table tbody tr td .radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--main-dark-color);
  cursor: pointer;
}

.contact__form table tbody tr td .radio-group label {
  cursor: pointer;
  margin-right: 15px;
}

/* Checkbox row */
.contact__form .checkbox {
  display: flex;
  align-items: end;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.contact__form .checkbox input {
  margin: 0;
  padding: 0;
  width: 20px;
  height: 20px;
  accent-color: green;
  margin-right: 10px;
}

.contact__form .checkbox a {
  color: var(--main-bg-color);
  border-bottom: solid 1px;
  margin-right: 5px;
}

.contact__form .btn {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  height: 60px;
  color: #fff;
  background-color: var(--primary-dark);
  font-size: 16px;
  border: solid 1px var(--main-dark-color);
  cursor: pointer;
  transition: 0.5s;
}

.contact__form .btn:hover {
  background-color: #595959;
  border: solid 1px var(--main-bg-color);
  transition: 0.5s;
}

.message_about div {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 20px;
}

.message_about div h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.message_about.bluebg div {
  background-color: #E3ECF6;
  line-height: 30px;
}

.message_about.bluebg div h2 {
  color: var(--primary);
}

.message_about.bluebg div h3 {
  font-size: 18px;
}

/* 2-column grid for checkbox/radio groups */
.contact__form table tbody tr td .radio-grid {
  display: grid;
  gap: 12px 20px;
}

.contact__form table tbody tr td .radio-grid .radio-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact__form table tbody tr td .radio-grid .radio-group input[type="checkbox"],
.contact__form table tbody tr td .radio-grid .radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--main-dark-color);
  cursor: pointer;
  flex-shrink: 0;
}

.contact__form table tbody tr td .radio-grid .radio-group label {
  cursor: pointer;
  margin-right: 0;
}

/* Input with unit suffix (円) */
.contact__form table tbody tr td .input-unit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact__form table tbody tr td .input-unit input {
  flex: 1;
}

.contact__form table tbody tr td .unit {
  font-size: 15px;
  white-space: nowrap;
  color: #333;
}

/* Input with label above (車長・車幅・車高) */
.contact__form table tbody tr td.flexinput .input-labeled {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.contact__form table tbody tr td.flexinput .input-labeled label {
  font-size: 13px;
  color: #555;
}

/* File upload area */
.contact__form .upload-area {
  border: 2px dashed #CED4DA;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
}

.contact__form .upload-area:hover {
  border-color: var(--primary-dark);
}

.contact__form .upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #555;
}

.contact__form .upload-content svg {
  color: #555;
}

.contact__form .upload-content p {
  margin: 0;
  font-size: 14px;
}

.contact__form .upload-content .upload-hint {
  font-size: 13px;
  color: #888;
}

.contact__form .upload-btn {
  margin-top: 8px;
  padding: 10px 24px;
  background-color: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact__form .upload-btn:hover {
  background-color: #595959;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  background: #fff;
  transition: border-color .15s, background .15s;
  user-select: none;
  width: calc(70% / 3);
}
.checkbox-item:hover {
  border-color: #888;
}
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1976d2;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-item input[type="checkbox"]:checked + .checkbox-label {
  color: #1976d2;
  font-weight: 600;
}
.checkbox-label {
  white-space: nowrap;
}

@media screen and (max-width: 568px) {
  .contact__form table tbody tr {
    flex-direction: column;
  }

  .contact__form table tbody tr th {
    width: 100%;
  }

  .contact__form table tbody tr th .sp {
    display: none;
  }

  .contact__form table tbody tr td.flexinput {
    flex-direction: column;
  }

  .contact__form table tbody tr td .radio-grid {
    grid-template-columns: 1fr;
  }

  .listing-request .contact__form table tbody tr td.flexinput {
    flex-direction: row;
  }

  .message_about.bluebg div h3 br {
    display: none;
  }

  .listing-request .lower-mv_text h2 {
    font-size: 30px;
  }
}