:root {
  --navy: #102f4a;
  --navy-2: #0a2237;
  --blue: #0b8ec2;
  --sky: #e9f7fd;
  --peach: #f28fa6;
  --peach-soft: #fff3f6;
  --orange: #f47d3b;
  --green: #3c927d;
  --text: #33495c;
  --muted: #687b8d;
  --line: #dce8ef;
  --soft: #f6fafc;
  --white: #fff;
  --shadow: 0 16px 36px rgba(16, 47, 74, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

body.is-font-large {
  font-size: 18px;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(220, 232, 239, .9);
  backdrop-filter: blur(14px);
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  padding: 0 clamp(16px, 4vw, 52px);
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid rgba(220, 232, 239, .7);
}

.header-tools a,
.font-tool {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(16px, 4vw, 52px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--orange));
  font-weight: 900;
}

.brand__text {
  display: grid;
  line-height: 1.25;
}

.brand__text strong {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 900;
}

.brand__text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.global-nav a {
  text-decoration: none;
}

.nav-entry {
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--sky);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  min-height: 720px;
  padding: 92px clamp(20px, 6vw, 84px) 74px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 34, 55, .92) 0%, rgba(10, 34, 55, .88) 38%, rgba(10, 34, 55, .34) 68%, rgba(10, 34, 55, .12) 100%),
    url("../img/hero.png") center / cover no-repeat,
    linear-gradient(135deg, #f8bfd0, #7fc8e7);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0));
}

.hero__content,
.hero-summary {
  position: relative;
  z-index: 2;
}

.hero__eyebrow,
.section-kicker {
  display: inline-flex;
  margin: 0;
  color: #ffe4ec;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 920px;
  margin: 20px 0 20px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.12;
  font-weight: 950;
}

.hero-title__pc,
.hero-title__sp {
  display: block;
}

.hero-title__sp {
  display: none;
}

.hero__lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-date {
  display: inline-grid;
  gap: 2px;
  margin: 28px 0 18px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
}

.hero-date span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

.hero-date strong {
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.1;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.countdown div {
  display: grid;
  place-items: center;
  min-width: 86px;
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.countdown strong {
  font-size: 28px;
  line-height: 1;
}

.countdown span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  min-width: 174px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.button--primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(244, 125, 59, .34);
}

.button--secondary {
  color: var(--navy);
  background: #fff;
}

.button--outline {
  color: var(--blue);
  background: #fff;
  border: 1px solid #b9ddeb;
}

.hero-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-summary div {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.hero-summary span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.hero-summary strong {
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}

.quick-links {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, calc(100% - 40px));
  margin: -46px auto 0;
}

.quick-links a {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 22px;
  border-radius: 20px;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.quick-links span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.quick-links strong {
  font-size: 18px;
  line-height: 1.35;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-title {
  margin-bottom: 30px;
}

.section-title--split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.section-title p {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .1em;
}

.section-title h2,
.course-preview h2,
.entry-section h2,
.page-hero h1 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
  font-weight: 950;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.news-section {
  padding-top: 72px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.news-tabs button {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}

.news-tabs button.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.news-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.news-item {
  display: grid;
  grid-template-columns: 120px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.news-item span {
  display: inline-flex;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--sky);
  font-size: 12px;
  font-weight: 900;
}

.news-item a {
  color: var(--navy);
  font-weight: 850;
  text-decoration: none;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.concept-grid article {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.concept-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #f8bfd0, #8fd4eb);
}

.concept-grid div {
  padding: 24px;
}

.concept-grid span,
.race-card span,
.entry-section p:first-child {
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.concept-grid h3 {
  margin: 8px 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.35;
}

.concept-grid p {
  margin: 0;
}

.race-section {
  padding-top: 20px;
}

.race-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.race-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 47, 74, .08);
}

.race-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--peach), var(--orange), var(--blue));
}

.race-card--main {
  background: linear-gradient(180deg, var(--peach-soft), #fff);
  border-color: #f6c4d1;
}

.race-card h3 {
  margin: 12px 0 2px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.3;
}

.race-card p {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 950;
}

.race-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.race-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d6e5ec;
}

.race-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.race-card dd {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  text-align: right;
}

.course-preview {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  padding-top: 34px;
}

.course-preview__image {
  overflow: hidden;
  border-radius: 30px;
  background: var(--sky);
  box-shadow: var(--shadow);
}

.course-preview__image.is-image-missing,
.concept-grid article.is-image-missing,
.sponsor-main.is-image-missing {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(242, 143, 166, .18), rgba(11, 142, 194, .18)),
    #fff;
}

