/* =====================
   FAQ PAGE
   ===================== */

.faq-hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: var(--bc-ink-950);
}

/* 2カラムレイアウト */
.faq-body {
  padding: var(--bc-sp-16) 0 var(--bc-sp-20);
}
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--bc-sp-16);
  align-items: start;
}

/* sticky サイドバー */
.faq-sidebar {
  position: sticky;
  top: calc(var(--header-h, 72px) + var(--bc-sp-8));
}
.faq-nav {
  display: flex;
  flex-direction: column;
}
.faq-nav__link {
  display: block;
  padding: 10px var(--bc-sp-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bc-fg-muted);
  border-left: 2px solid var(--bc-border);
  transition: color var(--transition), border-color var(--transition);
  line-height: 1.5;
}
.faq-nav__link:hover {
  color: var(--bc-fg);
  border-left-color: var(--bc-fg-muted);
}
.faq-nav__link.is-active {
  color: var(--bc-brand);
  border-left-color: var(--bc-brand);
}

/* FAQセクション */
.faq-section {
  padding-top: var(--bc-sp-12);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.faq-section:first-child {
  padding-top: 0;
}
.faq-section__heading {
  margin-bottom: var(--bc-sp-6);
  padding-bottom: var(--bc-sp-4);
  border-bottom: 1px solid var(--bc-border);
}
.faq-section__heading h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bc-fg);
}

/* アコーディオン */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--bc-border);
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--bc-sp-5);
  padding: var(--bc-sp-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--bc-fg);
}
.faq-item__question:hover .faq-item__label {
  color: var(--bc-brand);
}
.faq-item__q {
  font-family: var(--bc-font-en);
  font-weight: 900;
  font-size: 1rem;
  color: var(--bc-brand);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 3px;
}
.faq-item__label {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
  transition: color var(--transition);
}
.faq-item__arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--bc-fg-subtle);
  transition: transform 0.3s var(--bc-ease-out), color var(--transition);
}
.faq-item.is-open .faq-item__arrow {
  transform: rotate(45deg);
  color: var(--bc-brand);
}

/* アコーディオン本文 */
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--bc-ease-out);
}
.faq-item.is-open .faq-item__body {
  grid-template-rows: 1fr;
}
.faq-item__body-inner {
  overflow: hidden;
}
.faq-item__answer {
  display: flex;
  gap: var(--bc-sp-5);
  padding: 0 0 var(--bc-sp-5);
}
.faq-item__a {
  font-family: var(--bc-font-en);
  font-weight: 900;
  font-size: 1rem;
  color: var(--bc-fg-subtle);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 3px;
}
.faq-item__text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--bc-fg-muted);
}
.faq-item__text a {
  color: var(--bc-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item__text strong {
  color: var(--bc-fg);
  font-weight: 700;
}

/* CTAバナー */
.faq-cta {
  background: var(--bc-ink-950);
  border-radius: var(--bc-radius-xl);
  padding: var(--bc-sp-12) var(--bc-sp-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-sp-8);
  margin-top: var(--bc-sp-16);
}
.faq-cta__text h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--bc-paper);
  line-height: 1.5;
}
.faq-cta__text p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: var(--bc-sp-2);
}

/* レスポンシブ */
@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-sidebar {
    position: static;
    border-bottom: 1px solid var(--bc-border);
    padding-bottom: var(--bc-sp-6);
  }
  .faq-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--bc-sp-2);
  }
  .faq-nav__link {
    border-left: none;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius-full);
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  .faq-nav__link.is-active {
    background: var(--bc-brand);
    border-color: var(--bc-brand);
    color: #fff;
  }
  .faq-section:first-child { padding-top: var(--bc-sp-8); }
}
@media (max-width: 600px) {
  .faq-cta { flex-direction: column; align-items: flex-start; }
  .faq-cta { padding: var(--bc-sp-8) var(--bc-sp-6); }
}
