/* ============================================
   ITSUKI SATO - Racing Driver Portfolio
   style.css  — Light / Teal & Navy theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* PDFから抽出したカラーパレット */
  --teal:        #7fd0ce;   /* メインアクセント (rgb 127,208,206) */
  --teal-dark:   #56b8b6;
  --teal-light:  #b2e4e3;
  --teal-pale:   #e8f8f7;
  --navy:        #156082;   /* ダークアクセント (rgb 21,96,130) */
  --navy-dark:   #0e4460;
  --navy-light:  #1e7aaa;

  --bg:          #ffffff;   /* メイン背景 */
  --bg-soft:     #f8fafc;   /* サブ背景 */
  --bg-card:     #ffffff;   /* カード背景 */
  --bg-muted:    #edf4f6;   /* ミュート背景 */

  --text:        #1a1a2e;   /* メインテキスト */
  --text-sub:    #404040;   /* サブテキスト */
  --text-muted:  #6b7a8d;   /* ミュートテキスト */
  --text-light:  #9aabb8;

  --border:      #dce8ee;
  --border-teal: rgba(127, 208, 206, 0.4);

  --white:       #ffffff;
  --gold:        #d4a017;
  --silver:      #8a9bb0;

  --font-en:  'Rajdhani', sans-serif;
  --font-jp:  'Noto Sans JP', sans-serif;
  --font-num: 'Bebas Neue', 'Rajdhani', sans-serif;

  --transition: 0.3s ease;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(21,96,130,0.08);
  --shadow-md:  0 4px 20px rgba(21,96,130,0.12);
  --shadow-lg:  0 8px 40px rgba(21,96,130,0.16);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(21, 96, 130, 0.10);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .logo-jp {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.nav-logo .logo-en {
  font-family: var(--font-en);
  font-size: 0.68rem;
  color: var(--teal-dark);
  letter-spacing: 0.22em;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active-nav::after { width: 100%; }
.nav-links a.active-nav { color: var(--navy); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(127,208,206,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(21,96,130,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #f8fafc 0%, #edf7f7 40%, #ffffff 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}

/* ストライプ装飾 */
.speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.speed-lines::before,
.speed-lines::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, rgba(127,208,206,0.5), transparent);
  animation: speedLine 3s ease-in-out infinite;
  border-radius: 2px;
}
.speed-lines::before { left: 8%; animation-delay: 0s; }
.speed-lines::after  { left: 92%; animation-delay: 1.5s; width: 2px; opacity: 0.6; }

@keyframes speedLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 24px;
  animation: fadeInUp 1s ease both;
}

.hero-year {
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.5em;
  color: var(--teal-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-name-jp {
  font-family: var(--font-jp);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--navy);
  text-shadow: 0 2px 20px rgba(21,96,130,0.12);
}

.hero-name-en {
  font-family: var(--font-num);
  font-size: clamp(1.4rem, 4.5vw, 2.6rem);
  letter-spacing: 0.38em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  letter-spacing: 0.55em;
  color: var(--teal-dark);
  margin-bottom: 40px;
  font-weight: 700;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 52px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1.5px solid var(--teal);
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: var(--font-jp);
  background: rgba(127,208,206,0.08);
  color: var(--navy);
  transition: var(--transition);
}
.badge:hover {
  background: rgba(127,208,206,0.20);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.badge i { color: var(--teal-dark); font-size: 0.85rem; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 38px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(21,96,130,0.25);
}
.cta-btn:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(21,96,130,0.32);
}
.cta-btn i { animation: bounce 1.5s ease infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease infinite;
}
.hero-scroll-indicator span {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-number {
  font-family: var(--font-num);
  font-size: 5rem;
  color: rgba(127,208,206,0.15);
  display: block;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-bottom: -20px;
}

.section-title {
  font-family: var(--font-num);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.2em;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-jp);
  font-size: 0.88rem;
  color: var(--teal-dark);
  letter-spacing: 0.15em;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-section {
  background: var(--bg-soft);
}

.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.profile-image-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-image-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  border: 2px solid var(--teal-light);
  background: linear-gradient(135deg, var(--teal-pale) 0%, #e0f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.profile-image-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}

.driver-number {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-num);
  font-size: 5rem;
  color: rgba(127,208,206,0.2);
  line-height: 1;
}

.profile-placeholder {
  text-align: center;
  color: var(--text-light);
}
.profile-placeholder i {
  font-size: 5rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.3;
  color: var(--teal-dark);
}
.profile-placeholder p {
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.profile-flag span {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Profile info */
.profile-name-block { margin-bottom: 28px; }
.profile-name-jp {
  font-family: var(--font-jp);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy);
}
.profile-name-en {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.profile-category {
  font-size: 0.85rem;
  color: var(--teal-dark);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.profile-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
  box-shadow: var(--shadow-sm);
}
.spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.spec-label i { color: var(--teal-dark); font-size: 0.65rem; }
.spec-value {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.profile-bio {
  margin-bottom: 28px;
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.9;
}
.profile-bio p { margin-bottom: 12px; }
.profile-bio strong { color: var(--navy); font-weight: 700; }

.profile-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.highlight-card {
  padding: 20px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.highlight-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.highlight-num {
  font-family: var(--font-num);
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1;
}
.highlight-num small {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.highlight-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   RESULTS TIMELINE
   ============================================ */
.results-section {
  background: var(--bg);
}

.results-timeline {
  position: relative;
  padding-left: 130px;
}
.results-timeline::before {
  content: '';
  position: absolute;
  left: 96px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--teal-light), rgba(127,208,206,0.1));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-year {
  position: absolute;
  left: -130px;
  top: 20px;
  font-family: var(--font-num);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-align: right;
  width: 88px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 26px;
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2.5px solid var(--border);
  border-radius: 50%;
  transition: var(--transition);
}
.timeline-item.visible.champion::before,
.timeline-item.visible.top2::before {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(127,208,206,0.2);
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.timeline-content.champion,
.timeline-content.top2 {
  border-color: var(--teal-light);
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--bg-card) 100%);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: var(--font-jp);
}
.champion-badge {
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.45);
  color: var(--gold);
}
.top2-badge {
  background: rgba(138,155,176,0.12);
  border: 1px solid rgba(138,155,176,0.45);
  color: var(--silver);
}

.timeline-race {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--navy);
}

.timeline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-sub);
}
.stat i { color: var(--teal-dark); font-size: 0.8rem; }

.timeline-sub {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.timeline-sub-race {
  font-family: var(--font-jp);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-sub-race i { color: var(--teal-dark); font-size: 0.8rem; }

/* ============================================
   2025 SEASON
   ============================================ */
.season-section {
  background: var(--bg-soft);
}

.season-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.summary-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.summary-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.summary-card > i {
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin-bottom: 4px;
}
.summary-num {
  font-family: var(--font-num);
  font-size: 2.6rem;
  color: var(--navy);
  line-height: 1;
}
.summary-unit {
  font-size: 1.4rem;
  font-family: var(--font-jp);
  font-weight: 500;
  vertical-align: baseline;
}
.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.summary-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 50px;
  background: rgba(127,208,206,0.15);
  border: 1px solid var(--teal-light);
  font-size: 0.68rem;
  color: var(--teal-dark);
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: var(--font-jp);
}

/* Race Table */
/* スワイプヒント */
.race-table-scroll-hint {
  display: none;
  text-align: center;
  margin-bottom: 10px;
  animation: hint-pulse 1.8s ease-in-out infinite;
}
.race-table-scroll-hint span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--navy);
  background: var(--teal-pale);
  border: 1px solid var(--border-teal);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: var(--font-jp);
  letter-spacing: 0.04em;
}
.race-table-scroll-hint i {
  color: var(--teal-dark);
}
.race-table-scroll-hint.hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: 0.6; transform: translateY(2px); }
}
@media (max-width: 520px) {
  .race-table-scroll-hint { display: block; }
}

