@charset "utf-8";
/* =========================================================
   トップページ専用スタイル
   ========================================================= */

/* ---------- HERO：スクロールで写真が切り替わる ---------- */
.hero { position: relative; height: 420vh; background: var(--navy-950); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
.hero__slide { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero__slide + .hero__slide { clip-path: polygon(0 115%, 100% 100%, 100% 100%, 0 100%); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,15,32,.55) 0%, rgba(0,15,32,0) 28%, rgba(0,15,32,.05) 50%, rgba(0,26,54,.9) 100%),
    linear-gradient(90deg, rgba(0,26,54,.55) 0%, rgba(0,26,54,0) 65%);
}
.hero__lanes {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 40%; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 38px, rgba(255,255,255,.16) 38px 39px);
  transform: perspective(520px) rotateX(58deg); transform-origin: bottom;
  mask-image: linear-gradient(180deg, transparent, #000 75%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 75%);
}

.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(88px, 12vh, 128px);
  will-change: transform, opacity;
}
.hero__kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-weight: 700; font-size: clamp(10px, 1.1vw, 13px); letter-spacing: .3em;
  margin-bottom: clamp(12px, 2vw, 22px);
}
.hero__kicker::before { content: ""; width: 48px; height: 2px; background: var(--gold); }
.hero__title {
  font-family: var(--font-en); font-weight: 900; line-height: .86; letter-spacing: -.005em;
  font-size: clamp(60px, 11.5vw, 176px);
  text-shadow: 0 10px 40px rgba(0,15,32,.25);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .amp { color: var(--gold-light); }
.hero__sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: clamp(14px, 2vw, 24px); }
.hero__jp { font-size: clamp(14px, 1.6vw, 18px); font-weight: 700; letter-spacing: .18em; opacity: 0; animation: fade 1s .6s var(--ease) forwards; }
.hero__copy {
  font-family: var(--font-mincho); font-weight: 800; font-size: clamp(20px, 2.8vw, 34px); letter-spacing: .14em;
  opacity: 0; animation: fade 1s .8s var(--ease) forwards;
}
@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 写真ごとのキャプション */
.hero__captions {
  position: absolute; right: var(--gutter); bottom: clamp(88px, 12vh, 128px);
  width: min(300px, 40vw); height: 120px; text-align: right;
}
.hero__caption {
  position: absolute; inset: auto 0 0 auto;
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero__caption.is-active { opacity: 1; transform: none; }
.hero__caption .no { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--gold-light); }
.hero__caption .word { display: block; font-family: var(--font-en); font-weight: 900; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.05; letter-spacing: .03em; }
.hero__caption .jp { display: block; font-family: var(--font-mincho); font-weight: 700; font-size: 15px; letter-spacing: .16em; margin-top: 6px; }

