@charset "utf-8";

/* ===== 上から震えて勢いよく降りてくる + フェードイン ===== */
.gf-drop-in {
  --dur: 1.6s;       /* ← アニメ全体 */
  --delay: 4s;       /* 開始遅延 */
  --dist: 120%;      /* 上から入ってくる距離 */
  --shake: 6px;      /* 震え幅 */
  --bounce: 14px;    /* 着地後のバウンド幅 */

  animation: gf-shake-then-drop var(--dur) var(--delay) both;
  will-change: transform, opacity;
  transform-origin: top center;
  opacity: 0; /* 最初は透明 */
}

@keyframes gf-shake-then-drop {
  0%   { transform: translateY(calc(-1 * var(--dist))); opacity: 0; }
  6%   { transform: translateY(calc(-1 * var(--dist) - var(--shake))); opacity: .2; }
  12%  { transform: translateY(calc(-1 * var(--dist) + var(--shake))); opacity: .4; }
  18%  { transform: translateY(calc(-1 * var(--dist) - var(--shake))); opacity: .6; }
  24%  { transform: translateY(calc(-1 * var(--dist) + var(--shake))); opacity: .8; }
  30%  { transform: translateY(calc(-1 * var(--dist))); opacity: 1; }

  /* ドロップ */
  60%  { transform: translateY(0); }

  /* 着地後のバウンド */
  75%  { transform: translateY(calc(-1 * var(--bounce))); }
  88%  { transform: translateY(0); }
  94%  { transform: translateY(calc(-1 * var(--bounce) * .35)); }
  100% { transform: translateY(0); opacity: 1; }
}

/* モーション制御 */
@media (prefers-reduced-motion: reduce) {
  .gf-drop-in { animation: none !important; opacity: 0.5 !important; transform: none !important; }
}


/* レースBOX全体のラッパー */
.race-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;              /* BOX間の余白 */
  justify-content: center; /* 中央寄せ */
}

/* 各BOX */
.race-box {
  flex: 0 0 400px;         /* PC時は幅400px固定 */
  background: #000;
  border: 2px solid #FFD700;
  padding: 10px 6px;
  border-radius: 8px;
  box-shadow: 0 0 6px #FFD700, 0 0 12px #FFEA00;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  color: #fff;
  text-align: left;
}

/* 日付 */
.race-date {
  font-size: 1.5rem;
  color: #ffe366;
  font-weight: bold;
  text-shadow: 0 0 3px #FFEA00, 0 0 6px #FFD700;
  margin-bottom: 4px;
}

/* レース名 */
.race-name {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
  text-shadow: 0 0 3px #FFD700;
}

/* 払戻金額 */
.race-amount {
text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: #FFEB3B;
  text-shadow: 
    0 0 3px #FFD700, 
    0 0 6px #FFEA00, 
    0 0 12px #FFFF00;
  animation: neonPulse 1.5s infinite alternate;
}

/* ネオン点滅アニメーション */
@keyframes neonPulse {
  from {
    text-shadow: 
      0 0 3px #FFD700, 
      0 0 6px #FFEA00, 
      0 0 12px #FFFF00;
  }
  to {
    text-shadow: 
      0 0 6px #FFD700, 
      0 0 12px #FFEA00, 
      0 0 24px #FFFF00;
  }
}

/* スマホ時は1列表示 */
@media (max-width: 767px) {
  .race-box {
    flex: 1 1 100%;
  }
}
