@charset "utf-8";

/* ベース設定 */
body {
  font-family: "M PLUS 1p", sans-serif;
  background-color: #f5f7f9;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

/* レイアウト */
.wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  border: #000000;
}

.contents img {
  width: 100%;
  height: auto;
  margin: 1rem 0;
}

form {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 見出し・説明 */
.form-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.excite-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ff2929;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.excite-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #444;
}

/* フォーム入力 */
.mail_form {
  margin-bottom: 1.5rem;
}

.mail_form p.label {
  margin-bottom: 0.3rem;
  font-weight: bold;
  text-align: center;
}

.mail_form p.note {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.3rem;
  text-align: center;
}

.mail_in {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #000000;
  border-radius: 6px;
  background-color: #f8f8f8;
  color: #333;
  box-sizing: border-box;
}

.error {
  color: #b45f5f;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  text-align: center;
}

/* 誘導文・矢印 */
.submit-info {
  text-align: center;
  margin: 1.5rem 0;
  font-size: 1rem;
  color: #666;
}

.arrow {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  animation: blink 1.2s infinite;
  color: #999;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

.instruction {
  font-weight: bold;
  color: #5c5c5c;
  font-size: 1.1rem;
}

/* ボタン：銀色＋ホバー＋波紋 */
.submit-btn {
  display: block;
  width: 100%;
  font-size: 1.2rem;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn.silver-gloss {
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  background: linear-gradient(145deg, #e0e0e0, #bcbcbc);
  border: 1px solid #aaa;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 0;
  width: 100%;
}

.submit-btn.silver-gloss:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, #f0f0f0, #c0c0c0);
}

.submit-btn.silver-gloss:focus {
  outline: 3px solid #999;
  outline-offset: 2px;
}

.submit-btn.silver-gloss:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 光筋アニメーション */
.submit-btn.silver-gloss::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
  z-index: 1;
}

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

.submit-btn.silver-gloss span {
  position: relative;
  z-index: 2;
}

/* 波紋 */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple-container .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 3;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.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;
}

/* ===== モーダル ===== */
.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: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 95%;
  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: 12px;
  margin-bottom: 15px;
}

/* アイコンを大きくする */
.predictor-icon {
  width: 100px;
  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;
}
.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) {
  .modal-content {
    width: 95%;
    padding: 15px;
    margin: 20% auto;
  }
  .predictor-icon {
    width: 70px;
    height: 70px;
  }
  #pickPredictor {
    font-size: 1.4rem;
  }
  .race-info {
    font-size: 1.2rem;
  }
  .race-time {
    font-size: 0.9rem;
  }
  .pick-box {
    width: 90%;
    padding: 10px;
  }
  .pick-box h4 {
    font-size: 1.1rem;
  }
  .pick-box table {
    width: 100%;
    table-layout: fixed; /* ✅ 幅固定で崩れ防止 */
    word-wrap: break-word; /* ✅ 長文は折り返し */
  }
  .pick-box th,
  .pick-box td {
    font-size: 0.9rem;
    padding: 6px;
  }
  .pick-box th {
    width: auto; /* ✅ スマホでは固定幅を解除 */
  }
  .pick-box td.buy-numbers {
    font-size: 1.3rem;
    white-space: normal; /* ✅ 馬番が折り返せるように */
  }
}

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