/* ===================================================
   お問い合わせフォーム スタイル
   LP の style.css に追記 or 別ファイル読み込みで使用
   =================================================== */

.contact {
  padding: var(--space-section) var(--section-padding-x);
}

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact__lead {
  margin-top: 16px;
  text-align: center;
  font-size: var(--font-size-sm);
  line-height: 1.8;
  color: var(--color-text);
}

.contact-form {
  margin-top: 48px;
}

.contact-form__field {
  margin-bottom: 24px;
}

.contact-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text);
}

.contact-form__required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #c0392b;
  border-radius: 3px;
  vertical-align: middle;
}

.contact-form__optional {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #888;
  background: #e8e8e8;
  border-radius: 3px;
  vertical-align: middle;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: #1a3c5e;
  outline: 2px solid rgba(26, 60, 94, 0.2);
  outline-offset: 1px;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__field--check {
  margin-top: 32px;
}

.contact-form__check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.contact-form__check-label a {
  color: #1a3c5e;
  text-decoration: underline;
}

.contact-form__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-form__radio-group,
.contact-form__checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 6px;
}

.contact-form__radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.contact-form__radio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-form__info {
  margin: 4px 0 8px;
  font-size: 0.8rem;
  color: #888;
}

.contact-form__submit {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 36px auto 0;
  padding: 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-form__status {
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-form__status--sending {
  background: #eef2f7;
  color: #1a3c5e;
  border: 1px solid #b8cfe0;
}

.contact-form__status--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.contact-form__status--error {
  background: #fce4ec;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* honeypot（絶対に表示しない） */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .contact-form__submit {
    max-width: 100%;
  }

  .contact__lead {
    font-size: var(--font-size-xs);
  }
}

/* ===================================================
   申込完了モーダル
   =================================================== */
.thanks-modal[hidden] {
  display: none;
}

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-sm);
  font-family: var(--font-sans);
  animation: thanksModalFade 0.25s ease-out;
}

@keyframes thanksModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.thanks-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(39, 39, 39, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.thanks-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100svh - 2 * var(--space-md));
  background: var(--color-bg-white);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(39, 39, 39, 0.3);
  overflow: hidden;
  display: flex;
  animation: thanksModalSlide 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes thanksModalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.thanks-modal__body {
  flex: 1;
  min-height: 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.thanks-modal__thanks {
  flex-shrink: 0;
  margin: 0 0 var(--space-md);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: 1.7;
  color: var(--color-text-dark);
}

.thanks-modal__divider {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
  color: var(--color-text);
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
}

.thanks-modal__divider::before,
.thanks-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.thanks-modal__lead {
  flex-shrink: 0;
  margin: 0 0 var(--space-xs);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.8;
  color: var(--color-text);
}

.thanks-modal__lead strong {
  color:#328fd3;
  font-weight: var(--font-weight-bold);
}

.thanks-modal__lead-br-sp {
  display: none;
}

.thanks-modal__desc {
  flex-shrink: 0;
  margin: 0 0 var(--space-md);
  font-size: var(--font-size-sm);
  line-height: 1.9;
  color: var(--color-text);
  text-align: center;
}

.thanks-modal__banner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thanks-modal__banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(39, 39, 39, 0.18);
}

.thanks-modal__banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thanks-modal__actions {
  flex-shrink: 0;
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
}

.thanks-modal__dismiss {
  background: transparent;
  border: 1px solid var(--color-border-dark);
  border-radius: 999px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-xs) var(--space-lg);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.thanks-modal__dismiss:hover {
  background: var(--color-text);
  color: var(--color-text-white);
}

body.thanks-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .thanks-modal {
    padding: var(--space-sm);
  }

  .thanks-modal__dialog {
    max-height: calc(100svh - 2 * var(--space-sm));
  }

  .thanks-modal__body {
    padding: var(--space-md) var(--space-sm);
  }

  .thanks-modal__thanks {
    font-size: var(--font-size-base);
  }

  .thanks-modal__lead strong {
    font-size: var(--font-size-md);
  }

  .thanks-modal__lead-br-sp {
    display: inline;
  }

  .thanks-modal__desc {
    font-size: var(--font-size-sm);
  }
}
