/* ========================================
   KEIBA厳選 LP専用CSS
   整理版：2026年11月12日
   ======================================== */

/* ========================================
   1. 基本設定
   ======================================== */

:root {
  --lp-gold: #d9b560;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #000;
}

main.wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #000;
}

main.wrapper::before,
main.wrapper::after {
  content: none !important;
  display: none !important;
}

main.wrapper .lp-hero *,
main.wrapper .lp-featured *,
main.wrapper .lp-mid-cta *,
main.wrapper .lp-closing * {
  box-sizing: border-box;
}

.lp-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}


/* ========================================
   2. 上段 HERO
   ======================================== */

main.wrapper .lp-hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 12px 0 26px;
  overflow: hidden;
  background: #000;
}

main.wrapper .lp-hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 80%;

  background:
    url("https://media.keiba-gensen.com/img/01a58ac0f697839da0c7d29ca0c9f732ecc28df3f11df75dc4f2810d4dbd9038.jpg") center top / contain no-repeat;

  mask-image:
    linear-gradient(#000 0%, #000 45%, transparent 100%);

  -webkit-mask-image:
    linear-gradient(#000 0%, #000 45%, transparent 100%);
}

main.wrapper .lp-hero-inner {
  position: relative;
  width: 100%;
  padding: 0 5%;
}

main.wrapper img.lp-brand {
  display: block;
  width: 50%;
  max-width: 260px;
  height: auto;
}

/* HEROタイトル */
main.wrapper img.lp-hero-title {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 3% auto -10%;

  opacity: 0;
  animation: lpTitleIn 1s ease .1s forwards;
}

@keyframes lpTitleIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 上段CTAタイトル：静止表示 */
main.wrapper img.lp-hero-subtitle {
  display: block;
  position: relative;

  width: min(96vw, 650px);
  max-width: none;
  height: auto;

  left: 50%;
  translate: -50% 0;

  margin: 0 0 2%;
}


/* ========================================
   3. 通常CTAボタン
   上段・中段・下段共通
   ======================================== */

main.wrapper .lp-image-cta {
  display: block;
  position: relative;

  width: 96%;
  max-width: 650px;

  margin: 0 auto;
  text-decoration: none;

  transform-origin: center;
  animation: lpCtaPulse 2.4s ease-in-out infinite;
}

/* 上段・下段CTAの幅と位置 */
main.wrapper .lp-hero .lp-image-cta,
main.wrapper .lp-closing .lp-image-cta {
  width: min(96vw, 650px);
  max-width: none;

  left: 50%;
  translate: -50% 0;

  margin-left: 0;
  margin-right: 0;
}

/* CTA画像 */
main.wrapper .lp-image-cta img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;

  animation: lpGreenGoldGlow 6s linear infinite;
  will-change: filter;
}

/* フワフワ：拡大・縮小 */
@keyframes lpCtaPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

