/* =============================================
   Sheets FAQ Sync - FAQ スタイル
   色はWordPress管理画面「よくある質問 → 色設定」で変更できます
   ============================================= */

/* カテゴリナビ */
.faq-cat-nav {
  background: var(--faq-bg-section);
  border-top: 1px solid var(--faq-border);
  padding: 16px 0;
}
.faq-cat-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-cat-nav__link {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--faq-accent);
  border-radius: 20px;
  color: var(--faq-accent);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.faq-cat-nav__link:hover {
  background: var(--faq-accent);
  color: #fff;
}

/* FAQページ ヒーロー */
.page__faq .section__faq-hero {
  background: var(--faq-bg-section);
  padding: 60px 0 40px;
  text-align: center;
}
@media (max-width: 767.98px) {
  .page__faq .section__faq-hero {
    padding: 40px 0 30px;
  }
}
.page__faq .section__faq-hero-title {
  font-size: 2rem;
  margin-bottom: 16px;
}
@media (max-width: 767.98px) {
  .page__faq .section__faq-hero-title {
    font-size: 1.5rem;
  }
}
.page__faq .section__faq-hero-desc {
  line-height: 1.8;
  font-size: 0.95rem;
}

/* FAQページ リスト */
.page__faq .section__faq-list {
  padding: 60px 0;
}
@media (max-width: 767.98px) {
  .page__faq .section__faq-list {
    padding: 40px 0;
  }
}
.page__faq .section__faq-inner {
  max-width: 800px;
  margin: 0 auto;
}
.faq-category-block {
  margin-bottom: 48px;
}
.faq-category-block:last-child {
  margin-bottom: 0;
}
.faq-category-title {
  font-size: 1.1rem;
  font-weight: bold;
  border-left: 4px solid var(--faq-accent);
  padding: 6px 14px;
  margin: 0 0 16px;
}

/* FAQ アコーディオン（details / summary） */
.faq-list {
  margin-bottom: 24px;
}
.faq-item {
  border-bottom: 1px dotted var(--faq-border);
  overflow: hidden;
}
.faq-item__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { display: none; }
.faq-item__q:hover {
  background: var(--faq-hover-bg);
}
.faq-item__q-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--faq-label-q-bg);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.faq-item__q-text {
  flex: 1;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.6;
}
.faq-item__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s;
}
.faq-item__icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}
.faq-item__icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}
.faq-item[open] .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
}
.faq-item__a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 16px 20px;
}
.faq-item__a-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--faq-label-a-bg);
  color: var(--faq-label-a-text);
  font-weight: bold;
  font-size: 1rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.faq-item__a-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.8;
}
.faq-item__a-text p {
  margin: 0 0 0.5em;
}
.faq-item__a-text p:last-child {
  margin-bottom: 0;
}

/* もっと見るボタン */
.faq-more-wrap {
  text-align: center;
  margin-top: 8px;
}
.faq-more-btn {
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid var(--faq-accent);
  color: var(--faq-accent);
  font-size: 0.95rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.faq-more-btn:hover {
  background: var(--faq-accent);
  color: #fff;
}
