/* ----------------------------------------------------------------------

JRAレーシングビュアーとは（/take_rv/ ランディングページ）

---------------------------------------------------------------------- */
:root {
  /* ----- 市松模様のカラー ----- */
  --color1: #422b1f;
  --color2: #634737;
  --color_accent: #167409;
  --content-width: 1060px;
}

#container {
  padding-top: 0;
  background-size: 100px auto;
  background-repeat: repeat;
}

main.main {
  margin: 0;
  padding: 0;
  background-color: #151515;
}

section {
  width: 100%;
}

section>.contents_block {
  width: calc(100% - 20px);
  max-width: var(--content-width);
  margin: 0 auto;
  color: #fff;
}

br.sp {
  display: none;
}

.kome {
  text-indent: -1em;
  padding-left: 1em;
  color: #004077;
  color: #FFF;
  z-index: 11;
}

#multi_van .kome {
  color: #fff;
}

/* - メインビジュアル
-------------------------------------------------- */


section#visual {
  width: 100%;
  padding: 80px calc((100% - var(--content-width))/2);
  background-image: url(../img/bg_main.jpg);
  background-repeat: no-repeat;
  background-position: top 50% right 30%;
  background-size: cover;
  overflow: hidden;
}


section#visual .content {
  position: relative;
  width: 80vw;
  max-width: 866px;
  container-type: inline-size;
}

img {
  vertical-align: top;
}

.bg {
  display: block;
  width: 100%;
  max-width: var(--content-width);
  aspect-ratio: 1.4/1;
}


.thumb {
  --thumb_w: 29cqw;
  --thumb_y: 5%;
  --ratio: calc(156 / 256);
  width: var(--thumb_w);
  height: calc(var(--thumb_w) * var(--ratio));
  /* width: min(22vw,256px); */
  aspect-ratio: 256/156;
  position: absolute;
  top: 0;
  display: none;
  & img {
    width: 100%;
  }
}

.thumb.on {
  display: block;
  animation: thumb_in 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

#t1 {
  top: var(--thumb_y);
  left: 5%;
}

#t2 {
  top: 0%;
  left: calc(50% - (var(--thumb_w)/2));
}

#t3 {
  top: var(--thumb_y);
  right: 5%;
}

#t4 {
  top: calc(50% - (var(--thumb_w) * var(--ratio) / 2));
  right: 0%;
}

#t5 {
  top: auto;
  bottom: var(--thumb_y);
  right: 5%;
}

#t6 {
  top: auto;
  bottom: 0;
  left: calc(50% - (var(--thumb_w)/2));
}

#t7 {
  top: auto;
  bottom: var(--thumb_y);
  left: 5%;
}

#t8 {
  top: calc(50% - (var(--thumb_w) * var(--ratio) / 2));
  left: 0%;
}

.thumb.on2 {
  display: block;
  animation: thumb_in2 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

.logo_wrap {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns:1fr clamp(260px, 55%, 430px) 1fr;
  grid-template-rows: 1fr auto 1fr;
  place-content: center;
  width: 100%;
  height: 100%;
}

.logo {
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
  aspect-ratio: 1.4;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
}

.logo.on {
  display: grid;
  place-content: center;
  animation: logo_fade_in 0.7s 1 cubic-bezier(.175, .885, .32, 1.275);
}

.blur {
  display: grid;
  place-content: center;
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
  aspect-ratio: 1.4;
  opacity: 0;
}

.blur.on {
  opacity: 1;
  animation: blur_fade_in 0.6s 1 ease-in-out;
}

.blur.off {
  opacity: 0;
  animation: logo_fade_out 1.2s 1 ease-in-out;
}


@keyframes logo_fade_in {
  0% {
    opacity: 0;
    transform: scale(2, 2) translate(0, 30px);
  }

}

@keyframes logo_fade_out {
  0% {
    opacity: 1;
    transform: scale(0, 0) translate(0, 0);
  }

  100% {
    opacity: 0;
    transform: scale(6, 6) translate(0, -10px);
  }
}

@keyframes blur_fade_in {
  0% {
    opacity: 0;
    transform: scale(1.5, 1.5) translate(0, 0);
  }

}

@keyframes thumb_in {
  0% {
    opacity: 0;
    transform: scale(8, 8) translate(200px, 100px) rotate(-120deg);
  }

}

@keyframes thumb_in2 {
  0% {
    opacity: 0;
    transform: scale(8, 8) translate(-200px, 100px) rotate(120deg);
  }

}

/* - section共通
-------------------------------------------------- */
section>.contents_block .cap_unit {
  display: flex;
  justify-content: center;
}

section>.contents_block .cap_unit .inner {
  text-align: center;
}

section>.contents_block .cap_unit .inner>h2 {
  font-size: 3.2rem;
  font-size: clamp(2rem, 1.0420rem + 2.0000vw, 3.2rem);
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

section>.contents_block .cap_unit .inner>p.cap-l {
  font-size: clamp(2.4rem, 1.9210rem + 1.0000vw, 3rem);
  font-weight: bold;
  letter-spacing: 0.05em;
}


.bk {
  color: #000;
}



/* - ページ下部 アニメーション
-------------------------------------------------- */

@keyframes right_in {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }

}

@keyframes left_in {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }

}

