html {
  scroll-padding-top: 80px;
}

@media screen and (min-width: 501px) {
  .p-faq {
    padding: 60px 0 120px;
  }
}
@media screen and (max-width: 500px) {
  .p-faq {
    padding: 30px 0 80px;
  }
}

.p-faq__section {
  text-align: center;
}

.p-faq__anchorList {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 10px 1fr 10px 1fr 10px 1fr;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 auto;
}
@media screen and (max-width: 1024px) {
  .p-faq__anchorList {
    -ms-grid-columns: 1fr 10px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.p-faq__anchorLink {
  position: relative;
  display: block;
  background-color: #fff;
  border: 1px solid #8E2247;
  color: #8E2247;
  border-radius: 10px;
  padding: 20px 10px 36px;
  font-size: 22px;
  line-height: 1.45;
  font-family: "Zen Old Mincho", serif;
  font-style: normal;
  font-weight: 600;
  text-align: center;
  place-items: center;
}
@media screen and (max-width: 500px) {
  .p-faq__anchorLink {
    padding: 12px 0 24px;
    font-size: 18px;
  }
}
.p-faq__anchorLink:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background-color: #8E2247;
  -webkit-mask: url("../img/school/icon-arrow.svg") no-repeat center/contain;
          mask: url("../img/school/icon-arrow.svg") no-repeat center/contain;
  display: block;
  width: 18px;
  height: 11px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
@media screen and (max-width: 500px) {
  .p-faq__anchorLink:after {
    bottom: 8px;
  }
}
.p-faq__anchorLink:hover {
  background-color: #8E2247;
  border: 1px solid #8E2247;
  color: #fff;
}
.p-faq__anchorLink:hover:after {
  background-color: #fff;
}

.p-faq__anchorText {
  vertical-align: middle;
  height: 68px;
  place-content: center;
  place-items: center;
}
@media screen and (max-width: 500px) {
  .p-faq__anchorText {
    height: 48px;
    font-size: 18px;
    line-height: 1;
  }
}

.p-faq__box {
  padding-top: 80px;
  margin-top: -80px;
}

.p-faq__heading {
  color: #8E2247;
  font-size: 30px;
  text-align: center;
  margin-bottom: 30px;
}
@media screen and (max-width: 500px) {
  .p-faq__heading {
    font-size: 24px;
    margin-bottom: 30px;
  }
}
.p-faq__heading:nth-child(n+2) {
  margin-top: 100px;
}
@media screen and (max-width: 500px) {
  .p-faq__heading:nth-child(n+2) {
    margin-top: 60px;
  }
}

.p-faq__head {
  position: relative;
  color: #8E2247;
  font-size: 24px;
  text-align: center;
  display: inline-block;
  margin: 60px auto 20px;
}
.p-faq__head.--first {
  margin: 0 auto 20px;
}
.p-faq__head:before, .p-faq__head:after {
  content: "";
  position: absolute;
  top: 12px;
  background: url("../img/common/icon-head02.svg") no-repeat center/contain;
  display: inline-block;
  width: 22px;
  height: 22px;
}
.p-faq__head:before {
  left: -40px;
}
.p-faq__head:after {
  right: -40px;
}

.p-faq__row {
  background-color: #fff;
  border-top: 1px solid #B1B1B1;
  line-height: 1.75;
}
@media screen and (max-width: 500px) {
  .p-faq__row {
    line-height: 1.66;
  }
}
.p-faq__row:last-child {
  border-bottom: 1px solid #B1B1B1;
}

.p-faq__term {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  cursor: pointer;
  margin: 10px 0;
  padding: 28px 0;
  background-color: #fff;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
@media screen and (max-width: 500px) {
  .p-faq__term {
    padding: 10px 16px;
  }
}
.p-faq__term:before, .p-faq__term:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 30px;
  width: 20px;
  height: 2px;
  display: block;
  background-color: #8E2247;
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}
@media screen and (max-width: 500px) {
  .p-faq__term:before, .p-faq__term:after {
    right: 0;
    width: 16px;
  }
}
.p-faq__term:before {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
.p-faq__term:hover, .p-faq__term.is-active {
  background-color: #FBF3F5;
}
.p-faq__term.is-active:before {
  -webkit-transform: rotate(0);
          transform: rotate(0);
}

.p-faq__text {
  position: relative;
  margin-left: 90px;
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  text-align: left;
}
@media screen and (max-width: 500px) {
  .p-faq__text {
    margin-left: 20px;
  }
}
.p-faq__text.--question:before, .p-faq__text.--answer:before {
  position: absolute;
  left: -60px;
  display: block;
  font-size: 50px;
  line-height: 1;
  height: 60px;
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
}
@media screen and (min-width: 501px) {
  .p-faq__text.--question:before, .p-faq__text.--answer:before {
    top: 0;
    bottom: 0;
    margin: auto 0;
  }
}
@media screen and (max-width: 500px) {
  .p-faq__text.--question:before, .p-faq__text.--answer:before {
    top: -5px;
    font-size: 32px;
    height: 38px;
    left: -30px;
  }
}
.p-faq__text.--question {
  width: calc(100% - 150px);
}
@media screen and (max-width: 500px) {
  .p-faq__text.--question {
    width: calc(100% - 30px);
  }
}
.p-faq__text.--question:before {
  content: "Q";
  color: #707070;
}
.p-faq__text.--answer {
  width: calc(100% - 100px);
}
@media screen and (max-width: 500px) {
  .p-faq__text.--answer {
    width: calc(100% - 10px);
  }
}
.p-faq__text.--answer:before {
  content: "A";
  color: #8E2247;
  margin: 0;
}

.p-faq__detail {
  display: none;
  position: relative;
  margin: 10px 0;
  padding: 28px 0;
  background-color: #fff;
}
@media screen and (max-width: 500px) {
  .p-faq__detail {
    padding: 10px 16px;
  }
}