html {
  scroll-behavior: smooth;
}
.page-faq {
  padding-top: 12rem;
}
.common_title {
  text-align: left;
}
.page-faq_layout {
  display: grid;
  grid-template-columns: 20rem 87rem;
  gap: 12rem;
  margin-top: 6rem;
}
.page-faq_side {
  position: sticky;
  top: 13rem;
  align-self: start;
}
.faq_category_title {
  margin-bottom: 2rem;
  padding-bottom: 1.3rem;
  color: var(--color-brown);
  border-bottom: 1px solid var(--color-brown);
  font-family: var(--font-ppneue);
  font-size: 1.7rem;
}
.faq_category_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  padding-right: 1rem;
  font-size: 1.3rem;
  line-height: 1.8;
  transition: color 0.35s ease;
}
.faq_category_link.is-current {
  color: var(--color-brown);
}
.faq_category_link::after {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.8rem;
  margin-left: 1.6rem;
  background-color: var(--color-brown);
  -webkit-mask: url(../img/arrow-right.svg) no-repeat center;
  -webkit-mask-size: contain;
  mask: url(../img/arrow-right.svg) no-repeat center;
  mask-size: contain;
}
.faq_category_link:hover::after,
.faq_category_link:focus-visible::after {
  animation: faqArrowMove 0.3s ease-out forwards;
}
@keyframes faqArrowMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(50%);
    opacity: 0;
  }
  51% {
    transform: translateX(-50%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.faq_section {
  scroll-margin-top: 12rem;
}
.faq_section + .faq_section {
  margin-top: 15rem;
}
.faq_section_title {
  font-size: 1.9rem;
  line-height: 1.8;
}
.faq_list {
  width: 100%;
  margin-top: 2rem;
}
.faq_list_item {
  overflow: hidden;
  border: 1px solid rgba(5, 5, 5, 0.1);
  background-color: inherit;
  cursor: pointer;
}
.faq_list_item + .faq_list_item {
  margin-top: 1.6rem;
}
.faq_list_item_content-question {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5.9rem;
  padding: 2.3rem 5.6rem 2.3rem 6.6rem;
  transition:
    background-color 0.3s ease-out,
    color 0.3s ease-out;
}
.faq_list_item_content-question::before,
.faq_list_item_content-answer-inner::before {
  position: absolute;
  left: 3.4rem;
  font-family: var(--font-ppneue);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-base);
  transition: color 0.3s ease-out;
}
.faq_list_item_content-question::before {
  content: "Q";
  top: 50%;
  transform: translateY(-50%);
}
.faq_list_item_content-question .title {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8;
}
.faq_list_item_content-question .crossbar {
  position: absolute;
  top: 50%;
  right: 3.3rem;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
}
.faq_list_item_content-question .crossbar::before,
.faq_list_item_content-question .crossbar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1px;
  background-color: var(--color-base);
  transform: translate(-50%, -50%);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.faq_list_item_content-question .crossbar::before {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq_list_item_content-answer {
  height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  background-color: inherit;
  font-size: 1.4rem;
  transition:
    height 0.55s ease,
    opacity 0.3s ease;
}
.faq_list_item_content-answer-inner {
  position: relative;
  padding: 3rem 5.6rem 3rem 6.6rem;
}
.faq_list_item_content-answer-inner::before {
  content: "A";
  position: absolute;
  left: 3.4rem;
  top: 3.4rem;
}
.faq_list_item_content-answer .text {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-base);
}
.faq_list_item_content-answer.is-open {
  opacity: 1;
}
.faq_list_item_content-question.is-open {
  color: #fff;
  background-color: var(--color-base);
}
.faq_list_item_content-question.is-open::before {
  color: #fff;
}
.faq_list_item_content-question.is-open .crossbar::before,
.faq_list_item_content-question.is-open .crossbar::after {
  background-color: #fff;
}
.faq_list_item_content-question.is-open .crossbar::before {
  transform: translate(-50%, -50%) rotate(0deg);
}
@media (max-width: 1024px) {
  .common_title {
    font-size: 5rem;
  }
  .page-faq {
    padding-top: 8rem;
  }
  .page-faq_layout {
    display: block;
    margin-top: 6rem;
  }
  .page-faq_side {
    top: 6rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    z-index: 100;
  }
  .faq_category_title {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  .faq_category_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
  .faq_category_link {
    padding-right: 0;
    min-height: 3rem;
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .page-faq_main {
    margin-top: 6rem;
  }
  .faq_section {
    scroll-margin-top: 20rem;
  }
  .faq_section + .faq_section {
    margin-top: 7rem;
  }
  .faq_section_title {
    font-size: 1.8rem;
  }
  .faq_list {
    margin-top: 1rem;
  }
  .faq_list_item_content-question {
    padding: 2rem 4rem 2rem 4.8rem;
  }
  .faq_list_item_content-question::before {
    left: 1.6rem;
  }
  .faq_list_item_content-question .title {
    font-size: 1.4rem;
  }
  .faq_list_item_content-question .crossbar {
    right: 1.6rem;
  }
  .faq_list_item_content-answer-inner {
    padding: 2rem 2.4rem 2rem 4.8rem;
  }
  .faq_list_item_content-answer-inner::before {
    top: 2.4rem;
    left: 1.6rem;
  }
  .faq_list_item_content-answer .text {
    font-size: 1.4rem;
    line-height: 1.9;
  }
  .faq_list_item_content-answer.is-open {
    opacity: 1;
  }
}