@keyframes up_in {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes up_in2 {
  0% {
    opacity: 0;
    transform: translate(400px, 30px) scale(4) rotate(-40deg);
  }

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

@keyframes up_in2_sp {
  0% {
    opacity: 0;
    transform: translate(120px, 30px) scale(2.4) rotate(30deg);
  }

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

#main_bg {
  position: relative;
  z-index: 2;
}

/* - 1 中央競馬のレースが見放題
-------------------------------------------------- */


section#unlimited {
  padding: 72px 0;
  position: relative;

  /* 市松模様 */
  background-image: conic-gradient(var(--color1) 0deg 90deg, var(--color2) 90deg 180deg, var(--color1) 180deg 270deg, var(--color2) 270deg 360deg);
  background-size: 160px 160px;
}

section#unlimited>.contents_block {
  background-image: url(../img/unit2_bg1.jpg);
  background-repeat: no-repeat;
  padding: clamp(3rem, 1.4852rem + 4.2194vw, 6rem) clamp(1rem, -0.0014rem + 2.7816vw, 3rem);
  position: relative;
  overflow: hidden;
}

section#unlimited>.contents_block>h2 {
  width: 100%;
  text-align: center;
  color: #333;
  font-size: clamp(2.4rem, 1.4987rem + 2.5035vw, 4.2rem);
  font-weight: 500;
  line-height: 1.2;
  opacity: 0;
}

section#unlimited>.contents_block>h2 .break {
  display: inline-block;
}

section#unlimited>.contents_block>h2.js-showed {
  opacity: 1;
  animation: up_in 0.5s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#unlimited>.contents_block>h2>br {
  display: none;
}


section#unlimited>.contents_block .cap_unit_wrap {
  --itemsize: 52%;
  display: grid;
  grid-template-columns: max-content 1fr ;
  max-width: 960px;
  margin-top: 30px;
  margin-inline: auto;

  .item {
    /* order: 1; */
    position: relative;
  }
}

section#unlimited>.contents_block .cap_unit {
  /* order: 2; */
  margin-top: 40px;
  display: block;
  opacity: 0;
}

section#unlimited>.contents_block .cap_unit dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  text-align: left;
  color: #000;
  font-weight: 500;
}

section#unlimited>.contents_block .cap_unit dl dt {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 2;
  align-items: center;
  font-size: clamp(1.6rem, 0.8645rem + 1.5355vw, 2.4rem);
  font-weight: 700;
  position: relative;
}

section#unlimited>.contents_block .cap_unit dl dt:before {
  content: '';
  width: 32px;
  width: clamp(1.8rem, 0.6823rem + 2.3333vw, 3.2rem);
  background-image:url(../img/unit2_icon.png);
  background-size: contain;
  background-repeat: no-repeat;
  aspect-ratio: 1;
  left: -32px;
  z-index: 0;
}

section#unlimited>.contents_block .cap_unit dl dd {
  grid-column-start: 2;
  font-size: clamp(1.2rem, 0.9997rem + 0.5563vw, 1.6rem);
}

section#unlimited>.contents_block .cap_unit dl dd + dt {
  margin-top: clamp(0.8rem, 0.1992rem + 1.6690vw, 2rem);
}

section#unlimited>.contents_block .cap_unit .clear-wrap {
  font-size: 1.2rem;
}

