/* ===== 問い合わせページ ===== */
.contact-page-main { background: var(--pink-pale); padding: 96px 20px 72px; }
.contact-lead { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.contact-lead h1 { font-family: 'M PLUS Rounded 1c', sans-serif; font-size: 30px; color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.contact-lead p { color: var(--gray-600); font-size: 15px; line-height: 1.9; }

#contact_form { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 44px 40px; }
#contact_form .section_title { text-align: center; font-family:'M PLUS Rounded 1c',sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 30px; padding-bottom: 16px; border-bottom: 2px solid var(--pink-light); }
#contact_form dl { display: block; margin: 0 0 20px; }
#contact_form dt { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
#contact_form .must { display:inline-block; background: var(--pink); color:#fff; font-size:11px; font-weight:700; line-height:1; padding:4px 7px; border-radius:4px; }
#contact_form dt label { cursor: default; }
#contact_form dd { margin: 0; }
#contact_form input[type="text"],
#contact_form input[type="email"],
#contact_form input[type="tel"],
#contact_form input[type="confirm_email"],
#contact_form textarea {
  width: 100%; box-sizing: border-box; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; color: var(--text); font-family: inherit; background:#fff;
  transition: border-color .2s, box-shadow .2s;
}
#contact_form input::placeholder, #contact_form textarea::placeholder { color: var(--gray-400); }
#contact_form input:focus, #contact_form textarea:focus { outline:none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(232,67,124,.12); }
#contact_form dd > div { margin-top: 10px; }
#contact_form textarea { min-height: 130px; resize: vertical; line-height:1.7; }

/* 問合せ内容チェック */
#contact_form .inquiry > label { display: inline-flex; align-items:center; gap:8px; font-size:15px; color: var(--text); cursor:pointer; margin: 0 18px 10px 0; }
#contact_form .inquiry input[type="checkbox"] { width:18px; height:18px; accent-color: var(--pink); cursor:pointer; flex:none; }
#contact_form .inquiry > div { margin-top: 6px; }
#contact_form .inquiry > div p { font-size:13px; color: var(--gray-600); margin-bottom: 8px; }

/* プライバシー */
#contact_form .policy { display:block; margin: 26px 0 22px; }
#contact_form .policy_box { background: var(--gray-50); border-radius: var(--radius-sm); padding: 22px; }
#contact_form .policy .explanation { font-size:13px; color: var(--gray-800); line-height:1.85; margin-bottom: 16px; }
#contact_form .policy .explanation a { color: var(--pink); text-decoration: underline; }
#contact_form .purpose h4 { font-size:14px; color: var(--navy); font-weight:700; margin-bottom:8px; }
#contact_form .purpose ul { margin: 0 0 4px; padding-left: 1.3em; }
#contact_form .purpose li { font-size:13px; color: var(--gray-800); line-height:1.9; list-style: disc; }
#contact_form .agree_btn { text-align:center; margin-top: 18px; }
#contact_form .agree_btn label { display:inline-flex; align-items:center; gap:8px; font-weight:700; color: var(--navy); font-size:15px; cursor:pointer; }
#contact_form .agree_btn input[type="checkbox"] { width:18px; height:18px; accent-color: var(--pink); cursor:pointer; }

/* 送信ボタン */
#contact_form .submit_button { text-align:center; margin-top: 10px; }
#contact_form .submit_button input[type="submit"] {
  appearance:none; -webkit-appearance:none; cursor:pointer; border:none;
  background: var(--pink); color:#fff; font-family:'M PLUS Rounded 1c',sans-serif; font-weight:800; font-size:17px;
  padding: 16px 48px; min-width: 280px; border-radius: 60px; box-shadow: 0 6px 18px rgba(232,67,124,.3);
  transition: transform .15s, box-shadow .15s, background .15s;
}
#contact_form .submit_button input[type="submit"]:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,67,124,.36); }

@media (max-width: 768px) {
  .contact-page-main { padding: 84px 14px 56px; }
  #contact_form { padding: 32px 20px; border-radius: 16px; }
  .contact-lead h1 { font-size: 24px; }
  #contact_form .submit_button input[type="submit"] { width:100%; min-width:0; padding:15px 20px; }
}

