/* FAQ一覧：お役立ち情報と同じ背景・白いパネルを使用 */
.faq-page .editorial-heading {
  margin-bottom: 34px;
}

.faq-page .editorial-main::before {
  top: clamp(230px, 20vw, 310px);
}

.faq-sheet {
  padding: clamp(25px, 5vw, 72px) clamp(18px, 9vw, 145px);
}

.faq-page [hidden] {
  display: none;
}

/* サービス・分類の切り替え */
.faq-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 0 auto 18px;
}

.faq-filters button {
  padding: 10px 26px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: #fff;
  color: #082e62;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.faq-filters button[aria-pressed="true"] {
  border-color: #082e62;
  background: #082e62;
  color: #fff;
}

.faq-filters button:focus-visible,
.faq-text-link:focus-visible {
  outline: 3px solid #f39e00;
  outline-offset: 3px;
}

.faq-filters small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
}

.faq-filters-sub {
  margin-bottom: 44px;
}

.faq-filters-sub button {
  padding: 10px 16px;
  border-width: 1px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.faq-filters-sub button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
}

/* 設問と回答 */
.faq-page .faq-item {
  scroll-margin-top: 110px;
}

.faq-fallback-heading {
  margin: 24px 0 10px;
  color: var(--navy);
  font-size: 16px;
}

.faq-enhanced .faq-fallback-heading {
  display: none;
}

.faq-answer-copy > * + * {
  margin-top: 12px;
}

.faq-answer-note {
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
}

.faq-answer-note strong {
  color: var(--navy);
}

.faq-text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* サービス紹介・関連記事・お問い合わせ */
.faq-service-intro,
.faq-contact {
  padding: 20px;
  border-radius: 12px;
  background: #eefbfd;
}

.faq-service-intro {
  margin-bottom: 22px;
  border-left: 3px solid #62ccd9;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.8;
}

.faq-related,
.faq-contact {
  margin-top: 25px;
}

.faq-related h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
}

.faq-contact {
  text-align: center;
}

.faq-contact h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(15px, 2.3vw, 21px);
}

@media (max-width: 700px) {
  .faq-page .editorial-heading {
    margin-bottom: 22px;
  }

  .faq-filters button {
    padding: 9px 13px;
    font-size: 13px;
  }

  .faq-filters-sub {
    margin-bottom: 24px;
  }

  .faq-page .faq-answer,
  #faq .faq-answer {
    grid-template-columns: 19px minmax(0, 1fr);
  }
}

/* 対象表示：ボタン内の既存文言を維持して上部に追加 */
.faq-filters[data-faq-services] {
  padding-top: 28px;
  row-gap: 38px;
}
.faq-filters[data-faq-services] button {
  position: relative;
}
.faq-service-badge {
    position: absolute;
    top: -29px;
    left: 20px;
    display: block;
    box-sizing: border-box;
    min-width: 128px;
    padding: 5px 16px;
    border: 4px solid transparent;
    border-radius: 8px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, #52ccef, #9ceeb5) border-box;
    color: #082e62;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

/* 小型端末でもサービス切替は2列を維持 */
@media (max-width: 480px) {
  .faq-filters[data-faq-services] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .faq-filters[data-faq-services] button {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    padding: 12px 4px 9px;
    font-size: clamp(9px, 2.6vw, 12px);
    white-space: nowrap;
  }
  .faq-filters[data-faq-services] small {
    font-size: clamp(7px, 2.1vw, 10px);
  }
  .faq-filters[data-faq-services] .faq-service-badge {
    left: 10px;
    min-width: 0;
    padding: 5px 10px;
    font-size: 10px;
  }
}

