@charset "Shift_JIS";

/* =====================================
   ダービー本文エリアのみ
===================================== */
#contents {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  color: #333333;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  text-align: center;
}

#contents * {
  box-sizing: border-box;
}

#contents img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* PC / SP 切替 */
#contents .pc {
  display: block !important;
}

#contents .sp {
  display: none !important;
}

#contentsBody {
  width: 100%;
  padding: 0 10px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
}

/* メインビジュアル */
#mainvis {
  width: 100%;
  text-align: center;
  background-image: url(../img/mv_bg.jpg);
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

#mainvis img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
}

/* タイトル */
.tll {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.tll img {
  width: 100%;
  display: block;
  margin: -10px 0 0 0;
  padding: 0;
}

/* 通常イベント画像 */
.event_bx {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.event_bx .ph {
  width: 100%;
  margin: 0 auto 60px;
}

.event_bx .ph:last-child {
  margin-bottom: 0;
}

.event_bx img {
  width: 100%;
}

/* ローズイベント部分 */
.event_bx_rose {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 20px;
  background-image: url("../img/bg_pastel.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border: 2px solid #f3c7d5;
  border-radius: 18px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.flexBox {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.flexBox a {
  display: block;
  width: 48%;
}

/* アプリ商標注記 */
.kome {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 4px 0;
  padding: 0;
  text-indent: 0;
}

/* 通常注記 */
.notice_txt {
  line-height: 1.7;
  font-weight: 500;
  color: #333333;
}

/* LINEバナー */
.bnr_line {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0;
  box-sizing: border-box;
}

.bnr_line a {
  display: block;
  width: 100%;
}

.bnr_line img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* JRA共通ヘッダー・フッター干渉防止 */
#contents::after,
#contentsBody::after {
  content: "";
  display: block;
  clear: both;
}

/* スマホ表示 */
@media screen and (max-width: 768px) {

  #contents .pc {
    display: none !important;
  }

  #contents .sp {
    display: block !important;
  }

  #contentsBody {
    max-width: 100%;
    padding: 0 8px;
    font-size: 14px;
  }

  #mainvis img {
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw);
  }

  .tll {
    position: static !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .tll img {
    width: 100%;
    display: block;
    margin: 0 !important;
    padding: 0;
  }

  .event_bx {
    max-width: 100%;
    margin-bottom: 24px;
    padding: 0;
  }

  .event_bx_rose {
    max-width: 100%;
    margin-bottom: 24px;
    padding: 0 6px;
    border-radius: 14px;
  }

  .event_bx_rose .ph {
    margin-bottom: 22px;
    border-radius: 12px;
  }

  .event_bx_rose img,
  .event_bx img,
  #contentsBody img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }

  .flexBox {
    gap: 10px;
  }

  .flexBox a {
    width: 50%;
  }

  .kome {
    font-size: 11px;
    line-height: 1.5;
    margin: 0 0 4px 0;
    padding: 0;
    text-indent: 0;
  }

  /* LINEバナー */
  .bnr_line {
    width: calc(100% + 16px);
    max-width: none;
    margin: 24px 0 24px -8px;
    padding: 0;
  }

  .bnr_line a {
    display: block;
    width: 100%;
  }

  .bnr_line img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
  }

}