/* ==========================================================================
   faq.css — よくあるご質問
   ワイヤー: Figmaノード 63:538
   ========================================================================== */

/* 狭幅コンテナ（requirement.css準拠） */
.faq-list > .container {
  max-width: var(--container-article);
}

/* --- セクション --- */
.faq-list {
  padding: 60px 0 120px;
}

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

.faq-category:last-child {
  margin-bottom: 0;
}

.faq-category__heading {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.5;
  color: var(--color-base);
  font-feature-settings: "palt";
  margin-bottom: 20px;
}

/* --- アコーディオン項目 --- */
.faq-category__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* --- 質問行（button） --- */
.faq-item__question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 36px;
  width: 100%;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
}

.faq-item__q-label {
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--color-orange);
  flex-shrink: 0;
}

.faq-item__q-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-base);
  font-feature-settings: "palt";
  flex: 1;
}

/* --- 開閉アイコン（+/−） --- */
.faq-item__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* 横棒（常に表示） */
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--color-base);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.faq-item__icon::before {
  width: 20px;
  height: 2px;
  transform: translate(-50%, -50%);
}

/* 縦棒（閉じている時のみ） */
.faq-item__icon::after {
  width: 2px;
  height: 20px;
  transform: translate(-50%, -50%);
}

/* 開いた状態: 縦棒を回転して消す */
.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* --- 回答エリア --- */
.faq-item__answer {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
}

.faq-item__answer-inner {
  padding: 0 36px 28px calc(36px + 12px + 22px);
  /* 22px = Q labelの幅概算、12px = gap → 質問テキストと左端を揃える */
}

.faq-item__answer p {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-base);
  font-feature-settings: "palt";
}

.faq-item__answer p + p {
  margin-top: 0.8em;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1024px) {
  .faq-list {
    padding: 48px 0 80px;
  }
}

@media (max-width: 768px) {
  .faq-list {
    padding: 48px 0 64px;
  }

  .faq-category {
    margin-bottom: 48px;
  }

  .faq-category__heading {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .faq-category__items {
    gap: 12px;
  }

  .faq-item__question {
    padding: 16px 20px;
    gap: 10px;
  }

  .faq-item__q-label {
    font-size: 18px;
  }

  .faq-item__q-text {
    font-size: 15px;
  }

  .faq-item__icon {
    width: 20px;
    height: 20px;
  }

  .faq-item__icon::before {
    width: 16px;
  }

  .faq-item__icon::after {
    height: 16px;
  }

  .faq-item__answer-inner {
    padding: 0 20px 20px calc(20px + 10px + 18px);
  }

  .faq-item__answer p {
    font-size: 14px;
    line-height: 1.8;
  }
}
