html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
@media screen and ( max-width: 768px ) {
  html {
    font-size: 50%;
  }
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  box-sizing: border-box;
  font-weight: 500;
  line-height: 1.6;
}

.inner {
  max-width: 1040px;
  margin: 0 auto;
  width: 95%;
}

img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

a:hover {
  opacity: 0.7;
}

.slick-slide {
  width: 400px !important;
}
@media screen and ( max-width: 768px ) {
  .slick-slide {
    width: 215px !important;
  }
}

.slider {
  background-color: #EFD23B;
  padding: 2.5rem 0;
}
.slider img {
  width: 380px;
  background-color: #EFD23B;
  max-width: 100%;
}
@media screen and ( max-width: 768px ) {
  .slider img {
    width: 200px;
  }
}

.triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  border-top: 26px solid #ffffff;
  border-bottom: 0;
}

.cta-btn-box {
  width: auto;
}

.cta {
  position: relative;
  background-color: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media screen and ( max-width: 768px ) {
  .cta {
    padding: 0;
  }
}
.cta img {
  max-width: 100%;
  width: 648px;
  height: auto;
}
@media screen and ( max-width: 768px ) {
  .cta img {
    width: 54%;
  }
}
.cta a {
  position: relative;
  bottom: 0;
  width: fit-content;
  display: block;
  right: -1%;
  bottom: 10%;
}
.cta a img {
  width: 100%;
  max-width: 343px;
}
.cta a:hover {
  transform: translateY(4px);
}
.cta a:hover img {
  box-shadow: none;
}

.main {
  background: url(../img/bg.png) no-repeat center center/cover;
  padding-bottom: 9.9rem;
}

.plan {
  border-radius: 24px;
}

@media screen and ( max-width: 768px ) {
  .plan__title {
    margin-bottom: 2rem;
  }
}
.plan__title img {
  width: 100%;
  margin: 0 auto;
  display: block;
}

.plan__contents {
  background-color: #fff;
  padding: 3.4rem 0 6.7rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: 0 0 16px 16px;
  border: 8px solid #000;
  border-top: none;
  position: relative;
  top: -25px;
  z-index: 1;
}

.plan__item {
  width: 93.8%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.plan__header {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.6;
  background-color: #000;
  padding: 1.65rem 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media screen and ( max-width: 768px ) {
  .plan__header {
    font-size: 2.7rem;
    max-height: 63px;
  }
}
.plan__header h3 {
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.plan__header img {
  width: auto;
  width: 5rem;
}

.plan__body {
  background-color: #ffcc00;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, border 0.3s ease-out;
  border: 0 solid #000;
  box-sizing: border-box;
  border-radius: 0 0 16px 16px;
}

.plan__body.active {
  border-width: 8px;
  border-top: none;
}

.plan__header {
  position: relative;
  cursor: pointer;
}
.plan__header h3 {
  display: flex;
  align-items: center;
  padding-right: 40px;
}
.plan__header::before, .plan__header::after {
  content: "";
  position: absolute;
  background-color: #fff;
  transition: transform 0.3s ease;
}
.plan__header::before {
  width: 40px;
  height: 5px;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
}
@media screen and ( max-width: 768px ) {
  .plan__header::before {
    height: 3px;
  }
}
.plan__header::after {
  width: 5px;
  height: 40px;
  right: calc(15% + 18px);
  top: calc(50% - 20px);
}
@media screen and ( max-width: 768px ) {
  .plan__header::after {
    width: 3px;
  }
}
.plan__header.active::after {
  transform: rotate(90deg);
}
.plan__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, border-width 0.3s ease;
  border: 0 solid #000;
}
@media screen and ( max-width: 768px ) {
  .plan__header::before {
    width: 15px;
    right: 15px;
  }
  .plan__header::after {
    height: 15px;
    right: 21.5px;
    top: calc(50% - 7.5px);
  }
}

.plan__text {
  text-align: center;
  font-size: 2rem;
}

.main1 {
  padding-top: 2.7rem;
}

.main2 {
  margin-top: 1.7rem;
}

.main3 {
  margin-top: 2.3rem;
}

.plan {
  margin-top: 3.2rem;
}

.plan__title {
  position: relative;
  z-index: 10;
}

.cta-btn {
  display: inline-block;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.cta-btn.fade-in {
  opacity: 1;
}

.anim-box {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.anim-box.is-animated {
  animation: poyoyon3 2.5s infinite;
  opacity: 1;
}

@keyframes poyoyon3 {
  0%, 40% {
    transform: skew(0deg, 0deg);
  }
  5% {
    transform: skew(5deg, 5deg);
  }
  10% {
    transform: skew(-4deg, -4deg);
  }
  15% {
    transform: skew(3deg, 3deg);
  }
  20% {
    transform: skew(-2deg, -2deg);
  }
  25% {
    transform: skew(1deg, 1deg);
  }
  30% {
    transform: skew(-0.6deg, -0.6deg);
  }
  35% {
    transform: skew(0.3deg, 0.3deg);
  }
}
.merit {
  margin-top: 8.1rem;
}

.contact {
  margin-top: 10.5rem;
  border-radius: 24px;
}

.contact__title {
  background-color: #FFF500;
  width: 100%;
  position: relative;
  padding-top: 15.4%;
  border-radius: 16px 16px 0 0;
}

.contact-title {
  position: absolute;
  bottom: 0;
  width: 63.18%;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.contact__form {
  border-radius: 0 0 16px 16px;
}

footer {
  margin-top: 9.5rem;
  background-color: #151515;
  font-size: 1.8rem;
  font-weight: 400;
}

.footer__title {
  font-size: 2.4rem;
  margin-bottom: 2.8rem;
  line-height: 1.6;
}