/* =====================================================
   FAQ Page
   File: /custom-css/pages/faq.css
===================================================== */

/* 念のため横スクロール抑止 */
html, body { overflow-x: hidden; }

.faq-page {
  background: #fff;
}

/* =========================
   HERO
========================= */
.faq-hero {
  padding: 80px 16px 48px;
  background: #ffffff; /* ← 白背景 */
  color: #111;
  text-align: center; /* ← 中央揃え */
}

.faq-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.faq-hero__title {
  margin: 0 0 18px;
  line-height: 1.15;
  display: inline-block;
  position: relative;
}

/* EN */
.faq-hero__title .en {
  display: block;
  font-size: 14px;
  letter-spacing: .22em;
  color: #ff5a00;
  font-weight: 700;
}

/* JP */
.faq-hero__title .jp {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-top: 10px;
}

/* オレンジアクセント */
.faq-hero__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: #ff5a00;
  border-radius: 2px;
  margin: 16px auto 0;
}

.faq-hero__lead {
  margin: 0;
  color: #555;
  line-height: 1.8;
  font-size: 14px;
}

/* =========================
   BODY
========================= */
.faq-body {
  padding: 60px 16px 80px;
  background: #f3f3f3;
}

.faq-body__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* カテゴリ */
.faq-block {
  margin-bottom: 34px;
}

.faq-block__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
  color: #111;
  padding-left: 12px;
  border-left: 4px solid #ff5a00;
}

/* =========================
   ACCORDION
========================= */
.faq-accordion {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(0,0,0,.08);
}

/* Q */
.faq-q {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* 大きな Q. */
.faq-q::before {
  content: "Q.";
  font-size: 26px;
  font-weight: 800;
  color: #ff5a00;
  line-height: 1;
}

/* 質問テキスト */
.faq-q__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #111;
}

/* +/- icon */
.faq-q__icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff5a00;
  flex-shrink: 0;
}

.faq-q__icon::before,
.faq-q__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.faq-q__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* open state -> minus */
.faq-item.is-open .faq-q__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* A */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  background: #fff;
}

.faq-a__inner {
  padding: 0 18px 18px 54px; /* ← Q分インデント */
  color: #333;
  line-height: 1.9;
  font-size: 15px;
}

/* =========================
   CTA
========================= */
.faq-cta {
  text-align: center;
  margin-top: 34px;
}

.faq-cta__btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: #ff5a00;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  transition: opacity .2s ease;
}

.faq-cta__btn:hover {
  opacity: .85;
}

/* =========================
   FAQ CATEGORY NAV
========================= */

.faq-category {
  position: sticky;
  top: 70px; /* ヘッダー高さに合わせて調整 */
  z-index: 20;
  padding: 14px 12px;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ボタン */
.faq-category button {
  border: none;
  background: #ff5a00;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
  white-space: nowrap;
}

.faq-category button:hover {
  opacity: .85;
}

/* active */
.faq-category button.is-active {
  background: #111;
}



/* =========================
   SP
========================= */
@media (max-width: 768px) {

  .faq-hero {
    padding: 64px 16px 36px;
  }

  .faq-hero__title::after {
    width: 48px;
    height: 3px;
  }

  .faq-body {
    padding: 44px 16px 64px;
  }

  .faq-q {
    padding: 18px 14px;
    grid-template-columns: auto 1fr auto;
  }

  .faq-q::before {
    font-size: 22px;
  }

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

  .faq-a__inner {
    padding: 0 14px 16px 46px;
    font-size: 14px;
  }

  .faq-category {
    top: 56px;
    padding: 12px 10px;
  }

  .faq-category button {
    font-size: 12px;
    padding: 8px 14px;
  }
}