/* ============================================================
   FAQ Section — ⑧
   Background: off-white (#F7F8FA)
   Accordion: 4 Q&A items with animated open/close
   ============================================================ */

/* ── Section wrapper ── */
.faq {
  background-color: var(--c-bg-section, #F7F8FA);
  padding: 96px 24px;
  position: relative;
  z-index: var(--z-content, 10);
}

.faq__inner {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Section heading ── */
.faq__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 16px;
}

.faq__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--c-navy, #1E3A5F);
  margin: 0 0 64px;
  line-height: 1.3;
}

/* ── FAQ list ── */
.faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── FAQ item ── */
.faq__item {
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
}

.faq__item:first-child {
  border-top: 1px solid rgba(30, 58, 95, 0.12);
}

/* ── Question button ── */
.faq__question {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--c-navy, #1E3A5F);
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--c-gold);
}

.faq__question:hover .faq__icon::before,
.faq__question:hover .faq__icon::after {
  background-color: var(--c-gold);
}

/* ── Q badge ── */
.faq__q-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold) 0%, #e8c97a 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
}

/* ── Question text ── */
.faq__q-text {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.6;
}

/* ── Expand/collapse icon ── */
.faq__icon {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
  margin-left: 8px;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background-color: var(--c-navy, #1E3A5F);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
}

/* horizontal bar */
.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

/* vertical bar — disappears when open */
.faq__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

/* ── Open state ── */
.faq__item--open .faq__icon::after {
  opacity: 0;
  transform: translateX(-50%) rotate(90deg);
}

.faq__item--open .faq__question {
  color: var(--c-gold);
}

.faq__item--open .faq__icon::before,
.faq__item--open .faq__icon::after {
  background-color: var(--c-gold);
}

/* ── Answer panel ── */
.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0 0 52px; /* 36px badge + 16px gap */
}

/* open state — controlled by JS adding faq__item--open */
.faq__item--open .faq__answer {
  max-height: 400px;
  padding: 0 0 24px 52px;
}

.faq__answer p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--c-text-light, #555555);
  margin: 0;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .faq {
    padding: 120px 48px;
  }

  .faq__question {
    padding: 28px 0;
  }
}

@media (min-width: 1024px) {
  .faq {
    padding: 140px 48px;
  }
}
