/* お問い合わせページ：他下層ページのデザインを踏襲 */

:root {
  --section-gap: 80px;
}

.contact-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

main .contact-section:first-of-type {
  padding-top: 80px;
}

.hero-contact .hero-visual-img-wrap img {
  object-fit: cover;
  object-position: center center;
}

.hero-contact .hero-visual-img-wrap {
  max-height: 320px;
}

/* ========== フォーム ========== */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 40px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-form .form-list {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.contact-form .form-list > * {
  margin-bottom: 20px;
}

.contact-form .form-list > *:last-child {
  margin-bottom: 0;
}

.contact-form .form-label {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.contact-form .form-label label {
  cursor: pointer;
}

.contact-form .form-label .required {
  color: #c00;
  font-size: 12px;
  margin-left: 4px;
}

.contact-form .form-field {
  margin: 0;
}

.contact-form .form-field input,
.contact-form .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
  outline: none;
  border-color: var(--primary, #0b3b75);
}

.contact-form .form-field input::placeholder,
.contact-form .form-field textarea::placeholder {
  color: #9ca3af;
}

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

.contact-form .form-submit {
  margin-top: 32px;
  text-align: center;
}

.contact-form .btn-contact-submit {
  display: inline-block;
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--primary, #0b3b75);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form .btn-contact-submit:hover {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .contact-form-wrap {
    padding: 24px 20px;
    margin-left: 16px;
    margin-right: 16px;
    max-width: none;
  }

  .contact-form .btn-contact-submit {
    width: 100%;
    max-width: 280px;
  }
}
