/* ===== 基本デザイン ===== */
.prediction-wrapper {
  width: 80%;
  margin: 20px auto;
  border: 3px solid #555;
  border-radius: 14px;
  background: url("images/lightning-bg.png") center/cover no-repeat, #2b2b2b;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
  overflow: hidden;
  position: relative;
  font-family: "Yu Gothic", sans-serif;
}

.prediction-title {
  background: linear-gradient(45deg, #ffd700, #ff8800);
  color: #222;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 12px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid #444;
}

.prediction-table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  color: #f1f1f1;
}

.prediction-table th,
.prediction-table td {
  border: 1px solid #444;
  padding: 8px 10px;
  min-width: 70px;
  background: rgba(30, 30, 30, 0.9);
  transition: 0.25s;
}

/* ===== 予想家セル（クリック可能） ===== */
.predictor {
  cursor: pointer;
  position: relative;
  color: #ffd700; /* 文字を黄色（ゴールド寄り） */
  font-weight: bold;
  text-decoration: underline; /* 下線を確実に表示 */
  text-decoration-color: #0026ff; /* 下線だけ青 */
  text-decoration-thickness: 1px; /* 線の太さ */
  text-underline-offset: 4px; /* 文字と線の距離 */
}

.predictor:hover {
  background: rgba(255, 215, 0, 0.25);
  box-shadow: inset 0 0 6px rgba(255, 215, 0, 0.6);
}

/* ===== セルホバー（行・列クロスハイライト） ===== */
.prediction-table td:hover,
.prediction-table th:hover {
  background: rgba(255, 235, 59, 0.25);
  box-shadow: inset 0 0 10px rgba(255, 235, 59, 0.5);
  cursor: pointer;
}

/* セル本体は強めに光らせる */
.prediction-table td:hover {
  background: rgba(255, 255, 120, 0.9) !important;
  color: #222;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(255, 255, 150, 0.9),
    inset 0 0 10px rgba(255, 255, 255, 0.6);
  z-index: 2;
  position: relative;
}

/* 行ハイライト */
.highlight-row {
  background: rgba(255, 215, 0, 0.18) !important;
  box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.5);
}

/* 列ハイライト */
.highlight-col {
  background: rgba(255, 235, 59, 0.25) !important;
  box-shadow: inset 0 0 10px rgba(255, 235, 59, 0.4);
}