/* 行末に1〜3文字だけ残らないよう文節で折り返す */
.contact-lead p,
.contact-card p, .contact-card li,
.form-note, .agree-text,
main li, main p {
  word-break: auto-phrase;
}

/* 割れてほしくない語句 */
.nbk { white-space: nowrap; }


/* ============================================================
   確認画面（confirm.html）／送信完了ページ（thanks.html）
   ============================================================ */

/* --- 確認画面：入力内容の一覧 --- */
.confirm-list {
  border-top: 1px solid var(--gray-200, #e5e7eb);
  margin-bottom: 28px;
}
.confirm-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
}
.confirm-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy, #1a2856);
  line-height: 1.7;
}
.confirm-value {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-800, #374151);
  margin: 0;
  word-break: auto-phrase;
}

/* --- 確認画面：ボタン --- */
.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.confirm-buttons .btn-back,
.confirm-buttons .btn-send {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 16px;
  border-radius: 999px;
  padding: 16px 40px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.confirm-buttons .btn-back {
  background: #fff;
  color: var(--navy, #1a2856);
  border: 2px solid var(--navy, #1a2856);
}
.confirm-buttons .btn-send {
  background: var(--pink, #e8336e);
  color: #fff;
  border: 2px solid var(--pink, #e8336e);
  box-shadow: 0 6px 18px rgba(232, 51, 110, .28);
}
.confirm-buttons .btn-back:hover { background: #f6f7fb; transform: translateY(-2px); }
.confirm-buttons .btn-send:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232,51,110,.34); }

/* --- 送信完了ページ --- */
.thanks-wrap {
  padding: 8px 20px 72px;
  display: flex;
  justify-content: center;
}
.thanks-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(26, 40, 86, .08);
  padding: 56px 40px 48px;
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.thanks-hacho {
  width: 110px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}
.thanks-card h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy, #1a2856);
  margin-bottom: 18px;
  line-height: 1.5;
}
.thanks-heading {
  font-size: 19px;
  font-weight: 800;
  color: var(--pink, #e8336e);
  margin-bottom: 18px;
  line-height: 1.7;
}
.thanks-text {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-800, #374151);
  margin-bottom: 32px;
  word-break: auto-phrase;
}
.thanks-btn {
  display: inline-block;
  background: var(--navy, #1a2856);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 40px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.thanks-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,40,86,.25); }
.sp-br { display: none; }

@media (max-width: 768px) {
  .confirm-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 2px; }
  .confirm-label { font-size: 13px; }
  .confirm-value { font-size: 14.5px; }
  .confirm-buttons { flex-direction: column-reverse; align-items: stretch; }
  .confirm-buttons .btn-back,
  .confirm-buttons .btn-send { width: 100%; padding: 15px 20px; font-size: 15px; }
  .thanks-card { padding: 40px 22px 36px; border-radius: 18px; }
  .thanks-card h1 { font-size: 23px; }
  .thanks-heading { font-size: 17px; }
  .thanks-text { font-size: 14.5px; line-height: 1.95; }
  .thanks-hacho { width: 92px; }
  .sp-br { display: inline; }
  .thanks-btn { width: 100%; padding: 15px 20px; font-size: 15px; }
}

/* 送信完了ページ：フォーム枠の中に収める */
.thanks-inner { text-align: center; }
.thanks-inner .thanks-hacho { width: 110px; height: auto; margin: 0 auto 18px; display: block; }
.thanks-inner .thanks-heading { font-size: 19px; font-weight: 800; color: var(--pink, #e8336e); margin-bottom: 18px; line-height: 1.7; }
.thanks-inner .thanks-text { font-size: 15px; line-height: 2; color: var(--gray-800, #374151); margin-bottom: 32px; word-break: auto-phrase; }
@media (max-width: 768px) {
  .thanks-inner .thanks-hacho { width: 92px; }
  .thanks-inner .thanks-heading { font-size: 17px; }
  .thanks-inner .thanks-text { font-size: 14.5px; line-height: 1.95; }
}