/* CTA周囲：緑〜ゴールド発光 */
@keyframes lpGreenGoldGlow {

  0%,
  100% {
    filter:
      drop-shadow(0 0 5px #00e676) drop-shadow(0 0 12px rgba(0, 230, 118, .75));
  }

  20% {
    filter:
      drop-shadow(0 0 7px #00ffb3) drop-shadow(0 0 18px rgba(0, 255, 179, .85));
  }

  50% {
    filter:
      drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 20px rgba(255, 215, 0, .9));
  }

  70% {
    filter:
      drop-shadow(0 0 7px #e5ef66) drop-shadow(0 0 16px rgba(229, 239, 102, .8));
  }

  85% {
    filter:
      drop-shadow(0 0 6px #39e75f) drop-shadow(0 0 14px rgba(57, 231, 95, .8));
  }
}

/* CTAと上部タイトルとの間隔 */
main.wrapper .lp-hero .lp-image-cta,
main.wrapper .lp-mid-cta .lp-image-cta,
main.wrapper .lp-closing .lp-image-cta {
  margin-top: -20px;
}


/* ========================================
   4. CTA下の注意書き
   ======================================== */

main.wrapper .lp-minor-note {
  margin: 8px auto 0;
  text-align: center;
  font-size: 11px !important;
  line-height: 1.6;
  color: #d0c7b5;
}

main.wrapper .lp-minor-note a {
  color: #e5c36b;
  text-decoration: underline;
}


/* ========================================
   5. 注目レース画像
   上段・中段・下段共通
   ======================================== */

main.wrapper .lp-featured.lp-featured-image {
  position: relative;
  width: min(96vw, 650px);
  max-width: none;

  margin: 0 auto 22px;

  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;

  overflow: visible;
  isolation: auto;
}

main.wrapper .lp-featured-image .lp-featured-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* PC表示 */
@media (min-width: 721px) {
  main.wrapper .lp-featured.lp-featured-image {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ========================================
   6. 中段CTA
   ======================================== */

main.wrapper .lp-mid-cta {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 0 28px;

  background: #050505;
  overflow: hidden;
}

/* 背景エリア */
main.wrapper .lp-mid-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 650;

  overflow: hidden;
  background: #050505;
}

/* 背景の馬 */
main.wrapper .lp-mid-horse {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

/* 背景グラデーション */
main.wrapper .lp-mid-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(to bottom,
      rgba(0, 0, 0, .10) 0%,
      transparent 35%,
      rgba(0, 0, 0, .25) 70%,
      #050505 100%);

  pointer-events: none;
}

/* middle_title.webp */
main.wrapper .lp-mid-title {
  position: absolute;
  z-index: 2;

  left: 50%;
  top: 50%;

  width: 90%;
  height: auto;

  transform: translate(-50%, -50%);

  filter:
    drop-shadow(0 4px 8px rgba(0, 0, 0, .7));
}

/* 中段CTAタイトル：静止表示 */
main.wrapper .lp-mid-cta .lp-cta-subtitle {
  position: relative;
  z-index: 3;

  display: block;
  width: 90%;
  max-width: 600px;
  height: auto;

  margin: -290px auto 10px;
  object-fit: contain;
}

/* 中段CTAボタン */
main.wrapper .lp-mid-cta .lp-image-cta {
  position: relative;
  z-index: 2;
}

/* 中段の注目レース */
main.wrapper .lp-mid-cta .lp-featured {
  margin-top: 20px;
  margin-bottom: 10px;
}


/* ========================================
   7. 中段・下段タイトル
   スクロール時フェードイン
   ======================================== */

/* 初期状態 */
main.wrapper .lp-mid-title.observe,
main.wrapper .lp-closing-scene h2 img.observe {
  opacity: 0;
  translate: 0 20px;

  transition:
    opacity 1.2s ease,
    translate 1.2s ease;
}

/* スクロールで表示 */
main.wrapper .lp-mid-title.observe.active,
main.wrapper .lp-closing-scene h2 img.observe.active {
  opacity: 1;
  translate: 0 0;
}


/* ========================================
   8. 固定CTA
   ======================================== */

#sticky-cta.sticky-cta {
  position: fixed;
  z-index: 9999;

  left: 0;
  right: 0;
  bottom: 0;

  width: 100%;
  height: auto;

  padding: 0 0 12px;
  margin: 0;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  text-align: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;

  transition:
    opacity .3s,
    visibility .3s,
    transform .3s;
}

/* 表示状態 */
#sticky-cta.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* 余計な装飾を削除 */
#sticky-cta.sticky-cta::before,
#sticky-cta.sticky-cta::after {
  content: none !important;
  display: none !important;
}

/* 固定CTAリンク */
#sticky-cta .lp-sticky-link {
  display: block;

  width: 78%;
  max-width: 420px;

  margin: 0 auto;
  padding: 0;

  background: transparent;
  box-shadow: none;
}

/* 固定CTA画像 */
#sticky-cta .lp-sticky-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;

  animation: lpGreenGoldGlow 6s linear infinite;
  will-change: filter;
}


/* ========================================
   9. HP既存素材のURL補正
   ======================================== */

main.wrapper div.contents_4 div.slick ul.slick_1 li div.wrapper {
  background-image:
    url("https://keiba-gensen.com/img/c_4_bg.png");
}

main.wrapper div.contents_4 div.slick ul.slick_1 li div.wrapper::before {
  background-image:
    url("https://keiba-gensen.com/img/c_4_under.png");
}

main.wrapper div.contents_4 div.slick ul.slick_1 li div.wrapper figure::before {
  background-image:
    url("https://keiba-gensen.com/img/c_4_mark.png");
}


/* ========================================
   10. 会員様の声
   ======================================== */

main.wrapper .contents_11.lp-reviews {
  position: relative;
  z-index: 1;

  width: 100%;
  height: auto;
  min-height: 0;

  padding: 34px 0 42px;

  mix-blend-mode: normal;

  background:
    #080605 url("https://keiba-gensen.com/img/11_bg.png") center top / 100% 100% no-repeat;

  overflow: hidden;
}

/* スライダー */
main.wrapper .contents_11.lp-reviews div.slick {
  position: relative;

  top: auto;
  left: auto;

  width: 100%;
  height: auto;
}

main.wrapper .contents_11.lp-reviews div.slick ul.slick_2 {
  height: auto;
}

main.wrapper .contents_11.lp-reviews .slick_2 .slick-track {
  display: flex;
  align-items: stretch;
}

/* 通常スライド */
main.wrapper .contents_11.lp-reviews .slick_2 .slick-slide {
  height: auto;

  opacity: .48;
  transform: scale(.92);

  transition:
    opacity .3s ease,
    transform .3s ease;
}

/* 中央スライド */
main.wrapper .contents_11.lp-reviews .slick_2 .slick-slide.slick-center {
  opacity: 1;
  transform: scale(1);
}

/* レビューカード */
main.wrapper .contents_11.lp-reviews .slick_2 li .wrapper.lp-review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;

  width: 100%;
  height: 100%;
  min-height: 390px;

  padding: 24px 22px 28px;

  background:
    #f2e8cf url("https://keiba-gensen.com/img/c_11_bg.png") center / 100% 100% no-repeat;

  border-radius: 10px;
  box-sizing: border-box;
  overflow: visible;
}

