/* =========================================================
   過去のトライアウト 特設ページ
========================================================= */
.tryout-page {
  --gold: #ffd76a;
  --silver: #cfd8e6;
  --bronze: #e0a073;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

/* ---------- ヒーロー ---------- */
.tryout-hero {
  position: relative;
  text-align: center;
  padding: clamp(48px, 10vw, 110px) 0 clamp(40px, 8vw, 80px);
  isolation: isolate;
}
.tryout-hero-glow {
  position: absolute;
  inset: 10% 15%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(255, 30, 60, 0.28), transparent 70%) 30% 50% / 60% 100% no-repeat,
    radial-gradient(closest-side, rgba(0, 200, 255, 0.22), transparent 70%) 70% 50% / 60% 100% no-repeat;
  filter: blur(20px);
  animation: tryout-glow 6s ease-in-out infinite alternate;
}
@keyframes tryout-glow {
  from { transform: scale(0.95); opacity: 0.7; }
  to { transform: scale(1.08); opacity: 1; }
}
.tryout-hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.4em;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 255, 247, 0.4);
  padding: 6px 14px 6px 18px;
  margin: 0 0 18px;
  animation: tryout-rise 0.8s 0.1s both;
}
.tryout-hero-title {
  margin: 0;
  line-height: 1;
}
.tryout-hero-en {
  display: block;
  font-family: "Kaushan Script", cursive;
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 7rem);
  color: var(--text-main);
  text-shadow: 0 0 18px rgba(255, 30, 60, 0.55), 0 0 60px rgba(255, 30, 60, 0.25);
  animation: tryout-rise 1s 0.25s both;
}
.tryout-hero-ja {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--neon-red);
  animation: tryout-rise 1s 0.45s both;
}
.tryout-hero-lead {
  color: var(--text-sub);
  font-size: 0.92rem;
  margin: 18px auto 0;
  max-width: 34em;
  animation: tryout-rise 1s 0.6s both;
}
@keyframes tryout-rise {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.tryout-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 5vw, 56px);
  margin-top: 36px;
  animation: tryout-rise 1s 0.75s both;
}
.tryout-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.tryout-stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--neon-cyan);
}
.tryout-stat-value small {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  font-weight: 900;
}
.tryout-stat-num {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}
.tryout-stat-label {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-sub);
}

.tryout-scroll {
  display: block;
  width: 26px;
  height: 42px;
  margin: 40px auto 0;
  border: 2px solid rgba(0, 200, 255, 0.5);
  border-radius: 14px;
  position: relative;
  animation: tryout-rise 1s 1s both;
}
.tryout-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--neon-blue);
  animation: tryout-wheel 1.6s ease-in-out infinite;
}
@keyframes tryout-wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- 年ナビ ---------- */
.tryout-yearnav {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 6px;
  background: rgba(6, 9, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
}
.tryout-yearnav-link {
  padding: 6px 14px;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tryout-yearnav-link:hover {
  color: var(--neon-blue);
}
.tryout-yearnav-link.active {
  color: #fff;
  background: var(--neon-red);
  box-shadow: 0 0 14px rgba(255, 30, 60, 0.5);
}

/* ---------- 各大会 ---------- */
.tryout-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6vw, 56px);
  padding-bottom: 40px;
}
.tryout-year {
  position: relative;
  padding: clamp(22px, 4vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-top: 2px solid var(--neon-red);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 70px);
}
.tryout-year:nth-child(even) {
  border-top-color: var(--neon-blue);
}
.tryout-year-bg {
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  font-size: clamp(6rem, 22vw, 13rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 200, 255, 0.14);
  pointer-events: none;
  user-select: none;
}

.tryout-year-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 22px;
}
.tryout-year-edition {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
}
.tryout-year-title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-main);
}
.tryout-year-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sub);
}

.tryout-year-body {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
}
@media (max-width: 720px) {
  .tryout-year-body {
    grid-template-columns: 1fr;
  }
}

.tryout-block-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
}
.tryout-block-en {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--text-sub);
}

/* 突破者 */
.tryout-podium,
.tryout-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tryout-winner {
  --medal: var(--bronze);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--medal);
  overflow: hidden;
}
.tryout-winner.rank-1 { --medal: var(--gold); background: rgba(255, 215, 106, 0.07); }
.tryout-winner.rank-2 { --medal: var(--silver); }
.tryout-rank {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.05rem;
  color: #111;
  background: var(--medal);
  box-shadow: 0 0 14px color-mix(in srgb, var(--medal) 55%, transparent);
}
.tryout-winner-name {
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text-main);
}
.tryout-winner-name small {
  margin-left: 4px;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text-sub);
}
.tryout-badge {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 255, 247, 0.5);
}
/* 1位に光が走る */
.tryout-winner.rank-1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 235, 170, 0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}
.tryout-year.is-visible .tryout-winner.rank-1::after {
  animation: tryout-shine 1.4s 0.9s ease-out;
}
@keyframes tryout-shine {
  to { transform: translateX(100%); }
}

/* 種目 */
.tryout-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  background: rgba(0, 200, 255, 0.03);
}
.tryout-stage-no {
  flex: none;
  min-width: 6.4em;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--neon-blue);
}
.tryout-stage-name {
  font-weight: 800;
  color: var(--text-main);
}
.tryout-stage.is-revival {
  border-style: dashed;
  border-color: rgba(255, 30, 60, 0.5);
  background: rgba(255, 30, 60, 0.05);
  margin-left: 18px;
}
.tryout-stage.is-revival .tryout-stage-no {
  color: var(--neon-red);
}

/* ---------- スクロールで出てくる演出 ---------- */
.tryout-year.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tryout-year.reveal .tryout-winner,
.tryout-year.reveal .tryout-stage {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(0.25s + var(--i, 0) * 0.08s);
}
.tryout-year.reveal .tryout-stage {
  transition-delay: calc(0.4s + var(--i, 0) * 0.07s);
}
.tryout-year.is-visible,
.tryout-year.is-visible .tryout-winner,
.tryout-year.is-visible .tryout-stage {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tryout-page *,
  .tryout-page *::before,
  .tryout-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .tryout-year.reveal,
  .tryout-year.reveal .tryout-winner,
  .tryout-year.reveal .tryout-stage {
    opacity: 1;
    transform: none;
  }
}