/* 進捗インジケーター */
.hero__index {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.hero__index li { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .16em; color: rgba(255,255,255,.55); transition: color .4s; }
.hero__index li.is-active { color: #fff; }
.hero__index .bar { display: block; height: 2px; margin-top: 8px; background: rgba(255,255,255,.22); overflow: hidden; }
.hero__index .bar i { display: block; height: 100%; background: var(--gold-light); transform-origin: 0 50%; transform: scaleX(0); }

.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .3em;
  display: flex; align-items: center; gap: 14px;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 72px; background: linear-gradient(180deg, #fff 50%, rgba(255,255,255,.2) 50%);
  background-size: 1px 200%; animation: scrollLine 2s var(--ease-io) infinite;
}
@keyframes scrollLine { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

@media (max-width: 767px) {
  .hero { height: 380vh; }
  .hero__captions { top: calc(var(--header-h) + 18px); bottom: auto; height: 100px; width: 70vw; }
  .hero__caption { inset: 0 0 auto auto; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: 84px; }
}

/* ---------- ABOUT ---------- */
.about__grid { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 5fr 6fr; } }
.about__text .lead-mincho { margin-bottom: 28px; color: var(--navy-800); }
.about__text p.body { color: #2a3a4c; }
.about__text .btn { margin-top: 36px; }
.about__photos { position: relative; aspect-ratio: 1 / .92; }
.about__photo { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,26,54,.35); }
.about__photo img { width: 100%; height: 118%; object-fit: cover; }
.about__photo--a { left: 0; top: 0; width: 76%; aspect-ratio: 4 / 3; }
.about__photo--b { right: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; border: 6px solid #fff; }
.about__badge {
  position: absolute; left: 6%; bottom: 4%; z-index: 2;
  width: clamp(110px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--navy); color: #fff;
  font-family: var(--font-en); font-weight: 900; font-size: 11px; letter-spacing: .16em; line-height: 1.5;
}
.about__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__badge text { fill: rgba(255,255,255,.8); font-size: 7.4px; font-weight: 700; }
.about__badge b { font-size: 28px; display: block; color: var(--gold-light); letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 110px); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px clamp(12px, 2vw, 28px) 8px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stat { border-bottom: 0; } .stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 32px); } }
.stat__label { font-family: var(--font-en); font-size: 11px; font-weight: 900; letter-spacing: .2em; color: var(--gold); }
.stat__value { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; color: var(--navy); }
.stat__value .num { font-weight: 900; font-size: clamp(48px, 6vw, 80px); line-height: 1; letter-spacing: -.01em; }
.stat__value .unit { font-weight: 700; font-size: 15px; }
.stat__desc { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* ---------- NEXT RACE ---------- */
.next { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.next::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 56px, rgba(255,255,255,.05) 56px 57px);
}
.next__grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 960px) { .next__grid { grid-template-columns: 1.15fr 1fr; align-items: stretch; } }
.next__main {
  position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
  overflow: hidden;
}
.next__main::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05);
}
.next__label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 900; font-size: 12px; letter-spacing: .24em; color: var(--gold-light); }
.next__label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(210,192,138,.7); } 100% { box-shadow: 0 0 0 12px rgba(210,192,138,0); } }
.next__count { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.next__count .pre { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.next__count .num { font-weight: 900; font-size: clamp(80px, 11vw, 140px); line-height: .9; }
.next__count .unit { font-family: var(--font-en); font-weight: 900; font-size: 18px; letter-spacing: .14em; }
.next__name { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.5; margin-top: 10px; }
.next__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 14px; opacity: .85; }
.next__meta span { display: inline-flex; align-items: center; gap: 8px; }
.next__meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.next__list { display: grid; gap: 0; align-content: start; }
.next__item {
  display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.next__item:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.next__date { font-family: var(--font-en); line-height: 1.1; }
.next__date b { display: block; font-size: 26px; font-weight: 900; white-space: nowrap; }
.next__date small { font-size: 11px; font-weight: 700; letter-spacing: .16em; opacity: .7; }
.next__item h3 { font-size: 15px; font-weight: 700; line-height: 1.6; }
.next__item p { font-size: 12.5px; opacity: .7; }
.next__foot { margin-top: 28px; }

/* ---------- CONTENTS（各ページへのボタン） ---------- */
.menu-grid { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.menu-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  min-height: clamp(280px, 34vw, 420px); color: #fff; text-decoration: none;
  background: var(--navy-900); isolation: isolate;
}
.menu-card__img { position: absolute; inset: -8% 0; z-index: -2; }
.menu-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.menu-card:hover .menu-card__img img { transform: scale(1.07); }
.menu-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,26,54,.15) 0%, rgba(0,26,54,.35) 45%, rgba(0,26,54,.92) 100%);
  transition: background-color .5s;
}
.menu-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease-io); opacity: .82;
}
.menu-card:hover::after { clip-path: inset(0 0 0 0); }
.menu-card__body { position: absolute; inset: auto 0 0 0; padding: clamp(22px, 3vw, 36px); display: grid; gap: 6px; }
.menu-card__no { position: absolute; top: clamp(18px, 2.4vw, 30px); left: clamp(22px, 3vw, 36px); font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .24em; }
.menu-card__no::after { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; background: currentColor; margin-left: 12px; opacity: .6; }
.menu-card__en { font-family: var(--font-en); font-weight: 900; font-size: clamp(40px, 5.6vw, 72px); line-height: .95; letter-spacing: .01em; }
.menu-card__jp { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 700; letter-spacing: .12em; }
.menu-card__desc { font-size: 13px; opacity: .82; line-height: 1.8; max-width: 34em; }
.menu-card__arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.6); transition: background-color .4s, color .4s, transform .5s var(--ease), border-color .4s;
}
.menu-card__arrow svg { width: 18px; height: 18px; }
.menu-card:hover .menu-card__arrow { background: #fff; color: var(--navy); border-color: #fff; transform: translateX(6px); }

.sub-menu { display: grid; gap: 14px; margin-top: clamp(14px, 1.6vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .sub-menu { grid-template-columns: repeat(3, 1fr); } }
.sub-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 28px; border-radius: var(--radius); text-decoration: none; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line);
  transition: color .5s var(--ease), border-color .5s;
}
.sub-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateX(-101%); transition: transform .6s var(--ease); }
.sub-card:hover { color: #fff; border-color: var(--navy); }
.sub-card:hover::before { transform: none; }
.sub-card .en { display: block; font-weight: 900; font-size: 22px; letter-spacing: .04em; color: var(--navy); transition: color .5s; }
.sub-card:hover .en { color: #fff; }
.sub-card .jp { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.sub-card svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .5s var(--ease); }
.sub-card:hover svg { transform: translateX(6px); }
.sub-card--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.sub-card--gold .en { color: #fff; }

/* ---------- GALLERY：縦スクロールで横に流れる ---------- */
.hscroll { position: relative; background: var(--ice); }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll__track { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--gutter); will-change: transform; width: max-content; }
.hscroll__intro { width: min(420px, 80vw); flex-shrink: 0; padding-right: clamp(8px, 3vw, 40px); }
.hscroll__intro p { color: var(--muted); font-size: 14px; }
.hscroll__item { position: relative; flex-shrink: 0; overflow: hidden; border-radius: var(--radius); height: min(62vh, 520px); aspect-ratio: 4 / 3; background: var(--mist); box-shadow: 0 30px 60px -30px rgba(0,26,54,.45); }
.hscroll__item:nth-child(odd) { transform: translateY(5vh); }
.hscroll__item:nth-child(even) { transform: translateY(-5vh); }
.hscroll__item img { width: 120%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.hscroll__item figcaption {
  position: absolute; left: 16px; bottom: 14px; font-family: var(--font-en); font-weight: 900; font-size: 13px; letter-spacing: .2em; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.hscroll__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; height: 2px; background: var(--line); }
.hscroll__bar span { display: block; height: 100%; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 767px) {
  .hscroll__item { height: 46vh; aspect-ratio: 3 / 4; }
}

/* ---------- NEWS ---------- */
.news__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .news__grid { grid-template-columns: 280px 1fr; gap: 64px; } }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 24px;
  padding: 24px 6px; text-decoration: none; overflow: hidden; isolation: isolate;
}
.news-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ice); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.news-list a:hover::before { transform: none; }
.news-list .date { font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.news-list .meta { display: flex; align-items: center; gap: 6px; }
.news-list .title { grid-column: 1 / 3; font-size: 15px; font-weight: 500; line-height: 1.7; transition: color .3s; }
.news-list a:hover .title { color: var(--navy); }
.news-list .go { grid-row: 1 / 3; grid-column: 3; width: 18px; height: 18px; color: var(--navy); transition: transform .5s var(--ease); }
.news-list a:hover .go { transform: translateX(6px); }
.news-list .ext { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; margin-left: 6px; opacity: .6; }
@media (min-width: 720px) {
  .news-list a { grid-template-columns: 110px 150px 1fr auto; padding: 26px 12px; }
  .news-list .title { grid-column: auto; }
  .news-list .go { grid-row: auto; grid-column: auto; }
}

/* ---------- JOIN US ---------- */
.join { position: relative; overflow: hidden; color: #fff; padding: clamp(110px, 16vw, 220px) 0; background: var(--navy-900); }
.join__bg { position: absolute; inset: -15% 0; z-index: 0; }
.join__bg img { width: 100%; height: 100%; object-fit: cover; }
.join::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,26,54,.92) 0%, rgba(0,36,75,.7) 55%, rgba(0,36,75,.35) 100%); }
.join__inner { position: relative; z-index: 2; }
.join__en { font-family: var(--font-en); font-weight: 900; font-size: clamp(14px, 1.4vw, 16px); letter-spacing: .3em; color: var(--gold-light); }
.join__title { font-family: var(--font-mincho); font-weight: 800; font-size: clamp(36px, 6vw, 76px); line-height: 1.3; letter-spacing: .08em; margin: 16px 0 24px; }
.join__text { max-width: 36em; font-size: 15px; opacity: .9; }
.join__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- 動きを減らす設定の人向け ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; height: 100svh; }
  .hero__slide + .hero__slide { display: none; }
  .hero__slide img { transform: none; }
  .hero__caption:first-child { opacity: 1; transform: none; }
  .hero__index, .hero__scroll { display: none; }
  .hero__title .line > span { transform: none; animation: none; }
}
.hscroll.is-static .hscroll__sticky { position: relative; height: auto; padding: 96px 0; }
.hscroll.is-static .hscroll__track { width: auto; overflow-x: auto; padding-bottom: 24px; }
.hscroll.is-static .hscroll__item { transform: none; }
.hscroll.is-static .hscroll__item img { width: 100%; }
.hscroll.is-static .hscroll__bar { display: none; }

.news__all { margin-top: 24px; }
.next__news { margin-top: 22px; }
