@charset "utf-8";

/* ============================================================
   page-faq.css
   既存の .faq / .faq-box 系スタイルを上書きします
============================================================ */

/* ----------------------------------------------------------
   リード文
---------------------------------------------------------- */
.faq-lead {
  margin: 40px 0 50px;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.8;
  padding: 0 16px !important;
}

@media screen and (min-width: 768px) {
  .faq-lead {
    font-size: 16px;
    margin: 50px 0 60px;
  }
}

/* 既存 .faq > p の上書き */
.faq > p {
  font-size: 15px;
  font-weight: normal;
  margin: 40px 0 50px;
  padding: 0 16px;
}

@media screen and (min-width: 768px) {
  .faq > p {
    font-size: 16px;
    padding: 0;
    margin: 50px 0 60px;
  }
}

/* ----------------------------------------------------------
   カテゴリジャンプナビ
---------------------------------------------------------- */
.faq-category-nav {
  margin-bottom: 50px;
  padding: 0 16px;
}

.faq-category-nav__list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media screen and (min-width: 768px) {
  .faq-category-nav {
    margin-bottom: 100px;
  }

  .faq-category-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
}

.faq-category-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 60px;
  /* padding: 0 50px 0 20px; */
  background: #fff;
  border: 1px solid #555;
  border-radius: 50px;
  color: #555;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  box-sizing: border-box;
  text-align: center;
}

.faq-category-nav__btn:hover {
  opacity: 0.7;
  color: #555;
}

/* 右側矢印エリア：W40×H26pxの横長楕円 */
.faq-category-nav__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 26px;
  background: #fd776d;
  border-radius: 13px;
  pointer-events: none;
}

.faq-category-nav__arrow svg {
  width: 14px;
  height: auto;
}

@media screen and (min-width: 768px) {
  .faq-category-nav__item {
    flex: 0 0 auto;
  }

  .faq-category-nav__btn {
    width: auto;
    min-width: 280px;
    max-width: 280px;
    height: 68px;
    font-size: 18px;
    padding: 0 80px 0 24px;
  }

  .faq-category-nav__arrow {
    /* width: 40px;
    height: 26px;
    right: 20px; */
  }

  .faq-category-nav__arrow svg {
    width: 16px;
  }
}

/* ----------------------------------------------------------
   FAQ全体ラッパー：背景色・ウィンドウ幅いっぱい
---------------------------------------------------------- */
.faq-all-wrap {
  background: #fff4f8;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 50px calc(50vw - 50% + 16px) 50px;
  margin-bottom: 60px;
}

@media screen and (min-width: 768px) {
  .faq-all-wrap {
    padding: 60px calc(50vw - 50% + 20px);
    margin-bottom: 80px;
  }
}

/* ----------------------------------------------------------
   FAQセクション（カテゴリごと）
   既存 .faq-box を上書き
---------------------------------------------------------- */
.faq-section,
.faq-box {
  float: none !important;
  overflow: visible;
  background: none;
  margin: 0 0 40px;
  padding: 0 !important;
}

.faq-section:last-child,
.faq-box:last-child {
  margin-bottom: 0;
}

.faq-section::after,
.faq-box::after {
  content: none;
}

@media screen and (min-width: 768px) {
  .faq-section,
  .faq-box {
    margin: 0 0 50px;
  }
}

/* ----------------------------------------------------------
   カテゴリ見出し
   既存 .faq-box > h2 を上書き
---------------------------------------------------------- */
.faq-section__title,
.faq-box > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: bold;
  color: #fd776d;
  margin-bottom: 12px;
  padding: 0;
  background: none;
  line-height: 1.4;
  height: auto;
  padding-left: 0;
}

.faq-section__title-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.faq-section__title-icon svg {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .faq-section__title,
  .faq-box > h2 {
    font-size: 20px;
    margin-bottom: 16px;
    gap: 10px;
  }

  .faq-section__title-icon {
    width: 34px;
    height: 34px;
  }
}

/* ----------------------------------------------------------
   FAQリスト：外枠（#fff4f8）
   既存 ul.left / ul.right を上書き
---------------------------------------------------------- */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: none;
}

@media screen and (min-width: 768px) {
  .faq-list {
    gap: 10px;
  }
}

.faq-box > ul {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

.faq-box > ul.left,
.faq-box > ul.right {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

/* ----------------------------------------------------------
   FAQ アイテム：白背景の独立カード
---------------------------------------------------------- */
.faq-item {
  background: #fff;
  border-radius: 9px;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  line-height: normal;
}

/* Q（ボタン） */
.faq-item__question {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 18px 16px 13px 20px;
  background: #fff;
  border: none;
  color: #555;
  font-size: 16px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s;
  box-sizing: border-box;
  line-height: 1.6;
  border-radius: 0;
}

.faq-item__question:hover {
  opacity: 0.8;
}

/* Q文字 */
.faq-item__q-icon {
  color: #999999;
  font-size: 15px;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 14px;
  line-height: 1.6;
  padding-top: 0;
}

.faq-item__q-text {
  flex: 1;
  color: #555;
}

/* 右側矢印ボタン */
.faq-item__toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 26px;
  background: #fd776d;
  border-radius: 13px;
  flex-shrink: 0;
  margin-left: 14px;
  transition: none;
  position: relative;
}

.faq-item__toggle-icon svg {
  width: 14px;
  height: auto;
  transition: transform 0.3s;
}

/* 開いているとき：矢印を上向きに */
.faq-item__question[aria-expanded="true"] .faq-item__toggle-icon svg {
  transform: rotate(180deg);
}

@media screen and (min-width: 768px) {
  .faq-item__question {
    font-size: 16px;
    padding: 24px 32px 20px 32px;
    margin-top: 0;
  }

  .faq-item__q-icon {
    font-size: 17px;
    margin-right: 18px;
  }

  .faq-item__toggle-icon {
    /* width: 60px;
    height: 54px;
    border-radius: 6px; */
  }

  .faq-item__toggle-icon svg {
    width: 16px;
  }
}

/* Q と A の間の仕切り罫線 */
.faq-item__divider {
  display: none;
  border: none;
  border-top: 1px dotted #c6c6c6;
  margin: 0 20px;
}

.faq-item__question[aria-expanded="true"] + .faq-item__divider {
  display: block;
}

@media screen and (min-width: 768px) {
  .faq-item__divider {
    margin: 0 32px;
  }
}

/* A（回答） */
.faq-item__answer {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
}

.faq-item__answer-inner {
  display: flex;
  align-items: flex-start;
  padding: 16px 16px 16px 20px;
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  box-sizing: border-box;
}

/* A文字 */
.faq-item__a-icon {
  color: #fd776d;
  font-size: 15px;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 15px;
  line-height: 1.6;
}

.faq-item__a-text {
  flex: 1;
}

.faq-item__a-text p {
  margin: 0 0 0.8em;
}

.faq-item__a-text p:last-child {
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .faq-item__answer-inner {
    font-size: 15px;
    padding: 24px 32px 24px 32px;
  }

  .faq-item__a-icon {
    font-size: 17px;
    margin-right: 18px;
  }
}

/* ----------------------------------------------------------
   既存スタイルのリセット（上書き）
   contents.css の .faq-box > ul li span / p を無効化
---------------------------------------------------------- */
.faq-box > ul li span {
  position: static;
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  cursor: default;
}

.faq-box > ul li span:after {
  display: none;
}

.faq-box > ul li p {
  display: block;
  border: none;
  margin: 0;
  padding: 0;
  background: none;
  font-size: inherit;
}

.faq-box > ul li {
  line-height: normal;
}
