* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: "M PLUS Rounded 1c", sans-serif;
}

/* ===== Loading overlay ===== */
.lp {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: radial-gradient(130% 120% at 50% 42%, #ffffff 0%, #f4f4f7 62%, #ececf1 100%);
}
/* fade-out when finished (add .lp--hide via JS / after your real load) */
.lp--hide {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0s 0.6s;
}

.lp__burst {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.16;
  animation: lp-spin 26s linear infinite;
  pointer-events: none;
  background: conic-gradient(from 0deg, #00d9a3, #00b0ff, #4d7cff, #8a4dff, #ff2d9b, #ff5da2, #ffb300, #ff5722, #00d9a3);
  -webkit-mask: radial-gradient(circle, #000 0%, #000 34%, transparent 68%);
  mask: radial-gradient(circle, #000 0%, #000 34%, transparent 68%);
}

.lp__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: blur(7px);
}
.lp__blob {
  position: absolute;
}

.lp__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lp__dot {
  position: absolute;
  border-radius: 50%;
}

.lp__center {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.lp__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  animation: lp-wobble 3.6s ease-in-out infinite;
}
.lp__brand-top {
  font-weight: 900;
  font-size: clamp(20px, 3.4vw, 34px);
  letter-spacing: 3px;
  display: flex;
  gap: 2px;
}
.lp__brand-bottom {
  font-weight: 900;
  font-size: clamp(30px, 5.2vw, 54px);
  letter-spacing: 2px;
  color: #1b1b22;
}

.lp__numwrap {
  height: clamp(96px, 15vw, 168px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp__num {
  display: flex;
  align-items: baseline;
  font-weight: 900;
  color: #1b1b22;
  line-height: 1;
}
.lp__num-val {
  font-size: clamp(80px, 15vw, 168px);
  letter-spacing: -2px;
}
.lp__num-pct {
  font-size: clamp(34px, 5.5vw, 58px);
  margin-left: 4px;
  color: #ff2d9b;
}
.lp__finale {
  display: none;
  font-weight: 900;
  font-size: clamp(58px, 11vw, 128px);
  letter-spacing: 1px;
  background: linear-gradient(92deg, #00d9a3, #00b0ff, #8a4dff, #ff2d9b, #ffb300, #ff5722);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp.is-done .lp__num {
  display: none;
}
.lp.is-done .lp__finale {
  display: block;
  animation: lp-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.lp__rhythm {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  height: 34px;
}
.lp__rhythm span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  animation: lp-bounce 1s ease-in-out infinite;
}

.lp__bar {
  position: relative;
  width: min(560px, 76vw);
  height: 20px;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.07);
  box-shadow: inset 0 2px 5px rgba(20, 20, 30, 0.1);
  overflow: hidden;
}
.lp__fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #00d9a3, #00b0ff, #4d7cff, #8a4dff, #ff2d9b, #ffb300, #ff5722);
  background-size: 560px 100%;
  box-shadow: 0 2px 8px rgba(255, 45, 155, 0.35);
  transition: width 0.12s linear;
}
.lp__fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 50%;
  width: 100%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}
.lp__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: lp-shimmer 1.6s ease-in-out infinite;
}

.lp__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: clamp(12px, 1.8vw, 15px);
  letter-spacing: 4px;
  color: #9a9aa6;
  text-transform: uppercase;
}
.lp__caption .lp__ell {
  display: inline-flex;
  gap: 4px;
}
.lp__caption .lp__ell span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7b7c2;
  animation: lp-blink 1.2s infinite;
}

.lp__credit {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  font-size: 11px;
  letter-spacing: 1px;
  color: #b7b7c2;
  font-weight: 500;
}

.lp__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d9a3, #00b0ff, #4d7cff, #8a4dff, #ff2d9b);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}
.lp__button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ===== Animations ===== */
@keyframes lp-floatA {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(14px, -20px) rotate(9deg);
  }
}
@keyframes lp-floatB {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-18px, 16px) rotate(-11deg);
  }
}
@keyframes lp-floatC {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(10px, 18px) rotate(6deg);
  }
}
@keyframes lp-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes lp-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  42% {
    transform: translateY(-26px) scale(1.18);
  }
}
@keyframes lp-bounce-sp {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  42% {
    transform: translateY(-12px) scale(1.12);
  }
}
@keyframes lp-blink {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@keyframes lp-pop {
  0% {
    transform: scale(0.4) rotate(-6deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.12) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
@keyframes lp-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}
@keyframes lp-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0, -14px);
  }
}
@keyframes lp-wobble {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp * {
    animation: none !important;
  }
}

/* ===== Responsive (390px付近のSP最適化: 散らしたままサイズダウン) ===== */
@media (max-width: 640px) {
  .lp__burst {
    width: 360px;
    height: 360px;
    opacity: 0.06;
  }

  .lp__blobs {
    filter: blur(2px);
  }

  .lp__blob {
    transform: scale(0.45);
  }

  .lp__dot {
    transform: scale(0.45);
  }

  .lp__blob:nth-child(n + 11),
  .lp__dot:nth-child(n + 21) {
    display: none;
  }
}
