@charset "utf-8";

/* ローディング画面のコンテナ */
.nowloading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.nowloading.hidden {
  display: none;
}

/* ローディングスピナー */
.nowloading__spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ローディングテキスト */
.nowloading__text {
  font-family: "HGRKK", sans-serif;
  font-size: 18px;
  color: #333;
  text-align: center;
  margin: 0;
  letter-spacing: 0.1em;
}

/* ドットアニメーション付きテキスト */
.nowloading__text.dots::after {
  content: "...";
  display: inline-block;
  animation: dots 1.5s steps(4, end) infinite;
  min-width: 1.2em;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* サブテキスト */
.nowloading__subtext {
  font-family: "HGRKK", sans-serif;
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 10px;
  opacity: 0.8;
}

/* パルスアニメーション */
.nowloading__pulse {
  width: 100%;
  max-width: 200px;
  height: 4px;
  background: linear-gradient(
    to right,
    #f3f3f3,
    #3498db,
    #f3f3f3
  );
  border-radius: 2px;
  background-size: 200% 100%;
  animation: pulse 2s ease-in-out infinite;
  margin-top: 20px;
}

@keyframes pulse {
  0% {
    background-position: 200% 0;
  }
  50% {
    background-position: 0 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 複数のドット表示 */
.nowloading__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.nowloading__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3498db;
  animation: bounce 1.4s infinite ease-in-out both;
}

.nowloading__dot:nth-child(1) {
  animation-delay: -0.32s;
}

.nowloading__dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .nowloading__spinner {
    width: 50px;
    height: 50px;
    border-width: 3px;
  }

  .nowloading__text {
    font-size: 16px;
  }

  .nowloading__subtext {
    font-size: 12px;
  }
}
