@charset "utf-8";

:root{
  --mv-bottom-space: 17rem;
}

.p-top-section{
  width: 100%;
  margin: 0;
}

.p-top-mv{
  display: flex;
  height: calc(100lvh + var(--mv-bottom-space));
  padding-bottom: var(--mv-bottom-space);
  position: relative;
  background: url(../images/top/mv-img01_pc.webp) no-repeat center / cover;
}
.p-top-mv__logo{
  position: absolute;
  top: 4rem;
  left: 12rem;
  filter: drop-shadow(0 0 2.5rem rgb(11 18 48 / 0.9));
}
.p-top-mv__copy-container{
  align-self: flex-end;
  width: 51.4rem;
  margin-right: 3rem;
  margin-left: auto;
  position: relative;
  bottom: 2.7rem;
}
.p-top-mv__copy{
  filter: drop-shadow(0 0 2.5rem rgb(0 0 0 / 0.9));
}
@media screen and (max-width: 1200px) {

}
@media screen and (max-width: 768px) {
  :root{
    --mv-bottom-space: 6.5rem;
  }
  .p-top-mv{
    width: 100%;
    height: auto;
    aspect-ratio: 375 / 650;
    background-image: url(../images/top/mv-img01_sp.webp);
  }
  .p-top-mv img{
    width: 100%;
    height: auto;
  }
  .p-top-mv__logo{
    width: 13rem;
    left: var(--side-margin);
  }
  .p-top-mv__copy-container{
    width: var(--main-inner);
    margin: 0 auto;
    padding-right: 0.5rem;
    bottom: 4rem;
  }
}


/******************************************************
 *  NEWS
 ******************************************************/
