/* ================================================
   Lumière - LoadingModal
   ボタン押下時のローディングモーダル
   上: 3点バウンスドット / 下: プログレスバー
   ================================================ */

.loading-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 10010;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: progress;
}

.loading-modal-overlay.is-visible {
  display: flex;
}

.loading-modal-content {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 44px;
  box-shadow: 0 10px 40px rgba(74, 74, 74, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 200px;
}

.loading-modal-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.loading-modal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dusty-lavender);
  animation: lm-bounce 1.2s ease-in-out infinite;
}

.loading-modal-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-modal-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes lm-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-16px); }
}

.loading-modal-progress-wrap {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.loading-modal-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(213, 213, 232, 0.35);
  border-radius: 10px;
  overflow: hidden;
}

.loading-modal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dusty-pink), var(--dusty-lavender), var(--gold));
  border-radius: 10px;
  animation: lm-progress 2s ease-in-out infinite;
}

@keyframes lm-progress {
  0%   { width: 0%;  margin-left: 0; }
  50%  { width: 80%; margin-left: 0; }
  100% { width: 0%;  margin-left: 100%; }
}

.loading-modal-message {
  color: var(--text-dark);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin: 0;
  font-weight: 500;
}

.loading-modal-sr-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .loading-modal-dots span,
  .loading-modal-progress-fill {
    animation: none;
  }
  .loading-modal-progress-fill {
    width: 40%;
  }
}
