/* ===========================
   Contact フォーム用スタイル
   =========================== */

/* Contactフォーム（#contact 内だけに適用） */
#contact .contact-form {
  max-width: 720px;
  margin: 2rem auto 0;
  background: #fff;
  color: #111;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

#contact .contact-form .form-row {
  margin-bottom: 1rem;
}

#contact .contact-form label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  color: #111;
}

#contact .contact-form input[type="text"],
#contact .contact-form input[type="email"],
#contact .contact-form input[type="tel"],
#contact .contact-form select,
#contact .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px;
  padding: .75rem .9rem;
  background: #fff;
  color: #111;
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
  color: #7a7a7a;
}

#contact .contact-form .form-row--checkbox label {
  display: flex;
  gap: .6rem;
  align-items: center;
  color: #111;
  font-weight: 500;
}

#contact .form-result {
  margin-top: .5rem;
  font-size: .95rem;
}

#contact .form-result--ok {
  color: #1b5e20;
}

#contact .form-result--error {
  color: #b00020;
}

/* Contactセクション内の送信ボタンを“ちゃんとボタン”に */
#contact .btn,
#contact button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.4rem;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  transition:
    background-color .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .02s ease;
}

#contact .btn--white {
  background: #0b57d0;
  color: #fff;
  border-color: transparent;
}

#contact .btn--white:hover {
  box-shadow: 0 10px 24px rgba(11,87,208,.28);
  transform: translateY(-1px);
}

#contact .btn--white:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(11,87,208,.18);
}

#contact .btn--white:focus-visible {
  outline: 3px solid rgba(11,87,208,.35);
  outline-offset: 2px;
}

#contact .btn--white[disabled],
#contact .btn--white[aria-busy="true"] {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

/* スクリーンリーダー以外には見せない（honeypot用） */
.u-hidden-visually {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   Thanks モーダル
   =========================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.modal__dialog {
  position: relative;
  margin: 8vh auto 0;
  max-width: 600px;
  width: 92vw;
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  z-index: 1;
}

.modal h2 {
  margin-top: 0;
}

.modal .note {
  color: #666;
  font-size: .95rem;
}

.modal__actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin-top: 1rem;
}

.modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.modal .btn--primary {
  background: #0b57d0;
  color: #fff;
  border-color: transparent;
}

.modal .btn--primary:hover {
  box-shadow: 0 8px 20px rgba(11,87,208,.25);
}
/* 問い合わせフォームのテキストを左寄せに */
.section--cta .contact-form {
  text-align: left;
}

/* フォーム全体のテキストは左寄せ */
#contact .contact-form {
  text-align: left;
}

/* 送信ボタンだけ中央寄せ */
#contact .contact-form button[type="submit"].btn {
  display: block;              /* inline-flex を上書き */
  margin: 2rem auto 0;         /* 上だけ余白を入れたい場合。数字はお好みで */
}