.p-top-news{
  --this-right-space: calc(var(--side-margin) + var(--side-padding) + 29rem);
  margin-top: calc(var(--mv-bottom-space) * -1);
  padding: var(--mv-bottom-space) 0 14rem;
  position: relative;
  background-color: var(--color-white);
  mask-image: 
    linear-gradient(to bottom, transparent 0, transparent var(--mv-bottom-space), #000 var(--mv-bottom-space)),
    linear-gradient(to right, transparent 0, transparent var(--this-right-space), #000 var(--this-right-space));
  overflow: hidden;
}
.p-top-news::before{
  content: "";
  width: 45rem;
  aspect-ratio: 450 / 390;
  position: absolute;
  top: 0;
  right: -1.2rem;
  z-index: 0;
  rotate: 75deg;
  background: url(../images/common/polygon-450.webp) no-repeat center / contain;
}
.p-top-news__inner{
  width: 62rem;
  margin-left: auto;
  margin-right: calc(var(--side-margin) + var(--side-padding));
  position: relative;
  z-index: 5;
}
.p-top-news .p-top-news__heading{
  width: 25.1rem;
  margin-top: -7rem;
  margin-bottom: 5rem;
}

.p-top-news__list{
  border-bottom: 0.2rem solid #E8ECF1;
}
.p-top-news__item{
  padding: 5.5rem 2rem;
  border-top: 0.2rem solid #E8ECF1;
}
.p-top-news__date{
  margin-bottom: 2.2rem;
  font-size: 1.8rem;
  font-family: var(--font-famiry-en);
  font-style: var(--font-famiry-en-style);
}
.p-top-news__body{
  font-size: 1.6rem;
  line-height: 1.625;
}
@media screen and (max-width: 1200px) {
  .p-top-news{
    --this-inner: calc(var(--main-inner) + var(--side-margin));
    mask-image: 
      linear-gradient(to bottom, transparent 0, transparent var(--mv-bottom-space), #000 var(--mv-bottom-space)),
      linear-gradient(to right, transparent 0, transparent var(--side-margin), #000 var(--side-margin), #000 var(--this-inner), transparent var(--this-inner) );
  }
  .p-top-news__inner{
    width: var(--main-inner);
    margin-right: auto;
  }
  .p-top-news .p-top-news__heading{
    margin-left: 2rem;
  }
}
@media screen and (max-width: 768px) {
  .p-top-news{
    padding-bottom: 12.5rem;
  }
  .p-top-news::before{
    width: 30rem;
    top: -1.3rem;
    right: -0.5rem;
    rotate: 70deg;
    background-image: url(../images/common/polygon-300.webp);
  }
  .p-top-news__inner{
    padding-top: 3rem;
  }
  .p-top-news .p-top-news__heading{
    width: 14rem;
    margin-top: 0;
    margin-bottom: 3rem;
  }
  .p-top-news__heading img{
    width: 100%;
    height: auto;
  }

  .p-top-news__item{
    padding: 4.7rem 2rem 5.6rem;
  }
  .p-top-news__date{  
    margin-bottom: 2.4rem;
    font-size: 1.6rem;
  }
  .p-top-news__body{
    font-size: 1.4rem;
    line-height: 1.714;
  }
}

/******************************************************
 *  ABOUT
 ******************************************************/
.p-top-about{
  padding-top: 14rem;
  padding-bottom: 12.5rem;
  position: relative;
}
.p-top-about::before{
  content: "";
  display: block;
  width: 62.5rem;
  aspect-ratio: 625 / 740;
  position: absolute;
  top: -18.9rem;
  left: 0;
  background: url(../images/top/decoration02.webp) no-repeat center / contain;
}
.p-top-about::after{
  content: "";
  display: block;
  width: 25.1rem;
  aspect-ratio: 251 / 296;
  position: absolute;
  bottom: -0.4rem;
  right: 0;
  z-index: 0;
  background: url(../images/top/decoration03.webp) no-repeat center / contain;
}
.p-top-about__inner{
  width: 100%;
  position: relative;
  overflow: hidden;
}
.p-top-about__contents{
  margin-left: calc(var(--side-margin) + var(--side-padding));
  padding-left: 4rem;
  position: relative;
  z-index: 5;
}
.p-top-about__heading{
  margin-bottom: 7.2rem;
  font-size: 5rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.p-top-about__body{
  width: 57.6rem;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  line-height: 2.125;
}
.p-top-about__body p + p{
  margin-top: 2.2rem;
}

.p-top-about__image-container{
  display: flex;
  position: relative;
  z-index: 5;
}
.p-top-about__image-container--1{
  flex-direction: column;
  row-gap: 3rem;
  width: 53rem;
  position: absolute;
  top: 15%;
  left: calc(var(--side-margin) + var(--side-padding) + 77rem);
}
.p-top-about__image--1-2{
  align-self: flex-end;
}
.p-top-about__image-container--2{
  column-gap: 3rem;
  width: max-content;
  margin-top: 14rem;
  position: relative;
  left: calc(var(--side-margin) - 8rem);
}
.p-top-about__image--2-2{
  margin-top: 8rem;
}

@media screen and (max-width: 1200px) {
  .p-top-about{
    padding-top: 11.5rem;
  }
  .p-top-about::after{
    bottom: -4.2rem;
  }
  .p-top-about__contents{
    width: var(--main-inner);
    margin-right: auto;
    margin-left: var(--side-margin);
    padding-left: 0;
  }
  .p-top-about__body{
    width: var(--main-inner);
  }
  .p-top-about__image img{
    width: 100%;
    height: auto;
  }
  .p-top-about__image-container--1{
    width: var(--main-inner);
    margin: 7.7rem auto 0;
    position: relative;
    top: auto;
    left: auto;
  }
  .p-top-about__image--1-1{
    width: 56.615%;
    aspect-ratio: 184 / 123;
  }
  .p-top-about__image--1-2{
    width: 84.923%;
    aspect-ratio: 276 / 184;
  }
  .p-top-about__image-container--2{
    width: 100%;
    left: auto;
    margin-top: 8rem;
  }
  /* .p-top-about__image-container--2 .p-top-about__image img{
    width: 100%;
    height: auto;
  } */
}
@media screen and (max-width: 768px) {
  .p-top-about{
    padding-top: 12.5rem;
    padding-bottom: 10rem;
  }
  .p-top-about::before{
    width: 24.4rem;
    aspect-ratio: 244 / 296;
    top: -5.3rem;
    background-image: url(../images/top/decoration02_sp.webp);
  }
  .p-top-about::after{
    width: 21.7rem;
    aspect-ratio: 217 / 296;
    /* bottom: -3.2rem; */
    background-image: url(../images/top/decoration03_sp.webp);
  }
  .p-top-about__heading{
    margin-bottom: 7.2rem;
    font-size: min(var(--vw) * 10, 3.4rem);
    line-height: 1.647;
  }
  .p-top-about__body{
    font-size: 1.4rem;
  }

  
  .p-top-about__image-container--1{
    row-gap: 1.5rem;
    margin-top: 7.3rem;
  }
  /* .p-top-about__image--1-1{
    width: 56.615%;
    aspect-ratio: 184 / 123;
  }
  .p-top-about__image--1-2{
    width: 84.923%;
    aspect-ratio: 276 / 184;
  } */
  .p-top-about__image-container--2{
    column-gap: 1.6rem;
    margin-top: 6rem;
  }
  .p-top-about__image--2-2{
    margin-top: 4.2rem;
  }
}


/******************************************************
 *  WORKS, COMPANY
 ******************************************************/
.p-top-link{
  display: grid;
  grid-template-columns: 1fr 1.061fr calc(var(--side-margin) + var(--side-padding));
  grid-template-areas: "image contents .";
  align-items: center;
  gap: 0;
  padding-top: 12.5rem;
  padding-bottom: 16rem;
}
.p-top-link__image{
  grid-area: image;
}
.p-top-link__image img{
  display: block;
  width: 100%;
  height: auto;
}
.p-top-link__contents{
  grid-area: contents;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 1.2rem 0 1.2rem 6rem;
  height: 100%;
  margin-top: 0;
  
}
.p-top-link__link{
  display: grid;
  grid-template-columns: 1fr 9rem;
  align-items: center;
  justify-content: space-between;
  column-gap: 3.7rem;
  height: 100%;
  padding-right: 1rem;
  padding-left: 5rem;
  position: relative;
  z-index: 5;
}
.p-top-link__link::before,
.p-top-link__link::after{
  grid-row: 1;
  grid-column: 2;
  content: "";
  display: block;
  width: 9rem;
  aspect-ratio: 1 / 1;
}
.p-top-link__link::after{
  background: url(../images/common/button_fill-color.webp) no-repeat center / contain;
  opacity: 0;
  z-index: 5;
}
.p-top-link__link::before{
  background: url(../images/common/button_stroke-gray.png) no-repeat center / contain;
  opacity: 1;
}

.p-top-link__link > span{
  margin-right: auto;
  display: inline-block;
  aspect-ratio: 440 / 123;
  height: min(var(--vw) * 9, 12.3rem);
  filter: contrast(0) brightness(50%);
}
.p-top-link__link > span picture,
.p-top-link__link > span img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.p-top-works,
.p-top-company{
  border-top: 0.2rem solid #E8ECF1;
}
.p-top-company{
  border-bottom: 0.2rem solid #E8ECF1;
}
@media (hover: hover){
  .p-top-link__link > span{
    will-change: filter;
    transition: filter 100ms ease-in-out 0s;
  }
  .p-top-link__link:hover > span{
    filter: contrast(1) brightness(1);
  }
  .p-top-link__link::before,
  .p-top-link__link::after{
    will-change: opacity;
    transition: opacity 100ms ease-in-out 0s;
  }
  .p-top-link__link:hover::before{
    opacity: 0;
  }
  .p-top-link__link:hover::after{
    opacity: 1;
  }
}
@media screen and (max-width: 1200px) {
  .p-top-link{
    grid-template-columns: var(--side-margin) 1fr var(--side-margin);
    grid-template-areas: 
      ". image ."
      ". contents .";
    padding-top: 10rem;
    padding-bottom: 7.5rem;
  }
  .p-top-link__contents{
    grid-template-rows: none;
    grid-auto-rows: 16rem;
    padding-top: 3rem;
    padding-bottom: 0;
    padding-left: 0;
  }
  .p-top-link__link{
    grid-template-columns: 1fr 5rem;
  }
  .p-top-link__link::before,
  .p-top-link__link::after{
    width: 5rem;
  }
}
@media screen and (max-width: 768px) {

  .p-top-link__link{
    column-gap: 2.3rem;
    padding-right: 2rem;
    padding-left: 2rem;
  }
  .p-top-link__link > span{
    height: 6rem;
    aspect-ratio: 212 / 61;
  }
}

/******************************************************
 *  RECRUIT
 ******************************************************/
.p-top-recruit{
  --this-overlay: linear-gradient(to bottom, rgb(0 0 0 /0.6) 0%, rgb(0 0 0 /0.6) 0%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1520 / 995;
  margin-top: 15.9rem;
  position: relative;
  z-index: 0;
  color: var(--color-white);
  background-color: rgb(0 0 0 /0.6);
  background-image:
    var(--this-overlay),
    url(../images/top/recruit-bg_pc.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.p-top-recruit::before{
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1520 / 342;
  position: absolute;
  top: -9.4rem;
  left: 0;
  z-index: 0;
  background: url(../images/top/name-color_pc.webp) no-repeat center / contain;
}
.p-top-recruit .p-top-recruit__inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44rem;
  margin-block-end: initial;
  margin-bottom: 18rem;
}
.p-top-recruit__heading{
  margin-bottom: 2.2rem;
}
.p-top-recruit__inner p{
  letter-spacing: 0.05em;
  line-height: 2.125;
}
.p-top-recruit__link-container{
  width: 25rem;
  margin: 4.8rem auto 0;
}

.p-top-slider{
  --slider-range: -1700px;
  --slider-duration: 20s;
  width: 100%;
  padding: 2rem 0;
  overflow: hidden;
}
.p-top-slider__track{
  flex-wrap: nowrap;
  column-gap: 1rem;
  width: max-content;
  position: relative;
  z-index: 0;
  transform: translate3d(0,0,0);
  will-change: transform;
  backface-visibility: hidden;
}
.p-top-slider__item{
  flex-basis: 33rem;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.p-top-slider__item img{
  position: relative;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.p-top-slider.js-slider-initialized .p-top-slider__track{
  animation: topSlider var(--slider-duration) linear 0s infinite forwards;
}
@keyframes topSlider {
  0%{
    transform: translateX(0);
  }
  100%{
    transform: translateX(var(--slider-range));
  }
}
@media screen and (max-width: 1200px) {
  .p-top-recruit{
    align-items: center;
    padding-top: 25%;
    padding-bottom: 10rem;
  }
  .p-top-recruit .p-top-recruit__inner{
    margin-top: 5rem;
    margin-bottom: 0;
  }
}
@media screen and (max-width: 768px) {
  .p-top-recruit{
    margin-top: 7.5rem;
    padding-top: 55.2%;
    padding-bottom: 12.5rem;
    background-image:
      var(--this-overlay),
      url(../images/top/recruit-bg_sp.webp);
    background-position: top center;
  }
  .p-top-recruit::before{
    aspect-ratio: 375 / 110;
    top: auto;
    bottom: calc(100% - 7.5rem);
    background-image: url(../images/top/name-color_sp.webp);
  }
  .p-top-recruit .p-top-recruit__inner{
    width: var(--main-inner);
    margin-top: 0;
  }
  .p-top-recruit__heading{
    width: 22.3rem;
    margin-bottom: 2.4rem;
  }
  .p-top-recruit__heading picture,
  .p-top-recruit__heading img{
    width: 100%;
    height: auto;
  }
  .p-top-recruit__inner p{
    font-size: 1.4rem;
    line-height: 2;
  }
  .p-top-recruit__link-container{
    width: 20rem;
    margin-top: 4.3rem;
  }
  .p-top-slider{
    --slider-duration: 20s;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
