@charset "UTF-8";

#faq .p-faq .list {
  max-width: 1070px;
  margin: 0 auto;
}
#faq .p-faq .item {
  border-bottom: dashed 1px #f2e291;
}
#faq .question {
  font-size: 2rem;
  font-weight: 600;
  padding: 3rem;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}
#faq .question::after {
  position: absolute;
  content: "";
  background: url("../../../images/page/trainerinfo/ico_slider_next.png")
    no-repeat;
  background-size: 30px;
  background-position: center;
  height: 100%;
  right: 20px;
  width: 30px;
  z-index: 2;
  transform: rotate(90deg);
  transition: 0.4s;
}
#faq .question.is-open::after {
  transform: rotate(-90deg);
}

#faq .question span {
  position: relative;
  padding-left: 30px;
  padding-right: 30px;
  width: 100%;
}
#faq .question span::before {
  display: inline-block;
  content: "Q.";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}


#faq .answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s max-height ease;
  display: flex;
  align-items: center;
  font-size: 1.8rem;
}

#faq .answer.is-open {
  max-height: 25rem;
}
#faq .answer p {
  padding: 2rem 4rem 3rem 5.4rem;
  line-height: 1.8;
  position: relative;
  width: 100%;
}

#faq .answer p::before {
  display: inline-block;
  content: "A.";
  position: absolute;
  top: 2rem;
  left: 3rem;
}
#faq .p-contact {
  margin-top: 140px;
}

#faq .p-contact .m-lead {
  text-align: center;
  font-weight: 600;
  font-size: 2rem;
  margin: 60px auto 50px;
}

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

  #faq .question {
    padding: 20px 0 25px;
    font-size: 1.4rem;
  }
  #faq .question span {
    padding-left: 2.4rem;
    padding-right: 3rem;
  }
  #faq .question::after {
    right: 0;
    width: 24px;
    background-size: 24px;
  }
  
  #faq .answer p {
    font-size: 1.3rem;
    padding: 0 30px 20px 25px;
  }
  #faq .answer p::before {
    left: 5px;
    top: 0;
  }
  #faq .p-contact {
    margin-top: 80px;
  }
  #faq .p-contact .m-lead {
    font-size: 4vw;
  }
}
@media screen and (min-width: 768px) {
  #faq .p-faq .question::before {
    background: #f2d649;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 100%;
    height: 100%;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: 0.2s cubic-bezier(0.45, 0, 0.55, 1);
    z-index: -1;
  }

  #faq .p-faq .question:hover::before {
    transform: scale(1, 1);
  }
}

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

  #faq .l-topicPath {
    margin-bottom: 40px;
  }
}