/* ==================================================
   よくある質問（全体）
================================================== */

.faq-page {
  color: #1f3656;
  font-size: 18px;
}

.faq-page p {
  margin: 0;
}

.faq-intro {
  padding-bottom: 80px;
}

.faq-intro p {
  text-align: left;
}


/* ==================================================
   カテゴリー案内
================================================== */

.faq-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 1280px;
  max-width: 90%;
  padding-bottom: 120px;
}

.faq-index a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 20px;
  color: #2e5ea7;
  background: #fff;
  border: 1px solid #dcebf7;
  border-radius: 20px;
  box-shadow: 0 5px 16px rgba(31, 54, 86, .06);
}

.faq-index span {
  font-size: 22px;
  font-weight: 700;
}

.faq-index small {
  margin-left: 4px;
  font-size: 14px;
  font-weight: 600;
}

@media (hover: hover) {

  .faq-index a {
    transition: transform .3s ease, box-shadow .3s ease;
  }

  .faq-index a:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(31, 54, 86, .1);
  }

}


/* ==================================================
   FAQカテゴリー
================================================== */

.faq-groups {
  background: #fff;
}

.faq-group {
  scroll-margin-top: 30px;
}

.faq-group:nth-child(even) {
  background: #f4f9fd;
}

.faq-group .content-kicker {
  margin-bottom: 8px;
}

.faq-group .faq-list {
  margin-top: 54px;
}

.faq-page .faq-item__question {
  min-height: 130px;
}

.faq-page .faq-item__answer-text a {
  color: #2e5ea7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ==================================================
   お問い合わせ
================================================== */

.faq-contact {
  background: #eef7fc;
}

.faq-contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 70px;
  align-items: center;
  padding: 64px 72px;
  background: #fffaf1;
  border-radius: 24px;
  box-shadow: 0 5px 18px rgba(31, 54, 86, .06);
}

.faq-contact__panel h2 {
  margin: 8px 0 24px;
  color: #0c3d7d;
  font-size: 30px;
  line-height: 1.6;
}

.faq-contact__panel p {
  line-height: 1.9;
}

.faq-contact__panel > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  padding: 18px 24px;
  color: #2e5ea7;
  background: #fff;
  border: 2px solid #4f8fd4;
  border-radius: 20px;
}

.faq-contact__panel > a span {
  font-size: 14px;
  font-weight: 700;
}

.faq-contact__panel > a strong {
  margin-top: 5px;
  font-size: 28px;
  line-height: 1.3;
}

.faq-contact__panel > a small {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
}


/* ==================================================
   Tablet
================================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .faq-page {
    font-size: 17px;
  }

  .faq-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 80px;
  }

  .faq-index a {
    min-height: 96px;
  }

  .faq-contact__panel {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 38px;
    padding: 48px 42px;
  }

  .faq-contact__panel h2 {
    font-size: 26px;
  }

  .faq-contact__panel > a strong {
    font-size: 24px;
  }

}


/* ==================================================
   Smartphone
================================================== */

@media screen and (max-width: 767px) {

  .faq-page {
    font-size: 16px;
  }

  .faq-intro {
    padding-bottom: 48px;
  }

  .faq-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 88%;
    padding-bottom: 80px;
  }

  .faq-index a {
    flex-direction: column;
    min-height: 86px;
    padding: 14px 8px;
    border-radius: 16px;
  }

  .faq-index span {
    font-size: 17px;
  }

  .faq-index small {
    margin: 2px 0 0;
    font-size: 12px;
  }

  .faq-group {
    scroll-margin-top: 20px;
  }

  .faq-group .faq-list {
    margin-top: 38px;
  }

  .faq-page .faq-item__question {
    min-height: 0;
  }

  .faq-contact__panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 24px;
    border-radius: 20px;
  }

  .faq-contact__panel h2 {
    margin-bottom: 18px;
    font-size: 23px;
  }

  .faq-contact__panel > a {
    min-height: 108px;
  }

  .faq-contact__panel > a strong {
    font-size: 25px;
  }

}


/* ==================================================
   Small Smartphone
================================================== */

@media screen and (max-width: 374px) {

  .faq-index {
    grid-template-columns: 1fr;
  }

  .faq-index a {
    min-height: 72px;
  }

  .faq-contact__panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .faq-contact__panel > a strong {
    font-size: 22px;
  }

}
