/* ── faq.html 専用スタイル ── */

.faq-group {
  margin-bottom: 48px;
}
.faq-group-title {
  font-size: var(--font-subsection-title);
  font-weight: 900;
  color: var(--color-ink);
  margin-bottom: 20px;
  line-height: 1.4;
}
.ip-faq-list {
  border-top: 1px dotted #D1D1D1;
}
.ip-faq-item {
  border-bottom: 1px dotted #D1D1D1;
}
.ip-inner {
  max-width: 860px;
}

/* A回答: flexだとリンク混在時にテキストが分断されるためblock+absoluteに変更 */
.ip-faq-a {
  display: block;
  position: relative;
  padding-left: 52px;
}
.ip-faq-a::before {
  position: absolute;
  left: 20px;
  top: 20px;
}

@media (max-width: 767px) {
  .ip-faq-a {
    padding-left: 42px;
  }
  .ip-faq-a::before {
    left: 16px;
    top: 16px;
  }
}

/* 大きな角丸カード型アコーディオン */
.faq-group {
  margin-bottom: 64px;
  scroll-margin-top: 120px;
}
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  margin-bottom: 24px;
  font-size: var(--font-subsection-title);
}
.ip-inner { max-width: 1100px; }
.ip-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 0;
}
.ip-faq-item {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-subtle);
}
.ip-faq-q {
  display: flex;
  align-items: center;
  list-style: none;
  min-height: 112px;
  padding: 24px 36px;
  gap: 22px;
  background: #D7EAF8;
  color: var(--color-ink);
  font-size: var(--font-card-title);
  line-height: 1.7;
  transition: background-color 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ip-faq-q::-webkit-details-marker { display: none; }
.ip-faq-q::marker { content: ''; }
.ip-faq-item[open] .ip-faq-q { background: #C8E2F5; }
.ip-faq-q::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: #0874C7;
  font-size: 22px;
  font-weight: 700;
  flex: 0 0 54px;
}
.ip-faq-q .ip-faq-icon {
  margin-left: auto;
  color: #0874C7;
  font-size: 32px;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ip-faq-a {
  display: block;
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 30px 40px 30px 116px;
  background: #fff;
  color: var(--color-text);
  font-size: var(--font-body);
  line-height: 2;
}
.ip-faq-a::before {
  content: "A";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: auto 0;
  border-radius: 50%;
  background: #0874C7;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  transform: none;
}
.ip-faq-a a {
  color: #0874C7;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 質問窓口の直下で、ページ内リンクをカテゴリ絞り込みタグとして見せる */
.faq-page-chat-section {
  padding-bottom: 32px;
}
.lower-page-blue .faq-page-chat-section {
  background: #fff;
}
/* カテゴリタグは「よくある質問」セクション（水色）の中に、左寄せで置く */
.faq-quicknav {
  background: transparent;
  padding: 0 0 40px;
}
.faq-quicknav .page-quicknav-inner {
  justify-content: flex-start;
}
.lower-page-blue .page-quicknav.faq-quicknav {
  background: transparent;
}
.page-quicknav-inner {
  max-width: 1100px;
  gap: 8px;
}
/* お知らせページのカテゴリタグ（.news-filter-btn）と配色・形を完全に揃える */
.page-quicknav-inner :is(a, .faq-filter-tag) {
  display: inline-block;
  padding: 6px 16px;
  border: 1.5px solid #D1D1D1;
  border-radius: 100px;
  background: #fff;
  color: var(--color-text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.page-quicknav-inner :is(a, .faq-filter-tag):hover {
  border-color: #0874C7;
  background: #fff;
  color: #0874C7;
}
.page-quicknav-inner :is(a, .faq-filter-tag):focus-visible {
  outline: 3px solid rgba(8, 116, 199, .3);
  outline-offset: 2px;
}
.page-quicknav-inner .faq-filter-tag.is-active {
  border-color: #0874C7;
  background: #0874C7;
  color: #fff;
}
.page-quicknav-inner a .material-symbols-outlined {
  display: none;
}
/* お知らせページのタグに件数バッジが無いため、デザインを揃えて非表示にする */
.faq-filter-count {
  display: none;
}
.faq-related-link {
  display: block;
  width: fit-content;
  margin-top: 12px;
}
.ip-faq-a > span {
  white-space: pre-line;
}
.faq-group[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .faq-page-chat-section {
    padding-bottom: 24px;
  }
  .faq-quicknav {
    padding: 0 0 20px;
  }
  .faq-quicknav .page-quicknav-inner {
    padding: 0 0 4px;
  }
  .page-quicknav-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 18px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .page-quicknav-inner::-webkit-scrollbar { display: none; }
  .page-quicknav-inner :is(a, .faq-filter-tag) {
    flex: 0 0 auto;
    padding: 6px 16px;
    font-size: 16px;
  }
  .faq-group { margin-bottom: 48px; }
  .faq-group-title { margin-bottom: 18px; font-size: var(--font-subsection-title); }
  .ip-faq-list { gap: 14px; }
  .ip-faq-item { border-radius: 20px; }
  .ip-faq-q {
    min-height: 84px;
    padding: 18px;
    gap: 14px;
    font-size: var(--font-body);
    line-height: 1.6;
  }
  .ip-faq-q::before {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 17px;
  }
  .ip-faq-q .ip-faq-icon { font-size: 26px; }
  .ip-faq-a {
    min-height: 0;
    padding: 24px 20px 24px 78px;
    font-size: var(--font-body);
    line-height: 1.9;
  }
  .ip-faq-a::before {
    top: 0;
    bottom: 0;
    left: 20px;
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-quicknav-inner :is(a, .faq-filter-tag) { transition: none; }
}
