/* ============================================================
   FAQ PAGE
   page-faq.php 専用スタイル
   読み込み：functions.php の wp_enqueue_scripts で追加すること
   例）get_theme_file_uri('/assets/css/faq.css')
============================================================ */

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

.page-faq {
  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;
}

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

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

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

.faq-hero__title {
  font-size: clamp(80px, 12vw, 160px);
  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;
}

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

/* 装飾軌道リング */
.faq-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.faq-hero__decoOrbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
  animation: faqOrbitSpin 30s linear infinite;
}
.faq-hero__decoOrbit--1 {
  width: 480px; height: 480px;
  animation-duration: 25s;
}
.faq-hero__decoOrbit--2 {
  width: 720px; height: 360px;
  border-color: rgba(100, 120, 255, .08);
  animation-duration: 40s;
  animation-direction: reverse;
}
.faq-hero__decoOrbit--3 {
  width: 960px; height: 300px;
  border-color: rgba(255, 120, 180, .06);
  animation-duration: 55s;
}

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

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

/* ---- カテゴリ ---- */
.faq-cat {
  margin-top: 80px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.faq-cat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-cat__title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 22px;
  font-weight: 700;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  margin-bottom: 4px;
  font-family: 'Lexend', 'FontopoNIHONGO', sans-serif;
}

.faq-cat__titleNum {
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 600;
  color: rgba(180, 170, 255, .8);
  padding: 4px 12px;
  border: 1px solid rgba(180, 170, 255, .35);
  border-radius: 4px;
  line-height: 1;
}

/* ---- FAQリスト ---- */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- FAQアイテム ---- */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
}

/* Q ボタン */
.faq-item__q {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 28px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: background .25s ease;
}

.faq-item__q:hover {
  background: rgba(255, 255, 255, .03);
}

.faq-item__qLabel {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5c6ee8, #9b5de5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.faq-item__qTxt {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  font-family: 'FontopoNIHONGO', sans-serif;
}

/* 矢印 */
.faq-item__arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.faq-item__arrow::before,
.faq-item__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 1.5px;
  background: rgba(255, 255, 255, .5);
  border-radius: 2px;
  transition: background .25s ease;
}
.faq-item__arrow::before {
  left: 2px;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: right center;
}
.faq-item__arrow::after {
  right: 2px;
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: left center;
}

/* 展開時 */
.faq-item__q[aria-expanded="true"] .faq-item__arrow {
  transform: rotate(180deg);
}
.faq-item__q[aria-expanded="true"] .faq-item__arrow::before,
.faq-item__q[aria-expanded="true"] .faq-item__arrow::after {
  background: rgba(180, 170, 255, .9);
}

/* A パネル */
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1);
}
.faq-item__a:not([hidden]) {
  grid-template-rows: 1fr;
}
/* hidden属性をgridで扱うために上書き */
.faq-item__a[hidden] {
  display: grid !important;
  visibility: hidden;
}
.faq-item__a:not([hidden]) {
  visibility: visible;
}

/* A の内側ラッパー（overflow: hidden と合わせて使う） */
.faq-item__a > span,
.faq-item__a > div {
  overflow: hidden;
}

/* A の実際のコンテンツ行 */
.faq-item__a {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 4px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1), padding .4s ease;
}
.faq-item__a.is-open {
  max-height: 400px;
  padding: 4px 4px 28px;
}

.faq-item__aLabel {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: rgba(180, 170, 255, .9);
  margin-top: 2px;
}

.faq-item__aTxt {
  flex: 1;
}
.faq-item__aTxt p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .75);
  font-family: 'FontopoNIHONGO', sans-serif;
  font-weight: 400;
}

/* ============================================================
   CTA
============================================================ */
.faq-cta {
  margin-top: 100px;
  text-align: center;
  padding: 60px 40px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  backdrop-filter: blur(8px);
}

.faq-cta__txt {
  font-size: 18px;
  font-weight: 700;
  opacity: .85;
  margin-bottom: 32px;
  font-family: 'FontopoNIHONGO', sans-serif;
}

.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: auto;
  min-width: 240px;
  padding: 0 40px;
  background-image: linear-gradient(90deg, #3b9bf4, #7fe4b3);
  border-radius: 9999px;
  transition: opacity .25s ease, transform .25s ease;
}
.faq-cta__btn:hover {
  opacity: .88;
  transform: translateY(-2px);
}
.faq-cta__btn .btn_txt {
  font-size: 16px;
  font-weight: 700;
  padding: 16px 0;
  color: #fff;
}

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

  .faq-hero__title {
    font-size: clamp(72px, 18vw, 120px);
  }

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

  .faq-cat {
    margin-top: 56px;
  }

  .faq-cat__title {
    font-size: 18px;
  }

  .faq-item__q {
    padding: 22px 0;
    gap: 14px;
  }

  .faq-item__qTxt {
    font-size: 15px;
  }

  .faq-item__aTxt p {
    font-size: 14px;
  }

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

  .faq-cta {
    padding: 40px 20px;
  }

  .faq-cta__btn {
    width: 100%;
    padding: 0;
  }
}

/* ============================================================
   FOOTER リセット
   .home .hFooter の fixed／宇宙スタイルをFAQページで上書き
============================================================ */
.page-faq .hFooter {
  position: relative !important;
  height: auto !important;
  padding-top: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

.page-faq .hFooter .wrap {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  width: 100% !important;
  margin: auto !important;
}

.page-faq .hFooter_cv {
  width: 100% !important;
  margin-top: 0 !important;
  padding: 60px 0 40px !important;
}

.page-faq .hFooter_cvBtn {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  display: flex !important;
  gap: 24px !important;
}

.page-faq .hFooter_cvBtnItem {
  width: 160px !important;
}

.page-faq .hFooter_menu {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  padding: 24px 0 40px !important;
}

/* フッター文字色をFAQの背景（ダーク）に合わせて白のまま維持 */
.page-faq .hFooter_menuOther,
.page-faq .hFooter_menuOtherCopy,
.page-faq .hFooter_cvBtnItemLinkHd,
.page-faq .hFooter_cvBtnItemLinkTxt,
.page-faq .hd2_txt,
.page-faq .hd2_sub {
  color: #fff !important;
}

@media (max-width: 768px) {
  .page-faq .hFooter_cvBtn {
    width: 60% !important;
  }
}

/* ============================================================
   HEADER：FAQページ用ホワイトカラー上書き
============================================================ */
.page-faq-body .header {
  background-image: linear-gradient(0deg, rgba(0,0,0,0), rgba(0,0,0,0.3));
}

.page-faq-body .header_navLink {
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.page-faq-body .header_logoimg {
  filter: brightness(0) invert(1);
}

.page-faq-body .header_logoPath {
  fill: #fff;
}

.page-faq-body .header_navLinkArrow::before,
.page-faq-body .header_navLinkArrow::after {
  background: #fff;
}

/* ハンバーガーメニュー（SP）のライン色 */
.page-faq-body .header_btnLineItem {
  background: #fff;
}

.page-faq-body .header_btnTxt {
  color: #fff;
}

.page-faq-body {
  background-color: #070b16;
}

/* htmlタグの背景もダークに（スクロール余白対策） */
html:has(.page-faq-body) {
  background-color: #070b16;
}