/* ===== ラベル装飾 ===== */
.label.gold {
  background: linear-gradient(45deg, #ffd700, #ffb400);
  color: #222;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
}
.label.silver {
  background: linear-gradient(45deg, #dcdcdc, #999);
  color: #222;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.9);
}
.label.bronze {
  background: linear-gradient(45deg, #cd7f32, #b87333);
  color: #222;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(205, 127, 50, 0.9);
}

.label.darkhorse {
  background: linear-gradient(135deg, #3a3a3a, #1c1c1c 70%);
  color: #f2d16b; /* ゴールド寄りの文字色 */
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(242, 209, 107, 0.5); /* 光を反射する縁 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); /* 重厚な立体感 */
  box-shadow: 0 0 6px rgba(242, 209, 107, 0.5),
    inset 0 0 10px rgba(0, 0, 0, 0.7); /* 外側に光＋内側に闇 */
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}
.modal-content {
  background: #1c1c1c;
  color: #fff;
  margin: 5% auto;
  padding: 25px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  text-align: center; /* ✅ 全体を中央寄せ */
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ 中央寄せ */
  gap: 15px;
  margin-bottom: 15px;
}

/* アイコンを大きくする */
.predictor-icon {
  width: 100px; /* ✅ 以前の40pxから拡大 */
  height: 100px;
  border-radius: 50%;
  border: 3px solid #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}
#pickPredictor {
  font-size: 1.8rem; /* ✅ 大きめフォント */
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.race-info {
  font-size: 1.4rem; /* ✅ 少し大きく */
  font-weight: bold;
  color: #ffd700;
  margin: 10px 0 5px;
}
.race-time {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 20px;
}
/* 買い目BOX */

.pick-box {
  background: #2b2b2b;
  border: 2px solid #ffd700;
  border-radius: 8px;
  margin: 15px auto;
  padding: 15px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}
/* タイトル（券種） */
.pick-box h4 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffd700;
}

/* 表 */
.pick-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}
.pick-box th,
.pick-box td {
  border: 1px solid #555;
  padding: 10px;
  font-size: 1.1rem; /* ✅ 少し大きく */
}

/* 買い方・買い目セル（左カラムは固定幅にする） */
.pick-box th {
  width: 120px; /* ✅ 左側（項目名）の幅を固定 */
  text-align: center;
  background: #333;
  color: #ffd700;
  font-weight: bold;
}

/* 買い方・買い目セル（右カラムは自動で伸縮） */
.pick-box td {
  text-align: center;
  padding: 10px;
}

/* 買い目（右カラム）のみ特別に強調 */
.pick-box td.buy-numbers {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ff4444;
  text-shadow: 0 0 6px rgba(255, 100, 100, 0.8);
}

.note {
  font-size: 0.75rem;
  color: #bbb;
  text-align: center;
  margin-top: 15px;
}

.modal-close {
  cursor: pointer;
  color: #555;
  float: right;
  font-size: 20px;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {
  .prediction-wrapper {
    width: 95%;
  }
  .prediction-title {
    font-size: 1.2rem;
    padding: 10px;
  }
  .prediction-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .prediction-table th,
  .prediction-table td {
    min-width: 65px;
    padding: 6px 8px;
  }
}

.race-info {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

.back-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  margin-top: 15px;
  margin-left: 10px;
}
.back-button:hover {
  background-color: #0056b3;
}

.pick-box {
  background: #333;
  border: 2px solid #ffd700;
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
  color: #fff;
}
.pick-box h4 {
  color: #ffd700;
  margin-bottom: 8px;
}
.pick-box table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}
.pick-box th,
.pick-box td {
  border: 1px solid #666;
  padding: 6px;
  text-align: left;
  font-size: 0.9rem;
}

.buy-row td {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  color: #222;
  font-weight: bold;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(255, 215, 0, 0.8);
}
.buy-row td[colspan="2"] {
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.with-pick {
  background: linear-gradient(45deg, #ffdf00, #ff8c00);
  color: #222;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8),
    inset 0 0 6px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.with-pick:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(255, 215, 0, 1),
    inset 0 0 8px rgba(255, 255, 255, 0.7);
}
/* 通常の買い目公開セル */
.with-pick::after {
  content: "買い目公開";
  display: block;
  font-size: 0.8rem;
  color: #111;
  margin-top: 4px;
}

/* 見出しセル（買い目）だけ特別デザイン */
.with-pick.header-cell {
  background: linear-gradient(
    90deg,
    #ff8000,
    #ff3300
  ); /* 赤みがかったゴールド */
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 0; /* フラットに */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

/* 見出しセルには after を出さない */
.with-pick.header-cell::after {
  content: none;
}

.buy-row td:not(.with-pick) {
  background: #2b2b2b;
  color: #aaa;
  font-style: italic;
}
.buy-row td:not(.with-pick)::after {
  content: "未公開";
  display: block;
  font-size: 0.7rem;
  color: #777;
}

.buy-row td[colspan="2"]:last-child {
  display: none;
}

body {
  background: url("../../../../images/project/okcj/yoso/背景.jpeg") center/cover
    no-repeat fixed #000 !important;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
  position: relative;
}

/* ===== 基本デザイン ===== */
.prediction-wrapper {
  width: 100%;
  margin: 20px auto;
  border: 3px solid #555;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
  overflow: hidden;
  position: relative;
  font-family: "Yu Gothic", sans-serif;
}

.prediction-title {
  background: #111; /* シンプルな暗め背景 */
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 255, 200, 0.6);
  box-shadow: inset 0 0 10px rgba(255, 255, 200, 0.2),
    0 0 15px rgba(255, 255, 200, 0.3);
}

/* 疑似要素で稲妻を表現 */
.prediction-title::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 4px;
  height: 160%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 200, 0.8),
    rgba(255, 255, 0, 0.2)
  );
  transform: skewX(-20deg);
  opacity: 0;
  animation: lightning 2.5s infinite;
  box-shadow: 0 0 15px rgba(255, 255, 150, 0.8);
}

@keyframes lightning {
  0%,
  95%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
    transform: skewX(-20deg) scaleY(1.2);
  }
  42% {
    opacity: 0.6;
  }
  45% {
    opacity: 1;
    transform: skewX(-25deg) scaleY(1.4);
  }
  60% {
    opacity: 0;
  }
}
/* 文字だけに黒背景 */
.prediction-title span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.7); /* 半透明の黒 */
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 6px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

