/* ============================================
   Contact Page Stylesheet
   ============================================ */

/* ================================================
   HERO
================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}
.top_image {
  width: 88%;
}
.pan {
  display: flex;
  align-items: center;
  margin: 30px 0 100px 70px;
  margin-top: 30px;
}
.pan img:hover {
  filter: brightness(0) saturate(100%) invert(32%) sepia(94%) saturate(877%) hue-rotate(172deg) brightness(98%) contrast(97%);
}
.section-header_1 {
  text-align: center;
  margin-bottom: 130px;
  padding-top: 30px;
  font-size: 188px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.section-header_1::after {
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  position: absolute;
}

/* ============================================
   Contact セクション全体
   ============================================ */
.contact_aria {
  padding-bottom: 80px;
}
.contact {
  color: rgba(9, 124, 194, 0.11);
}
.contact::after {
  content: "お問い合わせ";
  font-size: 34px;
  bottom: 40px;
  color: rgba(9, 124, 194, 1);
}
.wrapper {
  width: 60%;
  margin: 0 auto 50px;
}

/* ============================================
   CF7 フォーム共通
   ============================================ */

/* フォーム全体のラッパー */
.contact_aria .wpcf7 {
  width: 100%;
}

/* 各行（<p>タグ） */
.contact_aria .contact-form-table p {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

/* ラベル */
.contact_aria .contact-form-table label {
  display: block;
  padding-right: 10px;
  margin-bottom: 8px;
  color: #097CC2;
  font-size: 18px;
  font-weight: bold;
}

/* 必須マーク */
.contact_aria .contact-form-table .required {
  color: #FF0808;
  margin-left: 4px;
}

/* テキスト・TEL・メール入力 */
.contact_aria .wpcf7-form-control.wpcf7-text,
.contact_aria .wpcf7-form-control.wpcf7-tel,
.contact_aria .wpcf7-form-control.wpcf7-email {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  color: #3C3C3C;
}
.contact_aria .wpcf7-form-control.wpcf7-text:focus,
.contact_aria .wpcf7-form-control.wpcf7-tel:focus,
.contact_aria .wpcf7-form-control.wpcf7-email:focus {
  outline: none;
  border-color: #097CC2;
  box-shadow: 0 0 0 2px rgba(9, 124, 194, 0.15);
}

/* セレクト（職業） */
.contact_aria .wpcf7-form-control.wpcf7-select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  color: #3C3C3C;
  cursor: pointer;
  appearance: auto;
}

/* テキストエリア（お問い合わせ内容） */
.contact_aria .wpcf7-form-control.wpcf7-textarea {
  display: block;
  width: 100%;
  height: 220px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  color: #3C3C3C;
  resize: vertical;
}
.contact_aria .wpcf7-form-control.wpcf7-textarea:focus {
  outline: none;
  border-color: #097CC2;
  box-shadow: 0 0 0 2px rgba(9, 124, 194, 0.15);
}

/* wpcf7-form-control-wrap を block にしてフル幅に */
.contact_aria .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ============================================
   同意・送信エリア
   ============================================ */
.contact_aria .contactAgree {
  margin-top: 40px;
  text-align: center;
}
.contact_aria .consent {
  font-size: 18px;
  color: #097CC2;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* チェックボックス（同意） */
.contact_aria .wpcf7-acceptance {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}
.contact_aria .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #3C3C3C;
  cursor: pointer;
}
.contact_aria .wpcf7-acceptance input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #097CC2;
}

/* 送信ボタン（デフォルト：チェック前はグレー・無効） */
.contact_aria .wpcf7-form-control.wpcf7-submit {
  display: block;
  width: 337px;
  height: 73px;
  margin: 0 auto;
  font-size: 22px;
  font-weight: bold;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #e0e0e0;
  color: #aaa;
  cursor: not-allowed;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
/* チェック後：青・クリック可能 */
.contact_aria .wpcf7-form-control.wpcf7-submit.is-active {
  background-color: #097CC2;
  color: #fff;
  border-color: #097CC2;
  cursor: pointer;
}
.contact_aria .wpcf7-form-control.wpcf7-submit.is-active:hover {
  background-color: #0665a3;
  border-color: #0665a3;
}

/* バリデーションエラーメッセージ */
.contact_aria .wpcf7-not-valid-tip {
  color: #FF0808;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}
.contact_aria .wpcf7-response-output {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 15px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .top_image {
    margin: 0 auto;
    width: 95%;
  }
  .hero {
    padding: 10px 0;
    height: 30vh;
  }
  .hero-slider {
    width: auto;
  }
  .section-header_1 {
    font-size: 100px;
    margin-bottom: 100px;
  }
  .contact::after {
    font-size: 25px;
  }
  .wrapper {
    width: 90%;
  }
  .contact_aria .contact-form-table label {
    font-size: 16px;
  }
  .contact_aria .wpcf7-form-control.wpcf7-submit {
    width: 100%;
    max-width: 337px;
    font-size: 18px;
  }
}