.race-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.race-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 420px;
}
.race-table thead tr {
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
}
.race-table th {
  padding: 14px 20px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--white);
}
.race-table td {
  padding: 12px 20px;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
  font-family: var(--font-jp);
}
.race-table tr:last-child td { border-bottom: none; }
.race-table tr:hover td { background: var(--teal-pale); }

.pos-1st { color: var(--gold) !important; font-weight: 700; }
.pos-2nd { color: var(--silver) !important; font-weight: 700; }
.pos-3rd { color: #b08060 !important; font-weight: 700; }
.pos-dnf { color: var(--text-muted) !important; }
.result-win    { color: var(--gold) !important; font-weight: 700; }
.result-podium { color: var(--navy-light) !important; }
.result-dnf    { color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.06em; }



/* ============================================
   VISION SECTION
   ============================================ */
.vision-section {
  background: var(--bg);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.vision-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.vision-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.vision-card:hover::before { transform: scaleX(1); }
.vision-card:hover {
  border-color: var(--teal-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vision-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-pale);
  border: 2px solid var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.vision-icon i { font-size: 1.5rem; color: var(--teal-dark); }

.vision-card h3 {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}
.vision-card p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.vision-card p strong { color: var(--navy); }

/* Career Path */
.career-path {
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--bg-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1.5px solid var(--teal-light);
  box-shadow: var(--shadow-sm);
}
.path-title {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-sub);
  text-align: center;
}
.path-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.path-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.step-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.path-step.done .step-dot {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(127,208,206,0.4);
}
.path-step.next .step-dot {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  animation: pulse 2s ease infinite;
}
.path-step.future .step-dot {
  background: transparent;
  border: 2px dashed var(--text-light);
  color: var(--text-light);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21,96,130,0.2); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}
.step-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.step-year {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  font-weight: 700;
}
.step-name {
  font-size: 0.72rem;
  color: var(--text-sub);
  line-height: 1.4;
}
.step-name strong { color: var(--navy); }
.path-arrow { font-size: 0.8rem; color: var(--teal); margin: 0 4px; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--bg-soft) 50%, var(--teal-pale) 100%);
  text-align: center;
}

