
/* =========================
   faq（よくあるご質問）2026/08/12 追記
   ※既存記述は変更しない。faq/index.html 専用の追記ブロック
========================= */
main.faq {
  background-color: #fff;
  padding-bottom: 15.625rem;
  overflow-x: clip;
}
@media screen and (max-width: 767px) {
  main.faq {
    padding-bottom: 7.5rem;
  }
}

/* --- MV（p-sub-mv 流用の faq 差分） --- */
.p-sub-mv--faq {
  height: 23.25rem;
}
.p-sub-mv--faq .p-sub-mv__img img {
  aspect-ratio: 1920/372;
}
.p-sub-mv--faq .p-sub-mv__img::after {
  content: none;
}
.p-sub-mv--faq .p-sub-mv__inner {
  top: 44%;
}
@media screen and (max-width: 767px) {
  .p-sub-mv--faq {
    height: 9.375rem;
  }
  .p-sub-mv--faq .p-sub-mv__inner {
    top: 50%;
  }
}

/* --- FAQ 本体 --- */
.p-faq {
  padding-top: 6.1875rem;
}
@media screen and (max-width: 767px) {
  .p-faq {
    padding-top: 2.5rem;
  }
}

/* カテゴリアンカー */
.p-faq__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.6875rem;
}
.p-faq__nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 24.375rem;
  height: 3.875rem;
  background-color: #32b476;
  border-radius: 1.9375rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.p-faq__nav-link img {
  width: 0.875rem;
  height: auto;
}
@media (any-hover: hover) {
  .p-faq__nav-link:hover {
    opacity: 0.7;
  }
}
@media screen and (max-width: 767px) {
  .p-faq__nav-list {
    display: grid;
    grid-template-columns: 100%;
    gap: 0.75rem;
  }
  .p-faq__nav-link {
    width: 100%;
    max-width: 24.375rem;
    margin-inline: auto;
    height: 3rem;
    font-size: 1rem;
    border-radius: 1.5rem;
  }
}

/* カテゴリ */
.p-faq__category {
  margin-top: 9.0625rem;
  scroll-margin-top: 15.5rem;
}
.p-faq__category + .p-faq__category {
  margin-top: 8.125rem;
}
.p-faq__heading {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  color: #32b476;
}
.p-faq__list {
  margin-top: 3.1875rem;
  display: grid;
  gap: 0.375rem;
}
@media screen and (max-width: 767px) {
  .p-faq__category {
    margin-top: 4rem;
    scroll-margin-top: 9.5rem;
  }
  .p-faq__category + .p-faq__category {
    margin-top: 4rem;
  }
  .p-faq__heading {
    font-size: 1.75rem;
  }
  .p-faq__list {
    margin-top: 1.5rem;
  }
}

/* アコーディオン */
.p-faq__item {
  background-color: #f8f8f8;
  border-radius: 0.625rem;
}
.p-faq__q-button {
  display: flex;
  align-items: center;
  gap: 1.3125rem;
  width: 100%;
  padding: 1.3125rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.p-faq__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 50%;
  background-color: #32b476;
  color: #fff;
  font-family: "M PLUS 1p", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.p-faq__icon--a {
  background-color: #fff;
  border: 1px solid #32b476;
  color: #32b476;
}
.p-faq__q-text {
  font-family: "IBM Plex Sans JP", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.8;
  color: #000;
}
.p-faq__toggle {
  position: relative;
  flex-shrink: 0;
  width: 1.3125rem;
  height: 1.3125rem;
  margin-left: auto;
  margin-right: 0.625rem;
}
.p-faq__toggle::before,
.p-faq__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background-color: #000;
}
.p-faq__toggle::before {
  width: 100%;
  height: 2px;
}
.p-faq__toggle::after {
  width: 2px;
  height: 100%;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.p-faq__item.is-open .p-faq__toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}
