
html, body {
  height: 100%;
  height: 100%;
  overflow: hidden;
}

html {
  font-size: 1vw;
}

body {
  padding: 0;
  margin: 0;
  cursor: -webkit-grab;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
@media screen and (max-width: 980px){
    body{
        background-image: url("loom_sp.jpg");
        background-size: cover;
    }
}
/***カーテンのように開くアニメーション***/
body::before, body::after{
  content: "";
  position: fixed; /*固定表示*/
  top: 0;
  width: 50vw;
  height: 100vh;
  background: #940C04; /*劇のカーテン色*/
  animation: curtainOpen 3s forwards;
  animation-delay: 1s; /*遅延時間(遅延時間)*/
  z-index: 999; /*最前面に*/
  border-top: 12px solid #E7AD3D; /*上部の金の装飾*/
}
body::before{
  left: 0;
}
body::after{
  right: 0;
}

@keyframes curtainOpen{
  0%{
    width: 50vw; /*閉じている状態*/
  }
  10%{
    width: 40vw;
  }
  30%{
    width: 39vw;
  }
  40%{
    width: 29vw;
  }
  60%{
    width: 28vw;
  }
  70%{
    width: 18vw;
  }
  90%{
    width: 17vw;
  }
  100%{ 
    width: 0; /*開く*/
    visibility: hidden; /*非表示に*/
  }
}


@media screen and (max-width: 767px){
    .pc{
        display:none;
    }
    .sp{
        display:block;
    }
}
@media screen and (min-width: 768px){
    .pc{
        display:block;
    }
    .sp{
        display:none;
    }
}

.grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 150%;
  height: 150%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.grid > div {
  position: relative;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media screen and (max-width: 980px) {
  canvas {
    display: none!important;
  }
}
figure {
  position: absolute;
  inset: 0.5rem;
  padding: 0;
  margin: 0;
}