/* =========================
   FAQ ページ
   ========================= */

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
}

.page-lead {
  font-size: 14px;
  color: #555;
  margin: 0 0 16px;
}

.faq-section {
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.faq-item {
  background: #fff;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: 0.2s;
}

.faq-question {
  width: 100%;
  padding: 14px 16px;
  background: #fafafa;
  border: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  background: #f3f3f3;
}

.faq-toggle-icon {
  color: #d32f2f;
  font-weight: 700;
  margin-left: 10px;
  transition: transform 0.2s;
}

.faq-answer {
  display: none;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
  background: #fff;
}

/* 開いた時 */
.faq-item.is-open .faq-answer {
  display: block;
}
.faq-item.is-open .faq-question {
  background: #fff3f3;
}
.faq-item.is-open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-category {
  font-size: 12px;
  color: #777;
  margin-right: 6px;
}
/* ========== FAQ（Q&A） ========== */

.faq-section {
  max-width: 900px;
  margin: 0 auto 40px;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: #f7f7f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-category {
  font-size: 12px;
  color: #666;
  margin-right: 6px;
}

.faq-toggle-icon {
  font-size: 18px;
  color: #d32f2f;
}

/* 回答はデフォルト非表示 */
.faq-answer {
  display: none;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  font-size: 14px;
  line-height: 1.7;
}

/* 開いているときの状態 */
.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-toggle-icon {
  content: "－";
}
/* === FAQページ === */

.faq-section {
  margin-top: 16px;
  max-width: 960px;
}

.faq-item {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  margin-bottom: 10px;
  overflow: hidden;
}

/* 質問部分 */
.faq-question {
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  background: #f1f5f9;
}

.faq-question-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* Qバッジ */
.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* カテゴリラベル */
.faq-category {
  display: inline-block;
  font-size: 11px;
  color: #555;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
}

/* 質問テキスト */
.faq-question-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* ＋／－アイコン */
.faq-toggle-icon {
  font-size: 18px;
  color: #9ca3af;
}

/* 回答部分 */
.faq-answer {
  display: none;
  padding: 10px 14px 14px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}

/* 開いている状態の装飾（JSで .is-open が付きます） */
.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-toggle-icon {
  color: #ef4444;
}

/* スマホ向け微調整 */
@media (max-width: 600px) {
  .faq-section {
    margin-top: 12px;
  }
  .faq-question {
    padding: 10px 10px;
  }
  .faq-question-text {
    font-size: 13px;
  }
}
