@charset "utf-8";
/* =========================
main
========================= */
/* ローディング */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: var(--primary-white);
    text-align:center;
}

#loading__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#loading__logo img {
    width:400px;
}

.fadeUp{
    animation-name: fadeUpAnime;
    animation-duration:1s;
    animation-fill-mode:forwards;
    opacity: 0;
}

@keyframes fadeUpAnime{
    from {
      opacity: 0;
    transform: translateY(100px);
    }
  
    to {
      opacity: 1;
    transform: translateY(0);
    }
}


.slideBox__pc {
    display: none;
}

.mainVisual__sp {
    border-radius: 60px 0 0 60px;
    padding: 36px 0px 36px 36px;
}

.sns__top {
    display: flex;
    justify-content: center;
}

.section--latestWorks {
    text-align: center;
    margin-top: 36px;
    padding: 0px 40px ;
}

.latestWorks__item {
    margin-top: 28px;
    transition-property: opacity;
    transition-duration: 0.3s;
}

.latestWorks__item:hover {
    opacity: 0.7; 
}

/* SPスライド */
.slideBox__sp {
    height: 80vh;
    overflow: hidden;
    position: relative;
  }
  
  /* imgのみ */
  .mainVisual__sp {
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-animation: anime 30s 0s infinite;
    animation: anime 30s 0s infinite;
  }
  
  .mainVisual__sp:nth-of-type(2) {
    -webkit-animation-delay: 10s;
    animation-delay: 10s;
  }
  
  .mainVisual__sp:nth-of-type(3) {
    -webkit-animation-delay: 20s;
    animation-delay: 20s;
  }
  
  /* ふわっとアニメーション */
  @keyframes anime {
    0% {
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    35% {
      opacity: 1;
    }
    50% {
      opacity: 0;
      z-index: 9;
    }
    100% {
      opacity: 0;
    }
  }
  
  @-webkit-keyframes anime {
    0% {
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    35% {
      opacity: 1;
    }
    50% {
      opacity: 0;
      z-index: 9;
    }
    100% {
      opacity: 0;
    }
  }


/* main pc */
@media screen and (min-width:769px){
    /* PCスライド */
.slideBox__pc {
    width: 900px;
    height: 500px;
    overflow: hidden;
    position: relative;
    margin: 44px auto 36px;
  }
  
  /* imgのみ */
  .mainVisual__pc {
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-animation: anime 30s 0s infinite;
    animation: anime 30s 0s infinite;
  }
  
  .mainVisual__pc:nth-of-type(2) {
    -webkit-animation-delay: 10s;
    animation-delay: 10s;
  }
  
  .mainVisual__pc:nth-of-type(3) {
    -webkit-animation-delay: 20s;
    animation-delay: 20s;
  }
  
  /* ふわっとアニメーション */
  @keyframes anime {
    0% {
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    35% {
      opacity: 1;
    }
    50% {
      opacity: 0;
      z-index: 9;
    }
    100% {
      opacity: 0;
    }
  }
  
  @-webkit-keyframes anime {
    0% {
      opacity: 0;
    }
    30% {
      opacity: 1;
    }
    35% {
      opacity: 1;
    }
    50% {
      opacity: 0;
      z-index: 9;
    }
    100% {
      opacity: 0;
    }
  }

/* スライドここまで */

    .slideBox__sp {
        display: none;
    }

    .slideBox__pc {
        display: block;
        border-radius: 40px 40px 0 40px;
    }

    .section--latestWorks {
        margin-top: 60px;
    }

    .latestWorks {
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    .latestWorks__item {
        max-width: 300px;
    }

}
