/**************************************
 * mv
**************************************/
.top-mv {
  position: absolute;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: calc(0.5 / var(--full-width) * 100vw);
  z-index: 10;
}

._open .top-mv {
  pointer-events: none;
  z-index: -1;
}

/* パネル */
.top-mv-panel {
  width: 24.9%;
  height: 24.8vh;
  cursor: default;
}
.s .top-mv-panel {
  width: 24.6%;
}

.top-mv-panel div {
  width: 100%;
  height: 100%;
  background: url('../img/top-mv.svg') no-repeat;
  background-color: #fff;
  border-radius: calc(10 / var(--full-width) * 100vw);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.s .top-mv-panel div {
  background: url('../img/top-mv_sp.svg') no-repeat;
  background-color: #fff;
}
.top-mv .top-mv-panel:nth-child(4n -1) {
  z-index: 2;
}
.top-mv .top-mv-panel:nth-child(4n -2) {
  z-index: 2;
}

/* パネルめくりアニメーション */
/* 左から1列目 */
.top-mv .top-mv-panel:nth-child(4n -3)._hover div {
  transform: matrix(1, 0, 0.5, 1, 0, 0) rotateX(90deg);
}
/* 左から2列目 */
.top-mv .top-mv-panel:nth-child(4n -2)._hover div {
  transform: matrix(1, 0, 0.3, 1, 0, 0) rotateX(90deg);
}
/* 左から3列目 */
.top-mv .top-mv-panel:nth-child(4n -1)._hover {
  z-index: 1;
}
.top-mv .top-mv-panel:nth-child(4n -1)._hover div {
  transform: matrix(1, 0, -0.3, 1, 0, 0) rotateX(90deg);
}
/* 左から4列目 */
.top-mv .top-mv-panel:nth-child(4n)._hover div {
  transform: matrix(1, 0, -0.5, 1, 0, 0) rotateX(90deg);
}

/* ホバーアニメーション */
.top-mv-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100 / var(--full-width) * 100vw);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.s .top-mv-hover {
  display: none;
}
.top-mv-hover img {
  animation: mvHover 7s linear infinite;
}

@keyframes mvHover {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/**************************************
 * about
**************************************/
.top-about {
  width: 100%;
  height: 105vh;
  position: relative;
}
.s .top-about {
  height: 170vh;
}

.top-about-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../img/top-about.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* テキスト */
.top-about-textWrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
}
.s .top-about-textWrapper {
  bottom: 0;
}

.top-about-text {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  row-gap: calc(10 / var(--full-width) * 100vw);
}
.s .top-about-text {
  row-gap: calc(50 / var(--sp-full-width) * 100vw);
}

.top-about-text p {
  color: #fff;
  font-size: calc(18 / var(--full-width) * 100vw);
  text-align: center;
  margin-top: calc(50 / var(--full-width) * 100vw);
}
.s .top-about-text p {
  font-size: calc(26 / var(--sp-full-width) * 100vw);
  margin-top: calc(30 / var(--sp-full-width) * 100vw);
  line-height: 1.5;
}

.top-about-text .common-fadeInItem:nth-of-type(1),
.top-about-text .common-fadeInItem:nth-of-type(3) {
  display: none;
}
.s .top-about-text .common-fadeInItem:nth-of-type(1),
.s .top-about-text .common-fadeInItem:nth-of-type(3) {
  display: block;
  height: calc(60 / var(--sp-full-width) * 100vw);
}

/* 筆記体 */
.top-about-mask {
  position: absolute;
}

.top-about-mask.is-01 {
  width: 20%;
  top: 3%;
  left: 20%;
}
.s .top-about-mask.is-01 {
  width: 50%;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
}

.top-about-mask.is-02 {
  width: 9%;
  top: 40%;
  left: 25%;
}
.s .top-about-mask.is-02 {
  width: 20%;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
}

/* リンク */
.top-about-textLink {
  position: absolute;
  height: 18%;
  z-index: 10;
}
.s .top-about-textLink {
  height: 12%;
}

