@font-face {
  font-family: "number";
  src: local("Arial");
  unicode-range: U+0030-0039;
}

@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-variable.ttf") format("truetype");
}

:root {
  --black: #0a0a0a;
  --surface: #1e1e1e;
  --card: #3b3b3b;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --red: #ef302b;
  --red-hover: #f31918;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--white);
  font-family: "number", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "kern" off, "liga", "clig";
  font-kerning: none;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
  width: min(100%, 1440px);
  min-height: 112px;
  margin: 0 auto;
  padding: 24px 48px 20px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 38px;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: scale(1.04);
}

.brand img {
  width: 168px;
  height: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
}

.drawer-divider,
.drawer-secondary,
.drawer-overlay {
  display: none;
}

.main-nav a,
.footer-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.footer-nav a:hover {
  color: var(--red);
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
}

.header-actions {
  display: flex;
  gap: 10px;
}

.button {
  min-width: 104px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--red);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-hover);
}

.button-outline {
  border-color: var(--white);
  background: transparent;
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  overflow: hidden;
  width: min(100%, 1440px);
  margin: 0 auto;
  background: var(--black);
}

.hero picture,
.hero img {
  width: 100%;
}

.hero img {
  height: auto;
  object-fit: cover;
}

.page-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 72px
    clamp(
      24px,
      calc((100vw - var(--content)) / 2),
      calc((1440px - var(--content)) / 2)
    )
    120px;
}

.content-section + .content-section {
  margin-top: 76px;
}

.section-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.more-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  position: relative;
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.more-link span {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--red);
  font-size: 0;
  mask-image: url("../images/icons/arrow-right.svg");
  mask-repeat: no-repeat;
  mask-size: cover;
  -webkit-mask-image: url("../images/icons/arrow-right.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.more-link:hover {
  color: var(--red);
}

.more-link:hover span {
  transform: scale(1.133) translateX(1px);
}

.series-title {
  margin: 0 0 18px;
  font-size: 16px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) 110px minmax(74px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 146px;
  padding: 20px 12px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.game-card:hover {
  transform: scale(1.025);
}

.team-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.team-side img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.team-side strong {
  min-height: 38px;
  font-size: 12px;
  line-height: 1.45;
}

.game-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.game-status {
  font-size: 16px;
  font-weight: 800;
}

.game-status.live {
  color: var(--red);
}

.game-status.live::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: pulse 1.5s infinite;
}

.game-countdown,
.game-series,
.game-stadium {
  color: rgba(10, 10, 10, 0.62);
  font-size: 10px;
  line-height: 1.35;
}

.game-series {
  margin-top: 4px;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.carousel {
  position: relative;
}

.card-track {
  display: grid;
  grid-auto-columns: calc((100% - 60px) / 4);
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
  display: none;
}

.media-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border-radius: 4px;
  background: var(--card);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
}

.media-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 278 / 158;
  background: #242424;
}

.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-card:hover .media-image img {
  transform: scale(1.04);
}

.free-badge {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  padding: 2px 10px;
  border-radius: 0 0 4px;
  background: var(--white);
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.media-info {
  display: flex;
  min-height: 126px;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
}

.video-card .media-info {
  min-height: 86px;
  justify-content: center;
}

.media-info h3 {
  margin: 0 0 auto;
  font-size: 15px;
  line-height: 1.5;
}

.media-info p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  top: calc(50% - 26px);
  display: block;
  width: 52px;
  height: 52px;
  padding: 18px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font-size: 0;
  opacity: 0.8;
  cursor: pointer;
}

.carousel-button::before {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--white);
  content: "";
  mask-repeat: no-repeat;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
}

.carousel-button:hover {
  background: var(--red);
}

.carousel-button.previous {
  left: 0;
}

.carousel-button.previous::before {
  mask-image: url("../images/icons/arrow-left.svg");
  -webkit-mask-image: url("../images/icons/arrow-left.svg");
}

.carousel-button.next {
  right: 0;
}

.carousel-button.next::before {
  mask-image: url("../images/icons/arrow-right.svg");
  -webkit-mask-image: url("../images/icons/arrow-right.svg");
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.team-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 6px;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.team-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.team-card span {
  font-size: 12px;
  font-weight: 700;
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--red);
}

