/* ============================================================
   faq.css — よくあるご質問ページ
   ============================================================ */


/* ============================
   FAQ セクション全体
============================ */
.faq-section {
  background: #fff;
  padding: 64px 0 96px;
}

.faq-wrap {
  display: flex;
  align-items: flex-start;
}


/* ============================
   サイドバー
============================ */
.faq-sidebar {
  position: sticky;
  top: 130px;
  width: 280px;
  flex-shrink: 0;
  background: var(--navy);
  border-radius: 0 12px 12px 0;
  padding: 32px 28px 36px 40px;
}

.faq-cat-header {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 0 0 16px;
  text-transform: lowercase;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 8px;
}

.faq-cat-nav {
  display: flex;
  flex-direction: column;
}

.faq-cat-link {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.45;
}

.faq-cat-link:hover {
  color: #fff;
}

.faq-cat-link--active {
  color: #fff;
  font-weight: 600;
}


/* ============================
   メインコンテンツ
============================ */
.faq-main {
  flex: 1;
  min-width: 0;
  max-width: 920px;
  padding: 0 40px 0 100px;
}

/* グループセクション */
.faq-group {
  margin-bottom: 80px;
  scroll-margin-top: 140px; /* ヘッダー高さ + 余白 */
}

.faq-group-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

/* FAQリスト */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}


/* ============================
   Q&A アイテム
============================ */
.faq-item {
  margin-bottom: 8px;
}

/* Q 行 */
.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F6F5E2;
  padding: 16px 20px;
  border-radius: 40px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  outline: none;
}

.faq-q:hover {
  background: #efeede;
}

.faq-q:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

/* A 行 */
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: transparent;
  padding: 16px 56px 20px 20px;
}

.faq-a[hidden] {
  display: none;
}

/* アイコン（Q / A テキスト） */
.faq-icon {
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.2;
  width: 30px;
  text-align: center;
}

.faq-icon--q {
  color: var(--orange);
}

.faq-icon--a {
  color: var(--navy);
}

/* Q テキスト */
.faq-q-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  line-height: 1.55;
}

/* A テキスト */
.faq-a-text {
  flex: 1;
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin: 0;
  padding-top: 4px;
}

/* トグルアイコン（＋） */
.faq-toggle {
  font-size: 24px;
  font-weight: 300;
  color: #444;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s ease;
  margin-left: auto;
  padding-left: 12px;
}

.faq-item--open .faq-toggle {
  transform: rotate(45deg);
}


/* ============================
   RESPONSIVE — Tablet (≤ 1024px)
============================ */
@media (max-width: 1024px) {
  .faq-sidebar {
    width: 200px;
    padding: 24px 16px 28px 20px;
  }

  .faq-cat-link {
    font-size: 13px;
    padding: 10px 0;
  }

  .faq-main {
    padding: 0 24px;
  }

  .faq-group-title {
    font-size: 18px;
  }

  .faq-q {
    padding: 14px 16px;
  }

  .faq-q-text {
    font-size: 14px;
  }

  .faq-a {
    padding: 14px 40px 16px 16px;
  }

  .faq-a-text {
    font-size: 13px;
  }

  .faq-icon {
    font-size: 22px;
    width: 26px;
  }
}


/* ============================
   RESPONSIVE — Mobile (≤ 640px)
============================ */
@media (max-width: 640px) {
  .faq-section { padding: 48px 0 72px; }

  .faq-wrap {
    flex-direction: column;
    padding: 0 16px;
  }

  .faq-main {
    padding: 0;
    margin-top: 32px;
  }

  /* サイドバーを横並びに変更 */
  .faq-sidebar {
    position: static;
    width: 100%;
    border-radius: 10px;
    padding: 20px 20px 24px;
  }

  .faq-cat-header {
    font-size: 14px;
    padding-bottom: 12px;
    margin-bottom: 4px;
  }

  .faq-cat-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .faq-cat-link {
    padding: 8px 0;
    font-size: 13px;
  }

  .faq-group { scroll-margin-top: 90px; }
  .faq-group-title { font-size: 18px; }

  .faq-q { padding: 12px 16px; }
  .faq-q-text { font-size: 13px; }
  .faq-icon { font-size: 18px; width: 22px; }
}
/* ページヒーロー */
.page-hero { background: #c0ccd8 center/cover no-repeat; }
