@charset "UTF-8";

/* ==================================================
   Design CSS (FINAL VERSION)
   機能: 4秒フェードイン・サイズ一括変更対応
   ================================================== */

/* ▼▼▼ ROOT SETTINGS (設定エリア) ▼▼▼ */
:root {
  /* ★全体のサイズ倍率 (ここを変えるだけでOK！)
     1.0 = 標準サイズ
     1.2 = 1.2倍に拡大
     0.8 = 0.8倍に縮小
  */
  --loader-scale: 0.5;
}

/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */

/* ▼ 1. 本体コンテナ */
#luxury-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto !important;
  height: auto !important;
  z-index: 2147483647;
  background-color: #ffffff;

  display: flex;
  justify-content: center;
  align-items: center;

  /* フェードアウト設定 */
  transition: opacity 1.0s ease, visibility 1.0s ease;
  opacity: 1;
  visibility: visible;
}

#luxury-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* ▼ 2. コンテンツ (サイズ変更の魔法を適用) */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 500px;/* なんのサイズ*/

  /* 位置調整 */
  margin-top: -10vh;

  /* ★サイズ変更の適用 */
  /* ここで変数を読み込んで拡大縮小させます */
  transform: scale(var(--loader-scale));

  /* フェードイン設定 */
  opacity: 0;
  /* サイズ倍率を維持しながらアニメさせる */
  animation: content-fade-in 2.0s ease-out forwards;
}


/* ▼ 3. 各パーツ */
/*ロゴ画像サイズ*/
.loader-logo {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: block;

  /* ゆらゆらアニメーション設定 */
  animation: sleep-swing 2.0s ease-in-out infinite;

  /* 回転アニメーション設定 人間ルーレット */
  /*animation: spin-logo 3.0s linear infinite;*/

  /* 縦回転アニメーション くるくるコイン*/
  /* coin-flip = 動きの名前 3.0s=3秒かけて1回転 */
  /* linear = 一定の速度で（パタパタさせたいなら ease-in-out に変えてもOK） */
  /*animation: coin-flip 3.0s linear infinite;*/


}



.progress-wrap {
  width: 100%;
  height: 2px;
  background: #f0f0f0;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

/* バー：4秒 */
.progress-bar {
  width: 100%;
  height: 100%;
  background: #333;
  transform-origin: left;
  animation: loading-bar 4.0s ease-in-out forwards;
}

/* テキスト */
.loader-text {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  color: #888;
}


/* ▼ キーフレーム (サイズ倍率を維持する記述を追加) */

/* フェードイン */
@keyframes content-fade-in {
  0% {
    opacity: 0;
    /* translate(移動) と scale(倍率) を同時に指定しないと、サイズが1.0に戻ってしまうため両方書く */
    transform: translateY(30px) scale(var(--loader-scale));
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(var(--loader-scale));
  }
}

/* 揺れる動きの定義 */
@keyframes sleep-swing {
  0% {
    transform: rotate(-5deg);
  }

  /* 左に5度傾く */
  50% {
    transform: rotate(5deg);
  }

  /* 右に5度傾く */
  100% {
    transform: rotate(-5deg);
  }

  /* 左に戻る */
}

/* 回る動きの定義 */
@keyframes spin-logo {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 縦に回る動きの定義 */
@keyframes coin-flip {
  0% {
    /* 0度 (正面) */
    /* perspective(1000px) をつけると、手前に飛び出して見える3D効果が出ます */
    transform: perspective(1000px) rotateY(0deg);
  }

  100% {
    /* 360度 (一周して正面) */
    transform: perspective(1000px) rotateY(360deg);
  }
}

/* バーの伸縮 */
@keyframes loading-bar {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}