.top-about-textLink:nth-of-type(1) {
  top: 5.8%;
  left: 20%;
  width: 62.5%;
}
.s .top-about-textLink:nth-of-type(1) {
  top: -4%;
  left: 26%;
  width: 48%;
}

.top-about-textLink:nth-of-type(2) {
  top: 41%;
  left: 25%;
  width: 55%;
}
.s .top-about-textLink:nth-of-type(2) {
  top: 15.5%;
  left: 6%;
  width: 89%;
}

.top-about-textLink:nth-of-type(3) {
  top: 75%;
  left: 32%;
  width: 36%;
}
.s .top-about-textLink:nth-of-type(3) {
  top: 34.5%;
  left: 39.6%;
  width: 20.5%;
}

.top-about-textLink:nth-of-type(4) {
  top: 52.4%;
  left: 8.6%;
  width: 83%;
}

.top-about-textLink:nth-of-type(5) {
  top: 77.5%;
  left: 24%;
  width: 51.5%;
}

/**************************************
 * service
**************************************/
.top-service {
  position: relative;
  height: calc(1235 / var(--full-width) * 100vw);
  padding-top: calc(150 / var(--full-width) * 100vw);
  overflow: hidden;
  background-color: #fff;
  display: none;
}
.s .top-service {
  min-height: calc(1460 / var(--sp-full-width) * 100vw);
  padding-top: calc(110 / var(--sp-full-width) * 100vw);
}

.top-service-text {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: calc(10 / var(--full-width) * 100vw);
}

.top-service-mask {
  position: absolute;
  top: -2%;
  left: 42.5%;
  width: 11.5%;
}
.s .top-service-mask {
  top: -5%;
  left: 6%;
  width: 22%;
}

.top-service-img {
  position: absolute;
  top: 22.5%;
  left: 12.5%;
  width: calc(300 / var(--full-width) * 100vw);
  z-index: 1;
}
.s .top-service-img {
  top: 32.5%;
  left: 8%;
  width: calc(300 / var(--sp-full-width) * 100vw);
}

.top-service-img span {
  transform: translateY(50%);
}
.s .top-service-img span {
  transform: translateY(101%);
}

.top-service-lead {
  position: absolute;
  top: 12%;
  left: 10.5%;
  width: calc(58 / var(--full-width) * 100vw);
  z-index: 1;
}
.s .top-service-lead {
  top: 22.5%;
  left: 4%;
  width: calc(58 / var(--sp-full-width) * 100vw);
}

/* 横スライドリンク */
.top-service-linkWrapper {
  position: absolute;
  top: 46%;
  overflow: hidden;
  width: 100%;
  height: calc(120 / var(--full-width) * 100vw);
}
.s .top-service-linkWrapper {
  top: 50%;
  height: calc(120 / var(--sp-full-width) * 100vw);
}

.top-service-link {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.9s ease-out;
}

/* 横スライダー */
.top-service-linkItem {
  display: flex;
  justify-content: flex-start;
  width: auto;
  height: 100%;
  flex: 0 0 auto;
}
.top-service-linkItem:nth-child(1) {
  animation: xRoop1 150s -75s infinite linear;
}
.top-service-linkItem:nth-child(2) {
  animation: xRoop2 150s infinite linear;
}

.top-service-linkItem img {
  height: 100%;
  width: auto;
}

@keyframes xRoop1 {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes xRoop2 {
  0% {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-200%);
  }
}

/* 回転 */
.top-service-roll {
  position: absolute;
  bottom: -20%;
  right: 13%;
  width: 35.5%;
}
.s .top-service-roll {
  right: -15%;
  width: 75%;
}

/**************************************
 * works
**************************************/
.top-works {
  background-color: #0000b8;
  padding: calc(400 / var(--full-width) * 100vw) 0;
  position: relative;
  overflow: hidden;
  display: none;
}
.s .top-works {
  padding: calc(450 / var(--sp-full-width) * 100vw) 0;
}

/* 縦スライドリンク */
.top-works-linkWrapper {
  position: absolute;
  top: 0;
  left: 12.8%;
  overflow: hidden;
  height: 100%;
}
.s .top-works-linkWrapper {
  left: 5%;
}

