/* ========================================
   FAQページ - 全体スタイル
   ======================================== */
.faq-page-wrapper {
  background: #fafafa;
  min-height: 100vh;
}

/* ========================================
   アンカーナビゲーション（固定ヘッダー風）
   ======================================== */
.faq-navigation {
  background: #fff;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 0;
}

.faq-navigation-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-navigation-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 25px;
  font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

.faq-navigation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-navigation-item {
  margin: 0;
}

.faq-navigation-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.faq-navigation-link:hover {
  background: #f5f5f5;
  border-color: #dc3545;
  color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.15);
}

/* ========================================
   コンテンツエリア
   ======================================== */
.faq-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

/* ========================================
   カテゴリーセクション
   ======================================== */
.faq-category-section {
  margin-bottom: 60px;
  scroll-margin-top: 120px;
}

.faq-category-header {
  background: linear-gradient(135deg, #32c417 0%, #218c0d 100%);
  padding: 20px 30px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.faq-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

.faq-category-icon {
  width: 28px;
  height: 28px;
  background: rgb(255 255 255);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ========================================
   Q&Aリスト
   ======================================== */
.faq-questions-list {
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* ========================================
   個別Q&Aアイテム
   ======================================== */
.faq-question-item {
  border-bottom: 1px solid #f0f0f0;
}

.faq-question-item:last-child {
  border-bottom: none;
}

/* 質問部分（クリック可能） */
.faq-question-header {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.3s ease;
  position: relative;
  background: #fff;
}

.faq-question-header:hover {
  background: #f8f9fa;
}

.faq-question-item.is-open .faq-question-header {
  background: #fff5f5;
}

/* Qアイコン */
.faq-question-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #73ff5f 0%, #31c216 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Arial', sans-serif;
}

/* 質問テキスト */
.faq-question-text {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  line-height: 1.6;
  padding-top: 8px;
  font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

/* 開閉アイコン */
.faq-toggle-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #dc3545;
  font-size: 20px;
  font-weight: 700;
}

.faq-question-item.is-open .faq-toggle-icon {
  transform: rotate(180deg);
}

/* 回答部分 */
.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-question-item.is-open .faq-answer-wrapper {
  max-height: 1000px;
  transition: max-height 0.6s ease-in;
}

.faq-answer-content {
  padding: 0 30px 30px 85px;
  position: relative;
}

/* Aアイコン */
.faq-answer-icon {
  position: absolute;
  left: 30px;
  top: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff988c 0%, #e50d04 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Arial', sans-serif;
}

.faq-answer-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #555;
  padding-top: 10px;
  font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

.faq-answer-text p {
  margin: 0 0 15px 0;
}

.faq-answer-text p:last-child {
  margin-bottom: 0;
}

.faq-answer-text br {
  display: block;
  content: "";
  margin-top: 8px;
}

/* ========================================
   空メッセージ
   ======================================== */
.faq-empty-message {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-empty-message h2 {
  font-size: 1.5rem;
  color: #999;
  margin-bottom: 15px;
  font-weight: 600;
}

.faq-empty-message p {
  font-size: 1rem;
  color: #bbb;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
  .faq-navigation {
    padding: 20px 15px;
    position: relative;
  }

  .faq-navigation-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .faq-navigation-list {
    gap: 8px;
  }

  .faq-navigation-link {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .faq-content-wrapper {
    padding: 40px 15px 60px;
  }

  .faq-category-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
  }

  .faq-category-header {
    padding: 15px 20px;
  }

  .faq-category-title {
    font-size: 1.2rem;
    gap: 10px;
  }

  .faq-category-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .faq-question-header {
    padding: 20px 15px;
    gap: 10px;
  }

  .faq-question-icon,
  .faq-answer-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .faq-question-text {
    font-size: 0.95rem;
    padding-top: 5px;
  }

  .faq-toggle-icon {
    width: 25px;
    height: 25px;
    font-size: 18px;
  }

  .faq-answer-content {
    padding: 0 15px 25px 60px;
  }

  .faq-answer-icon {
    left: 15px;
  }

  .faq-answer-text {
    font-size: 0.9rem;
    line-height: 1.8;
  }
}

@media (max-width: 640px) {
  .faq-navigation {
    padding: 18px 12px;
  }

  .faq-navigation-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }

  .faq-navigation-list {
    gap: 6px;
  }

  .faq-navigation-link {
    padding: 7px 12px;
    font-size: 0.8rem;
    min-height: 44px;
  }

  .faq-content-wrapper {
    padding: 30px 12px 50px;
  }

  .faq-category-section {
    margin-bottom: 30px;
  }

  .faq-category-header {
    padding: 14px 16px;
  }

  .faq-category-title {
    font-size: 1.1rem;
    gap: 8px;
  }

  .faq-category-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .faq-question-header {
    padding: 16px 12px;
    gap: 8px;
  }

  .faq-question-icon,
  .faq-answer-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .faq-question-text {
    font-size: 0.9rem;
    padding-top: 4px;
  }

  .faq-toggle-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .faq-answer-content {
    padding: 0 12px 22px 54px;
  }

  .faq-answer-icon {
    left: 12px;
  }

  .faq-answer-text {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  .faq-empty-message {
    padding: 50px 15px;
  }

  .faq-empty-message h2 {
    font-size: 1.2rem;
  }

  .faq-empty-message p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .faq-question-header {
    padding: 15px 12px;
  }

  .faq-question-icon,
  .faq-answer-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .faq-answer-content {
    padding: 0 12px 20px 50px;
  }

  .faq-answer-icon {
    left: 12px;
  }
}

@media (max-width: 375px) {
  .faq-navigation {
    padding: 14px 8px;
  }

  .faq-navigation-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .faq-navigation-list {
    gap: 5px;
  }

  .faq-navigation-link {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 20px;
    min-height: 44px;
  }

  .faq-content-wrapper {
    padding: 22px 8px 40px;
  }

  .faq-category-section {
    margin-bottom: 22px;
    scroll-margin-top: 80px;
  }

  .faq-category-header {
    padding: 12px 12px;
    border-radius: 6px 6px 0 0;
  }

  .faq-category-title {
    font-size: 1rem;
    gap: 6px;
  }

  .faq-category-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .faq-question-header {
    padding: 12px 10px;
    gap: 6px;
  }

  .faq-question-icon,
  .faq-answer-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .faq-question-text {
    font-size: 0.85rem;
    padding-top: 2px;
    line-height: 1.5;
  }

  .faq-toggle-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    font-size: 14px;
  }

  .faq-answer-content {
    padding: 0 10px 16px 44px;
  }

  .faq-answer-icon {
    left: 10px;
  }

  .faq-answer-text {
    font-size: 0.82rem;
    line-height: 1.7;
    padding-top: 6px;
  }

  .faq-answer-text p {
    margin: 0 0 10px 0;
  }

  .faq-empty-message {
    padding: 40px 10px;
  }

  .faq-empty-message h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .faq-empty-message p {
    font-size: 0.85rem;
  }
}
