/* ===================== CONTACTページ専用スタイル ===================== */

/* CONTACTページ全体のコンテナ（全幅、背景色#F5F1EB） */
.contact-page {
  width: 100%;
  max-width: 100%;
  background: #F5F1EB;
}

/* CONTACTページ内のCTAセクションを非表示（エディタの内容に含まれていても非表示にする） */
.contact-page .top__cta,
.contact-page .top__cta.top__section,
.contact-page .top__cta.io-fadeup,
.contact-page .top__cta.alignfull,
.contact-page .top__cta.is-inview,
.contact-page section#ec,
.contact-page section.top__cta,
.contact-page #ec,
.contact-page .top__cta-container,
.contact-page .top__cta-item,
.contact-page .top__cta-item--contact,
.contact-page .top__cta-item--download,
.contact-page a.top__cta-item,
.contact-page a.top__cta-item--contact,
.contact-page a.top__cta-item--download,
.contact-page section[aria-label="お問い合わせと公式販売サイト"],
.contact-page section[aria-label*="お問い合わせと公式販売サイト"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  min-height: 0 !important;
}

/* ===================== ヘッダーセクション（ページタイトル） ===================== */
/* お問い合わせページのヘッダーセクション（全幅、白背景、中央揃え） */
.contact-page__header-section {
  width: 100%;
  margin: 0;
  padding: 80px 1rem 40px;
  text-align: center;
  background: #fff;
}

/* お問い合わせページのヘッダータイトル（超大サイズ、太字、黒色） */
.contact-page__header-title {
  font-weight: 900;
  font-size: 80px;
  line-height: 1.3;
  letter-spacing: 0.28em;
  margin: 0 0 24px;
  color: #d8d8d8;
}

/* お問い合わせページのヘッダーサブタイトル（小サイズ、オレンジ色） */
.contact-page__header-subtitle {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  color: #888888;
}

/* ===================== フォームセクション ===================== */
/* お問い合わせフォームセクション（最大幅1400px、中央揃え、背景色#F5F1EB） */
.contact-page__form-section {
  max-width: 1400px;
  margin: clamp(20px, 4vw, 48px) auto;
  padding: clamp(32px, 5vw, 72px) 2rem;
  background: #F5F1EB;
  min-height: 60vh;
}

/* フォームコンテナ（中央揃え） */
.contact-page__form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ===================== 進捗インジケーター ===================== */
.contact-page__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

/* 各ステップ（番号・ラベルを縦積みで配置） */
.contact-page__progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* ステップの丸アイコン（初期状態はグレー） */
.contact-page__progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* 丸中央の番号 */
.contact-page__progress-number {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #999999;
  transition: color 0.3s ease;
}

/* ステップ下に表示するラベル */
.contact-page__progress-label {
  font-size: 14px;
  line-height: 20px;
  color: #999999;
  font-weight: 400;
  transition: color 0.3s ease;
}

/* アクティブなステップ */
.contact-page__progress-step--active .contact-page__progress-circle {
  background: #2D5016;
  border-color: #2D5016;
}

/* アクティブステップの番号を白に */
.contact-page__progress-step--active .contact-page__progress-number {
  color: #ffffff;
}

/* アクティブステップのラベルを強調 */
.contact-page__progress-step--active .contact-page__progress-label {
  color: #2D5016;
  font-weight: 700;
}

/* 完了したステップ */
.contact-page__progress-step--completed .contact-page__progress-circle {
  background: #4caf50;
  border-color: #4caf50;
}

/* 完了済みステップの番号 */
.contact-page__progress-step--completed .contact-page__progress-number {
  color: #ffffff;
}

/* 完了済みステップのラベル */
.contact-page__progress-step--completed .contact-page__progress-label {
  color: #4caf50;
}

/* 進捗ライン */
.contact-page__progress-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 16px;
  min-width: 60px;
  transition: background 0.3s ease;
}