section#unlimited>.contents_block .cap_unit.js-showed {
  animation: left_in 0.5s forwards ease-out;
}

section#unlimited>.contents_block .take {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
  opacity: 0;
}

section#unlimited>.contents_block .take img {
  object-fit: contain;
  max-height: 100%;
}

section#unlimited>.contents_block .take img.sp {
  display: none;
  vertical-align: bottom;
}

section#unlimited>.contents_block .take.js-showed {
  animation: right_in 1s forwards cubic-bezier(0.29, 0.04, 0.21, 1.06);
}

section#unlimited>.contents_block .take.js-showed:has(.sp) {
  animation: right_in 0.8s forwards cubic-bezier(0.29, 0.04, 0.21, 1.06);
}


/* - 2 充実の映像コンテンツ
-------------------------------------------------- */
section#movies {
  padding: 48px 0;
  background-image: url(../img/bg_movies.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  z-index: 1;
}

section#movies>.contents_block {
  position: relative;
  z-index: 3;
}

section#movies>.contents_block>.cap_unit {
  opacity: 0;
}

section#movies>.contents_block .cap_unit.js-showed {
  opacity: 1;
  animation: up_in 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#movies>.contents_block .list_movie p.note {
  text-align: left;
  opacity: 0;
  color: #fff;
  font-weight: bold;
}

section#movies>.contents_block .list_movie p.note.js-showed {
  opacity: 1;
  animation: up_in 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#movies>.contents_block .list_movie {
  color: #fff;
}

section#movies>.contents_block .list_movie ul {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin-top: 10px;
  overflow: hidden;
}

section#movies>.contents_block .list_movie ul li {
  display: grid;
  opacity: 0;
}

section#movies>.contents_block .list_movie ul li.js-showed {
  opacity: 1;
  animation: up_in2 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#movies>.contents_block .list_movie ul li.js-showed-sp {
  opacity: 1;
  animation: up_in2_sp 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#movies>.contents_block .list_movie ul li a {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  align-items: stretch;
  cursor: pointer;
}

section#movies>.contents_block .list_movie ul li a .img,
section#cm ul li a {
  display: grid;
  overflow: hidden;
  > * {
    grid-column-start: 1;
    grid-row-start: 1;
  }
}

section#movies>.contents_block .list_movie ul li a .img img,
section#cm ul li a img {
  width: 100%;
  transition: 0.3s;
}

section#movies>.contents_block .list_movie ul li a:hover .img img,
section#cm ul li a:hover img {
  transform: scale(1.1, 1.1);
}

section#movies>.contents_block .list_movie ul li a .txt {
  background-color: #252525;
  padding: 8px 10px;
  transition: 0.3s;
}

section#movies>.contents_block .list_movie ul li a:hover .txt {
  background-color: #064a0e;
}

section#movies>.contents_block .list_movie ul li a .txt h3 {
  font-weight: bold;
}

section#movies>.contents_block .list_movie ul li a .txt h3 .break {
  display: block;
}

section#movies>.contents_block .list_movie ul li a .txt h3 .break + .break {
  margin-top: 6px;
}

section#movies>.contents_block .list_movie ul li a .txt .week {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 1.2rem;
  background-color: #027ac5;
}

section#movies>.contents_block .list_movie ul li a .img .icon,
section#cm ul li a span.icon {
  z-index: 1;
  color: #eee;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

section#movies>.contents_block .list_movie ul li a .img .icon i,
section#cm ul li a span.icon i {
  display: grid;
  place-content: center;
  width: min(20%, 80px);
  border-radius: 100vmax;
  margin: 0;
  aspect-ratio: 1;
  background-color: rgba(0, 0, 0, 0.6);
  container-type: inline-size;
}

section#movies>.contents_block .list_movie ul li a .img .icon i::before,
section#cm ul li a span.icon i::before {
  margin-left: 2px;
  font-size: 27.27cqw;
}



/* - 4 マルチディバイス＆JRA-VAN連携
-------------------------------------------------- */
section#multi_van {
  background: url("../img/bg_multi_van.jpg") top center no-repeat;
  background-size: cover;
  position: relative;
}

section#multi_van>.contents_block {
  padding-top: 64px;
}

