/* faq（カスタム投稿：よくあるご質問）
================================================ */
.faq-section {
  width: 100%;
  background-color: #e4e7f1;
  padding: min(calc(100 / 1366 * 100vw), 100px) min(calc(200 / 1366 * 100vw), 200px);
}

.faq-section__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: min(calc(100 / 1366 * 100vw), 100px);
}

.faq-section__title {
  font-size: min(calc(35 / 1366 * 100vw), 35px);
  font-weight: 700;
  color: #fff;
  background-color: #152a6d;
  border-radius: 5px;
  padding: min(calc(10 / 1366 * 100vw), 10px) min(calc(15 / 1366 * 100vw), 15px);
}

.faq-section__box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1025px;
  padding: 50px;
  border-radius: 10px;
}

.faq-section__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.faq-section__item {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.faq-section__question {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
}

.faq-section__q-col {
  display: grid;
  grid-template-columns: min(calc(55 / 1366 * 100vw), 55px) 1fr;
  gap: min(calc(30 / 1366 * 100vw), 30px);
  align-items: center;
  flex: 1;
}

.faq-section__q-mark {
  font-size: min(calc(35 / 1366 * 100vw), 35px);
  font-weight: 700;
  color: var(--color-text);
  border-right: 3px solid var(--color-text);
}

.faq-section__q-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

.faq-section__answer {
  max-height: 0;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.4s ease-in-out,
    padding 0.4s ease-in-out,
    opacity 0.3s ease-in 0.1s,
    visibility 0.4s ease-in-out;
}

.faq-section__item.is-open .faq-section__answer {
  max-height: 50rem;
  opacity: 1;
  visibility: visible;
  padding-top: 30px;
  transition:
    max-height 0.4s ease-in-out,
    padding 0.4s ease-in-out,
    opacity 0.3s ease-in;
}

.faq-section__a-col {
  grid-template-columns: min(calc(55 / 1366 * 100vw), 55px) 1fr;
  gap: min(calc(30 / 1366 * 100vw), 30px);
  display: grid;
  align-items: center;
}

.faq-section__a-mark {
  font-size: min(calc(35 / 1366 * 100vw), 35px);
  font-weight: 700;
  color: var(--color-text);
  border-right: 3px solid var(--color-text);
  padding-left: 2px;
}

.faq-section__a-text p {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

.faq-section__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-section__icon::after {
  display: block;
  content: url("../../images/common/faq/faq_icon_plus.svg");
}

.faq-section__item.is-open .faq-section__icon::after {
  content: url("../../images/common/faq/faq_icon_minus.svg");
}

@media (width <= 750px) {
  .faq-section {
    padding: calc(30 / 375 * 100vw);
  }

  .faq-section__wrap {
    gap: calc(30 / 375 * 100vw);
  }

  .faq-section__title {
    font-size: calc(24 / 375 * 100vw);
    padding: calc(8 / 375 * 100vw) calc(12 / 375 * 100vw);
    border-radius: calc(5 / 375 * 100vw);
  }

  .faq-section__box {
    padding: calc(20 / 375 * 100vw);
    border-radius: calc(10 / 375 * 100vw);
  }

  .faq-section__list {
    gap: calc(15 / 375 * 100vw);
  }

  .faq-section__item {
    padding: calc(15 / 375 * 100vw);
  }

  .faq-section__item.is-open .faq-section__answer {
    padding-top: calc(10 / 375 * 100vw);
  }

  .faq-section__question {
    align-items: center;
  }

  .faq-section__a-col,
  .faq-section__q-col {
    grid-template-columns: calc(25 / 375 * 100vw) 1fr;
    gap: calc(10 / 375 * 100vw);
  }

  .faq-section__q-mark,
  .faq-section__a-mark {
    font-size: calc(20 / 375 * 100vw);
    margin-right: calc(10 / 375 * 100vw);
    width: calc(25 / 375 * 100vw);
    border-right: calc(1.5 / 375 * 100vw) solid var(--color-text);
  }

  .faq-section__q-text {
    font-size: calc(14 / 375 * 100vw);
    white-space: pre-wrap;
  }

  .faq-section__a-text p {
    font-size: calc(14 / 375 * 100vw);
  }

  .faq-section__icon {
    margin-left: calc(10 / 375 * 100vw);
  }

  .faq-section__icon::after {
    background-image: url("../../images/common/faq/faq_icon_plus.svg");
    height: calc(20 / 375 * 100vw);
    width: calc(20 / 375 * 100vw);
    content: "";
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }

  .faq-section__item.is-open .faq-section__icon::after {
    content: "";
    background-image: url("../../images/common/faq/faq_icon_minus.svg");
    height: calc(20 / 375 * 100vw);
    width: calc(20 / 375 * 100vw);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }
}
