/* =========================
   Base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
/* s3・s5だけ中央表示 */
.result-item.s3 img,
.result-item.s5 img{
    display: block;
    margin: 0 auto;
}

.result-item.s3 img{
    width:50%;
}

.result-item.s5 img{
    width:70%;
}
.result-list {
    width: 100%;
}

.result-item {
    width: 100%;
    text-align: center;
}

.result-item img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================================
   的中結果：s6(3).png・7行用
========================================= */

.result-section {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.result-board {
  position: relative;
  width: min(100%, 1000px);
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  overflow: hidden;
  container-type: inline-size;
}

.result-board-bg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: fill;
}

/*
  土台画像のデータ部分に合わせて配置
*/
.result-overlay {
  position: absolute;
  left: 1.3%;
  top: 28%;
  width: 97.5%;
  height: 69.4%;

  display: grid;
  grid-template-rows: repeat(7, 1fr);

  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family:
    "Yu Mincho",
    "游明朝",
    "Hiragino Mincho ProN",
    "ヒラギノ明朝 ProN",
    "Noto Serif JP",
    serif;
}

/* 1行 */
.result-row {
  display: grid;
  grid-template-columns:
    8.2%
    18.4%
    17.4%
    13.3%
    16.5%
    26.2%;

  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* 各セル */
.result-cell {
  min-width: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0 0.45cqw;
  box-sizing: border-box;

  color: #111;
  font-size: 1.95cqw;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
}

/* 2行の文字を同じサイズに統一 */
.result-line {
  display: block;
  margin: 0;
  padding: 0;

  font-size: 1em;
  font-weight: 700;
  line-height: 1.12;
  white-space: nowrap;
}

/* 〇・× */
.result-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  font-family:
    Arial,
    "Yu Gothic",
    "游ゴシック",
    sans-serif;

  font-size: 4.7cqw;
  font-weight: 400;
  line-height: 1;
}

.result-mark.hit {
  color: #b40000;
}

.result-mark.miss {
  color: #050505;
  font-size: 4.4cqw;
  font-weight: 300;
}

/* 払戻 */
.refund {
  display: block;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* 獲得金 */
.prize-cell {
  flex-direction: row;

  padding-right: 0.5cqw;
  padding-left: 0.5cqw;

  color: #ffd84c;
   font-family:
    "Yu Mincho",
    "游明朝",
    "Hiragino Mincho ProN",
    "ヒラギノ明朝 ProN",
    "Noto Serif JP",
    serif;


  font-size: 3cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;

  text-shadow:
    0 0.12cqw 0 #5d2600,
    0 0 0.45cqw rgba(255, 202, 53, 0.25);
}

.prize-number {
  display: inline-block;
  white-space: nowrap;
}

.prize-yen {
  display: inline-block;
  margin-left: 0.1em;
  font-size: 0.80em;
  line-height: 1;
  white-space: nowrap;
}

/*
  一時的に文字だけ隠す場合
  行の位置はそのまま残ります
*/
.result-row.is-hidden {
  visibility: hidden;
}

/* スマホでも画像全体を縮小して表示 */
@media screen and (max-width: 600px) {
  .result-board {
    width: 100%;
  }

  .result-cell {
    padding-right: 0.2cqw;
    padding-left: 0.2cqw;
  }

  .prize-cell {
    padding-right: 0.25cqw;
    padding-left: 0.25cqw;
    letter-spacing: -0.08em;
  }
}}
/* =========================
   お問い合わせフォーム
========================= */
html{
    scroll-behavior: smooth;
}

.result-item.s3 a,
.result-item.s5 a{
    display:block;
}

.contact-section {
  width: 100%;
  padding: 40px 16px 60px;
  background: #000;
}

.contact-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  background: #000;
  border: 3px solid #caa84b;
  box-shadow:
    0 0 18px rgba(202,168,75,.35),
    inset 0 0 15px rgba(202,168,75,.08);
}

.contact-title {
  margin: 0 0 12px;
  color: #f5d77a;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.contact-lead {
  margin: 0 0 28px;
  color: #d6d6d6;
  font-size: clamp(15px, 2vw, 24px);
  line-height: 1.8;
  text-align: center;
}

.contact-form,
.form_wrap {
  width: 100%;
}

.form-box {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  color: #f5d77a;
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.4;
}

.form-input {
  display: block;
  width: 100%;
  padding: 18px;
  border: 2px solid #caa84b;
  border-radius: 8px;
  background: #0d0d0d;
  color: #ffffff;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.4;
}

.form-input::placeholder {
  color: #888;
}

.form-input:focus {
  outline: none;
  border-color: #ffd95c;
  box-shadow: 0 0 10px rgba(255,217,92,.6);
}

.head_btn {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 34px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;

/* === ここから背景画像の設定を追加 === */
  background-image: url('../img/btn2.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain; /* 横幅に合わせて画像を伸縮させる */
  
  /* レスポンシブで高さを自動維持するための設定（※元の画像の縦横比に合わせます） */
  aspect-ratio: 1086 / 362; /* ★元の画像の「横幅 / 縦幅」の数値を指定してください */
  
  /* ボタン内の文字「登録する」を非表示にする設定 */
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
}

.head_btn:hover {
  opacity: 0.9;
}

.form-note {
  margin-top: 20px;
  color: #d0d0d0;
  font-size: clamp(13px, 1.8vw, 18px);
  line-height: 1.8;
  text-align: center;
}

/* =========================
   フッター
========================= */
.footer {
  clear: both;
  margin: 0;
  padding: 35px 50px;
  background: #071b3a;
  color: #fff;
}

.footer .f_navi ul {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.footer .f_navi li,
.footer .footer_coution li {
  list-style: none;
}

.footer .f_navi li a {
  color: #f5d77a;
  text-decoration: none;
}

.footer .f_navi li a:hover {
  color: #fff;
  opacity: 1;
}

.footer .footer_coution {
  clear: both;
  margin: 0 auto;
  padding: 30px 0;
}

.footer .footer_coution ul {
  margin: 0;
  padding: 0;
}

.footer .footer_coution li {
  font-size: clamp(10px, 2vw, 16px);
  line-height: 1.8;
  color: #d7d7d7;
}

.footer .copyright {
  display: block;
  margin-top: 20px;
  color: #bfc8d6;
  font-size: clamp(10px, 2vw, 14px);
  text-align: center;
}

/* =========================
   Responsive
========================= */
@media screen and (max-width: 767px) {
  .hit-result-board {
    max-width: 100%;
  }

  .result-cell {
    padding: 0 0.12em;
    letter-spacing: -0.03em;
  }

  .result-date {
    font-size: clamp(9px, 2vw, 18px);
  }

  .result-place {
    font-size: clamp(11px, 2.5vw, 22px);
  }

  .prize {
    letter-spacing: -0.05em;
  }

  .contact-section {
    padding: 24px 12px 40px;
  }

  .contact-inner {
    padding: 20px 14px 28px;
  }

  .form-box {
    margin-bottom: 16px;
  }

  .form-label {
    margin-bottom: 8px;
  }

  .form-input {
    padding: 15px 14px;
  }

  .head_btn {
    max-width: 100%;
    margin-top: 24px;
  }
}

@media screen and (max-width: 600px) {
  .footer {
    padding: 25px 20px;
  }

  .footer .f_navi li a,
  .footer .footer_coution {
    font-size: 12px;
  }

  .footer .footer_coution {
    padding: 20px 0;
  }
}
