@charset "UTF-8";

/* ==========================================================
   お問い合わせ 確認・完了画面
   ========================================================== */
.contact-page { display: flex; flex-direction: column; min-height: 100vh; }
.contact-page .site-footer { margin-top: auto; }

.header-back {
  font-weight: 900;
  font-size: 18px;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.header-back:hover { color: var(--yellow); border-color: var(--yellow); }

.contact-main {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  padding: 72px 0 96px;
}
.contact-main .container { position: relative; }

.confirm-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
  padding: clamp(24px, 5vw, 48px);
}

.confirm-table { margin: 0; }
.confirm-table > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 20px;
  padding: 18px 4px;
  border-bottom: 2px dashed rgba(43, 26, 12, .3);
}
.confirm-table > div:first-child { padding-top: 0; }
.confirm-table dt { font-weight: 900; }
.confirm-table dt em {
  font-style: normal;
  font-size: 14px;
  color: var(--cream);
  background: var(--red);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: 3px;
}
.confirm-table dd { margin: 0; word-break: break-all; }
.confirm-empty { opacity: .5; }

.confirm-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.confirm-actions .btn { min-width: 260px; }
.confirm-actions .btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* 完了 */
.done-card { text-align: center; }
.done-mark {
  width: 96px; height: 96px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  font-size: 48px;
  color: var(--cream);
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
}
.done-lead {
  font-family: var(--font-jp-display);
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.5;
  margin-bottom: 20px;
}
.done-text { margin-bottom: 28px; }
.done-tel { font-weight: 700; line-height: 1.6; }
.done-tel a {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  color: var(--red);
  text-decoration: none;
}

/* フォームのエラー表示(index.php) */
.form-error {
  background: #fdeaea;
  border: 3px solid var(--red);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-weight: 700;
  color: var(--red-dark);
}
.form-error ul { list-style: none; margin: 0; padding: 0; }
.form-error li { padding-left: 1.2em; text-indent: -1.2em; }
.form-error li::before { content: "▶ "; }
.form-row .field-error { color: var(--red); font-size: 16px; font-weight: 700; margin-top: 6px; }
.contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1280px) {
  .header-back { font-size: 16px; }
}
@media (max-width: 600px) {
  .contact-main { padding: 48px 0 72px; }
  .confirm-table > div { grid-template-columns: 1fr; gap: 4px; }
  .confirm-actions .btn { width: 100%; min-width: 0; }
  .header-back { font-size: 14px; }
}

/* reCAPTCHA バッジ: 追従ボタンと重ならないよう上にずらす */
.grecaptcha-badge { bottom: 96px !important; z-index: 80 !important; }
@media (max-width: 600px) {
  .grecaptcha-badge { bottom: 84px !important; }
}
