@charset "utf-8";

/* ===お問い合わせタイトル=== */
.contact_heading {
  font-weight: 400;
  font-size: 3.8rem;
  display: flex;
  align-items: end;
  margin-bottom: 7rem;
}

.contact_heading::before {
  content: "";
  display: block;
  width: 5rem;
  height: 5rem;
  background: url('../img/icon.png') no-repeat center/contain;
}


/* お問い合わせフォーム全体の白いコンテナ（CF7の自動生成タグ対応ラッパー） */
.contact_all_wrapper .wpcf7-form,
.contact_all {
  background-color: #ffffff;
  box-shadow: 0 0 15px 15px rgba(255, 255, 255, 1);
  border-radius: 40px;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem;
  box-sizing: border-box;
}

/* 項目タイトル */
.label {
  color: #c56b3c;
  font-size: 1.5rem;
  font-weight: 400;
  min-height: 3rem;
  display: flex;
  justify-content: left;
  align-items: center;
}

/* ===フォーム記入欄レイアウト=== */
.wrap {
  display: flex;
  flex-direction: column;
}

.form_row1 {
  display: grid;
  grid-template-columns: 350px 1fr;
  align-items: center;
  margin-bottom: 3rem;
  width: 100%;
}

/* 必須項目装飾 */
.required {
  border-radius: 0.8rem;
  margin-right: 4rem;
  padding-top: 0.3rem;
  padding-bottom: 0.6rem;
  width: 4rem;
  display: inline-block;
  text-align: center;
  background: #8BAF42;
  color: #fff;
  font-size: 1.5rem;
}

.input_area {
  display: flex;
  flex-direction: column;
}

/* 左側（お問い合わせ先＋必須）グループ */
.contact_form {
  max-width: 500px;
  width: auto;
  padding-right: 20px;
  line-height: 1;
}

/* 自動生成されたpタグに対して横並び（space-between）を適用する */
.contact_form p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin: 0;
}

/* 項目名の文字幅を固定、または自動にして広がりすぎを防ぐ */
.contact_form .label {
  width: auto;
  display: inline-block;
}

/* ラジオボタン４つグループ */
.radio_group {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
  font-size: 1.5rem;
  color: #c56b3c;
  font-weight: 400;
}

/* CF7特有のラジオボタンリスト項目縦並び調整 */
.radio_group .wpcf7-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.radio_group label {
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ラジオボタン自体の装飾 */
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: #A35A2B;
  transform: scale(1.5);
  margin: 0.625rem 1.5rem 0.625rem 0.625rem;
  cursor: pointer;
}

/* ２～６のテキスト入力欄 */
.input_box {
  width: 100%;
  max-width: 600px;
  height: 5rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding: 0.625rem;
  border: 3px solid #A35A2B;
  border-radius: 0.9rem;
  font-size: 1.5rem;
  line-height: 1.5;
  box-sizing: border-box;
}

/* フォーカス時の色設定 */
.input_box:focus,
.message:focus {
  outline: none;
  border: 3px solid #fa8b46;
}

/* 入力欄の上の※注意事項 */
.warning_note {
  font-size: 1.3rem;
  margin-left: 0;
  margin-bottom: 0.5rem;
  text-align: left;
}

/* 7 お問い合わせ内容枠 */
.message {
  width: 100%;
  max-width: 600px;
  height: 25rem;
  padding: 0.625rem;
  border: 3px solid #A35A2B;
  border-radius: 0.9rem;
  font-size: 1.5rem;
  line-height: 1.5;
  box-sizing: border-box;
  resize: vertical;
}

/* ===個人情報スクロール枠=== */
.scroll {
  width: 80%;
  max-width: 800px;
  max-height: 40vh;
  margin: 40px auto 0 auto;
  overflow-y: auto;
  border: 2px solid #A35A2B;
  padding: 2rem;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fff;
}

