/* =========================================================
   お問合せページ固有
========================================================= */

/* フォーム */
.contact-form {
  width: 100%;
  margin: 0 auto 50px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.7;
}

.contact-form th,
.contact-form td {
  padding: 20px;
  border-bottom: 1px solid var(--color-accent);
  vertical-align: middle;
}

.contact-form th {
  width: 28%;
  font-size: 16px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

.contact-form td {
  width: 72%;
  padding-left: 10px;
}

.contact-form label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.required-empty {
  visibility: hidden;
}

.required {
  display: inline-block;
  min-width: 32px;
  margin-left: 0;
  color: #b85c38;
  font-size: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-accent);
  background-color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: var(--color-yellow);
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.message-row th,
.message-row td {
  vertical-align: top;
}

.message-row th {
  padding-top: 30px;
}

/* 個人情報同意 */
.contact-consent {
  margin-bottom: 40px;
  padding: 24px;
  background-color: #f8f8f8;
}

.contact-consent-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
}

.contact-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-consent-check input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
}

.contact-consent-check label {
  display: inline-block;
  width: auto;
  font-size: 15px;
  line-height: 1.8;
  cursor: pointer;
}

/* 送信ボタン */
.contact-submit {
  text-align: center;
}

.contact-submit-button {
  min-width: 280px;
  padding: 16px 32px;
  border: none;
  background-color: var(--color-accent);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.6;
  transition: opacity 0.3s ease;
}

.contact-submit-button:hover {
  opacity: 0.6;
}

/* =========================================================
   スマホ調整
========================================================= */
@media (max-width: 768px) {
  /* フォーム */
  .contact-form {
    margin: 0 auto 32px;
    font-size: 15px;
  }

  .contact-form,
  .contact-form tbody,
  .contact-form tr,
  .contact-form th,
  .contact-form td {
    display: block;
    width: 100%;
  }

  .contact-form tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-accent);
  }

  .contact-form th,
  .contact-form td {
    padding: 0;
    border-bottom: none;
  }

  .contact-form th {
    margin-bottom: 10px;
    font-size: 15px;
    text-align: left;
    white-space: normal;
  }

  .contact-form td {
    padding-left: 0;
  }

  .contact-form label {
    justify-content: flex-start;
    gap: 6px;
  }

  .required {
    min-width: auto;
    font-size: 11px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 12px;
    font-size: 16px;
  }

  .contact-form textarea {
    min-height: 160px;
  }

  .message-row th {
    padding-top: 0;
  }

  /* 個人情報同意 */
  .contact-consent {
    margin-bottom: 32px;
    padding: 18px 16px;
  }

  .contact-consent-text {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.7;
  }

  .contact-consent-check {
    gap: 8px;
  }

  .contact-consent-check label {
    font-size: 14px;
    line-height: 1.7;
  }

  /* 送信ボタン */
  .contact-submit-button {
    width: 100%;
    min-width: auto;
    padding: 14px 20px;
    font-size: 15px;
  }
}