section#multi_van>.contents_block>.content {
  width: 100%;
  display: flex;
  gap: clamp(2rem, -5.0803rem + 11.0803vw, 6rem);
}

section#multi_van>.contents_block>.content>div {
  flex: 1 0 0%;
  text-align: center;
}

section#multi_van>.contents_block>.content>div.multi,
section#multi_van>.contents_block>.content>div.jravan {
  opacity: 0;
}

section#multi_van>.contents_block>.content>div.multi.js-showed {
  opacity: 1;
  animation: up_in 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#multi_van>.contents_block>.content>div.jravan.js-showed {
  opacity: 1;
  animation: up_in 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#multi_van>.contents_block>.content>div .img {
  margin-top: 30px;
  flex: 1 0 0%;
}

/* - 5 CMギャラリー
-------------------------------------------------- */
section#cm {
  padding-top: 40px;
  padding-bottom: 64px;
}

section#cm>.contents_block .cap_unit,
section#cm ul>li {
  opacity: 0;
}

section#cm>.contents_block .cap_unit .inner>h2 span.block {
  display: block;
}

section#cm>.contents_block .cap_unit .inner>h2 span.sm {
  font-size: clamp(1.6rem, 1.0484rem + 1.1516vw, 2.2rem);
}

section#cm>.contents_block .cap_unit.js-showed {
  opacity: 1;
  animation: up_in 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#cm .cm_mov ul li:first-child.js-showed {
  opacity: 1;
  animation: up_in 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#cm .cm_mov ul li:nth-child(2).js-showed {
  opacity: 1;
  animation: up_in 1s 1 cubic-bezier(.175, .885, .32, 1.275);
}

section#cm .cm_mov {
  margin-top: 30px;
}

section#cm ul {
  display: grid;
  justify-items: center;
  gap: 20px;
  width: 100%;

  & li {
    max-width: min(80%,480px);
  }
}



/* - 今すぐ会員登録！　エリア
-------------------------------------------------- */
#entry_detail {
  position: fixed;
  bottom: 0;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  background-color: rgb(from var(--color_accent) r g b / 80%);

}

#entry_detail a {
  display: block;
}

#entry_detail a .inner  {
  display: grid;
  grid-template-columns: 1fr auto ;
  gap: 15px;
  padding: 18px 0;
  margin-inline: auto;
  max-width: 560px;
}

/* 画像の横幅 */
#entry_detail a .inner .take {
  width: 144px;
  position: relative;
}

/* 画像の位置 */
#entry_detail a .inner .take .img {
  width: 100%;
  position: absolute;
  bottom: -90px;

  & img {
    width: 100%;
    object-fit: contain;
  }
}

#entry_detail a .inner .btn {
  padding: 12px;
  color: var(--color_accent);
  font-size: 2.2rem;
  text-align: center;
  font-weight: bold;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.1em;
}

#entry_detail a .inner .btn>span {
  display: block;
  font-size: 1.4rem;
  margin-top: 8px;
  letter-spacing: 0;
}

/* - お問い合わせ　詳細
---------------------------- */
#contact {
  padding: 50px 15px;
  background-color: #FFF;
}

.contact_block {
  background-color: #f7f7f7;
  border: 1px solid #CCC;
  padding: 15px;
  font-size: 1.3rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.contact_block h3 {
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: bold;
  border-bottom: 1px dotted #CCC;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.contact_block .tel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact_block .tel>div .time {
  font-weight: bold;
  font-size: 2.2rem;
}

.contact_block .tel>div .time span {
  font-size: 1.4rem;
  margin-right: 0.6em;
}

.contact_block .tel>div p {
  font-size: 1.2rem;
}

.contact_block .tel>div .tel-num {
  font-weight: bold;
  font-size: 2.2rem;
}

.contact_block .tel>div .tel-num i {
  font-size: 2rem;
  margin-right: 0.5em;
}

.contact_block .tel .clear-wrap{
  font-size: 1.2rem;
}


footer {
  padding-bottom: 130px;
}


/* - 共通テキスト系
-------------------------------------------------- */
.u_line {
  display: inline-block;
  border-bottom: solid 3px #f47e06;
}

#multi_van .u_line {
  border-bottom: solid 3px #fff;
}

#movies .u_line {
  display: inline-block;
  border-bottom: solid 4px #ff390f
}

