/* ============================================================
   CONTACT PAGE  /  page-contact.php 専用スタイル
   読み込み：functions.php の wp_enqueue_scripts で追加すること
============================================================ */

/* ---- Base ---- */
.page-contact-body,
html:has(.page-contact-body) {
  background-color: #070b16;
}

/* subpage .main { opacity: 0 } をリセット（GSAPローディングなし） */
.page-subpage .main {
  opacity: 1 !important;
}

.page-contact {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%,  rgba(60, 52, 137, .55), transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 70%,  rgba(92, 44, 76, .35), transparent 60%),
    linear-gradient(180deg, #070b16 0%, #0d1530 50%, #0a0e1a 100%);
  min-height: 100vh;
  color: #fff;
}

/* ============================================================
   HEADER 白色上書き（FAQと共通）
============================================================ */
.page-contact-body .header {
  background-image: linear-gradient(0deg, rgba(0,0,0,0), rgba(0,0,0,0.3));
}
.page-contact-body .header_navLink {
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}
.page-contact-body .header_logoimg {
  filter: brightness(0) invert(1);
}
.page-contact-body .header_logoPath {
  fill: #fff;
}
.page-contact-body .header_btnLineItem {
  background: #fff;
}
.page-contact-body .header_btnTxt {
  color: #fff;
}

/* ============================================================
   HERO
============================================================ */
.contact-hero {
  position: relative;
  padding: 22vh 0 10vh;
  overflow: hidden;
  text-align: center;
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
}

.contact-hero__kicker {
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 700;
  opacity: .6;
  text-transform: uppercase;
}

.contact-hero__title {
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 700;
  line-height: 1;
  margin-top: 8px;
  background: linear-gradient(135deg, #fff 30%, rgba(180,170,255,.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .04em;
}

.contact-hero__sub {
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
  opacity: .75;
  font-family: 'FontopoNIHONGO', sans-serif;
}

.contact-hero__lead {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.9;
  opacity: .65;
  font-family: 'FontopoNIHONGO', sans-serif;
}

/* 装飾軌道リング */
.contact-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.contact-hero__decoOrbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  animation: contactOrbitSpin 30s linear infinite;
}
.contact-hero__decoOrbit--1 { width: 480px; height: 480px; animation-duration: 25s; }
.contact-hero__decoOrbit--2 { width: 720px; height: 360px; border-color: rgba(100,120,255,.08); animation-duration: 40s; animation-direction: reverse; }
.contact-hero__decoOrbit--3 { width: 960px; height: 300px; border-color: rgba(255,120,180,.06); animation-duration: 55s; }

@keyframes contactOrbitSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   BODY
============================================================ */
.contact-body {
  padding: 0 0 120px;
  position: relative;
  z-index: 2;
}

/* ---- カード外枠 ---- */
.contact-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 60px 56px;
  backdrop-filter: blur(8px);
}

/* ============================================================
   CF7 上書きスタイル
============================================================ */

/* フォーム全体 */
.page-contact .wpcf7 {
  font-family: 'FontopoNIHONGO', sans-serif;
}

/* ---- ラベル ---- */
.page-contact .wpcf7 label,
.page-contact .wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.page-contact .wpcf7 label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .08em;
  margin-bottom: 8px;
}

