:root {
  --blue: #0b3e87;
  --about-text: #0b3e87;
  --deep-blue: #0b3e87;
  --accent: #32a5fb;
  --white: #ffffff;
  --light-gray: #f6f6f6;
  --text: #0b3e87;
  --font-ja: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Unbounded", Arial, Helvetica, sans-serif;
  --font-coming-soon: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ja);
  background: #eff7fe;
  letter-spacing: 0;
}

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

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

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

.site-main {
  overflow: hidden;
}

.design-section {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.design-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.design-image--contained {
  width: min(1200px, calc(100% - 48px));
}

.design-section--hero {
  background: #e4f7ff;
}

.design-section--hero .design-image {
  max-width: 2880px;
}

.design-section--about {
  min-height: 640px;
  background: #eff7fe;
}

.design-section--about .design-image {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 500px;
  max-width: 2886px;
  object-fit: cover;
  object-position: top;
  transform: translateX(-50%);
}

.about-message {
  position: absolute;
  z-index: 1;
  top: 120px;
  left: max(24px, calc((100% - 1200px) / 2));
  width: min(552px, calc(100% - 48px));
  color: var(--about-text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.about-message p {
  margin: 0;
}

.about-message p + p {
  margin-top: 8px;
}

.about-message p.about-message__closing {
  margin-top: 22px;
}

.about-message__line {
  display: inline-block;
  white-space: nowrap;
}

.games-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: var(--blue);
}

.games-section .section-heading h2,
.games-section .section-heading p {
  color: var(--white);
}

.games-section__line {
  display: block;
  height: 24px;
  margin: 64px auto 0;
  object-fit: contain;
}

.games-section__line--pc {
  width: min(1200px, 100%);
}

.games-section__line--sp {
  display: none;
}

.games-section__tournament {
  display: block;
  width: min(823px, 100%);
  height: auto;
  margin: 64px auto 0;
  background: var(--white);
}

.games-section .button {
  margin-top: 64px;
}

.section-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section-heading h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 120px;
  line-height: 1;
  font-weight: 500;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 43px;
  min-width: 225px;
  min-height: 50px;
  padding: 16px 32px;
  border-radius: 3px;
  color: var(--white);
  background: var(--accent);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #2fa5f9;
}

.button__arrow {
  display: block;
  width: 8px;
  height: 15px;
  object-fit: contain;
}

.button--center {
  display: flex;
  width: 225px;
  margin: 64px auto 0;
}

.live {
  padding: 120px 0;
  background: var(--white);
}

.live-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 64px;
}

.live-card {
  display: block;
  overflow: hidden;
  min-height: 218px;
  border-radius: 4px;
  background: var(--light-gray);
  text-align: center;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-card:hover,
.live-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.1);
}

.live-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.live-card h3 {
  margin: 31px 0 12px;
  color: #1b1f27;
  font-size: 15.5px;
  line-height: 19px;
  font-weight: 700;
}

.live-card p {
  margin: 0;
}

.live-card__date {
  color: #1b1f27;
  font-size: 11.6px;
  line-height: 14px;
  font-weight: 500;
}

.live-card__time {
  color: #1b1f27;
  font-size: 23.2px;
  line-height: 28px;
  font-weight: 700;
}

.live-card__opponent {
  padding: 27px 0 28px;
  color: #1b1f27;
  font-size: 23.2px;
  line-height: 35px;
  font-weight: 600;
}

.live-card__status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  color: var(--white);
  background: #8d8d8d;
  font-family: var(--font-coming-soon);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.live-card__status-arrow {
  display: block;
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.live__archive {
  margin-top: 64px;
  text-align: center;
}

.live__archive p {
  position: relative;
  display: inline-block;
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.64;
  font-weight: 700;
}

.live__archive p::before,
.live__archive p::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 2px;
  height: 72px;
  background: var(--blue);
}

.live__archive p::before {
  left: -72px;
  transform: rotate(-28deg);
}

.live__archive p::after {
  right: -72px;
  transform: rotate(28deg);
}

.live__archive img {
  width: min(800px, 100%);
  margin: 0 auto;
}

.live__archive-banner {
  display: block;
  width: min(800px, 100%);
  margin: 0 auto;
}

.live__archive-banner:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.live__archive-banner img {
  width: 100%;
}

.teams-section {
  overflow: hidden;
  padding: 120px 0;
  background: url("../images/teams-bg.png") center / cover no-repeat;
}

.team-slider {
  width: 100%;
  overflow: hidden;
  margin-top: 64px;
}

.team-slider__track {
  --team-shift-offset: 14px;
  display: flex;
  width: max-content;
  gap: 24px;
  animation: team-scroll 60s linear infinite;
  will-change: transform;
}

.team-slider:hover .team-slider__track,
.team-slider:focus-within .team-slider__track {
  animation-play-state: paused;
}

