@charset "UTF-8";
/* CSS Document */

/*works*/
.works {
  padding-top: 60px;
}

.works__texts {
  padding-bottom: 100px;
  border-bottom: var(--main-border);
}

.works__texts__inner {
  padding-inline: 5.5vw;
}

.heading__wrap {
  overflow: hidden;
  opacity: 0;
}

.heading__wrap.is-active {
  opacity: 1;
}

.works__heading {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  opacity: 0;
  transform: matrix(1, 0, 0, 1, 0, 100);
  transition: 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.works__heading.is-active {
  opacity: 1;
  transform: matrix(1, 0, 0, 1, 0, 0);
}

.works__info {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--dgray);
  margin-bottom: 30px;
  opacity: 0;
  transition: opacity 0.8s ease;
  transition-delay: 0.8s;
}

.works__info.is-active {
  opacity: 1;
}

.works__link {
  position: relative;
  color: var(--dgray);
}

.works__link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--dgray);
  bottom: 0;
  left: 0;
}

.works__mock {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease;
  transition-delay: 1.2s;
}

.works__mock.is-active {
  opacity: 1;
  transform: translateY(0);
}

.works__description {
  font-size: 1.3rem;
  line-height: 2.5rem;
  margin: 30px 0 60px;
}

.works__roop__container {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.works__roop__text {
  font-family: var(--main-font);
  font-size: 7.5rem;
  font-weight: 800;
  line-height: 100%;
  color: var(--gray);
  padding-right: 70px;
  animation: roopText 30s linear infinite;
}

.works__list {
  margin-top: 60px;
}

.works__item {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
}

.works__item:last-child {
  margin-bottom: 0;
}

.works__head {
  font-size: 1.6rem;
  font-weight: bold;
  padding-bottom: 20px;
}

.works__body {
  font-size: 1.3rem;
  line-height: 2.5rem;
}

.works__comp {
  padding: 100px 0;
  border-bottom: var(--main-border);
}

.works__comp__inner {
  padding-inline: 5.5vw;
}

.works__comp__container {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.works__comp__pc, .works__comp__sp {
  filter: drop-shadow(0px 20px 20px rgba(29,29,29,0.2));
  transform: translateZ(0);
}

.works__mock-sub {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 70px;
}

.works__mock-sub img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);  /*初期位置*/ 
  width: 120%;  /*コンテナより少し広げて隙間を防ぐ */
  height: auto;
  transition: transform 0.1s linear;  /*スムーズな動きにする*/ 
}



@media(min-width: 768px) {
  .works {
    padding-top: 100px;
  }

  .works__texts {
    padding-bottom: 200px;
  }

  .works__texts__inner {
    padding-inline: 40px;
    margin-inline: auto;
    max-width: 1160px;
  }

  .works__heading {
    font-size: 3.6rem;
    margin-bottom: 25px;
  }

  .works__info {
    margin-bottom: 0;
    line-height: 2.3rem;
  }

  .works__mock {
    max-width: 950px;
    margin-inline: auto;
  }
  
  .works__description {
    font-size: 1.5rem;
    line-height: 2.8rem;
    margin: 10px auto 100px;
    max-width: 700px;
  }

  .works__roop__text {
    font-size: 15.0rem;
    padding-right: 140px;
  }
  
  .works__list {
    margin-top: 100px;
    max-width: 950px;
    margin-inline: auto;
  }

  .works__item {
    flex-direction: row;
    margin-bottom: 80px;
  }

  .works__head {
    font-size: 2.0rem;
    padding-bottom: 0;
    width: 25%;
  }

  .works__body {
    font-size: 1.5rem;
    line-height: 2.8rem;
    width: 75%;
  }

  .works__comp {
    padding: 200px 0;
  }

  .works__comp__inner {
    padding-inline: 40px;
    margin-inline: auto;
    max-width: 1160px;
  }

  .works__comp__container {
    flex-direction: row;
    gap: 80px;
  } 
  
  .works__mock-sub {
    margin-bottom: 120px;
  }
  
}




/*others*/
.others {
  padding: 100px 0;
  background-color: var(--gray);
}

.others__inner {
  padding-inline: 5.5vw;
}



@media(min-width: 768px) {
  .others {
    padding: 200px 0;
  }
  
  .others__inner {
    padding-inline: 40px;
    margin-inline: auto;
    max-width: 1160px;
  }

  .others__list {
    gap: 70px;
  }

  .others__item {
    width: calc( 100% / 2 );
  }
}



