/* loading-screen.css */
#loading-overlay {
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease-out;
}

#loading-overlay.hidden {
  opacity: 0;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loading-spinner img {
  max-width: 150px;
  margin-bottom: 20px;
}

.progress-bar {
  width: 200px;
  height: 4px;
  background-color: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 15px;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #1eb6d8;
  animation: loading 8.5s ease-in-out infinite;
}

.loading-spinner p {
  color: #333;
  font-size: 14px;
  margin: 0;
}

@keyframes loading {
  0% {
      width: 0;
  }
  50% {
      width: 100%;
  }
  100% {
      width: 0;
  }
}

/* HTML要素に data-no-loading="true" がある場合 */
html[data-no-loading="true"] #loading-overlay {
  display: none !important;
  visibility: hidden !important;
  z-index: -1 !important;
  opacity: 0 !important;
}