.contact-content {
  max-width: 680px;
  margin: 0 auto;
}
.contact-desc {
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.8;
  word-break: break-word;
}
.contact-info {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-sub);
  width: auto;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.contact-item { transition: var(--transition); text-decoration: none; align-items: center; }
.contact-item i { font-size: 1.15rem; line-height: 1; display: flex; align-items: center; }
.contact-item span { color: var(--text-sub); font-size: 0.85rem; line-height: 1; display: flex; align-items: center; }
.contact-item:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-item:hover span { color: var(--navy); }

.contact-icon-instagram-svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: #e1306c;
  flex-shrink: 0;
  display: block;
}
.contact-icon-mail     { color: var(--navy); }
.contact-icon-x-svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: #000000;
  flex-shrink: 0;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-dark);
  padding: 44px 0;
  text-align: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.footer-logo .logo-jp {
  font-family: var(--font-jp);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}
.footer-logo .logo-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--teal-light);
  letter-spacing: 0.28em;
}
.footer-tag {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.4);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-image-frame { max-width: 280px; margin: 0 auto; }
  .season-summary { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: 1fr; }
  .path-arrow { display: none; }
  .path-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .career-path { padding: 28px 20px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .hamburger { display: flex; }

  .results-timeline { padding-left: 120px; }
  .results-timeline::before { left: 88px; }
  .timeline-year { left: -118px; font-size: 1.1rem; width: 82px; }
  .timeline-item::before { left: -22px; }

  .section { padding: 72px 0; }
  .profile-specs { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: column; align-items: center; }
}

@media (max-width: 520px) {
  .season-summary { grid-template-columns: repeat(2, 1fr); }
  .path-steps { grid-template-columns: repeat(2, 1fr); }
  .profile-highlights { grid-template-columns: 1fr 1fr 1fr; }
  .timeline-content { padding: 16px 18px; }
  .career-path { padding: 20px 16px; }
  .section-number { font-size: 3.5rem; }
}

/* ============================================
   RACE IMAGE SLIDER
   ============================================ */
.race-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--teal-light);
  background: var(--bg-muted);
}

.race-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
.race-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.race-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 901px) {
  .race-slide img.img-pos-left {
    object-position: 60% center;
  }
}

.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(21,96,130,0.80) 0%, transparent 100%);
  color: #fff;
  font-family: var(--font-jp);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-align: center;
}

/* 前後ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: var(--navy);
  border: 1.5px solid var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}
.slider-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* ドットインジケーター */
.slider-dots {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* トップバー装飾 */
.race-slider::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  z-index: 5;
}

@media (max-width: 900px) {
  .race-slider { aspect-ratio: 16 / 9; max-width: 480px; margin: 0 auto; }
}

/* ============================================
   MEDIA SECTION
   ============================================ */
.media-section {
  background: var(--bg-soft);
}

/* カテゴリブロック */
.media-category {
  margin-bottom: 56px;
}
.media-category:last-child {
  margin-bottom: 0;
}

.media-category-title {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-transform: uppercase;
  padding: 10px 18px;
  border-left: 4px solid var(--teal);
  background: var(--teal-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.media-category-title i {
  color: var(--teal-dark);
  font-size: 0.95rem;
}

/* グリッド */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* カード共通 */
.media-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

/* サムネイル共通 */
.media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-muted);
  flex-shrink: 0;
}

/* YouTube動画サムネイル */
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.media-card:hover .video-thumb img {
  transform: scale(1.05);
}

/* 再生ボタン */
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 96, 130, 0.35);
  transition: background var(--transition);
}
.play-btn i {
  font-size: 1.6rem;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform var(--transition);
}
.media-card:hover .play-btn {
  background: rgba(21, 96, 130, 0.55);
}
.media-card:hover .play-btn i {
  transform: scale(1.15);
}

/* 記事サムネイル */
.article-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-thumb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--teal-pale) 0%, #ddf0ef 100%);
  padding: 16px;
}
.article-source {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.3;
}
.article-source-logo {
  max-width: 80%;
  max-height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* バッジ（YouTube / 記事 / Instagram） */
.media-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.51rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.video-badge {
  background: rgba(255, 0, 0, 0.88);
  color: #fff;
}
.article-badge {
  background: rgba(21, 96, 130, 0.88);
  color: #fff;
}

/* 情報エリア */
.media-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.media-title {
  font-family: var(--font-jp);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-source-tag {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-muted);
  border-radius: 3px;
  padding: 2px 7px;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .media-category-title {
    font-size: 0.92rem;
  }
  .media-category {
    margin-bottom: 40px;
  }
}
@media (max-width: 480px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .media-title {
    font-size: 0.76rem;
  }
}