.top-works-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: calc(1560 / var(--full-width) * 100vw);
  transform: translateY(0);
  transition: transform 0.7s ease-out;
}
.s .top-works-link {
  height: calc(1550 / var(--sp-full-width) * 100vw);
}

/* 縦スライダー */
.top-works-linkItem {
  height: calc(1130 / var(--full-width) * 100vw);
}
.s .top-works-linkItem {
  height: calc(840 / var(--sp-full-width) * 100vw);
}
.top-works-linkItem:nth-child(1) {
  animation: yRoop1 60s -30s infinite linear;
}
.top-works-linkItem:nth-child(2) {
  animation: yRoop2 60s infinite linear;
}
.top-works-linkItem img {
  height: 100%;
  width: auto;
}
@keyframes yRoop1 {
  0% {
    transform: translateY(100%);
  }
  to {
    transform: translateY(-100%);
  }
}
@keyframes yRoop2 {
  0% {
    transform: translateY(0%);
  }
  to {
    transform: translateY(-200%);
  }
}

.top-works-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: calc(230 / var(--full-width) * 100vw);
  padding-left: calc(440 / var(--full-width) * 100vw);
}
.s .top-works-list {
  row-gap: calc(205 / var(--sp-full-width) * 100vw);
  padding-left: calc(155 / var(--sp-full-width) * 100vw);
}

.top-works-item {
  position: relative;
  width: fit-content;
}
.s .top-works-item {
  width: auto;
}

.top-works-item.is-01 {
  margin-left: calc(170 / var(--full-width) * 100vw);
}
.top-works-item.is-03 {
  margin-left: calc(240 / var(--full-width) * 100vw);
}
.s .top-works-item.is-01,
.s .top-works-item.is-03 {
  margin-left: 0;
}

.top-works-item a:hover {
  opacity: 1;
}

.top-works-item span {
  display: block;
  height: calc(100 / var(--full-width) * 100vw);
  width: fit-content;
}
.s .top-works-item span {
  height: calc(80 / var(--sp-full-width) * 100vw);
}

.top-works-item img {
  height: 100%;
  width: auto;
}

/* ホバーアニメーション */
.top-works-hover {
  position: absolute;
  top: 50%;
  left: -26%;
  transform: translateY(-50%);
  width: 155%;
  height: 28vw;
  --mask-cx: 50%;
  --mask-cy: 50%;
  mask-image: url(../img/hover-mask.svg);
  mask-repeat: no-repeat;
  mask-size: 0%;
  mask-position: 0 0;
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
}

.top-works-hover.is-01 {
  background: url(../img/top-works-hover01.jpg) no-repeat center / cover;
}
.top-works-hover.is-02 {
  background: url(../img/top-works-hover02.jpg) no-repeat center / cover;
}
.top-works-hover.is-03 {
  background: url(../img/top-works-hover03.jpg) no-repeat center / cover;
}

/**************************************
 * contact
**************************************/
.top-contact {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  display: none;
}

/* 筆記体 */
.top-contact-mask {
  position: absolute;
}

.top-contact-mask.is-01 {
  width: 15.5%;
  top: -73.5%;
  left: -13%;
}
.s .top-contact-mask.is-01 {
  width: 15.5%;
  top: -120%;
  left: 5%;
}

.top-contact-mask.is-02 {
  width: 30.5%;
  bottom: -110%;
  left: 28%;
}
.s .top-contact-mask.is-02 {
  width: 28%;
  bottom: -135%;
  left: 25%;
}

.top-contact-mask.is-03 {
  width: 24.3%;
  top: -115.5%;
  right: 4%;
}
.s .top-contact-mask.is-03 {
  top: -170%;
  right: 7%;
}

.top-contact-link {
  width: 72.5%;
  position: relative;
  top: 52%;
  left: 16.7%;
  transform: translateY(-50%);
}
.s .top-contact-link {
  width: 96%;
  top: 52%;
  left: 3.3%;
}

.top-contact-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26.5%;
}
.s .top-contact-img {
  bottom: 3%;
  width: 47%;
}
