@charset "UTF-8";

/*====================================
 * FAQ ページスタイルシート (BEMリファクタリング)
 * =====================================*/

/*------------------------------------
 * 共通レイアウト & コンテナ
 ------------------------------------*/
.breadcrumbs .breadcrumbs__list .breadcrumbs__item {
  color: #28343B;
}

.container {
  background: linear-gradient(270deg, #A8D8F6 0%, #6FBEF0 25.48%, #5CB6EE 45.67%, #6FBEF0 60.1%, #A8D8F6 100%);
}

.faq__wrap {
  background-color: #FAFDFF;
  
  @media screen and (min-width: 1024px) {
    background-image: url(../images/data/bg_data.webp);
    background-repeat: repeat-y;
    background-size: 100%;
    background-position: center 300px;
  }
}

.faq__contents {
  padding: 24px 0 0 0;

  @media screen and (min-width: 1024px) {
    display: grid;
    grid-template-columns: 350px 1fr;
    max-width: 1340px;
    margin-inline: auto;
    padding: 72px 30px 0 30px;
  }
}

.page-nav {
  display: none;

  @media screen and (min-width: 1024px) {
    display: block;
    padding-bottom: 72px;

    & nav {
      position: sticky;
      top: 100px;
    }
  }
}

/*------------------------------------
 * FAQセクション (Block: faq-section)
 * ------------------------------------*/
.faq-section {
  margin-bottom: 48px;

  @media screen and (min-width: 1024px) {
    margin-bottom: 88px;
  }

  &:last-of-type {
    margin-bottom: 0;
  }
}

.faq-section__heading {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: #35A7EE;
  text-shadow: 2px 2px 4px rgba(228, 231, 232, 0.4);
  padding: 0 16px 16px;

  @media screen and (min-width: 1024px) {
    font-size: 32px;
    padding: 0 16px 32px;
  }
}

/*------------------------------------
 * FAQリスト (Block: faq-list)
 * ------------------------------------*/
.faq-list {
  display: grid;
  gap: 10px 0;
}

.faq-list__item {
  /* アイテムごとのスタイルが必要な場合はここに記述 */
}

.faq-list__question {
  display: grid;
  grid-template-columns: 1fr 50px;
  align-items: center;
  font-size: 18px;
  line-height: 1.5;
  padding: 8px 16px;
  border-bottom: 1px solid #C5E9FF;
  cursor: pointer;

  @media screen and (min-width: 1024px) {
    grid-template-columns: 1fr 100px;
    padding: 24px 0 24px 16px;
    /* font-size: 22px; */
    font-size: 1.375rem;
  }

  & p {
    position: relative;
    padding-left: 36px;

    @media screen and (min-width: 1024px) {
      padding-left: 53px;
    }
  }

  & p::before {
    position: absolute;
    content: "Q.";
    top: 0;
    left: 0;
    align-self: normal;
    font-family: 'Reddit Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: #4DB0EE;

    @media screen and (min-width: 1024px) {
      font-size: 35px;
      top: -4px;
    }
  }

  &::after {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    background: url(../images/faq/acd_open.svg) no-repeat center center;
    background-size: 18px 18px;
    transition: transform 0.3s ease, background-image 0.3s ease;

    @media screen and (min-width: 1024px) {
      width: 100px;
      height: 30px;
      background-size: 30px 30px;
    }
  }

  &.is-open::after {
    background-image: url(../images/faq/acd_close.svg);
    transform: rotate(180deg);
  }
}

.faq-list__answer {
  display: none;
  font-size: 18px;
  line-height: 1.5;
  padding: 8px 16px;

  @media screen and (min-width: 1024px) {
    padding: 24px 0 24px 16px;
    /* font-size: 22px; */
    font-size: 1.375rem;
  }

  & div {
    position: relative;
    padding-left: 36px;

    @media screen and (min-width: 1024px) {
      padding-left: 53px;
    }
  }

  & div::before {
    position: absolute;
    content: "A.";
    top: 0;
    left: 0;
    align-self: normal;
    font-family: 'Reddit Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0.1em;
    color: #F581A5;

    @media screen and (min-width: 1024px) {
      font-size: 35px;
      top: -4px;
    }
  }

  & p {
    margin-bottom: 8px;

    &:last-of-type {
      margin-bottom: 0;
    }
  }
}

/*------------------------------------
 * リンクボタン (Block: faq の Element)
 * ------------------------------------*/
.faq__link-wrap {
  padding: 0 16px;
}

.faq__link-btn {
  display: block;
  padding: 8px 0;
  background: #F3FBFF;
  border: 1px solid #5EB7EE;
  border-radius: 4px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  color: #2FAAF6;
  text-decoration: none;
  margin-top: 24px;

  @media screen and (min-width: 1024px) {
    font-size: 22px;
    padding: 24px 0;
    margin-top: 32px;
  }
}

.faq__link-btn-br {
  @media screen and (min-width: 1024px) {
    display: none;
  }
}

/*------------------------------------
 * サイドナビ (Block: page-nav)
 * ------------------------------------*/
.page-nav__list {
  /* リストコンテナ */
}

.page-nav__item {
  margin-bottom: 24px;

  &:last-child {
    margin-bottom: 0;
  }
}

.page-nav__link {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: #28343B;
  text-decoration: underline;
}