.p-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease-in-out, visibility 0.3s;
}
.p-faq__item.is-open .p-faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
}
.p-faq__a-body {
  overflow: hidden;
  min-height: 0;
}
.p-faq__a-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.3125rem;
  margin: 0 1.3125rem 1.3125rem;
  border-top: 1px solid #d4d4d4;
  padding-top: 1.3125rem;
}
.p-faq__a-content {
  flex: 1;
  min-width: 0;
  padding-right: 4.4375rem;
}
@media screen and (max-width: 767px) {
  .p-faq__a-content {
    padding-right: 0;
  }
}
.p-faq__a-text {
  font-family: "IBM Plex Sans JP", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.8;
  color: #000;
}
@media screen and (max-width: 767px) {
  .p-faq__q-button {
    gap: 0.75rem;
    padding: 1rem;
  }
  .p-faq__icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.125rem;
  }
  .p-faq__q-text,
  .p-faq__a-text {
    font-size: 1rem;
  }
  .p-faq__toggle {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
  }
  .p-faq__a-inner {
    gap: 0.75rem;
    margin: 0 1rem 1rem;
    padding-top: 1rem;
  }
}

/* 関連記事 */
.p-faq__related {
  margin-top: 1.875rem;
  padding: 1.75rem 1.9375rem;
  background-color: #ddf2e8;
  border-radius: 0.625rem;
}
.p-faq__related-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.8;
  color: #32b476;
}
.p-faq__related-list {
  margin-top: 1.1875rem;
  display: grid;
  gap: 0.375rem;
}
.p-faq__related-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.4375rem;
  padding: 0.5rem 3.5rem 0.5rem 1.875rem;
  background-color: #32b476;
  border-radius: 1.71875rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}
.p-faq__related-link::after {
  content: "";
  position: absolute;
  right: 1.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: #fff;
}
@media (any-hover: hover) {
  .p-faq__related-link:hover {
    opacity: 0.7;
  }
}
@media screen and (max-width: 767px) {
  .p-faq__related {
    margin-top: 1.25rem;
    padding: 1rem;
  }
  .p-faq__related-title {
    font-size: 1rem;
  }
  .p-faq__related-list {
    margin-top: 0.75rem;
  }
  .p-faq__related-link {
    min-height: 2.75rem;
    padding: 0.5rem 2.5rem 0.5rem 1.25rem;
    border-radius: 1.375rem;
    font-size: 0.8125rem;
  }
  .p-faq__related-link::after {
    right: 1rem;
    width: 0.5rem;
    height: 0.5rem;
  }
}

/* ページトップ（固定） */
.p-faq-pagetop {
  position: fixed;
  right: 5.625rem;
  bottom: 2.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  width: 3.875rem;
  height: 3.875rem;
  border-radius: 50%;
  background-color: #000;
  border: none;
  cursor: pointer;
}
.p-faq-pagetop__icon {
  width: 1.1875rem;
  height: auto;
  transform: rotate(180deg);
}
.p-faq-pagetop__label {
  color: #f8f8f8;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.029em;
  line-height: 1;
}
@media (any-hover: hover) {
  .p-faq-pagetop:hover {
    opacity: 0.7;
  }
}
@media screen and (max-width: 767px) {
  .p-faq-pagetop {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3rem;
    height: 3rem;
  }
  .p-faq-pagetop__label {
    font-size: 0.75rem;
  }
}

/* フォーカス可視（a11y 最低ライン） */
main.faq a:focus-visible,
main.faq button:focus-visible {
  outline: 2px solid #32b476;
  outline-offset: 2px;
}

/* ===== 2026-08-17 追記：フッターナビ2段化＋TOPボタンhover ===== */

/* フッターナビ2段化。
   nav に p-footer__nav--2rows クラスが付いた時だけ有効（FAQFooter専用の目印クラス）。
   既存の NewFooter にはこのクラスが無いため本番ページには影響しない。
   本番公開時は NewFooter 側の nav にも同クラスを追加すればそのまま同じ見た目になる */
@media screen and (min-width: 768px) {
  .p-footer__nav--2rows .p-footer__nav-list {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: end;
    justify-items: start;
    column-gap: 3.75rem;
    row-gap: 2rem;
  }
  .p-footer__nav--2rows .p-footer__nav-item {
    white-space: nowrap;
    margin: 0;
    text-align: left;
  }
}

/* TOPへ戻るボタン：hover時のトランジション（他ボタンと同じ opacity 0.3s） */
.p-faq-pagetop {
  transition: opacity 0.3s ease-in-out;
}