.personally_identifiable_information {
  font-size: 1.3rem;
  text-align: left;
  line-height: 1.6;
}

/* CF7同意チェックボックスのラッパー */
.wpcf7-checkbox {
  font-size: 1.6rem;
  color: #333;
  cursor: pointer;
}

.wpcf7-checkbox input[type="checkbox"] {
  transform: scale(1.6);
  margin-right: 12px;
  accent-color: #7a2d1d;
  cursor: pointer;
}

/* ===確認ページへ進むボタン / 送信ボタン=== */
.confirmation_button {
  margin: 50px auto 10px auto;
  font-size: 3rem;
  border-radius: 6rem;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  border: none;
  color: white;
  background: linear-gradient(-90deg, #69b87b 0%, #a7bf6c 100%);
  width: 37rem;
  height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform 0.3s, box-shadow 0.1s;
  cursor: pointer;
}

.confirmation_button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-90deg, #a7bf6c 0%, #69b87b 100%);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: -1;
}

.confirmation_button:hover::before {
  opacity: 1;
}

/* ボタン無効化状態（disabled）のスタイル */
.confirmation_button:disabled {
  background: #ccc !important;
  color: #fff !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.confirmation_button:disabled::before {
  display: none;
}

/* 戻って修正するボタン */
.return_button {
  background-color: #fff;
  color: #666;
  font-size: 3rem;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  border: 2px solid #ccc;
  border-radius: 6rem;
  width: 37rem;
  height: 8.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 50px;
}

.return_button:hover {
  background-color: #eee;
}

/* ===確認画面項目確認用のスタイル=== */
.c-form__confirm {
  display: none;
  /* 初期状態は非表示 */
}

.confirm_value {
  font-size: 1.6rem;
  color: #333;
  font-weight: 400;
  text-align: left;
  min-height: 3rem;
  display: flex;
  align-items: center;
  padding-left: 5px;
}

/* === ボタン共通ホバーエフェクト === */
.confirmation_button,
.contact_button,
.contact_access_button,
.return_button {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.confirmation_button:hover:not(:disabled),
.contact_button:hover,
.contact_access_button:hover,
.return_button:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.confirmation_button:active:not(:disabled),
.contact_button:active,
.contact_access_button:active,
.return_button:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}

/*電話、メールでのお問合せ全体の枠 */
.contact_enclosure {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 10rem;
  margin-bottom: 2rem;
  padding-left: 30px;
  padding-right: 30px;
}

/* ボタンの土台設定 */
.contact_button {
  font-size: 1.75rem;
  border-radius: 6rem;
  border: none;
  width: 37rem;
  height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 5px 6px 10px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform 0.3s, box-shadow 0.1s;
  margin-bottom: 35px;
  background-color: #bca564;
  background: linear-gradient(to right, #bca564, #76c09b);
}

.contact_button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to left, #bca564, #76c09b);
  transition: opacity 1s ease;
  z-index: -1;
}

.contact_button:hover::before {
  opacity: 1;
}

.contact_button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* === アクセス情報ボタン：文字を白くする === */
.info_button {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 7rem;
  gap: 4rem;
}

.contact_access_button {
  border-radius: 6rem;
  border: none;
  width: 37rem;
  height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 5px 6px 10px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(-90deg, #a8be6c 0%, #cc725b 100%);
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-family: "Shippori Mincho", serif;
}

.contact_access_button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: -1;
  background: linear-gradient(-90deg, #cc725b 0%, #a8be6c 100%);
}

.contact_access_button:hover::before {
  opacity: 1;
}

.contact_access_button:hover .hover {
  opacity: 1;
}

.contact_access_button:hover .normal {
  opacity: 0;
}

.contact_access_imge.normal {
  transition: opacity 1s ease;
}

.contact_access_imge.hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
}