.fs-s {
  font-size: 2.4rem;
  margin: 0 0.2em;
}

.red {
  color: #d71a01;
  font-weight: 900;
}

.green {
  color: #ffff5d;
}


.break {
  display: inline-block;
}

.clear-wrap li {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  text-align: left;

  & a {
    text-decoration: underline;
  }
}

.clear-wrap.center li {
  justify-content: center;
}

/* ------------------------------------------------------------

	1080px以下

------------------------------------------------------------ */
@media only screen and (max-width: 1079px) {

  /* - メインビジュアル
  -------------------------------------------------- */
  section#visual {
    padding-inline: clamp(0.4rem, 0.1000rem + 0.8333vw, 1rem);
  }

}

/* ------------------------------------------------------------

	767px以下

------------------------------------------------------------ */
@media only screen and (max-width: 767px) {

  /* - 2 充実の映像コンテンツ
    --------------------------------- */
  section#movies>.contents_block .list_movie ul {
    --card_size: 250px;
    grid-template-columns: repeat(auto-fit, minmax(var(--card_size), 1fr));
  }

}


/* ------------------------------------------------------------

	639px以下

------------------------------------------------------------ */
@media only screen and (max-width: 639px) {

  /* - メインビジュアル
    --------------------------------- */
  section#visual {
    background-image: url(../img/bg_main_sp.jpg);
    background-position: center top;
    background-position: top 0% right 45%;
    aspect-ratio: 375 / 456;
    padding-top: 42%;
  }

  section#visual .content {
    width: 100%;
    aspect-ratio: 7 / 5;
  }

  .thumb {
    --thumb_w: 25cqw;
    --thumb_y: 4%;
  }

  .bg {
    aspect-ratio: 5 / 3;
  }

  /* - 1 中央競馬のレースが見放題
    --------------------------------- */

  section#unlimited>.contents_block .take {
    align-items: start;
    position: static;
    height: 100%;
    width: 100%;
    z-index: 2;
    opacity: 0;

    & img {
      width: 100%;
      max-width: 360px;
    }
  }

  section#unlimited>.contents_block .cap_unit_wrap {
    grid-template-columns: 1fr;
    grid-template-rows: calc(160px + 2cqw) min-content;
    margin-inline: auto;
    max-width: 560px;

    >.item {
      grid-area: 1/1 /-1/-1;
    }

    >.cap_unit {
      grid-area: 2/1;
      height: min-content;
      margin-top: 0;
    }
  }

  section#unlimited>.contents_block .cap_unit {
    z-index: 4;
    margin-inline: auto;
    padding: 4vw;
    background-color: rgb(255, 255, 255, 0.7);
    border-radius: 8px;
  }

  section#unlimited>.contents_block .cap_unit dl dd {
    font-weight: 400;
  }

  section#unlimited>.contents_block .take.js-showed .pc {
    display: none;
  }

  section#unlimited>.contents_block .take.js-showed .sp {
    display: block;
  }

  /* - 2 充実の映像コンテンツ
  --------------------------------- */
  section#movies>.contents_block .list_movie ul {
    grid-template-columns: 1fr;
    display: grid;
    justify-items: center;
    gap: 4vw;
  }

  section#movies>.contents_block .list_movie ul li {
    width: min(80%, 480px);
  }

  section#movies>.contents_block .list_movie p.note {
    width: min(80%, 480px);
    margin-inline: auto;
  }

  /* - 3 多機能動画プレイヤー
    --------------------------------- */

  section#multi_van>.contents_block>.content {
    flex-flow: column;
  }

  section#multi_van>.contents_block>.content>div .img img {
    width: min(100%, 480px);
  }

  /* - 今すぐ会員登録！　エリア
    ---------------------------------- */

  #entry_detail a .inner {
    grid-template-columns: auto;
    padding: 12px 0;
  }

  #entry_detail a .inner .cell {
    justify-self: center;
  }

  #entry_detail a .inner .take {
    display: none;
  }

  #entry_detail a .inner .btn {
    padding: .5em 1em;
    font-size: clamp(1.6rem, -0.2113rem + 3.7736vw, 2.2rem);
  }

  /* - コンタクト
    ---------------------------------- */
    .contact_block .tel {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    footer {
      padding-bottom: 100px;
    }
}
