/* 画面ロック（ローディング中にスクロール防止） */
body.loading {
  overflow: hidden;
}

/* コンテンツを一時的に不可視（フェード完了後に表示） */
.is-hidden {
  visibility: hidden;
}

/* Loading背景画面設定 */
#splash {
  position: fixed; /* 全面固定 */
  inset: 0;
  z-index: 999;
  background: #fff; /* 白背景 */
  text-align: center;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading画像の囲い */
#splash_logo {
  position: relative;
}

/* Loadingアイコンの大きさ */
#splash_logo img {
  display: block;
  width: 90%;         /* スマホ時は幅90% */
  max-width: 1000px;  /* PC時は1000px上限 */
  height: auto;
  margin: 0 auto;
}

/* PC（768px以上）で幅を固定 */
@media (min-width: 768px) {
  #splash_logo img {
    width: 1000px;
    max-width: 100%; /* 画面幅が1000px未満の場合は縮小 */
  }
}

/* fadeUp アニメーション */
.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 動きを減らす環境配慮 */
@media (prefers-reduced-motion: reduce) {
  .fadeUp {
    animation: none;
    opacity: 1;
  }
}