/* CF7用の不要なスクリーンリーダーレスポンス枠の非表示化 */
.wpcf7 .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  border: 0;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* 電話とメールボタンの土台 */
.contact_button_new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37rem;
  height: 8.5rem;
  text-decoration: none;
  color: #78321D;
  font-size: 1.75rem;
  border-radius: 6rem;
  border: none;
  box-shadow: 5px 6px 10px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  z-index: 0;
  margin-bottom: 35px;
  background: linear-gradient(to right, #bca564, #76c09b);
}

/* ホバー時に裏から浮き出るグラデーション（1秒かけてフワッと出す設定） */
.contact_button_new::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to left, #bca564, #76c09b);
  transition: opacity 1s ease;
  z-index: -1;
}

.contact_button_new:hover::before {
  opacity: 1;
}

.contact_button_inner {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- アイコンの基本サイズ設定 --- */
.phone_icon {
  width: 52px;
  height: auto;
}

/* 電話テキスト */
.contact_text_sub {
  font-size: 1.1rem;
}

.contact_text_main {
  display: flex;
  align-items: baseline;
  font-family: "Noto Serif JP", serif;
}

.contact_text_tel {
  font-size: 2rem;
}

.contact_text_num {
  font-size: 3.6rem;
}


/* メールボタンのインナー */
.contact_button_inner2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact_text_box {
  text-align: center;
}

.contact_text_sub2 {
  font-size: 1.3rem;
}

.contact_text_main2 {
  font-size: 2.5rem;
  font-family: "Noto Serif JP", serif;
}

.mail_icon {
  width: 65px;
  height: auto;
}


/* アクセスボタン */
.contact_access_button {
  border-radius: 6rem;
  border: none;
  width: 37rem;
  height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 5px 6px 10px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(-90deg, #a8be6c 0%, #cc725b 100%);
  color: #78321D;
}

.access_icon {
  width: 52px;
  height: auto;
}

.contact_text_main3 {
  font-size: 3.3rem;
  font-family: "Noto Serif JP", serif;
}

/* アクセスボタン用のフワッと変わるグラデーション裏地 */
.contact_access_button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(-90deg, #cc725b 0%, #a8be6c 100%);
  transition: opacity 1s ease;
  z-index: -1;
}

.contact_access_button:hover::before {
  opacity: 1;
}


/* ===================================================
   ★ ホバー時のアニメーション・色変更タイミング完全同期設定 ★
=================================================== */

/* 1. 全ての子要素や画像に対して「0.3秒」の変化アニメーションを適用 */
.contact_button_new,
.contact_access_button,
.contact_button_new *,
.contact_access_button *,
.phone_icon,
.mail_icon,
.access_icon {
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

/* 2. 親要素ホバー時：ふわっと浮き出る動き */
.contact_button_new:hover,
.contact_access_button:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 3. クリック時（アクティブ）のわずかな沈み込み */
.contact_button_new:active,
.contact_access_button:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}

/* 4. 親のホバー状態を起点としてクラスを指定し、詳細度を高めてスマホの個別サイズ指定に競り勝つ */
a.contact_button_new:hover .contact_text_sub,
a.contact_button_new:hover .contact_text_main,
a.contact_button_new:hover .contact_text_sub2,
a.contact_button_new:hover .contact_text_main2,
a.contact_button_new:hover .contact_text_tel,
a.contact_button_new:hover .contact_text_num,
a.contact_access_button:hover .contact_text_main3 {
  color: #ffffff;
}

/* タッチデバイス（スマホ）で指が触れている瞬間（:active）にも文字色を確実に白にする */
a.contact_button_new:active .contact_text_sub,
a.contact_button_new:active .contact_text_main,
a.contact_button_new:active .contact_text_sub2,
a.contact_button_new:active .contact_text_main2,
a.contact_button_new:active .contact_text_tel,
a.contact_button_new:active .contact_text_num,
a.contact_access_button:active .contact_text_main3 {
  color: #ffffff;
}

/* 5. アイコンを白くする処理（ホバー時＆タップ時） */
a.contact_button_new:hover .phone_icon,
a.contact_button_new:hover .mail_icon,
a.contact_access_button:hover .access_icon,
a.contact_button_new:active .phone_icon,
a.contact_button_new:active .mail_icon,
a.contact_access_button:active .access_icon {
  filter: brightness(0) invert(1);
}

/* ======= レスポンシブ：1024px ======= */
@media (max-width: 1024px) {
  .icon_img {
    width: 24px;
    height: auto;
  }

  .contact_all_wrapper .wpcf7-form,
  .contact_all {
    width: 95%;
  }

  .form_row1 {
    grid-template-columns: minmax(120px, 350px) 1fr;
    gap: 1rem;
  }

  .required {
    width: 90px;
  }

  .contact_form {
    width: 100%;
    padding-left: 30px;
  }

  .label {
    width: 100%;
    font-size: 16px;
  }

  .radio_group {
    width: 100%;
  }

  .input_box,
  .message {
    width: 100%;
    font-size: 1.3rem;
  }

  .message {
    height: 200px;
  }

  .contact_enclosure {
    width: 100%;
    max-width: 800px;
    margin: 7rem auto 2rem;
  }
}

/* ======= レスポンシブ：767px (スマホ) ======= */
@media (max-width: 767px) {

  .contact_heading {
    font-size: 2.5rem;
  }

  .contact_heading::before {
    width: 3rem;
    height: 3rem;
  }

  .contact_all_wrapper .wpcf7-form,
  .contact_all {
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .icon_img {
    width: 18px;
    height: auto;
  }

  .form_row1 {
    display: block;
    margin-bottom: 2rem;
  }

  .contact_form {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0.5rem;
    justify-content: flex-start;
    gap: 10px;
  }

  .radio_group {
    font-size: 1.2rem;
  }

  .input_box {
    width: 100%;
    font-size: 1.3rem;
  }

  .required {
    font-size: 1.5rem;
    width: 5rem;
  }

  .message {
    width: 100%;
    height: 16rem;
  }

  .scroll {
    max-height: 30vh;
    width: 100%;
  }

  .confirmation_button {
    width: 28rem;
    height: 7rem;
    font-size: 2rem;
  }

  .return_button {
    width: 28rem;
    height: 7rem;
    font-size: 2rem;
  }

  .contact_enclosure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-top: 5rem;
    padding: 0 15px;
    /* 画面端からの余裕 */
  }

  /* 電話とメールボタン */
  .contact_button_new {
    width: 100%;
    max-width: 370px;
    height: auto;
    min-height: 80px;
    padding: 15px 10px;
    border-radius: 50px;
  }

  /* アクセスボタン */
  .contact_access_button {
    width: 100%;
    max-width: 370px;
    height: auto;
    min-height: 80px;
    padding: 15px 10px;
    border-radius: 50px;
  }

  .contact_button {
    width: 80%;
    min-height: 100px;
    border-radius: 100px;
  }

  .contact_tel_imge,
  .contact_mail_imge {
    width: 65%;
    height: 4rem;
    margin: 0 auto;
  }

  .contact_access_imge {
    width: 70%;
    height: auto;
    margin: 0 auto;
  }

}

@media (max-width: 480px) {

  .contact_button_new {
    width: 30rem;
    height: 6.5rem;
  }

  .phone_icon {
    width: 45px;
  }

  .contact_text_sub {
    font-size: 0.9rem;
  }

  .contact_text_tel {
    font-size: 2rem;
  }

  .contact_text_num {
    font-size: 2.7rem;
  }

  .mail_icon {
    width: 45px;
  }

  .contact_text_main2 {
    font-size: 2rem;
  }

  .contact_access_button {
    width: 30rem;
    height: 6.5rem;
  }

  .access_icon {
    width: 40px;
  }

  .contact_text_main3 {
    font-size: 2.8rem;
  }

}