/* ========================================
   FAQ Page (page-faq.php) 専用スタイル
   BizMow キーカラー：#F97040（オレンジ）/ #FFB800（イエロー）
   ======================================== */

/* セクション全体 */
.bm-faq-section {
  padding: 3rem 0 5rem;
  background: linear-gradient(to bottom right, #fff7ed, #ffffff, #fefce8);
  min-height: 60vh;
}

.bm-faq-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* リード文 */
.bm-faq-lead {
  text-align: center;
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 1.9;
  color: #5d6778;
  margin-top: 2rem;
}

/*パンくずリスト用ヘッダー分下げ*/
#bizmow-faq {
  padding-top: 3%;
}

/* ========================================
   カテゴリタブ
   ======================================== */
.bm-faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 40px 0 32px;
}

.bm-faq-tab {
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1.5px solid #e0dbd4;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  color: #5d6778;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex: 1 1 calc(25% - 8px); /* 基本：4列 */
  max-width: calc(25% - 8px);
}

/* 2つずつ2行：コンテナが狭くなったとき */
@media (max-width: 640px) {
  .bm-faq-tab {
      flex: 1 1 calc(50% - 5px); /* 2列 */
    max-width: calc(50% - 5px);
  }
}

/* さらに狭い：1つずつ4行 */
@media (max-width: 360px) {
  .bm-faq-tab {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.bm-faq-tab:hover {
  border-color: #F97040;
  color: #F97040;
}

.bm-faq-tab.is-active {
  background: linear-gradient(135deg, #FA5858 0%, #F97040 100%);
  border-color: transparent;
  color: #ffffff;
}

/* ========================================
   パネル（タブコンテンツ）
   ======================================== */
.bm-faq-panel {
  display: none;
}

.bm-faq-panel.is-active {
  display: block;
}

/* ========================================
   CTA
   ======================================== */
.bm-faq-cta {
  margin-top: 56px;
  text-align: center;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.05);
}

.bm-faq-cta-text {
  font-size: 16px;
  color: #5d6778;
  margin-bottom: 20px;
  line-height: 1.7;
}

.bm-faq-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #FA5858 0%, #F97040 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(249, 112, 64, 0.3);
}

.bm-faq-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 767px) {
  .bm-faq-section {
    padding: 2rem 0 3.5rem;
  }

  .bm-faq-tabs {
    gap: 8px;
    margin: 28px 0 24px;
    grid-template-columns: repeat(4, 1fr);
  }

  .bm-faq-tab {
    padding: 8px;
    font-size: 13px;
  }

  .bm-faq-cta {
    margin-top: 40px;
    padding: 28px 16px;
  }

  .bm-faq-cta-btn {
    padding: 13px 28px;
    font-size: 15px;
  }
}

/* アコーディオン初期状態（閉じた状態） */
.bm-faq-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fffdf7;
  border-top: 1px solid #fff2cc;
}