/* ===== FAQ Pages Styling ===== */
.faq-index{
  padding: 150px 0 150px;
  background-color: #f9f9f9;
  min-height: 80vh;
}

.faq-detail {
  padding: 150px 0 100px;
  background-color: #f9f9f9;
  min-height: 80vh;
}

.faq-page-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
}

/* 検索ボックス (ダミー) */
.faq-search-box {
  max-width: 600px;
  margin: 0 auto 90px;
  display: flex;
}

.faq-search-input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  background-color: #f2f2f2;
  font-size: 16px;
  outline: none;
  border-radius: 4px 0 0 4px;
}

.faq-search-button {
  background-color: #f39a7c;
  border: none;
  padding: 0 24px;
  color: white;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* カテゴリ一覧見出し */
.faq-section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.faq-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: #f39a7c;
}

/* カテゴリグリッド */
.faq-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.faq-category-card {
  background: white;
  border-radius: 4px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #f39a7c;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.faq-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-category-arrow {
  width: 24px;
  height: 24px;
  background-color: #f39a7c;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-category-arrow svg {
  width: 14px;
  height: 14px;
}

/* 詳細ページ用アコーディオン上書き */
.faq-detail-container {
  max-width: 800px;
  margin: 0 auto;
}

/* サブカテゴリ見出し */
.faq-subcategory-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 40px 0 16px;
}

/* アコーディオン枠線 */
.faq-detail-list .faq-item {
  background: white;
  margin-bottom: 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
}

/* 質問部分 */
.faq-detail-list .faq-question {
  padding: 24px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

/* 質問アイコン(Q) */
.faq-q-icon {
  color: #f39a7c;
  font-weight: 700;
  font-size: 18px;
  margin-right: 16px;
  margin-top: 2px;
}

.faq-detail-list .faq-icon {
  stroke: #999;
  width: 24px;
  height: 24px;
  margin-left: auto;
  flex-shrink: 0;
}

/* 回答部分 */
.faq-detail-list .faq-answer {
  background: #fafafa;
}

.faq-detail-list .faq-answer p {
  padding: 24px;
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-page-title {
    font-size: 28px;
  }
  .faq-category-grid {
    grid-template-columns: 1fr;
  }
  .faq-detail-list .faq-question {
    padding: 16px;
    font-size: 15px;
  }
  .faq-detail-list .faq-answer p {
    padding: 16px;
    font-size: 15px;
  }
  .faq-q-icon {
    margin-right: 12px;
  }
}
