@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%;
  }
}


.scroll-btn {
  position: fixed;
  right: 40px;
  bottom: 30px;
  padding: 14px 24px;
  background: #f1cd00; /* 黄色 */
  color: #333;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(255, 238, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  text-align: center;
}

/* 表示時 */
.scroll-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ホバー（PCのみ効く） */
.scroll-btn:hover {
  background: #FFC107;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* ===== スマホ用スタイル ===== */
@media (max-width: 768px) {
  .scroll-btn {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    padding: 16px;
    font-size: 18px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
  }
}