/* ============================================
   FAQ PAGE STYLES — すべて .faq-wrap スコープ内
   body * { font-weight: 700 !important } を上書きするため
   specificity を高めて定義
   ============================================ */

.faq-wrap {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  /* html { font-size: 62.5% } のためpxで統一 */
  font-size: 15px;
  line-height: 1.7;
}

/* font-weight: 700 !important を上書き */
.faq-wrap,
.faq-wrap p,
.faq-wrap li,
.faq-wrap span,
.faq-wrap label,
.faq-wrap td,
.faq-wrap dd {
  font-weight: 400 !important;
}

.faq-wrap strong,
.faq-wrap b,
.faq-wrap th {
  font-weight: 700 !important;
}

/* ページタイトル */
.faq-wrap .faq-page-title {
  font-size: 26px;
  font-weight: 700 !important;
  color: #222;
  margin: 0 0 8px;
  padding: 0;
}

.faq-wrap .faq-page-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 32px;
}

.faq-wrap .faq-page-subtitle a {
  color: #7D00BE;
  text-decoration: none;
}

.faq-wrap .faq-page-subtitle a:hover {
  text-decoration: underline;
}

/* 検索ボックス */
.faq-wrap .faq-search-wrap {
  position: relative;
  margin-bottom: 28px;
}

.faq-wrap .faq-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.faq-wrap .faq-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px 12px 44px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400 !important;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.faq-wrap .faq-search-input:focus {
  border-color: #7D00BE;
  outline: none !important;
}

.faq-wrap .faq-search-count {
  font-size: 13px;
  color: #7D00BE;
  margin-top: 8px;
  min-height: 20px;
}

/* カテゴリタブ */
.faq-wrap .faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.faq-wrap .faq-tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400 !important;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.faq-wrap .faq-tab-btn:hover {
  border-color: #7D00BE;
  color: #7D00BE;
}

.faq-wrap .faq-tab-btn.is-active {
  background: #7D00BE;
  border-color: #7D00BE;
  color: #fff;
  font-weight: 700 !important;
}

/* カテゴリ見出し */
.faq-wrap .faq-category-title {
  font-size: 16px;
  font-weight: 700 !important;
  color: #7D00BE;
  border-left: 4px solid #7D00BE;
  padding-left: 10px;
  margin: 32px 0 12px;
}

/* アコーディオン */
.faq-wrap .faq-item {
  border-bottom: 1px solid #e8e8e8;
}

.faq-wrap .faq-item:first-of-type {
  border-top: 1px solid #e8e8e8;
}

.faq-wrap .faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 40px 16px 16px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400 !important;
  color: #222;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  transition: background 0.15s;
}

.faq-wrap .faq-question:hover {
  background: #faf5ff;
}

.faq-wrap .faq-question .faq-q-label {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #7D00BE;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700 !important;
  margin-top: 1px;
}

.faq-wrap .faq-question .faq-q-text {
  flex: 1;
}

.faq-wrap .faq-question .faq-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  transition: transform 0.25s;
  color: #999;
  flex-shrink: 0;
}

.faq-wrap .faq-question[aria-expanded="true"] .faq-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.faq-wrap .faq-question[aria-expanded="true"] {
  background: #faf5ff;
}

/* 回答パネル */
.faq-wrap .faq-answer {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
}

.faq-wrap .faq-answer-inner {
  padding: 4px 16px 20px 50px;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}

.faq-wrap .faq-answer-inner p {
  margin: 0 0 10px;
  font-weight: 400 !important;
}

.faq-wrap .faq-answer-inner ol,
.faq-wrap .faq-answer-inner ul {
  margin: 8px 0 10px;
  padding-left: 20px;
}

.faq-wrap .faq-answer-inner li {
  margin-bottom: 6px;
  font-weight: 400 !important;
}

.faq-wrap .faq-answer-inner a {
  color: #7D00BE;
  text-decoration: none;
  font-weight: 400 !important;
}

.faq-wrap .faq-answer-inner a:hover {
  text-decoration: underline;
}

.faq-wrap .faq-answer-inner .faq-note {
  font-size: 13px;
  color: #c0392b;
  margin-top: 8px;
}

.faq-wrap .faq-answer-inner .faq-step-title {
  font-weight: 700 !important;
  margin: 14px 0 6px;
  font-size: 14px;
  color: #333;
}

.faq-wrap .faq-answer-inner .faq-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border: 1px solid #eee;
  border-radius: 4px;
}

/* 検索0件 */
.faq-wrap .faq-no-results {
  text-align: center;
  padding: 48px 20px;
  color: #888;
  font-size: 15px;
  display: none;
}

/* CTA */
.faq-wrap .faq-cta {
  margin-top: 56px;
  background: #f9f4ff;
  border: 1px solid #e0d0f5;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}

.faq-wrap .faq-cta-title {
  font-size: 16px;
  font-weight: 700 !important;
  color: #333;
  margin: 0 0 8px;
}

.faq-wrap .faq-cta-text {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
  font-weight: 400 !important;
}

.faq-wrap .faq-cta-btn {
  display: inline-block;
  background: #7D00BE;
  color: #fff !important;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700 !important;
  text-decoration: none;
  transition: background 0.2s;
}

.faq-wrap .faq-cta-btn:hover {
  background: #6300a0;
  text-decoration: none !important;
  color: #fff !important;
}

/* 非表示 */
.faq-wrap .faq-item.is-hidden {
  display: none;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .faq-wrap {
    padding: 24px 16px 60px;
  }
  .faq-wrap .faq-page-title {
    font-size: 22px;
  }
  .faq-wrap .faq-tabs {
    gap: 6px;
  }
  .faq-wrap .faq-tab-btn {
    font-size: 12px;
    padding: 7px 12px;
  }
  .faq-wrap .faq-answer-inner {
    padding-left: 16px;
  }
}
