@charset "utf-8";

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  overflow-x: hidden;
}

img {
  width: 100%;
}

.opening-text img {
  width: 18%;
  margin: 20vh auto;
  display: block;
  align-items: center;
}

.opening-text {
  width: 100%;
  height: 100vh;
  /* background: #60b97e; */
  background: rgba(44, 43, 47, 0.74);
  background: linear-gradient(90deg, rgba(44, 43, 47, 0.541) 0%, rgba(125,125,119,1) 0%, rgba(228,217,217,1) 100%, rgba(164,157,156,0.31976540616246496) 100%, rgba(143,137,141,1) 100%);  
  animation: bgAnime 1s linear 1.8s forwards;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
}

.text {
  text-align: center;
  /* font-family: 'Noto Sans JP', sans-serif; */
  font-family: 'Oswald', sans-serif;
  font-size: 50px;
  height: 100px;
  color: #f4f5f7;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  z-index: 100;
  opacity: 0;
  animation: textAnime1 .6s linear forwards;
}

.text span{
  display: inline-block;
}

.text span:nth-child(1) {
  animation: textAnime2 .6s ease-in-out .1s forwards;
}

.text span:nth-child(2) {
  animation: textAnime2 .6s ease-in-out .2s forwards;
}

.text span:nth-child(3) {
  animation: textAnime2 .6s ease-in-out .3s forwards;
}

.text span:nth-child(4) {
  animation: textAnime2 .6s ease-in-out .4s forwards;
}

.text span:nth-child(5) {
  animation: textAnime2 .6s ease-in-out .5s forwards;
}

.text span:nth-child(6) {
  animation: textAnime2 .6s ease-in-out .6s forwards;
}

.text span:nth-child(7) {
  animation: textAnime2 .6s ease-in-out .7s forwards;
}

.text span:nth-child(8) {
  animation: textAnime2 .6s ease-in-out .1s forwards;
}

.text span:nth-child(9) {
  animation: textAnime2 .6s ease-in-out .2s forwards;
}

.text span:nth-child(10) {
  animation: textAnime2 .6s ease-in-out .3s forwards;
}
.text span:nth-child(11) {
  animation: textAnime2 .6s ease-in-out .4s forwards;
}
.text span:nth-child(12) {
  animation: textAnime2 .6s ease-in-out .5s forwards;
}

@keyframes textAnime1 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


@keyframes textAnime2 {
  0% {
    transform: translateY(0);
  }

  10% {
    transform: translateY(-50%);
  }

  20% {
    transform: translateY(-35%);
  }

  30% {
    transform: translateY(-25%);
  }

  40% {
    transform: translateY(-5%);
  }

  50% {
    transform: translateY(0);
  }

  60% {
    transform: translateY(-50%);
  }

  70% {
    transform: translateY(-35%);
  }

  80% {
    transform: translateY(-25%);
  }

  90% {
    transform: translateY(-5%);
  }

  95% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes bgAnime {
  0% {
    opacity: 1;
  }

  99% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  } 

} 


/* レスポンシブここから */

@media (max-width: 800px) {

  .opening-text {
    width: 100vw;
    height: 100vh;
    /* background: #60b97e; */
    background: rgba(44, 43, 47, 0.74);
    background: linear-gradient(90deg, rgba(44, 43, 47, 0.541) 0%, rgba(125,125,119,1) 0%, rgba(228,217,217,1) 100%, rgba(164,157,156,0.31976540616246496) 100%, rgba(143,137,141,1) 100%);  
    animation: bgAnime 1s linear 1.8s forwards;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
  }
    
  .opening-text img {
    width: 50%;
    margin: 25vh auto;
    display: block;
    align-items: center;
  }

  .text {
    font-size: 40px;
  }
  
}
