main {
  margin-top: 0;
}

section {
  padding-block: 7.5rem;
}

@media screen and (max-width: 767px) {
  section {
    padding-block: 4rem;
  }
}
/* =========================
 mv
============================*/
.mv {
  height: max(100svh, 48rem);
  position: relative;
}

.mv::after {
  position: absolute;
  content: "";
  top: 10%;
  left: -5%;
  height: 697px;
  width: min(40vw, 568px);
  aspect-ratio: 568 / 697;
  background-image: url(../../images/top/img-fv-line-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

.mv__textarea {
  align-content: center;
  display: grid;
  gap: 2.3rem;
  left: 7.5rem;
  position: absolute;
  top: 49%;
  transform: translateY(-50%);
  width: fit-content;
  z-index: 1;
}

.mv__text--en {
  color: var(--colorMain);
  font-size: 1rem;
  font-weight: 500;
}

.mv__title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.53;
}

.mv__text--ja {
  font-size: 1rem;
}

.mv__lottieAnime {
  position: absolute;
  right: -6rem;
  top: 57%;
  transform: translateY(-50%);
  width: 65rem;
}

.mv__scroll {
  align-items: center;
  bottom: 5rem;
  color: var(--colorMain);
  display: flex;
  font-family: var(--familyMontserrat);
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.3rem;
  left: 1rem;
  position: absolute;
  transform: rotate(90deg);
}

.mv__scroll--arrow {
  overflow: hidden;
}

.mv__scroll img {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-name: scrollDown;
}

@keyframes scrollDown {
  0% {
    transform: translateX(0);
  }
  49% {
    transform: translateX(100%);
  }
  50% {
    transform: translateX(100%);
    visibility: hidden;
  }
  51% {
    transform: translateX(-100%);
    visibility: hidden;
  }
  52% {
    transform: translateX(-100%);
    visibility: visible;
  }
  100% {
    transform: translateX(0);
  }
}

@media screen and (max-width: 767px) {
  .mv {
    display: grid;
    gap: 2rem;
    padding-block: 2rem 4rem;
  }

  .mv::after {
    width: 100%;
    top: 6%;
    left: -5%;
    height: 200px;
  }

  .mv__lottieAnime {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
  }

  .mv__textarea {
    gap: 1rem;
    height: unset;
    margin-inline: auto;
    position: unset;
    transform: translateY(-18%);
  }

  .mv__title {
    font-size: 2.5rem;
  }

  .mv__scroll {
    bottom: 4rem;
  }
}

/* =========================
 about
============================*/
.about {
  background: var(--colorBase);
  display: flex;
  justify-content: space-between;
  padding-right: 7.5rem;
}

.about__imgWrap {
  aspect-ratio: 103 / 100;
  position: relative;
  width: 42.875rem;
}

/* 視差効果 */
.rellax-wrap {
    overflow: hidden;
    position: absolute;
}

.rellax-wrap .rellax {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__img--large {
  aspect-ratio: 9 / 8;
  border-radius: 1.875rem;
  left: -1.8125rem;
  top: 0;
  width: 33.75rem;
}

.about__img--small {
  position: absolute;
  aspect-ratio: 33 / 25;
  border-radius: 1.875rem;
  bottom: 0;
  right: 0;
  width: 20.625rem;
}

.about__textarea {
  margin-block: 3.5rem;
  margin-left: auto;
  width: fit-content;
}

.about__linkWrap {
  display: grid;
  gap: 2.5rem;
}

@media screen and (max-width: 767px) {
  .about {
    display: grid;
    padding-inline: 1.25rem;
  }

  .about__imgWrap {
    width: calc(100vw - 2.5rem);
  }

  .about__img--large {
    border-radius: 1rem;
    left: 0;
    width: calc(33.75rem / 2);
  }

  .about__img--small {
    border-radius: 1rem;
    width: calc(20.625rem / 2);
  }

  .about__textarea {
    margin-bottom: 0;
    margin-left: 0;
  }
}

/* =========================
 service
============================*/
.service {
  padding-top: 7rem;
}

.service__lead {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.8;
}

.serviceNav {
  padding-right: 2.125rem;
}

.serviceNavList {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(3,1fr);
  margin-top: 4rem;
}

.serviceNavList__item a {
  border: 1px solid var(--colorStroke);
  border-radius: 0.9375rem;
  display: inline-block;
  height: 100%;
  overflow: hidden;
  padding: 1.875rem 1.875rem 1rem 1.875rem;
  position: relative;
  width: 100%;
}

.serviceNavList__item:nth-child(1) a::before {
  background-image: url(../../images/top/img-service-bg_01.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.serviceNavList__item:nth-child(2) a::before {
  background-image: url(../../images/top/img-service-bg_02.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.serviceNavList__item:nth-child(3) a::before {
  background-image: url(../../images/top/img-service-bg_03.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.serviceNavList__item:nth-child(4) a::before {
  background-image: url(../../images/top/img-service-bg_04.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.serviceNavList__item:nth-child(5) a::before {
  background-image: url(../../images/top/img-service-bg_05.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.serviceNavList__item a > * {
  position: relative;
  z-index: 1;
}

.serviceNavList__icon {
  align-items: center;
  background: #fff;
  border: 1px solid var(--colorStroke);
  border-radius: 50%;
  display: flex;
  height: 3.4375rem;
  justify-content: center;
  width: 3.4375rem;
}

.serviceNavList__title {
  margin-top: 1rem;
}

.serviceNavList__title--en {
  font-family: var(--familyPoppins);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  transition: 0.3s;
}

.serviceNavList__title--ja {
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 0.3125rem;
  transition: 0.3s;
}

.serviceNavList__item .commonArrow {
  margin-top: 0.7rem;
}

@media (hover: hover) {
  .serviceNavList__item a:hover::before {
    opacity: 1;
  }

  .serviceNavList__item a:hover .serviceNavList__title--en, .serviceNavList__item a:hover .serviceNavList__title--ja {
    color: #fff;
  }
}

@media screen and (max-width: 767px) {
  .service__lead {
    font-size: 1.5rem;
  }

  .serviceNavList {
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .serviceNav {
    padding-right: 0;
  }
}


/* =========================
 news
============================*/
.news {
  padding-bottom: 12.5rem;
}
.news .container {
  display: grid;
  gap: 6.25rem;
  grid-template-columns: 18.75rem auto;
}

.news__left {
  align-content: space-between;
  display: grid;
}

@media screen and (max-width: 767px) {
  .news {
    padding-bottom: 4rem;
  }

  .news .container {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .news__left {
    display: contents;
  }

  .newsList {
    order: 2;
  }

  .news .primaryLink {
    margin-inline: auto;
    margin-top: 2rem;
    order: 3;
  }
}

/* =========================
 recruit
============================*/

.recruit {
  background: var(--colorSub);
  padding-top: 7rem;
  position: relative;
}

.recruit__illust--top {
  position: absolute;
  right: 12.9375rem;
  top: -4rem;
  width: 9rem;

}

.recruit__illust--bottom {
  bottom: -0.8125rem;
  left: 9.75rem;
  position: absolute;
  width: 5.1875rem;
}

.recruit__img {
  position: absolute;
}

.recruit__img--left {
  left: -0.8125rem;
  top: 9.0625rem;
  width: 21.875rem;
}

.recruit__img--rightLarge {
  right: 4.625rem;
  top: 8.5625rem;
  width: 19.125rem;
}

.recruit__img--rightSmall {
  bottom: 8.90625rem;
  right: -1.25rem;
  width: 13.625rem;
}

.recruit__lead {
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

.recruit__text {
  font-size: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.recruit__linkColumn {
  display: flex;
  gap: 2.5rem;
  margin: 2.5rem auto 0;
  max-width: 53.75rem;
  width: 100%;
}

.recruit__img--left,
.recruit__img--rightLarge,
.recruit__img--rightSmall {
  border-radius: 1.875rem;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .recruit {
    padding-block: 6rem;
  }

  .recruit__img {
    display: none;
  }

  .recruit__illust--top {
    right: 3rem;
    top: -2rem;
    width: calc(9rem / 1.5);
  }

  .recruit__illust--bottom {
    bottom: -2rem;
    left: 2rem;
    width: calc(5.1875rem / 1.5);
  }

  .recruit__text {
    font-size: 0.875rem;
  }

  .recruit__linkColumn {
    display: grid;
    gap: 1rem;
    max-width: fit-content;
  }
}