.course-preview__image.is-image-missing::before,
.concept-grid article.is-image-missing::before,
.sponsor-main.is-image-missing::before {
  content: "画像をここに配置";
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  font-weight: 900;
}

.course-preview__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-preview__body p:not(.section-kicker) {
  margin: 12px 0 24px;
}

.sponsor-section {
  padding-top: 34px;
}

.sponsor-main,
.sponsor-grid div {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 47, 74, .08);
}

.sponsor-main {
  min-height: 132px;
  margin-bottom: 16px;
}

.sponsor-main span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
}

.sponsor-main img {
  max-width: 320px;
  max-height: 72px;
  object-fit: contain;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sponsor-grid div {
  min-height: 86px;
  color: var(--muted);
  font-weight: 850;
}

.sponsor-grid img {
  max-width: 220px;
  max-height: 62px;
  object-fit: contain;
}

.entry-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 66px clamp(20px, 6vw, 84px);
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.entry-section h2,
.entry-section p {
  color: #fff;
}

.entry-section p {
  max-width: 760px;
  margin: 0;
}

.site-footer {
  padding: 48px clamp(20px, 6vw, 84px) 92px;
  color: #d9e7ee;
  background: var(--navy-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, .9fr) auto;
  align-items: start;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-grid strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-grid a {
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.footer-sponsors {
  width: 100%;
}

.footer-sponsors p {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.footer-sponsor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.footer-sponsor-list figure {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 82px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.footer-sponsor-list img {
  width: 100%;
  max-width: 132px;
  max-height: 38px;
  padding: 4px 8px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}

.footer-sponsor-list figcaption {
  color: #d9e7ee;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.fixed-entry {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(244, 125, 59, .34);
  font-weight: 950;
  text-decoration: none;
}

.page-hero {
  padding: 74px clamp(20px, 6vw, 84px);
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.page-hero p,
.page-hero h1 {
  max-width: 980px;
  color: #fff;
}

.page-hero p {
  margin: 12px 0 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 47, 74, .08);
}

.content-card h2,
.content-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.content-card p {
  margin: 0;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.simple-table th,
.simple-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.simple-table th {
  color: #fff;
  background: var(--navy);
}

.simple-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1060px) {
  .race-grid,
  .quick-links,
  .sponsor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-tools {
    display: none;
  }

  .header-main {
    min-height: 68px;
  }

  .global-nav {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    padding: 12px 14px;
  }

  .nav-entry {
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .course-preview,
  .entry-section,
  .concept-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-title--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand__text small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 58px 16px 72px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10.2vw, 46px);
    line-height: 1.18;
  }

  .hero-title__pc {
    display: none;
  }

  .hero-title__sp {
    display: block;
    white-space: nowrap;
  }

  .hero-summary,
  .quick-links,
  .race-grid,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .countdown div {
    min-width: calc(50% - 5px);
  }

  .quick-links {
    width: min(100% - 28px, 1120px);
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding: 62px 0;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fixed-entry {
    left: 16px;
    right: 16px;
  }

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

  .footer-sponsor-list figure {
    grid-template-columns: 120px 1fr;
    justify-items: start;
    min-height: 64px;
  }

  .footer-sponsor-list figcaption {
    text-align: left;
  }

  .simple-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
