@charset "utf-8";
/* Page FAQ
----------------------------------------------------------------------------------------------------*/
.contents {
  padding-top: 20rem;
}
/* MOBILE */
@media screen and (max-width: 767px) {
  .contents {
    padding-top: 8rem;
  }
}
/* FAQ Container
----------------------------------------------------------------------------------------------------*/
.qa-container {
  max-width: 120rem;
  margin: 0 auto 17rem;
  padding: 0;
}
/* アコーディオンの枠 */
.qa-item {
  overflow: hidden;
  margin-bottom: 7rem;
  border: 1px solid #4dcee5;
  border-radius: 1.5rem;
}
/* チェックボックスは隠す */
.qa-checkbox {
  display: none;
}
/* 質問部分（ラベル） */
.qa-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 4.2rem 3.8rem;
  background-color: #fff;
  color: #164186;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
/* アイコン（＋と×） */
.qa-icon {
  position: relative;
  width: 4.3rem;
  height: 4.3rem;
  flex-shrink: 0;
}
.qa-icon::before, .qa-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background-color: #164186;
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
}
/* 横棒 */
.qa-icon::before {
  width: 100%;
  height: 0.5rem;
}
/* 縦棒 */
.qa-icon::after {
  width: 0.5rem;
  height: 100%;
}
/* 回答部分（初期状態は隠す） */
.qa-answer {
  overflow: hidden;
  max-height: 0;
  background-color: #164186;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 300;
  font-feature-settings: normal;
  line-height: 1.8;
  transition: max-height 0.3s ease-out;
}
.qa-answer-content {
  padding: 4.2rem 3.8rem;
}
/* チェックが入った時、回答を表示 */
.qa-checkbox:checked ~ .qa-answer {
  max-height: 50rem; /* 内容に合わせて調整 */
}
/* チェックが入った時、アイコンを×にする */
.qa-checkbox:checked ~ .qa-question .qa-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
  background-color: #164186;
}
.qa-checkbox:checked ~ .qa-question .qa-icon::after {
  transform: translate(-50%, -50%) rotate(45deg);
  background-color: #164186;
}
/* MOBILE */
@media screen and (max-width: 767px) {
  .qa-item {
    margin-bottom: 4rem;
  }
  .qa-question {
    gap: 2rem;
    padding: 3.5rem 3rem;
  }
}