.prediction-table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  color: #f1f1f1;
}

.prediction-table th,
.prediction-table td {
  border: 1px solid #444;
  padding: 8px 10px;
  min-width: 70px;
  background: rgba(30, 30, 30, 0.9);
  transition: 0.25s;
}

/* ===== 予想家セル（クリック可能） ===== */
.predictor {
  cursor: pointer;
  position: relative;
  color: #ff0000; /* 文字を黄色（ゴールド寄り） */
  font-weight: bold;
  text-decoration: underline; /* 下線を確実に表示 */
  text-decoration-color: #0026ff; /* 下線だけ青 */
  text-decoration-thickness: 1px; /* 線の太さ */
  text-underline-offset: 4px; /* 文字と線の距離 */
}

.predictor:hover {
  background: rgba(255, 215, 0, 0.25);
  box-shadow: inset 0 0 6px rgba(255, 215, 0, 0.6);
}

/* ===== セルホバー（行・列クロスハイライト） ===== */
.prediction-table td:hover,
.prediction-table th:hover {
  background: rgba(255, 235, 59, 0.25);
  box-shadow: inset 0 0 10px rgba(255, 235, 59, 0.5);
  cursor: pointer;
}

/* セル本体は強めに光らせる */
.prediction-table td:hover {
  background: rgba(255, 255, 120, 0.9) !important;
  color: #222;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(255, 255, 150, 0.9),
    inset 0 0 10px rgba(255, 255, 255, 0.6);
  z-index: 2;
  position: relative;
}

/* 行ハイライト */
.highlight-row {
  background: rgba(255, 215, 0, 0.18) !important;
  box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.5);
}

/* 列ハイライト */
.highlight-col {
  background: rgba(255, 235, 59, 0.25) !important;
  box-shadow: inset 0 0 10px rgba(255, 235, 59, 0.4);
}