/* 完了したステップの後のラインのみ緑色にする */
.contact-page__progress-step--completed ~ .contact-page__progress-line {
  background: #4caf50;
}

/* アクティブなステップの後のラインはグレーのまま（まだ完了していないため） */
.contact-page__progress-step--active ~ .contact-page__progress-line {
  background: #e0e0e0;
}

/* ===================== フォームボックス（白い背景） ===================== */
.contact-page__form-box {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 0 auto;
}

/* フォームラッパー（最大幅800px、中央揃え） */
.contact-page__form-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* ===================== Contact Form 7 カスタムスタイル ===================== */
/* Contact Form 7のデフォルトスタイルをリセットし、テーマに合わせたスタイルを適用 */

/* フォーム全体のスタイル */
.contact-page__form-wrapper .wpcf7 {
  width: 100%;
}

/* フォーム要素のリセット */
.contact-page__form-wrapper .wpcf7-form {
  display: flex;
  flex-direction: column;
}

/* フォーム内のpタグのスタイルリセット */
.contact-page__form-wrapper .wpcf7-form p {
  margin: 0;
  text-align: left;
}

/* 送信ボタンを含むpタグのみ中央揃え */
.contact-page__form-wrapper .wpcf7-form > p:last-child {
  text-align: center;
  margin-top: 40px;
}

/* Contact Form 7のhidden fieldを非表示 */
.contact-page__form-wrapper .wpcf7-form input[type="hidden"] {
  display: none;
}

/* WordPressブロック挿入時にもhidden fieldを非表示 */
.contact-page .contact-page__form-wrapper .wpcf7-form input[type="hidden"] {
  display: none;
}

/* fieldsetとlegendの枠を非表示（Contact Form 7が自動追加する場合がある） */
.contact-page__form-wrapper .wpcf7-form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

/* fieldset内のlegendも非表示 */
.contact-page__form-wrapper .wpcf7-form fieldset legend {
  display: none;
}

/* 不要な枠線を削除 */
.contact-page__form-wrapper .wpcf7-form > * {
  border: none;
  outline: none;
}

/* フォームグループ（各フィールドのラッパー） */
.contact-page__form-wrapper .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

/* ラベルがない入力フィールドのラッパーを非表示（Contact Form 7の自動追加フィールドなど） */
/* 注意: Contact Form 7では、labelの中にwpcf7-form-control-wrapが含まれる構造のため、
   このセレクターは使用しない（正しいフィールドも非表示になってしまう） */
/* .contact-page__form-wrapper .wpcf7-form-control-wrap:not(:has(> label)) {
  display: none;
} */

/* ラベルスタイル */
.contact-page__form-wrapper .wpcf7 label {
  display: block;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #444444;
  margin-bottom: 8px;
}

/* 必須マーカーのスタイル */
.contact-page__form-wrapper .wpcf7 label .wpcf7-required,
/* ラベルラップ内の必須マーカーにも適用 */
.contact-page__form-wrapper .wpcf7 .wpcf7-form-control-wrap label .wpcf7-required {
  color: #fc0505;
  margin-left: 4px;
  font-size: 14px;
  font-weight: 400;
}

/* お名前フィールドグループ */
.contact-page__form-wrapper .wpcf7 .name-field-group {
  display: block;
  width: 100%;
}

/* グループ見出しラベルの余白調整 */
.contact-page__form-wrapper .wpcf7 .name-field-group > label {
  margin-bottom: 8px;
}

/* お名前フィールド（姓と名を横並び） */
.contact-page__form-wrapper .wpcf7 .name-fields {
  display: flex;
  gap: 16px;
  width: 100%;
}

/* 各お名前フィールド（flexで均等幅） */
.contact-page__form-wrapper .wpcf7 .name-field {
  flex: 1;
  display: block;
}

/* 姓/名のサブラベル */
.contact-page__form-wrapper .wpcf7 .name-field label {
  display: block;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #666666;
  margin-bottom: 4px;
}

