@charset "UTF-8";

:root {
  --color-primary: #00326a;
  --color-accent: #1586c0;
  --color-accent-dark: #0670b1;
  --color-bg: #f0faff;
  --color-text: #333333;
  --color-white: #ffffff;
  --color-hero-cta: #fff100;
  --color-hero-cta-text: #000c9e;
  --font-sans: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid #f07800;
  outline-offset: 3px;
}

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

.only-sp {
  display: none;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 70px;
}

.site-header__main {
  height: 64px;
  background-color: var(--color-accent);
  background-image: url("../img/header-texture_icon_11.png");
  background-repeat: repeat;
  background-size: 80px 80px;
}

.site-header__inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  height: 64px;
  padding: 9px clamp(32px, 5.5556vw, 80px) 0;
}

.site-header__logo-card {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  height: 55px;
  overflow: hidden;
  background: var(--color-white);
  border-radius: 4px 4px 0 0;
  transition: opacity 160ms ease;
}

.site-header__logo-card:hover {
  opacity: 0.86;
}

.site-header__logo-card--ctc {
  width: 232px;
}

.site-header__logo-card--keirin {
  width: 176px;
  margin-top: 1px;
}

.site-header__logo-picture {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.site-header__logo--ctc {
  width: 208px;
  height: 44px;
  object-fit: contain;
}

.site-header__logo--keirin {
  width: 100%;
  height: 100%;
  padding: 5px 12px 6px;
  object-fit: contain;
}

.site-header__color-bar {
  position: relative;
  height: 6px;
  background: var(--color-accent-dark);
}

.site-header__color-bar::after {
  position: absolute;
  inset: 0 0 0 50%;
  content: "";
  background: url("../img/color-bar-pc_icon_12.png") left center / 100% 100% no-repeat;
}

/* Hero */
.hero {
  --hero-cta-bottom: 50px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero__picture,
.hero__image {
  width: 100%;
}

.hero__image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* KEIRIN.JP information banner */
.hero-keirin-banner {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 20px;
  transition: opacity 160ms ease;
}

.hero-keirin-banner:hover {
  opacity: 0.8;
}

.hero-keirin-banner:active {
  opacity: 0.7;
}

.hero-keirin-banner:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px #f07800;
}

.hero-keirin-banner__picture,
.hero-keirin-banner__image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-keirin-banner__image {
  object-fit: contain;
}

.hero-cta {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--hero-cta-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(560px, calc(100% - 40px));
  height: 120px;
  padding: 0 66px 0 42px;
  color: var(--color-hero-cta-text);
  background: var(--color-hero-cta);
  border-radius: 10px;
  box-shadow: 0 8px 0 rgba(22, 27, 29, 0.75);
  transform: translateX(-50%);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.hero-cta:hover {
  filter: brightness(1.025);
  transform: translate(-50%, -2px);
  box-shadow: 0 10px 0 rgba(22, 27, 29, 0.75);
  opacity: 0.8;
}

.hero-cta:active {
  transform: translate(-50%, 5px);
  box-shadow: 0 3px 0 rgba(22, 27, 29, 0.75);
}

.hero-cta__label {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
}

.hero-cta__text-image {
  display: block;
  width: auto;
  height: 80px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-cta__arrow {
  position: absolute;
  right: 28px;
  width: 22px;
  height: 22px;
  border-top: 6px solid currentColor;
  border-right: 6px solid currentColor;
  transform: rotate(45deg);
}

@media (min-width: 768px) and (max-width: 1440px) {
  .hero {
    --hero-cta-bottom: clamp(26.6667px, 3.4722vw, 50px);
    --hero-keirin-banner-optical-offset: clamp(8.5333px, 1.1111vw, 16px);
  }

  /* PC/tablet: visual lower edge of the blue panel aligns with the CTA baseline. */
  .hero-keirin-banner {
    right: 0.6083%;
    bottom: calc(var(--hero-cta-bottom) - var(--hero-keirin-banner-optical-offset));
    width: 26.35%;
    aspect-ratio: 638 / 588;
  }

  .hero-cta {
    width: clamp(298.6667px, 38.8889vw, 560px);
    height: clamp(64px, 8.3333vw, 120px);
    padding: 0 clamp(35.2px, 4.5833vw, 88px) 0 clamp(22.4px, 2.9167vw, 56px);
    border-radius: clamp(5.3333px, 0.6944vw, 13.3333px);
    box-shadow: 0 clamp(4.2667px, 0.5556vw, 10.6667px) 0 rgba(22, 27, 29, 0.75);
  }

  .hero-cta:hover {
    transform: translate(-50%, clamp(-2.6667px, -0.1389vw, -1.0667px));
    box-shadow: 0 clamp(5.3333px, 0.6944vw, 13.3333px) 0 rgba(22, 27, 29, 0.75);
  }

  .hero-cta:active {
    transform: translate(-50%, clamp(2.6667px, 0.3472vw, 6.6667px));
    box-shadow: 0 clamp(1.6px, 0.2083vw, 4px) 0 rgba(22, 27, 29, 0.75);
  }

  .hero-cta__text-image {
    height: clamp(42.6667px, 5.5556vw, 80px);
  }

  .hero-cta__arrow {
    right: clamp(14.9333px, 1.9444vw, 37.3333px);
    width: clamp(11.7333px, 1.5278vw, 29.3333px);
    height: clamp(11.7333px, 1.5278vw, 29.3333px);
    border-top-width: clamp(3.2px, 0.4167vw, 8px);
    border-right-width: clamp(3.2px, 0.4167vw, 8px);
  }
}

@media (min-width: 1441px) {
  /* Large PC: optical correction is fixed because the 1920 x 810 KV is shown at 1:1 scale. */
  .hero-keirin-banner {
    right: auto;
    bottom: calc(var(--hero-cta-bottom) - 16px);
    left: calc(50% + 404px);
    width: 314px;
    aspect-ratio: 638 / 588;
  }

  .hero,
  .hero__picture {
    height: 810px;
    overflow: hidden;
  }

  .hero__image {
    position: relative;
    left: 50%;
    width: 1920px;
    max-width: none;
    height: 810px;
    aspect-ratio: auto;
    object-fit: fill;
    transform: translateX(-50%);
  }
}

/* Campaign intro */
.campaign-intro {
  height: 270px;
  padding-top: 75px;
  text-align: center;
}

.campaign-intro__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
}

.campaign-intro__decoration {
  display: block;
  width: 2px;
  height: 24px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(-32deg);
  transform-origin: center bottom;
}

.campaign-intro__decoration--reverse {
  transform: rotate(32deg);
}

.campaign-intro__copy {
  margin-top: 10px;
  font-weight: 700;
  text-align: center;
}

.campaign-intro__line {
  display: block;
  min-height: 58px;
  font-size: 36px;
  line-height: 58px;
}

.campaign-intro__line--emphasis strong {
  color: var(--color-primary);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Campaign banners */
.campaign-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 41px;
  width: min(calc(100% - 40px), 1000px);
  margin: 3px auto 0;
}

.campaign-banner {
  display: block;
  overflow: hidden;
  transition: opacity 160ms ease;
}

.campaign-banner:hover {
  opacity: 0.5;
}

.campaign-banner img {
  width: 100%;
  height: 100%;
}

.campaign-banner img {
  aspect-ratio: 500 / 340;
  object-fit: cover;
}

.campaign-note {
  min-height: 20px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

/* Campaign entry */
.campaign-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(calc(100% - 40px), 1000px);
  height: 176px;
  margin: 40px auto 0;
  padding: 29px clamp(48px, 15.3%, 153px);
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: 16px;
}

.campaign-entry__title {
  color: var(--color-primary);
  font-size: clamp(22px, 1.9444vw, 28px);
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

.campaign-entry__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  margin-top: 10px;
  padding-inline: 52px;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 8px;
  font-size: clamp(17px, 1.4583vw, 21px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: filter 160ms ease, transform 160ms ease;
}

.campaign-entry__button:hover {
  filter: brightness(1.16);
  transform: translateY(-1px);
  opacity: 0.8;
}

.campaign-entry__button:active {
  transform: translateY(1px);
}

.campaign-entry__arrow {
  position: absolute;
  right: 15px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 11px solid currentColor;
}

.responsible-gaming {
  min-height: 25px;
  margin-top: 80px;
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;
  text-align: center;
}

/* Footer */
.site-footer {
  height: 53px;
  margin-top: 20px;
  color: var(--color-white);
  background: var(--color-accent);
}

.site-footer__nav,
.site-footer__links {
  height: 100%;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 300;
  line-height: 53px;
}

.site-footer__links a {
  display: block;
  transition: opacity 160ms ease;
}

.site-footer__links a:hover {
  opacity: 0.75;
}

.site-footer__transaction-sp {
  display: none;
}

@media (max-width: 767px) {
  .hero {
    --hero-cta-bottom: clamp(32px, 10.6667vw, 56px);
  }

  .only-sp {
    display: inline;
  }

  /* Header: SP design */
  .site-header {
    height: 75px;
    background: var(--color-accent) url("../img/header-sp_icon_13.png") center / cover no-repeat;
  }

  .site-header__main {
    height: 70px;
    background: transparent;
  }

  .site-header__inner {
    gap: clamp(6px, 2.6667vw, 10px);
    width: calc(100% - 40px);
    height: 70px;
    margin: 0 20px;
    padding: 20px 0 0;
  }

  .site-header__logo-card {
    height: 50px;
    margin-top: 0;
    border-radius: 4px 4px 0 0;
  }

  .site-header__logo-card--ctc {
    width: min(52.2667vw, 196px);
  }

  .site-header__logo-card--keirin {
    width: min(26.6667vw, 100px);
  }

  .site-header__logo--ctc {
    width: calc(100% - 10px);
    height: 40px;
  }

  .site-header__logo--keirin {
    width: 100%;
    height: 100%;
    padding: 5px;
  }

  .site-header__color-bar {
    height: 5px;
  }

  .site-header__color-bar::after {
    inset: 0 0 0 36%;
    background-image: url("../img/color-bar-sp_icon_14.png");
  }

  /* Hero: SP design */
  .hero-keirin-banner {
    top: 0;
    right: -1.2987%;
    bottom: auto;
    left: auto;
    width: 46.464%;
    aspect-ratio: 363 / 336;
  }

  .hero__image {
    aspect-ratio: 375 / 592;
  }

  .hero-cta {
    width: calc(100% - 40px);
    height: clamp(72px, 26.3333vw, 112px);
    padding: 5px clamp(48px, 14.4vw, 74px) 5px clamp(24px, 8vw, 44px);
    border-radius: 10px;
  }

  .hero-cta__label {
    width: 100%;
  }

  .hero-cta__text-image {
    height: clamp(45.2267px, 20.7111vw, 77.6667px);
  }

  .hero-cta__arrow {
    right: clamp(20px, 6.4vw, 36px);
    width: clamp(15px, 4.8vw, 24px);
    height: clamp(15px, 4.8vw, 24px);
    border-width: clamp(3px, 1.0667vw, 5px);
  }

  /* Intro */
  .campaign-intro {
    height: 180px;
    padding-top: 40px;
  }

  .campaign-intro__eyebrow {
    gap: 8px;
    min-height: 25px;
    font-size: 18px;
    line-height: 25px;
  }

  .campaign-intro__decoration {
    width: 2px;
    height: 21px;
  }

  .campaign-intro__copy {
    margin-top: 10px;
  }

  .campaign-intro__line {
    min-height: 34px;
    font-size: clamp(18px, 5.6vw, 21px);
    line-height: 34px;
  }

  .campaign-intro__line--emphasis strong {
    font-size: clamp(28px, 8.5333vw, 32px);
  }

  /* Banners */
  .campaign-banners {
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100% - 40px);
    margin-top: 17px;
  }

  .campaign-note {
    width: calc(100% - 40px);
    margin-inline: auto;
    font-size: clamp(10px, 3.2vw, 12px);
    white-space: nowrap;
  }

  /* Entry */
  .campaign-entry {
    width: calc(100% - 40px);
    height: 164px;
    padding: 19px;
    border-radius: 12px;
  }

  .campaign-entry__title {
    font-size: clamp(18px, 5.6vw, 21px);
    line-height: 32px;
  }

  .campaign-entry__button {
    height: 50px;
    margin-top: 10px;
    padding-inline: 38px;
    font-size: clamp(12px, 3.7333vw, 14px);
  }

  .campaign-entry__arrow {
    right: 12px;
    border-top-width: 7.5px;
    border-bottom-width: 7.5px;
    border-left-width: 8px;
  }

  .responsible-gaming {
    width: calc(100% - 40px);
    min-height: 20px;
    margin: 40px auto 0;
    font-size: clamp(9px, 2.6667vw, 10px);
    line-height: 20px;
    white-space: nowrap;
  }

  /* Footer */
  .site-footer {
    height: 58px;
    margin-top: 20px;
  }

  .site-footer__nav {
    position: relative;
  }

  .site-footer__nav::after {
    position: absolute;
    top: 27px;
    left: 50%;
    width: 144px;
    content: "に基づく表示";
    font-size: 12px;
    font-weight: 300;
    line-height: 21px;
    text-align: center;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .site-footer__links {
    align-items: flex-start;
    gap: 7px;
    height: auto;
    padding-top: 7px;
    font-size: 12px;
    line-height: 21px;
    white-space: nowrap;
  }

  .site-footer__transaction-pc {
    display: none;
  }

  .site-footer__transaction-sp {
    display: inline;
  }
}

@media (max-width: 359px) {
  .site-header__inner {
    margin-inline: 16px;
    width: calc(100% - 32px);
  }

  .campaign-intro__eyebrow {
    font-size: 16px;
  }

  .site-footer__links {
    gap: 4px;
    font-size: 11px;
  }

  .site-footer__nav::after {
    font-size: 11px;
  }
}

@media (max-width: 338px) {
  .hero-cta {
    width: calc(100% - 24px);
    min-width: 0;
    padding-right: 44px;
    padding-left: 16px;
  }

  .hero-cta__label {
    width: 100%;
    min-width: 0;
  }

  .hero-cta__arrow {
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