/* ===== ラベル装飾 ===== */
.label.gold {
  background: linear-gradient(45deg, #ffd700, #ffb400);
  color: #222;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
}
.label.silver {
  background: linear-gradient(45deg, #dcdcdc, #999);
  color: #222;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.9);
}
.label.bronze {
  background: linear-gradient(45deg, #cd7f32, #b87333);
  color: #222;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(205, 127, 50, 0.9);
}

.label.darkhorse {
  background: linear-gradient(135deg, #3a3a3a, #1c1c1c 70%);
  color: #f2d16b; /* ゴールド寄りの文字色 */
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(242, 209, 107, 0.5); /* 光を反射する縁 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); /* 重厚な立体感 */
  box-shadow: 0 0 6px rgba(242, 209, 107, 0.5),
    inset 0 0 10px rgba(0, 0, 0, 0.7); /* 外側に光＋内側に闇 */
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background: #fff;
  color: #222;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  text-align: center;
}
.modal-close {
  cursor: pointer;
  color: #555;
  float: right;
  font-size: 20px;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {
  .prediction-wrapper {
    width: 95%;
  }
  .prediction-title {
    font-size: 1.2rem;
    padding: 10px;
  }
  .prediction-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .prediction-table th,
  .prediction-table td {
    min-width: 65px;
    padding: 6px 8px;
  }
}

.race-info {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

.back-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  margin-top: 15px;
  margin-left: 10px;
}
.back-button:hover {
  background-color: #0056b3;
}

details {
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5em;
}

summary {
  font-weight: bold;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none; /* デフォルトの矢印を消す場合 */
}

/* タイトルクリック可能 */
.prediction-title {
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  padding-right: 40px; /* 矢印分の余白 */
}
.prediction-title:hover {
  filter: brightness(1.1);
}

/* 矢印を右端に配置 */
.prediction-title::after {
  content: "▶";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}
.prediction-title.active::after {
  content: "▼";
  color: #ffd700; /* ゴールド */
}

/* 開閉エリア */
.prediction-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 10px;
}
.prediction-content.open {
  max-height: 2000px;
  padding: 15px 10px;
}

.schedule {
  margin: 40px auto;
  padding: 20px;
  max-width: 1300px;
  border: 4px solid #ffd700; /* ゴールド枠 */
  border-radius: 16px;
  background: black;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

/* 日付見出しを枠の中で強調 */
.day-title {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  margin: 30px 0 15px;
  padding: 10px;
  color: #ffee00;
  border-bottom: 2px solid #ffffff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}
/* アコーディオンタイトル */
.prediction-title {
  cursor: pointer;
  position: relative;
  padding: 20px 40px 20px 20px;
  text-align: center;
}
.prediction-title::after {
  content: "▶";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #fff;
}
.prediction-title.active::after {
  content: "▼";
  color: #ffd700;
}

/* 開閉部分 */
.prediction-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 10px;
}
.prediction-content.open {
  max-height: 2000px;
  padding: 15px 10px;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {
  body {
    background-attachment: scroll; /* 固定だとカクつくので解除 */
    font-size: 14px;
  }

  .schedule {
    width: 90%;
    padding: 10px;
    border-width: 2px; /* 枠を軽く */
  }

  .day-title {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    padding: 6px;
  }

  .prediction-wrapper {
    width: 100%;
    margin: 15px auto;
    border-width: 2px;
    border-radius: 10px;
  }

  .prediction-title {
    font-size: 1rem;
    padding: 12px 35px 12px 12px;
  }

  .prediction-title span {
    font-size: 1.1rem;
    padding: 6px 10px;
  }

  .prediction-title::after {
    font-size: 1rem;
    right: 10px;
  }

  .prediction-table {
    font-size: 13px;
    display: block;
    overflow-x: auto; /* 横スクロール可 */
    -webkit-overflow-scrolling: touch; /* スムーズスクロール */
    white-space: nowrap;
  }

  .prediction-table th,
  .prediction-table td {
    min-width: 60px;
    padding: 5px 6px;
  }

  .label.gold,
  .label.silver,
  .label.bronze,
  .label.darkhorse {
    font-size: 0.8rem;
    padding: 3px 5px;
  }

  .modal-content {
    width: 90%;
    margin: 40% auto;
    padding: 15px;
    font-size: 0.9rem;
  }
}

.serviceimg {
  display: block;
  margin: 40px auto 20px auto;
  max-width: 30%;
  width: 30%;
  height: auto;
  position: relative;
  z-index: 2;
}
@media screen and (max-width: 768px) {
  .serviceimg {
    max-width: 60%;
    width: 80%;
    margin: 20px auto 15px auto; /* 余白を少し圧縮 */
  }
}

.buy-row td.with-pick {
  background: linear-gradient(
    45deg,
    #fff176,
    #ffb74d
  ); /* 明るい黄色〜オレンジ */
  color: #222;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 230, 128, 0.9),
    inset 0 0 6px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.buy-row td.with-pick.header-cell {
  background: linear-gradient(90deg, #ff8000, #ff3300);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 0;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.title-image {
  display: block; /* インライン画像をブロック化 */
  margin: 0 auto; /* 左右オートで中央寄せ */
  max-width: 50%; /* はみ出し防止 */
  width: 20%; /* 幅を50%に設定 */
  height: auto; /* 縦横比を維持 */
}
