/* ============================================
   ローディング画面
   ============================================ */

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 9999;
  opacity: 1;
}

/* ローディング画面の中央コンテンツ */
.loading-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#loading-screen.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.loading-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem auto;
  display: block;
  animation: blink 1.5s ease-in-out infinite;
}

.loading-text {
  font-size: 1.5rem;
  color: var(--color-text);
  font-family: var(--font-primary);
  letter-spacing: 0.1em;
  text-align: center;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* PCビューではSPテキストを非表示 */
.loading-text-sp {
  display: none;
}

.loading-text-pc {
  display: inline;
}

@media (max-width: 768px) {
  .loading-logo {
    width: 120px;
    height: 120px;
  }
  
  .loading-text {
    font-size: 1.2rem;
    padding: 0 2rem;
    line-height: 1.8;
  }
  
  /* SPビューではPCテキストを非表示、SPテキストを表示 */
  .loading-text-pc {
    display: none;
  }
  
  .loading-text-sp {
    display: inline;
  }
}
