/* ============================================
   オッズ屋 | デザインCSS
   --------------------------------------------
   テーマ: モダンブックメーカー風
   カラー: ダークネイビー × ゴールドアクセント
   ============================================ */

/* --- 全体設定 --- */
body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #facc15;
  text-shadow: 0 0 5px rgba(250, 204, 21, 0.4);
}

h1 {
  text-align: center;
  padding: 20px;
  font-size: 1.8em;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid #facc15;
}

h2 {
  margin-top: 50px;
  padding-bottom: 5px;
  border-bottom: 2px solid #facc15;
}

h3 {
  margin-top: 25px;
  color: #fcd34d;
}

/* --- 説明文・テキスト --- */
p {
  margin: 10px 20px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- テーブル --- */
table {
  border-collapse: collapse;
  width: 85%;
  margin: 20px auto 40px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(15, 23, 42, 0.6);
}

th {
  background: #334155;
  color: #f8fafc;
  font-weight: 700;
  padding: 10px;
  border-bottom: 2px solid #475569;
}

td {
  border: 1px solid #475569;
  padding: 8px;
  text-align: center;
  color: #e2e8f0;
}

tr:nth-child(even) {
  background-color: rgba(51, 65, 85, 0.4);
}

.expired {
  background-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.winner {
  background: linear-gradient(135deg, #78350f 0%, #92400e 25%, #b45309 50%, #92400e 75%, #78350f 100%);
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(146, 64, 14, 0.7);
  border: 1px solid #451a03;
}

/* --- ボタン --- */
button {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #1e293b;
  transition: 0.2s;
}

button:hover {
  background: linear-gradient(90deg, #facc15, #fde68a);
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}

button:disabled {
  background-color: #475569;
  color: #94a3b8;
  cursor: not-allowed;
}

/* --- フッター --- */
footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 30px 0;
  color: #94a3b8;
  border-top: 1px solid #334155;
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
  table {
    width: 95%;
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.4em;
  }

  h2 {
    font-size: 1.1em;
  }

  button {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
}
