
/*
pattern 1
*/
/* .glitch-logo {
  position: relative;
  display: inline-block;
  color: var(--color-bg);
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-size: 60px;
  line-height: 1;
  animation: glitch-base 2.4s infinite steps(1);
}

.glitch-logo::before,
.glitch-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.glitch-logo::before {
  color: #00e5ff;
  transform: translate(0, 0);
  mix-blend-mode: screen;
  animation: glitch-before 1.8s infinite steps(1);
}

.glitch-logo::after {
  color: #ff4fd8;
  transform: translate(0, 0);
  mix-blend-mode: screen;
  animation: glitch-after 2.1s infinite steps(1);
}

@keyframes glitch-base {
  0%, 92%, 100% {
    transform: translate(0, 0);
  }
  93% {
    transform: translate(-1px, 0);
  }
  94% {
    transform: translate(2px, -1px);
  }
  95% {
    transform: translate(-2px, 1px);
  }
  96% {
    transform: translate(1px, 0);
  }
}

@keyframes glitch-before {
  0%, 88%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
    opacity: 0;
  }
  89% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(-3px, -1px);
    opacity: 0.8;
  }
  90% {
    clip-path: inset(45% 0 30% 0);
    transform: translate(3px, 1px);
    opacity: 0.8;
  }
  91% {
    clip-path: inset(75% 0 5% 0);
    transform: translate(-2px, 0);
    opacity: 0.8;
  }
}

@keyframes glitch-after {
  0%, 86%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
    opacity: 0;
  }
  87% {
    clip-path: inset(5% 0 80% 0);
    transform: translate(3px, 0);
    opacity: 0.8;
  }
  88% {
    clip-path: inset(35% 0 35% 0);
    transform: translate(-2px, 1px);
    opacity: 0.8;
  }
  89% {
    clip-path: inset(70% 0 10% 0);
    transform: translate(2px, -1px);
    opacity: 0.8;
  }
} */

/*
pattern 2
*/

.glitch-logo {
  --scale-x: 1;

  position: relative;
  display: inline-block;
  color: #00e5ff;
  font-family: "WDXL Lubrifont JP N", sans-serif;
  font-size: 60px;
  line-height: 1;
  text-align: center;
  opacity: 0;
  animation: 
    appear .1s linear .7s forwards,
    glitch-base 3.4s infinite steps(1);
  transition: opacity 0.3s;
}
@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.glitch-logo::before,
.glitch-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;

  /* 輪郭のジャギーを軽減 */
  filter: drop-shadow(0 0 transparent);

  /* 緑・ピンクの色ズレ */
  text-shadow:
    calc(var(--glitch-left) * -3em) 0 0.02em #ff4fd8,
    calc(var(--glitch-left) * -6em) 0 0.02em #00e5ff;

  transform: translateX(calc(var(--glitch-left) * 100%));
  clip-path: inset(
    var(--glitch-top)
    0
    var(--glitch-bottom)
    0
  );
}

.glitch-logo::before {
  --glitch-left: 0;
  --glitch-top: 0%;
  --glitch-bottom: 85%;

  animation: glitch-logo-before 2.1s infinite alternate-reverse;
}

.glitch-logo::after {
  --glitch-left: 0;
  --glitch-top: 0%;
  --glitch-bottom: 85%;

  animation: glitch-logo-after 3.1s infinite alternate;
}
@keyframes glitch-base {
  0%, 92%, 100% {
    transform: translate(0, 0);
  }
  93% {
    transform: translate(-1px, 0);
  }
  94% {
    transform: translate(2px, -1px);
  }
  95% {
    transform: translate(-2px, 1px);
    opacity: 0.2;
  }
  96% {
    transform: translate(-1px, 0);
  }
}

@keyframes glitch-logo-after {
  0% {
    --glitch-left: 0;
    --glitch-top: 0%;
    --glitch-bottom: 85%;
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    --glitch-left: 0;
    --glitch-top: 0%;
    --glitch-bottom: 100%;
  }

  20% {
    --glitch-left: 0.005;
    --glitch-top: 0%;
    --glitch-bottom: 85%;
  }

  40% {
    --glitch-left: 0.01;
    --glitch-top: 30%;
    --glitch-bottom: 50%;
  }

  60% {
    --glitch-left: 0.03;
    --glitch-top: 60%;
    --glitch-bottom: 15%;
  }

  /* 80% {
    --glitch-left: 0.025;
    --glitch-top: 80%;
    --glitch-bottom: 15%;
  } */

  100% {
    --glitch-left: 0.035;
    --glitch-top: 10%;
    --glitch-bottom: 60%;
  }
}

@keyframes glitch-logo-before {
  0% {
    --glitch-left: 0;
    --glitch-top: 85%;
    --glitch-bottom: 0%;
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    --glitch-left: 0;
    --glitch-top: 0%;
    --glitch-bottom: 100%;
  }

  20% {
    --glitch-left: -0.005;
    --glitch-top: 0%;
    --glitch-bottom: 85%;
  }

  40% {
    --glitch-left: -0.01;
    --glitch-top: 30%;
    --glitch-bottom: 53%;
  }

  60% {
    --glitch-left: -0.03;
    --glitch-top: 60%;
    --glitch-bottom: 5%;
  }

  80% {
    --glitch-left: -0.025;
    --glitch-top: 80%;
    --glitch-bottom: 15%;
  }

  100% {
    --glitch-left: 0;
    --glitch-top: 100%;
    --glitch-bottom: 100%;
  }
}