/* 姓/名入力欄の幅を100%に */
.contact-page__form-wrapper .wpcf7 .name-field input {
  width: 100%;
}

/* プレースホルダーと説明文のスタイル */
.contact-page__form-wrapper .wpcf7 label small {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: #666666;
  margin-top: 8px;
  font-weight: 400;
}

/* テキスト入力フィールド（text, email, tel, url） */
.contact-page__form-wrapper .wpcf7 input[type="text"],
/* メールアドレス欄 */
.contact-page__form-wrapper .wpcf7 input[type="email"],
/* 電話番号欄 */
.contact-page__form-wrapper .wpcf7 input[type="tel"],
/* URL欄 */
.contact-page__form-wrapper .wpcf7 input[type="url"],
/* 数値欄 */
.contact-page__form-wrapper .wpcf7 input[type="number"] {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* プレースホルダーのスタイル */
.contact-page__form-wrapper .wpcf7 input::placeholder,
/* テキストエリアのプレースホルダー */
.contact-page__form-wrapper .wpcf7 textarea::placeholder {
  color: #999999;
  opacity: 1;
  font-size: 16px;
  line-height: 24px;
}

/* テキスト入力フィールドのフォーカス時 */
.contact-page__form-wrapper .wpcf7 input[type="text"]:focus,
/* メール欄フォーカス */
.contact-page__form-wrapper .wpcf7 input[type="email"]:focus,
/* 電話欄フォーカス */
.contact-page__form-wrapper .wpcf7 input[type="tel"]:focus,
/* URL欄フォーカス */
.contact-page__form-wrapper .wpcf7 input[type="url"]:focus,
/* 数値欄フォーカス */
.contact-page__form-wrapper .wpcf7 input[type="number"]:focus {
  outline: none;
  border-color: #2D5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* テキストエリア */
.contact-page__form-wrapper .wpcf7 textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* プレースホルダーのスタイル（テキストエリア用） */
.contact-page__form-wrapper .wpcf7 textarea::placeholder {
  color: #999999;
  opacity: 1;
  font-size: 16px;
  line-height: 24px;
}

/* テキストエリアのフォーカス時 */
.contact-page__form-wrapper .wpcf7 textarea:focus {
  outline: none;
  border-color: #2D5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* セレクトボックス */
.contact-page__form-wrapper .wpcf7 select {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23444' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px;
  padding-right: 50px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* セレクトボックスのフォーカス時 */
.contact-page__form-wrapper .wpcf7 select:focus {
  outline: none;
  border-color: #2D5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* チェックボックスとラジオボタン */
.contact-page__form-wrapper .wpcf7 input[type="checkbox"],
/* ラジオボタン側にも同スタイルを適用 */
.contact-page__form-wrapper .wpcf7 input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #2D5016;
  flex-shrink: 0;
}

/* チェックボックス/ラジオボタンのラベル */
.contact-page__form-wrapper .wpcf7 .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

/* チェックボックス/ラジオのラベル本体 */
.contact-page__form-wrapper .wpcf7 .wpcf7-list-item label {
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* 個人情報の取り扱いチェックボックス */
.contact-page__form-wrapper .wpcf7 .wpcf7-acceptance {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 個人情報の確認チェック用リスト */
.contact-page__form-wrapper .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin-bottom: 0;
}

/* 同意ラベル内の補足テキスト */
.contact-page__form-wrapper .wpcf7 .wpcf7-acceptance label small {
  margin-top: 4px;
  margin-left: 28px;
}

/* 送信ボタン */
.contact-page__form-wrapper .wpcf7 input[type="submit"],
/* buttonタグ版送信ボタン */
.contact-page__form-wrapper .wpcf7 button[type="submit"] {
  width: 100%;
  max-width: 420px;
  margin: 40px auto 0;
  padding: 20px 52px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #fff;
  background: #2D5016;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.3);
}

/* 送信ボタンの親要素を中央揃え（:has()セレクター対応ブラウザ用） */
.contact-page__form-wrapper .wpcf7-form p:has(input[type="submit"]),
/* buttonを使うケースにも対応 */
.contact-page__form-wrapper .wpcf7-form p:has(button[type="submit"]) {
  text-align: center;
  margin: 0;
}

/* 送信ボタンに重ねるグローオーバーレイ */
.contact-page__form-wrapper .wpcf7 input[type="submit"]::before,
/* buttonのホバー演出 */
.contact-page__form-wrapper .wpcf7 button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ホバー時の背景・影変化 */
.contact-page__form-wrapper .wpcf7 input[type="submit"]:hover,
/* buttonホバー時 */
.contact-page__form-wrapper .wpcf7 button[type="submit"]:hover {
  background: #2D5016;
  box-shadow: 0 12px 36px rgba(45, 80, 22, 0.35);
}

/* ホバー時にオーバーレイを可視化 */
.contact-page__form-wrapper .wpcf7 input[type="submit"]:hover::before,
/* buttonホバー時のグロー */
.contact-page__form-wrapper .wpcf7 button[type="submit"]:hover::before {
  opacity: 1;
}

/* 押下中のトーン */
.contact-page__form-wrapper .wpcf7 input[type="submit"]:active,
/* buttonアクティブ時 */
.contact-page__form-wrapper .wpcf7 button[type="submit"]:active {
  background: #2D5016;
  box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3);
}

/* 無効状態の配色 */
.contact-page__form-wrapper .wpcf7 input[type="submit"]:disabled,
/* buttonの無効状態 */
.contact-page__form-wrapper .wpcf7 button[type="submit"]:disabled {
  background: #cccccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* エラーメッセージ */
.contact-page__form-wrapper .wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #2D5016;
}

/* バリデーションエラー時の入力フィールド */
.contact-page__form-wrapper .wpcf7 .wpcf7-not-valid {
  border-color: #2D5016;
  background-color: #fff5f2;
}

/* 送信ステータスメッセージ */
.contact-page__form-wrapper .wpcf7 .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 24px;
  border-radius: 4px;
  text-align: center;
}

/* 送信成功メッセージ */
.contact-page__form-wrapper .wpcf7 .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* 送信失敗メッセージ */
.contact-page__form-wrapper .wpcf7 .wpcf7-mail-sent-ng {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* スパム検出メッセージ */
.contact-page__form-wrapper .wpcf7 .wpcf7-spam {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* バリデーションエラーメッセージ */
.contact-page__form-wrapper .wpcf7 .wpcf7-validation-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* アクセシビリティ対応：スクリーンリーダー用テキスト */
.contact-page__form-wrapper .wpcf7 .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
}

/* フォームメッセージ（フォーム未設定時） */
.contact-page__form-message {
  padding: 40px 20px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

/* フォーム未設定時の案内テキスト */
.contact-page__form-message p {
  font-size: 16px;
  line-height: 24px;
  color: #444444;
  margin: 0 0 16px;
}

/* 最後の段落だけ余白を除去 */
.contact-page__form-message p:last-child {
  margin-bottom: 0;
}

/* ===================== 確認画面スタイル ===================== */
.contact-page__confirm-wrapper {
  width: 100%;
}

/* 確認画面の白背景領域 */
.contact-page__confirm-content {
  width: 100%;
}

/* 確認画面の見出し */
.contact-page__confirm-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: #000000;
  margin: 0 0 32px;
  text-align: center;
}

/* 入力内容一覧（縦並び） */
.contact-page__confirm-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

/* 確認画面のエラーメッセージ */
.contact-page__confirm-error {
  margin: 24px 0;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 24px;
  border-radius: 4px;
  text-align: center;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 各入力項目の表示ブロック */
.contact-page__confirm-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

/* 確認項目の末尾余白を除去 */
.contact-page__confirm-item:last-child {
  margin-bottom: 0;
}

/* 項目ラベル */
.contact-page__confirm-item-label {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #444444;
  margin-bottom: 8px;
}

/* 入力値を囲むボックス */
.contact-page__confirm-item-value {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-sizing: border-box;
  word-break: break-word;
  min-height: 24px;
}

/* 複数行テキスト用の整形 */
.contact-page__confirm-item-value--multiline {
  white-space: pre-wrap;
  min-height: 100px;
}

/* 戻る・送信ボタンのコンテナ */
.contact-page__confirm-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

/* 戻る/送信ボタンの共通スタイル */
.contact-page__confirm-button {
  width: 100%;
  max-width: 420px;
  padding: 20px 52px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.3);
}

/* 確認画面ボタンのハイライト */
.contact-page__confirm-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* 戻るボタンの配色 */
.contact-page__confirm-button--back {
  background: #f5f5f5;
  color: #666666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 戻るボタンのホバー */
.contact-page__confirm-button--back:hover {
  background: #e0e0e0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 戻るボタンのホバー演出 */
.contact-page__confirm-button--back:hover::before {
  opacity: 1;
}

/* 戻るボタンのアクティブ */
.contact-page__confirm-button--back:active {
  background: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 送信ボタンの配色 */
.contact-page__confirm-button--submit {
  background: #2D5016;
  color: #ffffff;
}

/* 送信ボタンのホバー */
.contact-page__confirm-button--submit:hover {
  background: #2D5016;
  box-shadow: 0 12px 36px rgba(45, 80, 22, 0.35);
}

/* 送信ボタンのホバー演出 */
.contact-page__confirm-button--submit:hover::before {
  opacity: 1;
}

/* 送信ボタンのアクティブ */
.contact-page__confirm-button--submit:active {
  background: #2D5016;
  box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3);
}

/* ===================== 完了画面 ===================== */
.contact-page__complete-wrapper {
  display: none;
  width: 100%;
}

.contact-page__complete-content {
  width: 100%;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-page__complete-title {
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.contact-page__complete-subtitle {
  font-size: 16px;
  color: #888888;
  margin-bottom: 24px;
}

.contact-page__complete-message {
  font-size: 16px;
  line-height: 28px;
  color: #333333;
}

.contact-page__complete-message p {
  margin-bottom: 16px;
}

.contact-page__complete-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.contact-page__complete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-page__complete-button--home {
  background: #111111;
  color: #ffffff;
}

.contact-page__complete-button--reset {
  background: #ffffff;
  color: #111111;
  border: 1px solid #dddddd;
}

.contact-page__complete-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.contact-page__complete-button:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ===================== レスポンシブ対応 ===================== */
@media (max-width: 768px) {
  /* ヘッダータイトルのフォントサイズ調整 */
  .contact-page__header-title {
    font-size: 48px;
    line-height: 72px;
  }

  /* フォームセクションのパディング調整 */
  .contact-page__form-section {
    padding: 32px 1rem;
  }

  /* フォームボックスのパディング調整 */
  .contact-page__form-box {
    padding: 24px 20px;
  }

  /* 進捗インジケーターの調整 */
  .contact-page__progress {
    max-width: 100%;
    padding: 0 20px;
  }

  /* ラインの長さを短めにする */
  .contact-page__progress-line {
    min-width: 30px;
    margin: 0 8px;
  }

  /* 丸アイコンを縮小 */
  .contact-page__progress-circle {
    width: 32px;
    height: 32px;
  }

  /* ステップ番号を小さく */
  .contact-page__progress-number {
    font-size: 14px;
  }

  /* ステップラベルも縮小 */
  .contact-page__progress-label {
    font-size: 12px;
  }

  /* 確認画面のボタン調整 */
  .contact-page__confirm-buttons {
    flex-direction: column;
  }

  /* モバイルではボタン幅を自動に */
  .contact-page__confirm-button {
    width: 100%;
    min-width: auto;
  }

  /* お名前フィールドを縦並びに変更 */
  .contact-page__form-wrapper .wpcf7 .name-fields {
    flex-direction: column;
    gap: 0;
  }

  /* 1つずつ縦に並ぶため下余白を追加 */
  .contact-page__form-wrapper .wpcf7 .name-field {
    margin-bottom: 16px;
  }

  /* 最後のフィールドは余白なし */
  .contact-page__form-wrapper .wpcf7 .name-field:last-child {
    margin-bottom: 0;
  }

  /* 見出し・本文などテキスト要素の中央寄せ */
  .contact-page__header-section,
  .contact-page__form-section,
  .contact-page__form-container,
  .contact-page__progress-step,
  .contact-page__form-wrapper,
  .contact-thank-you-page__header-section,
  .contact-thank-you-page__message-section,
  .contact-popup__content {
    text-align: center;
    align-items: center;
  }
  /* 入力エリアも中央寄せに */
  .contact-page__form-wrapper .wpcf7-form {
    text-align: center;
  }

  /* 送信ボタンの幅調整 */
  .contact-page__form-wrapper .wpcf7 input[type="submit"],
  /* buttonタグの送信ボタンも全幅に */
  .contact-page__form-wrapper .wpcf7 button[type="submit"] {
    max-width: 100%;
  }

  .contact-page__complete-content {
    padding: 24px;
  }

  .contact-page__complete-buttons {
    flex-direction: column;
  }

  .contact-page__complete-button {
    width: 100%;
  }
}

/* (max-width: 480px) 向けのレスポンシブ調整 */
@media (max-width: 480px) {
  /* ヘッダータイトルのフォントサイズ調整 */
  .contact-page__header-title {
    font-size: 36px;
    line-height: 54px;
  }

  /* ヘッダーセクションのパディング調整 */
  .contact-page__header-section {
    padding: 60px 1rem 32px;
  }
}

/* ===================== CONTACT サンクスページ専用スタイル ===================== */

/* サンクスページ全体のコンテナ（全幅、背景色#F5F1EB） */
.contact-thank-you-page {
  width: 100%;
  max-width: 100%;
  background: #F5F1EB;
}

/* サンクスページのヘッダーセクション（全幅、白背景、中央揃え） */
.contact-thank-you-page__header-section {
  width: 100%;
  margin: 0;
  padding: 80px 1rem 40px;
  text-align: center;
  background: #fff;
}

/* サンクスページのヘッダータイトル（超大サイズ、太字、黒色） */
.contact-thank-you-page__header-title {
  font-weight: 900;
  font-size: 80px;
  line-height: 1.3;
  letter-spacing: 0.28em;
  margin: 0 0 24px;
  color: #d8d8d8;
}

/* サンクスページのヘッダーサブタイトル（小サイズ、オレンジ色） */
.contact-thank-you-page__header-subtitle {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  color: #888888;
}

/* サンクスページのメッセージセクション（最大幅1400px、中央揃え、背景色#F5F1EB） */
.contact-thank-you-page__message-section {
  max-width: 1400px;
  margin: clamp(20px, 4vw, 48px) auto;
  padding: clamp(32px, 5vw, 72px) 2rem;
  background: #F5F1EB;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* メッセージコンテナ（中央揃え） */
.contact-thank-you-page__message-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* メッセージコンテンツ */
.contact-thank-you-page__message-content {
  background: #ffffff;
  padding: 60px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* メッセージテキスト */
.contact-thank-you-page__message-text {
  font-size: 18px;
  line-height: 32px;
  color: #444444;
  margin-bottom: 40px;
}

/* サンクス本文内の段落 */
.contact-thank-you-page__message-text p {
  margin: 0 0 16px;
}

/* 最終段落は下余白をなくす */
.contact-thank-you-page__message-text p:last-child {
  margin-bottom: 0;
}

/* ボタンコンテナ */
.contact-thank-you-page__button-container {
  margin-top: 40px;
}

/* ホームへ戻るボタン */
.contact-thank-you-page__button {
  display: inline-block;
  padding: 18px 40px;
  font-weight: 700;
  font-size: 18px;
  line-height: 27px;
  color: #ffffff;
  background: #2D5016;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ホームへ戻るボタンのホバー時 */
.contact-thank-you-page__button:hover {
  background: #2D5016;
  transform: translateY(-2px);
}

/* ホームへ戻るボタンのアクティブ時 */
.contact-thank-you-page__button:active {
  transform: translateY(0);
}

/* サンクスページのレスポンシブ対応 */
@media (max-width: 768px) {
  /* サンクス見出しを縮小 */
  .contact-thank-you-page__header-title {
    font-size: 48px;
    line-height: 72px;
  }

  /* セクションのパディングを減らす */
  .contact-thank-you-page__message-section {
    padding: 32px 1rem;
  }

  /* メッセージカードの余白を調整 */
  .contact-thank-you-page__message-content {
    padding: 40px 24px;
  }

  /* 本文フォントを小さく */
  .contact-thank-you-page__message-text {
    font-size: 16px;
    line-height: 28px;
  }
}

/* サンクスページ：モバイル幅の最終調整 */
@media (max-width: 480px) {
  /* サンクス見出しをさらに縮小 */
  .contact-thank-you-page__header-title {
    font-size: 36px;
    line-height: 54px;
  }

  /* ヘッダーの余白を小さく */
  .contact-thank-you-page__header-section {
    padding: 60px 1rem 32px;
  }

  /* メッセージカードの内側余白を縮小 */
  .contact-thank-you-page__message-content {
    padding: 32px 20px;
  }
}

/* ===================== CONTACT ポップアップスタイル ===================== */

/* ポップアップオーバーレイ */
.contact-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 表示状態にしたときのトランジション */
.contact-popup--show {
  opacity: 1;
  visibility: visible;
}

/* 背景オーバーレイ */
.contact-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* ポップアップ本体 */
.contact-popup__content {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* 表示時にスケールアップ */
.contact-popup--show .contact-popup__content {
  transform: scale(1);
}

/* 見出し部分 */
.contact-popup__header {
  text-align: center;
  margin-bottom: 24px;
}

/* ポップアップタイトル */
.contact-popup__title {
  font-weight: 900;
  font-size: 48px;
  line-height: 72px;
  margin: 0 0 12px;
  color: #000000;
}

/* サブタイトル */
.contact-popup__subtitle {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  color: #888888;
}

/* 本文テキスト */
.contact-popup__message {
  font-size: 16px;
  line-height: 28px;
  color: #444444;
  margin-bottom: 32px;
  text-align: center;
}

/* 本文内段落 */
.contact-popup__message p {
  margin: 0 0 12px;
}

/* 本文末尾の余白を削除 */
.contact-popup__message p:last-child {
  margin-bottom: 0;
}

/* ポップアップのボタンコンテナ */
.contact-popup__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 汎用ポップアップボタン */
.contact-popup__button {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  background: #2D5016;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

/* ボタンのホバー演出 */
.contact-popup__button:hover {
  background: #2D5016;
  transform: translateY(-2px);
}

/* ボタンの押下状態 */
.contact-popup__button:active {
  transform: translateY(0);
}

/* 閉じるボタンの配色 */
.contact-popup__button--close {
  background: #cccccc;
  color: #000000;
}

/* 閉じるボタンのホバー */
.contact-popup__button--close:hover {
  background: #999999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  /* ポップアップの余白を削減 */
  .contact-popup__content {
    padding: 32px 24px;
  }

  /* タイトルを小さく */
  .contact-popup__title {
    font-size: 36px;
    line-height: 54px;
  }

  /* ボタンを縦並びに */
  .contact-popup__buttons {
    flex-direction: column;
  }

  /* ボタンを全幅に拡張 */
  .contact-popup__button {
    width: 100%;
  }
}

/* ===================== CONTACTページのCTAセクション非表示 ===================== */
/* Contactページ内のCTAセクションを非表示にする */
.contact-page .top__cta,
.contact-page section#ec {
  display: none !important;
}
