*{margin:0;padding:0;}

body{
  min-height: 100svh;
}

#wrapper{
  margin:auto;
  min-width:100%;
  min-height:100%;
}
/*
.video_wrapper {
    margin: 0 auto;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
  
.video_wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    background: url(img/video.jpg) no-repeat center center/cover;
}
*/
  
video {
    height: 100%;
    width:100%;
    position: absolute;
}
  
  /*画面サイズが変わっても常に動画の中央が表示されるようにする*/
  /*動画よりも画面が横に長くなるとき用*/
  
@media (aspect-ratio: 16/9), (min-aspect-ratio: 16/9) {
    video {
        width: 100%;
        top: 50%;
        transform: translateY(-50%);
    }
}

  
  /*動画よりも画面が縦に長くなるとき用*/

@media (max-aspect-ratio: 16/9) {
    video {
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/*ローディング*/
#loading{
    width:100vw;
    height:100vh;
    transition:all 1s;
    background-color: rgb(94, 147, 226);
    position:fixed;
    top:0;
    left:0;
    z-index:10001;
}
.loaded{
    display:none;
}
.newtons-cradle {
    --uib-size: 40px;
    --uib-speed: 1.4s;
    --uib-color: white;
  
    position: absolute;
    display: flex;
    top:50%;left:50%;
    transform: translate(-50%);
    -webkit-transform: translate(-50%);
    align-items: center;
    justify-content: center;
    width: var(--uib-size);
    height: var(--uib-size);
  }
  .newtons-cradle__dot {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    width: 25%;
    transform-origin: center top;
  }
  .newtons-cradle__dot::after {
    content: '';
    display: block;
    width: 100%;
    height: 25%;
    border-radius: 50%;
    background-color: var(--uib-color);
  }
  .newtons-cradle__dot:first-child {
    animation: swing var(--uib-speed) linear infinite;
  }
  .newtons-cradle__dot:last-child {
    animation: swing2 var(--uib-speed) linear infinite;
  }
  @keyframes swing {
    0% {
      transform: rotate(0deg);
      animation-timing-function: ease-out;
    }
    25% {
      transform: rotate(70deg);
      animation-timing-function: ease-in;
    }
    50% {
      transform: rotate(0deg);
      animation-timing-function: linear;
    }
  }
  @keyframes swing2 {
    0% {
      transform: rotate(0deg);
      animation-timing-function: linear;
    }
    50% {
      transform: rotate(0deg);
      animation-timing-function: ease-out;
    }
    75% {
      transform: rotate(-70deg);
      animation-timing-function: ease-in;
    }
  }