/* 投稿者 */
main.wrapper .contents_11.lp-reviews .lp-review-author {
  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 42px;
}

/* アバター */
main.wrapper .contents_11.lp-reviews .lp-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  font-size: 26px;
  line-height: 1;
}

/* 投稿者名 */
main.wrapper .contents_11.lp-reviews .lp-review-author .user_id {
  width: auto;

  margin: 0;
  padding: 0;

  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 900;
  line-height: 1.3;

  text-align: left;
  color: #bd1711;
}

/* レビュー本文 */
main.wrapper .contents_11.lp-reviews .slick_2 li .wrapper p.details {
  display: block;

  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;

  height: auto;
  max-height: none;

  overflow: visible;
  text-overflow: clip;

  flex: 1;

  margin: 0;
  padding: 0;

  color: #211b16;
  text-align: left;
  overflow-wrap: anywhere;

  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 3.45vw, 16px);
  line-height: 1.85;
  letter-spacing: .01em;
}

/* スワイプ案内 */
main.wrapper .lp-reviews-hint {
  margin: 18px 0 0;

  text-align: center;

  color: #e8c66d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

/* 会員様の声とロゴの重なり */
main.wrapper .contents_10 {
  position: relative;
  z-index: 2;
  overflow: visible;
}

main.wrapper .contents_10 img.c_11_1,
main.wrapper .contents_10 img.c_11_2 {
  z-index: 10;
}


/* ========================================
   11. contents_6 最後の画像
   ======================================== */

main.wrapper .contents_6 .lp-section6-ending {
  position: relative;

  width: 100%;
  padding: 20px 0 35px;

  background: #000;
  overflow: hidden;
}

main.wrapper .contents_6 .lp-section6-text1 {
  display: block;

  width: 80%;
  max-width: 576px;
  height: auto;

  margin: 0 auto;
}


/* ========================================
   12. 下段CTA
   ======================================== */

main.wrapper .lp-closing {
  position: relative;

  width: 100%;
  padding: 0 0 48px;

  text-align: center;

  overflow: hidden;
  background: #080706;
}

/* 下段背景 */
main.wrapper .lp-closing-scene {
  position: relative;

  width: 100%;
  aspect-ratio: 720 / 690;

  overflow: hidden;
  isolation: isolate;

  background: #000;
}

/* 背景の馬 */
main.wrapper .lp-closing-horse {
  display: block;
  position: absolute;

  top: 0;
  left: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center top;
}

/* グラデーション */
main.wrapper .lp-closing-scene::after {
  content: "";
  position: absolute;

  inset: 0;
  z-index: 1;

  pointer-events: none;

  background: linear-gradient(to bottom,
      transparent 35%,
      rgba(0, 0, 0, .15) 55%,
      rgba(0, 0, 0, .85) 100%);
}

/* KEIBA厳選ロゴ */
main.wrapper .lp-closing-logo {
  display: block;
  position: absolute;

  z-index: 2;

  top: 5%;
  left: 5%;

  width: 50%;
  max-width: 260px;
  height: auto;

  filter: drop-shadow(0 3px 8px #000);
}

/* race_choice.webp の配置 */
main.wrapper .lp-closing-scene h2 {
  position: absolute;
  z-index: 3;

  left: 5%;
  bottom: 33%;

  width: 90%;

  margin: 0;
  padding: 0;
  font-size: 0;
}

/* race_choice.webp */
main.wrapper .lp-closing-scene h2 img {
  display: block;

  width: 100%;
  max-width: 650px;
  height: auto;

  margin: 0 auto;

  filter: drop-shadow(0 4px 8px #000);
}

/* 下段CTAエリア */
main.wrapper .lp-closing-inner {
  position: relative;
  z-index: 5;

  margin-top: -220px;
  padding: 8px 5% 0;
}

/* 下段CTAタイトル：静止表示 */
main.wrapper .lp-closing img.lp-cta-subtitle {
  display: block;
  position: relative;

  width: min(90vw, 600px);
  max-width: none;
  height: auto;

  left: 50%;
  translate: -50% 0;

  margin: 0 0 14px;
  object-fit: contain;
}

/* 下段注目レース */
main.wrapper .lp-closing-featured {
  margin-top: 22px;
  margin-bottom: 18px;
}

/* 下段注意書き */
main.wrapper .lp-closing>.lp-minor-note {
  margin: 10px auto 0;
  padding: 0 15px;
}


/* ========================================
   13. フッター
   ======================================== */

footer {
  position: relative;
  border-top: 2px solid #c99b38;
}

footer::before {
  content: "";

  position: absolute;

  top: -2px;
  left: 0;

  width: 100%;
  height: 2px;

  background: linear-gradient(90deg,
      #765015 0%,
      #c99b38 25%,
      #ffe59a 50%,
      #c99b38 75%,
      #765015 100%);

  box-shadow:
    0 0 8px rgba(230, 180, 70, .35);

  pointer-events: none;
}


/* ========================================
   14. スマホ表示：767px以下
   ======================================== */

@media (max-width: 767px) {

  /* 上段CTAタイトル */
  main.wrapper img.lp-hero-subtitle {
    width: min(94vw, 600px);
  }

  /* 中段CTAタイトル */
  main.wrapper .lp-mid-cta .lp-cta-subtitle {
    width: 94%;
    margin-top: -27%;
    margin-bottom: 10px;
  }

  /* 下段CTAタイトル */
  main.wrapper .lp-closing img.lp-cta-subtitle {
    width: min(94vw, 600px);
    margin-bottom: 10px;
  }

  /* 下段CTAエリア */
  main.wrapper .lp-closing-inner {
    margin-top: -34%;
  }

  /* 下段注目レース */
  main.wrapper .lp-closing-featured {
    margin-top: 18px;
  }

  /* 固定CTA */
  #sticky-cta.sticky-cta {
    padding-bottom:
      calc(8px + env(safe-area-inset-bottom));
  }

  #sticky-cta .lp-sticky-link {
    width: 90%;
    max-width: 360px;
  }
}


/* ========================================
   15. PC表示：768px以上
   固定CTAを非表示
   ======================================== */

@media (min-width: 768px) {
  #sticky-cta {
    display: none !important;
  }
}


/* ========================================
   16. 会員様の声：700px以上
   ======================================== */

@media (min-width: 700px) {
  main.wrapper .contents_11.lp-reviews .slick_2 li .wrapper.lp-review-card {
    min-height: 330px;
    padding: 28px 30px;
  }
}


/* ========================================
   17. アニメーション軽減設定
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  /* HEROタイトル */
  main.wrapper img.lp-hero-title {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* CTAボタン */
  main.wrapper .lp-image-cta {
    animation: none;
    transform: none;
  }

  /* CTA発光 */
  main.wrapper .lp-image-cta img,
  #sticky-cta .lp-sticky-link img {
    animation: none;
    will-change: auto;
  }

  /* 中段・下段タイトル */
  main.wrapper .lp-mid-title.observe,
  main.wrapper .lp-closing-scene h2 img.observe {
    opacity: 1;
    translate: none;
    transition: none;
  }

  /* 固定CTA */
  #sticky-cta.sticky-cta {
    transition: none;
  }

  /* レビュー */
  main.wrapper .contents_11.lp-reviews .slick_2 .slick-slide {
    transition: none;
  }
}

/* PCのみ：中段CTAタイトル以下を30px下げる */
@media (min-width: 768px) {
  main.wrapper .lp-mid-cta .lp-cta-subtitle {
    margin-top: -200px;
  }
}