.team-card:hover img {
  transform: scale(1.08);
}

.tv-section {
  display: flex;
  justify-content: center;
}

.tv-banner {
  display: block;
  width: min(560px, 100%);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.tv-banner:hover {
  transform: translateY(-3px);
}

.site-footer {
  padding: 64px max(24px, calc((100% - var(--content)) / 2)) 150px;
  background: var(--black);
}

.footer-top {
  display: flex;
  gap: 90px;
  justify-content: center;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.footer-top section {
  text-align: center;
}

.footer-top h2 {
  margin: 0 0 20px;
  font-size: 14px;
}

.download-list,
.social-list {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.download-list img {
  width: auto;
  height: 38px;
}

.social-list img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  max-width: 940px;
  flex-wrap: wrap;
  gap: 16px 30px;
  justify-content: center;
  margin: 0 auto;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.footer-copy {
  padding-top: 36px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.footer-copy p {
  margin: 8px auto;
}

.subscription-bar {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 24px 12px;
  background: var(--red);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.subscription-bar button {
  width: min(680px, 100%);
  padding: 9px 18px;
  border: 1px solid var(--white);
  border-radius: 7px;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.subscription-bar button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.subscription-bar p {
  margin: 5px 0 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
}

.subscription-bar a {
  text-decoration: underline;
}

.account-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.account-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.account-dialog h2 {
  margin: 0 0 12px;
}

.account-dialog p {
  margin: 0 0 24px;
  color: var(--muted);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.dialog-action {
  width: 100%;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 168px minmax(0, 1fr) auto;
    gap: 18px;
    padding-inline: 24px;
  }

  .main-nav {
    gap: 8px 15px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-track {
    grid-auto-columns: calc((100% - 40px) / 3);
  }
}

@media (min-width: 960px) {
  body {
    font-size: 18px;
  }
}

@media (min-width: 1920px) {
  body {
    font-size: 22px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand {
    justify-content: center;
  }

  .brand img {
    width: 150px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    z-index: 2;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    display: flex;
    visibility: hidden;
    width: calc(100% - 66px);
    min-width: 250px;
    max-width: none;
    height: 100dvh;
    overflow-y: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 32px;
    justify-content: flex-start;
    align-items: stretch;
    padding: 98px 24px 32px;
    transform: translateX(-100%);
    background: var(--black);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .main-nav.open {
    visibility: visible;
    transform: translateX(0);
    opacity: 1;
  }

  .main-nav a {
    display: flex;
    width: 100%;
    height: 36px;
    align-items: center;
    padding: 0;
    border: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
  }

  .main-nav a::after {
    position: absolute;
    top: 50%;
    right: 0;
    display: block;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    background-image: url("../images/icons/menu-arrow.svg");
    background-repeat: no-repeat;
    background-size: 10px 10px;
    content: "";
  }

  .drawer-secondary {
    display: flex;
  }

  .drawer-divider {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .drawer-overlay {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: block;
    visibility: hidden;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border: 0;
    background: rgba(10, 10, 10, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.215, 0.61, 0.355, 1), visibility 0.3s;
  }

  .drawer-overlay.open {
    visibility: visible;
    opacity: 0.8;
    pointer-events: auto;
  }

  .menu-toggle,
  .brand,
  .header-actions {
    position: relative;
    z-index: 3;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-actions .button {
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
  }

  .header-actions .button-outline {
    display: none;
  }

  .page-shell {
    padding-top: 48px;
    padding-bottom: 90px;
  }

  .content-section + .content-section {
    margin-top: 58px;
  }

  .card-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    flex-direction: column;
    gap: 42px;
  }
}

@media (max-width: 600px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 130px;
  }

  .section-heading {
    align-items: flex-end;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 22px;
  }

  .card-track {
    grid-auto-columns: 82%;
  }

  .carousel-button {
    display: none;
  }

  .team-grid {
    gap: 10px;
  }

  .team-card img {
    width: 68px;
    height: 68px;
  }

  .site-footer {
    padding-bottom: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
