@charset "UTF-8";

/* ========================
  faqページ main背景
======================== */
main {
  position: relative;
  background-color: var(--color-gray-100);
  isolation: isolate;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/common/bg-texture.webp") center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

/* ========================
  FAQ 見出し（線なし・文字間）
======================== */
.section__heading {
  border: none;
  letter-spacing: var(--ls-sm);
}

/* ========================
  FAQ ナビゲーション
======================== */
.faq-nav {
  padding-top: var(--section-gap);
  padding-bottom: var(--space-xl);
}

.faq-nav__list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-nav__item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-nav__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-xs);
  font-size: var(--fs-md); /* 20→24px */
  color: var(--color-text);
  text-decoration: none;
  line-height: var(--lh-base);
}

/* 下向き矢印 */
.faq-nav__item a::after {
  display: inline-block;
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 2px;
  flex-shrink: 0;
}

/* tablet 1024px */
@media screen and (max-width: 1024px) {
  .faq-nav__list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-lg);
    row-gap: var(--space-md-lg);
  }

  .faq-nav__item a {
    font-size: var(--fs-body-lg);
    white-space: nowrap;
  }
}

/* sp 768px */
@media screen and (max-width: 768px) {
  .faq-nav {
    padding-top: 8rem;
  }

  .faq-nav__list {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .faq-nav__item a {
    font-size: var(--fs-base);
  }
}

/* ========================
  FAQ コンポーネント faqページ固有調整
  （基本スタイルは style.css に定義）
======================== */

/* Q.ラベル：faqページのみ太字 */
.faq-question__label {
  font-weight: 600;
}

/* 閉じた時も明朝体を維持 */
.faq-item:not([open]) .faq-question__text {
  font-family: var(--font-mincho);
}

/* A.ラベル：faqページのみ太字 */
.faq-answer__label {
  font-weight: 600;
}

/* A本文：faqページのフォントサイズ・行間 */
.faq-answer__text {
  font-size: var(--fs-body);   /* 16→18px */
  line-height: var(--lh-body);
}

/* sp 768px */
@media screen and (max-width: 768px) {
  .faq-question__text {
    font-size: var(--fs-body); /* 18→20px */
  }
}

/* ========================
  faqページのみ footer z-index 調整
  （将来WordPress化時は留意）
======================== */
body.faq-page footer {
  position: relative;
  z-index: 2;
  isolation: isolate;
  background-color: var(--color-bg-primary);
}
body.faq-page .footer__inner {
  position: relative;
  z-index: 1;
}