/* ---- 入力フィールド共通 ---- */
.page-contact .wpcf7 input[type="text"],
.page-contact .wpcf7 input[type="email"],
.page-contact .wpcf7 input[type="tel"],
.page-contact .wpcf7 textarea,
.page-contact .wpcf7 select {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-family: 'FontopoNIHONGO', sans-serif;
  color: #fff;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.page-contact .wpcf7 input[type="text"]::placeholder,
.page-contact .wpcf7 input[type="email"]::placeholder,
.page-contact .wpcf7 input[type="tel"]::placeholder,
.page-contact .wpcf7 textarea::placeholder {
  color: rgba(255,255,255,.25);
}

.page-contact .wpcf7 input[type="text"]:focus,
.page-contact .wpcf7 input[type="email"]:focus,
.page-contact .wpcf7 input[type="tel"]:focus,
.page-contact .wpcf7 textarea:focus {
  border-color: rgba(180,170,255,.6);
  background: rgba(255,255,255,.09);
}

/* ---- テキストエリア ---- */
.page-contact .wpcf7 textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

/* ---- フォームの行間 ---- */
.page-contact .wpcf7 p {
  margin-bottom: 28px !important;
  margin-top: 0 !important;
}
.page-contact .wpcf7 p:last-of-type {
  margin-bottom: 0 !important;
}

/* ---- 送信ボタン ---- */
.page-contact .wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 40px auto 0;
  padding: 18px 40px;
  background: linear-gradient(90deg, #3b9bf4, #7fe4b3);
  border: none;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
  font-family: 'FontopoNIHONGO', sans-serif;
  letter-spacing: .06em;
  text-align: center;
}

.page-contact .wpcf7 input[type="submit"]:hover {
  opacity: .85;
  transform: translateY(-2px);
}

/* ---- バリデーションエラー ---- */
.page-contact .wpcf7 .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #ff7b9a;
  margin-top: 6px;
  display: block;
}

.page-contact .wpcf7 .wpcf7-not-valid {
  border-color: rgba(255,80,120,.5) !important;
}

/* ---- 送信メッセージ ---- */
.page-contact .wpcf7 .wpcf7-response-output {
  margin-top: 24px !important;
  padding: 16px 20px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: 'FontopoNIHONGO', sans-serif;
  border: none !important;
}

/* 送信成功 */
.page-contact .wpcf7 .wpcf7-mail-sent-ok {
  background: rgba(127,228,179,.15) !important;
  color: #7fe4b3 !important;
  border: 1px solid rgba(127,228,179,.3) !important;
}

/* 送信失敗 */
.page-contact .wpcf7 .wpcf7-mail-sent-ng,
.page-contact .wpcf7 .wpcf7-aborted {
  background: rgba(255,80,120,.1) !important;
  color: #ff7b9a !important;
  border: 1px solid rgba(255,80,120,.3) !important;
}

/* スパム */
.page-contact .wpcf7 .wpcf7-spam-blocked {
  background: rgba(255,180,60,.1) !important;
  color: #ffb43c !important;
}

/* ---- スピナー ---- */
.page-contact .wpcf7 .wpcf7-spinner {
  margin-left: 12px;
}

/* ============================================================
   FOOTER シンプル版（FAQと共通）
============================================================ */
.page-contact-body .sFooter {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  background: transparent;
}
.page-contact-body .sFooter_menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-contact-body .sFooter_menuOther {
  color: rgba(255,255,255,.5);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.page-contact-body .sFooter_menuOtherLink {
  text-decoration: underline;
  color: rgba(255,255,255,.5);
}
.page-contact-body .sFooter_menuSnsItemLink img {
  width: 24px;
  height: 24px;
  opacity: .5;
  filter: invert(1);
}

/* ============================================================
   RESPONSIVE  ≤ 768px
============================================================ */
@media (max-width: 768px) {
  .contact-hero {
    padding: 18vh 0 8vh;
  }

  .contact-hero__title {
    font-size: clamp(64px, 18vw, 100px);
  }

  .contact-body {
    padding-bottom: 80px;
  }

  .contact-card {
    padding: 40px 24px;
  }

  .contact-hero__decoOrbit--2,
  .contact-hero__decoOrbit--3 {
    display: none;
  }

  .page-contact .wpcf7 input[type="submit"] {
    max-width: 100%;
  }
}

/* ============================================================
   hFooter の固定表示をCONTACTページで完全無効化
============================================================ */
.page-contact-body .hFooter {
  display: none !important;
}

/* ============================================================
   CONTACT ボタン（ヘッダー）：グラデーション青→緑に修正
============================================================ */
.page-contact-body .btn_header {
  background: linear-gradient(90deg, #3b9bf4, #7fe4b3) !important;
  border: none !important;
}

.page-contact-body .btn_header .btn_txt {
  color: #fff !important;
}
