/**
 * GMS FAQ セクション
 */

/* セクション */
.gms-faq {
  align-content: flex-start;
  align-items: flex-start;
  background: transparent;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  height: auto;
  justify-content: flex-start;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* セクション内部 */
.gms-faq__inner {
  padding: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 100%;
}

/* FAQラッパー */
.gms-faq__wrapper {
  align-content: flex-start;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0);
  border-radius: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  height: auto;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* ヘッダー（黒背景のタイトルエリア） */
.gms-faq__header {
  align-content: flex-start;
  align-items: flex-start;
  background: #000;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  height: auto;
  justify-content: center;
  padding: 20px;
  width: 100%;
  max-width: 100%;
}

/* タイトル */
.gms-faq__title {
  color: #fff;
  flex: none;
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 20px;
  font-weight: 900;
  height: auto;
  line-height: 1.4;
  margin: 0;
  text-align: left;
  width: 1386px;
  max-width: 100%;
}

/* リスト */
.gms-faq__list {
  border: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* リストアイテム */
.gms-faq__item {
  align-content: center;
  align-items: center;
  border-top: 1px solid var(--s-color-f9a7d6c3, #dadada);
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* 最初のアイテム（ボーダーなし） */
.gms-faq__item--first,
.gms-faq__item:first-child {
  border-top: 0;
}

/* アコーディオンコンテナ */
.gms-faq__accordion {
  align-content: flex-start;
  align-items: flex-start;
  background: #fff;
  border-radius: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  height: auto;
  justify-content: flex-start;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* 質問ボタン */
.gms-faq__question {
  align-content: center;
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex: none;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  height: auto;
  justify-content: space-between;
  padding: 30px 100px;
  position: relative;
  text-align: left;
  width: 100%;
  max-width: 100%;
}

@media screen and (max-width: 991px) {
  .gms-faq__question {
    padding: 30px 60px;
  }
}

@media screen and (max-width: 840px) {
  .gms-faq__question {
    padding: 20px;
  }
}

@media screen and (max-width: 540px) {
  .gms-faq__question {
    padding: 20px;
  }
}

/* 質問テキスト */
.gms-faq__question-text {
  color: #333;
  font-family: var(--s-font-b7b51ded, "Noto Sans JP", sans-serif);
  font-size: 20px;
  font-weight: 400;
  height: auto;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  width: auto;
  max-width: 100%;
}

.gms-faq__item--first .gms-faq__question-text,
.gms-faq__item:first-child .gms-faq__question-text {
  margin: 0 50px 0 0;
  max-width: calc(100% - 50px);
}

@media screen and (max-width: 840px) {
  .gms-faq__question-text {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 50px 0 0;
    max-width: calc(100% - 50px);
  }
}

@media screen and (max-width: 540px) {
  .gms-faq__question-text {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* アイコン */
.gms-faq__icon {
  color: #333;
  font-size: 24px;
  margin: 0;
  padding: 0;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.gms-faq__accordion.is-closed .gms-faq__icon {
  transform: rotate(180deg);
}

@media screen and (max-width: 840px) {
  .gms-faq__icon {
    bottom: 0;
    height: auto;
    left: auto;
    margin: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 回答コンテナ */
.gms-faq__answer {
  align-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  opacity: 1;
  overflow: hidden;
  padding: 0 100px;
  width: 100%;
  max-width: 100%;
  transition: max-height 0.3s ease;
}

@media screen and (max-width: 840px) {
  .gms-faq__answer {
    padding: 0 20px;
  }
}

@media screen and (max-width: 540px) {
  .gms-faq__answer {
    padding: 0 20px;
  }
}

/* 回答内部 */
.gms-faq__answer-inner {
  align-content: flex-start;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  height: auto;
  justify-content: center;
  opacity: 1;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

@media screen and (max-width: 840px) {
  .gms-faq__answer-inner {
    margin: 20px 0 0 0;
  }
}

/* 回答テキスト */
.gms-faq__answer-text {
  color: #333;
  font-family: var(--s-font-6ea6ae5f, "Noto Sans JP", sans-serif);
  font-size: 18px;
  font-weight: 400;
  height: auto;
  line-height: 1.4;
  margin: 0;
  padding: 0 0 40px 0;
  text-align: left;
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 840px) {
  .gms-faq__answer-text {
    line-height: 1.5;
    padding: 0 0 20px 0;
  }
}
