/* ローディング画面 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: flex-start; /* 上寄せに変更 */
  justify-content: center;
  padding-top: 20vh; /* 上から20%の位置（UIと重ならない） */
  z-index: 999999; /* 最前面 */
  transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-gif {
  width: 400px; /* 400pxに指定 */
  height: auto;
  max-width: 90vw; /* 小さい画面では90%まで */
  max-height: 50vh; /* UIと重ならないように高さ制限 */
  /* 必要に応じて回転角度を調整してください */
  /* transform: rotate(15deg); */ /* 右に傾いている場合 */
  /* transform: rotate(-15deg); */ /* 左に傾いている場合 */
}

/* 横向き対応 */
@media (orientation: landscape) {
  .loading-screen {
    align-items: center; /* 横向きは中央 */
    padding-top: 0;
  }
  
  .loading-gif {
    max-width: 40vw;
    max-height: 70vh;
  }
}