.team-card {
  position: relative;
  flex: 0 0 419.42px;
  overflow: hidden;
  width: 419.42px;
  height: 279.62px;
  border-radius: 3px;
  background: #d8f1fb;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: rgba(0, 61, 130, 0.72);
  transition: opacity 0.25s ease;
}

.team-card span {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  color: var(--white);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  transition: opacity 0.25s ease;
}

.team-card:hover::before,
.team-card:focus-visible::before,
.team-card:hover span,
.team-card:focus-visible span {
  opacity: 1;
}

.team-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@keyframes team-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - var(--team-shift-offset)));
  }
}

@media (max-width: 900px) {
  .section-inner {
    width: min(680px, calc(100% - 48px));
  }

  .section-heading h2 {
    font-size: 62px;
  }

  .live-list {
    grid-template-columns: 1fr;
  }

  .live-list {
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .design-image--contained {
    width: min(327px, calc(100% - 48px));
  }

  .design-section--about {
    min-height: 700px;
  }

  .design-section--about .design-image {
    bottom: 0;
    width: 100%;
    height: auto;
    max-width: none;
  }

  .about-message {
    top: 64px;
    left: 50%;
    width: min(280px, calc(100% - 48px));
    transform: translateX(-50%);
    font-size: 14px;
    line-height: 1.8;
  }

  .about-message p {
    display: inline;
  }

  .about-message br {
    display: none;
  }

  .about-message__line {
    display: inline;
    white-space: normal;
  }

  .about-message p + p {
    margin-top: 0;
  }

  .about-message p.about-message__closing {
    display: block;
    margin-top: 25.2px;
  }

  .live {
    padding: 80px 24px;
  }

  .games-section {
    padding: 80px 24px;
  }

  .section-inner {
    width: 100%;
    max-width: 327px;
  }

  .section-heading h2 {
    font-size: 40px;
    line-height: 1;
  }

  .section-heading p {
    margin-top: 13px;
    font-size: 14px;
    line-height: 17px;
  }

  .games-section__line {
    height: 24px;
    margin: 32px auto 0;
  }

  .games-section__line--pc {
    display: none;
  }

  .games-section__line--sp {
    display: block;
    width: min(320px, 100%);
  }

  .live-list {
    margin-top: 32px;
    gap: 32px;
  }

  .games-section__tournament {
    width: min(320px, 100%);
    margin-top: 32px;
  }

  .games-section .button {
    margin-top: 32px;
  }

  .button--center {
    margin-top: 64px;
  }

  .live-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    width: 100%;
    height: 217.77px;
    min-height: 217.77px;
    padding: 30.97px 15.48px 37.23px;
    border-radius: 3.87px;
  }

  .live-card h3 {
    margin: 0 0 11.61px;
    font-size: 15.48px;
    line-height: 19px;
  }

  .live-card__date {
    font-size: 11.61px;
    line-height: 14px;
  }

  .live-card__time {
    font-size: 23.23px;
    line-height: 28px;
  }

  .live-card__opponent {
    padding: 27px 0 0;
    font-size: 23.23px;
    line-height: 35px;
  }

  .live-card__status {
    position: absolute;
    left: 0;
    bottom: -17.45px;
    width: 100%;
    height: 37.23px;
    min-height: 37.23px;
    font-size: 20px;
  }

  .live__archive {
    margin-top: 32px;
  }

  .live__archive p {
    width: min(203px, 100%);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.64;
  }

  .live__archive p::before,
  .live__archive p::after {
    top: 0;
    width: 3px;
    height: 77px;
  }

  .live__archive p::before {
    left: -32px;
  }

  .live__archive p::after {
    right: -32px;
  }

  .live__archive-banner,
  .live__archive img {
    width: min(320px, 100%);
  }

  .teams-section {
    position: relative;
    isolation: isolate;
    padding: 80px 24px;
    background: #ffffff;
  }

  .teams-section::before {
    content: "";
    position: absolute;
    top: -12px;
    left: -90px;
    z-index: 0;
    width: 2020px;
    height: 1137px;
    background: url("../images/teams-bg.png") left top / 100% 100% no-repeat;
    opacity: 1;
    pointer-events: none;
  }

  .teams-section > * {
    position: relative;
    z-index: 1;
  }

  .team-slider {
    width: 100vw;
    margin-top: 64px;
    margin-left: calc(50% - 50vw);
  }

  .team-slider__track {
    --team-shift-offset: 6.57px;
    gap: 13.13px;
    animation-duration: 50s;
  }

  .team-card {
    flex-basis: 229.49px;
    width: 229.49px;
    height: 153px;
    aspect-ratio: auto;
    border-radius: 1.64px;
  }

  .team-card span {
    font-size: 9.85px;
  }
}
