/* ================================================================
   LIFESAVING — Design Framework  v2
   White × Navy theme
================================================================ */

/* ----------------------------------------------------------------
   0. CSS Custom Properties
---------------------------------------------------------------- */
:root {
  /* Colors — White × Navy */
  --color-white:       #ffffff;
  --color-off-white:   #f4f7fb;
  --color-navy:        #0a1e3d;
  --color-navy-mid:    #1a3a6c;
  --color-navy-light:  #2c5282;
  --color-blue:        #0077b6;
  --color-blue-light:  #48b0d8;
  --color-border:      rgba(10, 30, 61, 0.12);
  --color-border-light: rgba(255,255,255,0.2);
  --color-text:        #0a1e3d;
  --color-text-muted:  #5a7a9a;

  /* Typography */
  --font-display:  'Bebas Neue', sans-serif;
  --font-heading:  'Montserrat', 'Noto Sans JP', sans-serif;
  --font-body:     'Noto Sans JP', 'Montserrat', sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   8rem;
  --space-2xl:  12rem;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast:  0.25s;
  --dur-base:  0.5s;
  --dur-slow:  0.9s;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  /* overflow-x: clip — visual clipping without creating a scroll container
     (overflow-x: hidden would break position:sticky in Safari) */
  overflow-x: clip;
  cursor: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ----------------------------------------------------------------
   2. Custom Cursor
---------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--color-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast), height var(--dur-fast);
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0, 119, 182, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out-expo), width 0.3s, height 0.3s;
}

body.cursor-hover .cursor          { width: 14px; height: 14px; }
body.cursor-hover .cursor-follower { width: 56px; height: 56px; opacity: 0.6; }

@media (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ----------------------------------------------------------------
   3. Typography Utilities
---------------------------------------------------------------- */
.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1.25rem;
}

/* on dark bg */
.on-dark .section-eyebrow { color: var(--color-blue-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.on-dark .section-title { color: var(--color-white); }

.section-title em {
  font-style: normal;
  color: var(--color-blue);
}

/* ----------------------------------------------------------------
   4. Button System
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9em 2.4em;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-navy-mid); transform: translateY(-2px); }

/* white bg / navy border — for white sections */
.btn--outline-navy {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}
.btn--outline-navy:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* white text / white border — for dark sections */
.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-navy);
}


/* ----------------------------------------------------------------
   5. Navigation
---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  padding-left:  max(var(--space-lg), env(safe-area-inset-left));
  padding-right: max(var(--space-lg), env(safe-area-inset-right));
  z-index: 1000;
  transition:
    background   var(--dur-base) var(--ease-in-out),
    box-shadow   var(--dur-base),
    color        var(--dur-base);
}

/* Hero上: 透明、白テキスト */
.nav { color: var(--color-white); }

/* スクロール後: 白bg、紺テキスト (背景は ::before で制御) */
.nav.on-content {
  box-shadow: 0 1px 0 var(--color-border);
  color: var(--color-navy);
}

.nav.on-content .nav__logo-text  { color: var(--color-navy); }
.nav.on-content .nav__link       { color: rgba(10, 30, 61, 0.65); }
.nav.on-content .nav__link:hover { color: var(--color-navy); }

.nav.on-content .nav__hamburger span { background: var(--color-navy); }

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav__logo-img {
  width: 38px; height: 38px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-white);
  padding: 2px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.nav__logo:hover .nav__logo-img { transform: rotate(-6deg) scale(1.06); }

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--color-white);
  transition: color var(--dur-base);
}

/* Nav 右側グループ: リンク + Instagram + ハンバーガー */
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__insta {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--dur-fast), transform var(--dur-base) var(--ease-out-expo);
  flex-shrink: 0;
}

.nav__insta svg { width: 100%; height: 100%; }

.nav__insta:hover {
  color: var(--color-white);
  transform: scale(1.1);
}

.nav.on-content .nav__insta { color: rgba(10, 30, 61, 0.65); }
.nav.on-content .nav__insta:hover { color: var(--color-navy); }

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  transition: color var(--dur-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width var(--dur-base) var(--ease-out-expo);
}

.nav__link:hover { color: var(--color-white); }
.nav__link:hover::after { width: 100%; }

.nav__link.is-active { color: var(--color-white); }
.nav__link.is-active::after { width: 100%; opacity: 0.55; }

.nav.on-content .nav__link.is-active { color: var(--color-navy); }
.nav.on-content .nav__link.is-active::after { background: var(--color-navy); opacity: 0.55; }


/* ---- nav 常時スクリム: テキストがナビ下を通る際に隠す ---- */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  /* hero 上ではわずかに暗い背景 + ぼかし */
  background: rgba(4, 13, 26, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  transition: background var(--dur-base), backdrop-filter var(--dur-base);
}

.nav.on-content::before {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--color-white);
  transition: all var(--dur-base) var(--ease-out-expo);
}

/* ----------------------------------------------------------------
   6-A. HERO BG — 固定動画レイヤー（常時背景）
---------------------------------------------------------------- */
.hero-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.hero-bg__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: filter 0.08s linear;
  animation: heroFadeIn 2s 0.2s ease-out both;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-bg__overlay {
  position: absolute;
  inset: 0;
  /* 初期グラデ — 上部は薄く、下部は濃く */
  background: linear-gradient(
    to bottom,
    rgba(10, 30, 61, 0.1)  0%,
    rgba(10, 30, 61, 0.0)  35%,
    rgba(10, 30, 61, 0.35) 70%,
    rgba(10, 30, 61, 0.8)  100%
  );
  transition: background 0.08s linear;
}

.hero-bg__loop-fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 1s ease;
}

/* ----------------------------------------------------------------
   6-B. HERO — スクロールで上へ流れるテキストレイヤー
---------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  z-index: 2;
  background: transparent;
  overflow: hidden;
}

/* RYO UENO 大見出し */
.hero__name-block {
  position: absolute;
  bottom: 10vh;
  right: var(--space-lg);
  text-align: left;
}

.hero__name-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.6rem;
  /* 入場アニメ */
  animation: fadeSlideUp 1s 0.2s var(--ease-out-expo) both;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 16vw, 17rem);
  line-height: 0.85;
  letter-spacing: 0.03em;
  color: var(--color-white);
  text-shadow: 0 2px 60px rgba(0,0,0,0.25);
  animation: fadeSlideUp 1s 0.05s var(--ease-out-expo) both;
}

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

/* 音声ボタン — 右下コーナー・アイコンのみ */
.hero__controls {
  position: fixed;
  bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem));
  right:  max(1.5rem, calc(env(safe-area-inset-right) + 1rem));
  z-index: 10;
}

.hero__sound-btn {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  animation: fadeSlideUp 0.8s 0.5s var(--ease-out-expo) both;
}
.hero__sound-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.08);
}
.hero__sound-btn:active { transform: scale(0.94); }
.hero__sound-btn .icon { width: 18px; height: 18px; }

.hidden { display: none !important; }

/* スクロールインジケーター — 右側 */
.hero__scroll-indicator {
  position: fixed;
  right:  max(1.5rem, calc(env(safe-area-inset-right) + 1rem));
  bottom: max(7rem, calc(env(safe-area-inset-bottom) + 6rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.75), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.4);
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----------------------------------------------------------------
   7. SITE CONTENT — 動画の上にスライドオーバーするラッパー
---------------------------------------------------------------- */
.site-content {
  position: relative;
  z-index: 3;
  background: transparent;
  margin-top: -10vh;         /* ヒーロー末尾に食い込んで一体化 */
}

/* ----------------------------------------------------------------
   7-B. PAGE BODY — 白背景コンテンツ開始 (動画を覆い隠す)
---------------------------------------------------------------- */
.page-body {
  position: relative;
  background: var(--color-white);
}

/* ----------------------------------------------------------------
   8. Photo Lead — ヒーロー直後の写真セクション（動画が背景）
---------------------------------------------------------------- */

/* 汎用スクロールリビール（photo-lead 以外で使用） */
.photo-fade {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
  transition-delay: var(--pd, 0s);
}
.photo-fade.in-view { opacity: 1; transform: none; }

/* ----------------------------------------------------------------
   Photo Lead — sticky scroll シアター
---------------------------------------------------------------- */
.photo-lead {
  background: transparent;
  position: relative;
}

.photo-lead__track {
  position: relative;
  height: 560vh;
}

.photo-lead__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  overflow: hidden;
}


.photo-lead__grid {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;   /* 明示的に2行 — 高さを完全に一致させる */
  gap: 6px;
  height: 76vh;
  min-height: 440px;
}

/* 各写真: 初期は非表示 → JS で .revealed が付くと出現 */
.photo-lead__item {
  position: relative;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  transform: translateY(55px);
  transition:
    opacity   1.1s var(--ease-out-expo),
    transform 1.1s var(--ease-out-expo);
}
.photo-lead__item.revealed {
  opacity: 1;
  transform: none;
}

/* 左: 2行スパンで縦全体 */
.photo-lead__item--main {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* 右上・右下: nth-child で正確に配置 */
.photo-lead__item--sm:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.photo-lead__item--sm:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.photo-lead__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.photo-lead__item:hover .photo-lead__img { transform: scale(1.04); }

/* ホバー時キャプション — 非表示 */
.photo-lead__caption {
  display: none;
}

.photo-lead__caption-date {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-blue-light);
  margin-bottom: 0.35rem;
}
.photo-lead__caption-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1.3;
}

/* ----------------------------------------------------------------
   9. Ticker — 縦スライド（中央揃え・バッジ付き）
---------------------------------------------------------------- */
.ticker {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  height: 48px;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  padding: 0 max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem));
  gap: 1rem;
  outline: 1px solid rgba(255,255,255,0.18);
}

.ticker__vwindow {
  overflow: hidden;
  height: 48px;
  flex: 1;
  min-width: 0;
}

.ticker__vtrack {
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker__vitem {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  overflow: hidden;
}

.ticker__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 0.5rem;
  background: var(--color-blue);
  font-family: var(--font-heading);
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
}

.ticker__badge > span {
  letter-spacing: 0.25em;
  margin-right: -0.25em;
}

.ticker__text {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker__text em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-blue-light);
  margin-right: 0.6em;
}

.ticker__dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.ticker__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.35s, transform 0.35s;
}

.ticker__dot--active {
  background: rgba(255,255,255,0.9);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .ticker { padding: 0 1rem; gap: 0.6rem; }
  .ticker__text { font-size: 0.62rem; }
}

/* ----------------------------------------------------------------
   10. Story — Federer スタイル（白背景、右写真、左テキスト）
---------------------------------------------------------------- */
.story {
  background: var(--color-off-white);
  /* overflow-x: clip — 横スクロールを防ぎつつ sticky を壊さない (overflow: hidden だと Safari で sticky が動かない) */
  overflow-x: clip;
  position: relative;
}

/* 全幅グリッド — 右列はビューポート右端まで届く */
.story__inner {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 560px;
  align-items: stretch;
}

/* ================================================================
   CAREER 2-PANEL SCROLL LAYOUT
   Panel 1 (LS):   テキスト左 / 透過PNG右
   Panel 2 (CONS): 画像左     / テキスト右
================================================================ */

/* ================================================================
   CAREER SECTION — タブ切り替えレイアウト
================================================================ */

.career-section {
  background: var(--color-off-white);
  padding: 6rem 0 7rem;
}

.career-inner {
  width: 82%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- ヘッダー ---- */
.career-header {
  margin-bottom: 2.5rem;
}

.career-section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin: 0.25rem 0 0;
}

/* ---- セグメントコントロール (2ボタン合体型) ---- */
.career-tabs-wrap {
  margin-bottom: 2rem;
}

.career-tabs {
  display: inline-flex;
  background: rgba(10,30,61,0.07);
  border-radius: 100px;
  padding: 5px;
  gap: 0;
}

.career-tab {
  padding: 0.55rem 1.9rem;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: rgba(10,30,61,0.4);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.career-tab:hover:not(.career-tab--active) {
  background: rgba(10,30,61,0.06);
}

.career-tab--active {
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(10,30,61,0.18);
}

/* ---- コンテンツパネル ---- */
.career-pane {
  display: none;
}

.career-pane--active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 520px;
  align-items: stretch;
  overflow: visible;
  animation: careerPaneFadeUp 0.38s cubic-bezier(0.16,1,0.3,1) both;
}

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

/* テキスト列 */
.career-pane__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* 画像列 — クリップなし、最前面 */
.career-pane__visual {
  position: relative;
  z-index: 2;
  /* overflow: visible — 画像がはみ出してテキスト列に重なる */
}

.career-pane__portrait {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 118%;
  width: auto;
  max-width: none;
  filter: drop-shadow(-8px 12px 48px rgba(10,30,61,0.18))
          drop-shadow(0 2px 8px rgba(10,30,61,0.08));
}

.career-pane__visual--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .career-section { padding: 4rem 0 5rem; }
  .career-inner { width: 90%; }

  .career-pane--active {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .career-pane__visual {
    height: 60vw;
    min-height: 220px;
    order: -1;
    border-radius: 6px;
  }

  .career-pane__text {
    padding: 1.5rem 0 0;
  }
}

/* ================================================================
   Career embed — inside story__text-col
================================================================ */

.story__career-embed {
  margin-top: 0.5rem;
  min-height: 420px; /* タブ切り替え時に右カラム写真サイズが変わらないよう固定 */
}

.story__career-embed .career-tabs-wrap {
  margin-bottom: 1.5rem;
}

/* Panes are plain blocks here — no portrait column */
.story__career-embed .career-pane--active {
  display: block;
  min-height: auto;
}

/* ================================================================
   ABOUT section — original two-column layout
================================================================ */

/* テキスト側（左） */
.story__text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 3rem 3rem
           max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}

.story__text-col .section-eyebrow { margin-bottom: 0; }

/* 名前ブロック */
.story__name-block { line-height: 1; }

.story__name-en {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  color: var(--color-navy);
  letter-spacing: 0.06em;
  line-height: 0.92;
  text-transform: uppercase;
}

.story__name-ja {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-blue);
  margin-top: 0.75rem;
}

/* 引用 — 左ボーダーアクセント */
.story__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-navy);
  border-left: 3px solid var(--color-blue);
  padding-left: 1.1rem;
  margin: 0;
}

/* 本文 */
.story__body {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--color-text-muted);
}

/* タグ */
.story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.story__tag {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy);
  border: 1px solid rgba(10,30,61,0.25);
  padding: 0.4em 1em;
  border-radius: 100px;
}

/* ボタン */
.btn--story {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-navy);
  padding: 0.95em 2.2em;
  border-radius: 100px;
  transition: background var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo);
}
.btn--story:hover {
  background: var(--color-navy-mid);
  transform: translateY(-2px);
}

.story__cta { margin-top: 0.25rem; }

/* 写真側（右）— sticky でテキストに追従 */
.story__visual-col {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.story__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* フェデラーサイトのグラデーション:
   ページ背景色が左からにじんで写真に溶け込む */
.story__visual-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-off-white) 0%,
    rgba(244, 247, 251, 0.55) 18%,
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
}

/* モバイル専用インライン写真 — デスクトップでは非表示 */
.story__photo-mobile {
  display: none;
}

/* タブレット〜モバイル */
@media (max-width: 1100px) {
  .story__inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  /* デスクトップの右カラム写真は非表示 */
  .story__visual-col {
    display: none;
  }

  /* テキスト列内の写真を表示 — 高さ固定せず全体を見せる */
  .story__photo-mobile {
    display: block;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
  }

  .story__photo-mobile .story__photo {
    width: 100%;
    height: auto;
    object-fit: initial;
    display: block;
  }

  .story__text-col {
    padding: 3.5rem 1.5rem 2.5rem;
    gap: 1.25rem;
  }
  .story__name-en { font-size: clamp(2rem, 10vw, 3rem); }
  .story__body { max-width: 100%; }
}

/* ----------------------------------------------------------------
   11. Stats — 実績セクション
---------------------------------------------------------------- */
.stats {
  background: var(--color-navy);
  overflow: hidden;
}

/* フィーチャード実績バー */
.stats__feat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
  background: linear-gradient(90deg, rgba(0,119,182,0.25) 0%, rgba(72,176,216,0.1) 50%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  text-align: center;
}
.stats__feat-year {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: rgba(255,215,0,0.85);
  line-height: 1;
  flex-shrink: 0;
}
.stats__feat-center {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stats__feat-event {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--color-blue-light);
  text-transform: uppercase;
}
.stats__feat-rank {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--color-white);
  letter-spacing: 0.04em;
  line-height: 1;
}
.stats__feat-sub {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
}
.stats__feat-medal {
  font-size: clamp(2.5rem, 5vw, 4rem);
  flex-shrink: 0;
}

/* 4カウンター */
.stats__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 2.5rem 0;
  transition-delay: var(--delay, 0s);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stats__item:last-child { border-right: none; }

.stats__number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  color: var(--color-white);
  line-height: 1;
}
.stats__suffix {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-blue-light);
}
.stats__label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.14em;
  margin-top: 0.2rem;
}

/* メダルカードボード */
.stats__medals {
  max-width: var(--max-width);
  margin: 3.5rem auto 0;
  padding: 0 max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}
.stats__medals-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.stats__medals-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.medal-card {
  background: rgba(255,255,255,0.04);
  padding: 1.75rem 1.5rem 1.5rem;
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.medal-card--gold   { border-top-color: #ffd700; }
.medal-card--silver { border-top-color: #b8c0cc; }
.medal-card--bronze { border-top-color: #c87941; }
.medal-card--rep    { border-top-color: rgba(72,176,216,0.55); }

.medal-card__count {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1;
  color: white;
}
.medal-card--gold   .medal-card__count { color: #ffd700; }
.medal-card--silver .medal-card__count { color: #c8d0d8; }
.medal-card--bronze .medal-card__count { color: #d4956a; }
.medal-card--rep    .medal-card__count { color: var(--color-blue-light); }

.medal-card__type {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.medal-card__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}
.mdot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.2s;
}
.mdot:hover { transform: scale(1.5); }
.mdot--gold   { background: #ffd700; box-shadow: 0 0 6px rgba(255,215,0,0.65); }
.mdot--silver { background: #b8c0cc; }
.mdot--bronze { background: #c87941; }
.mdot--rep    { background: rgba(72,176,216,0.3); border: 1px solid rgba(72,176,216,0.55); }

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4,1fr); }
  .stats__item { padding: 1.5rem 0.5rem; border-right: none; border-bottom: none; }
  .stats__item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stats__number { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
  .stats__label  { font-size: 0.55rem; }
  .stats__feat { gap: 1rem; padding: 2rem 1.5rem; }
  .stats__medals-board { grid-template-columns: repeat(2, 1fr); }
  .medal-card { padding: 1.25rem 1rem 1rem; }
  .medal-card__count { font-size: clamp(2rem, 8vw, 3rem); }
}

/* ----------------------------------------------------------------
   12. Gallery
---------------------------------------------------------------- */
.gallery {
  padding: 5rem 2.5rem 5.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery__header { margin-bottom: 2.5rem; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 6px;
}

.gallery__item { position: relative; overflow: hidden; cursor: pointer; background: var(--color-navy); }
.gallery__item--large { grid-row: span 2; }
.gallery__item--wide  { grid-column: span 2; }

.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.gallery__item:hover .gallery__img { transform: scale(1.06); }

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,61,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.gallery__item:hover .gallery__item-overlay { opacity: 1; }

/* キャプション */
.gallery__cap {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }

/* Instagram CTAタイル */
.gallery__ig-tile {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
  cursor: pointer;
}
.gallery__ig-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 0.6rem;
  text-decoration: none;
}
.gallery__ig-icon {
  width: 40px;
  height: 40px;
  color: white;
  opacity: 0.9;
}
.gallery__ig-handle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
}
.gallery__ig-cta {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.4em 1em;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s;
}
.gallery__ig-link:hover .gallery__ig-cta {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* PC: 7th item and beyond hidden until LOAD MORE */
.gallery__item--pc-extra { display: none !important; }
.gallery__grid.expanded .gallery__item--pc-extra { display: block !important; }

/* Mobile: items 4+ hidden until LOAD MORE */
@media (max-width: 768px) {
  .gallery { padding: 3rem 1.25rem 4rem; }
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery__item--large { grid-row: span 1; }
  .gallery__item--wide  { grid-column: span 1; }
  .gallery__item--m-extra { display: none !important; }
  .gallery__grid.expanded .gallery__item--m-extra { display: block !important; }
}

/* LOAD MORE ボタン */
.gallery__more-wrap {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 1rem;
}
.gallery__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: none;
  border: 1.5px solid rgba(10,30,61,0.3);
  padding: 0.9em 2.2em;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}
.gallery__more-btn svg { transition: transform var(--dur-base) var(--ease-out-expo); }
.gallery__more-btn:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: white;
}
.gallery__more-btn:hover svg { transform: translateY(3px); }

/* ----------------------------------------------------------------
   13. News Magazine — editorial grid
---------------------------------------------------------------- */
.news-mag {
  background: var(--color-white);
  padding: 5rem 2.5rem 6rem;
}

.news-mag__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.news-mag__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.news-mag__all {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--dur-fast);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.news-mag__all:hover {
  color: var(--color-navy);
  border-bottom-color: var(--color-navy);
}

/* ---- 共通バッジ・日付 ---- */
.news-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.25em 0.8em;
  border-radius: 2px;
}
.news-badge--report   { background: var(--color-blue);  color: #fff; }
.news-badge--comp     { background: var(--color-navy);  color: #fff; }
.news-badge--activity { background: rgba(10,30,61,0.1); color: var(--color-navy); }

.news-date {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
}

/* ---- フィーチャード記事（全幅） ---- */
.news-feat {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--color-navy);
  margin-bottom: 6px;
  cursor: pointer;
}

.news-feat__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.45;
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}
.news-feat:hover .news-feat__bg {
  opacity: 0.6;
  transform: scale(1.03);
}

/* 下から暗くなるグラデーション */
.news-feat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,30,61,0.98) 0%,
    rgba(10,30,61,0.5)  45%,
    transparent         80%
  );
  pointer-events: none;
}

.news-feat__body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 3rem;
  gap: 1rem;
}

.news-feat__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-feat__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.news-feat__excerpt {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 55ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feat__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue-light);
  text-decoration: none;
  transition: gap var(--dur-base) var(--ease-out-expo);
}
.news-feat__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.news-feat:hover .news-feat__link { gap: 0.85em; }
.news-feat:hover .news-feat__link svg { transform: translateX(4px); }

/* ---- サブカード（3列） ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.news-card {
  background: var(--color-off-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out-expo),
              box-shadow 0.45s;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(10,30,61,0.12);
}

.news-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-navy);
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out-expo);
}
.news-card:hover .news-card__img { transform: scale(1.06); }

/* 画像なしカード用プレースホルダー */
.news-card__img-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy-mid), var(--color-navy));
}
.news-card__placeholder-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.05em;
}

.news-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* カード内の日付は暗色 */
.news-card .news-date {
  color: var(--color-text-muted);
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.5;
  flex: 1;
}

.news-card__link {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.news-card:hover .news-card__link { color: var(--color-navy); }

/* モバイル */
@media (max-width: 768px) {
  .news-mag { padding: 3.5rem 1.25rem 4rem; }
  .news-feat { height: 300px; }
  .news-feat__body { padding: 1.5rem; }
  .news-feat__excerpt { display: none; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-mag__header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   14. Highlight Video Section
---------------------------------------------------------------- */
.hl-section {
  padding-top: 0;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hl-section__header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 0;
}

.hl-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(10,30,61,0.18);
}

.hl-main__vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hl-main__yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.hl-main__yt-link {
  position: absolute;
  inset: 0;
  display: none;
  text-decoration: none;
  color: #fff;
}

.hl-main__yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hl-main__yt-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.45);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.25s ease;
}

.hl-main__yt-link:hover .hl-main__yt-cta {
  background: rgba(0,0,0,0.6);
}

.hl-main__sound {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-out-expo);
}
.hl-main__sound:hover { background: rgba(0,0,0,0.8); transform: scale(1.08); }
.hl-main__sound svg { width: 20px; height: 20px; }
.hl-main__sound .hidden { display: none; }

.hl-main__label {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hl-main__label-tag {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-blue-light);
  text-transform: uppercase;
}

.hl-main__label-title {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

/* PC: 左右余白付きコンテンツラッパー */
.hl-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}
@media (max-width: 768px) {
  .hl-content { padding: 0; }
}

.hl-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--color-navy);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(10,30,61,0.18);
}

.hl-thumb {
  background: rgba(255,255,255,0.04);
  border: none;
  border-top: 2px solid transparent;
  cursor: pointer;
  padding: 1.4rem 1.5rem;
  text-align: left;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.hl-thumb:hover { background: rgba(255,255,255,0.08); }
.hl-thumb.active {
  background: rgba(0,119,182,0.22);
  border-top-color: var(--color-blue);
}

.hl-thumb__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hl-thumb__num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
}
.hl-thumb.active .hl-thumb__num { color: var(--color-blue-light); }

.hl-thumb__title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}
.hl-thumb.active .hl-thumb__title { color: rgba(255,255,255,0.9); }

.hl-thumb__play {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.3);
  margin-top: 0.35rem;
}
.hl-thumb.active .hl-thumb__play { color: var(--color-blue-light); }

.hl-thumb--soon {
  opacity: 0.3;
  cursor: not-allowed;
}
.hl-thumb--soon:hover { background: rgba(255,255,255,0.04); }

.hl-soon-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .hl-thumbs {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hl-thumb {
    padding: 0.9rem 1.1rem;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid transparent;
  }
  .hl-thumb:last-child { border-bottom: none; }
  .hl-thumb.active {
    background: rgba(255,255,255,0.04);
    border-left-color: var(--color-blue-light);
  }
  .hl-thumb__inner {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }
  .hl-thumb__num {
    font-size: 0.6rem;
    flex-shrink: 0;
  }
  .hl-thumb__title {
    font-size: 0.72rem;
    line-height: 1.35;
    flex: 1;
  }
  .hl-thumb__play {
    width: 13px;
    height: 13px;
    margin-top: 0;
    flex-shrink: 0;
  }
  .hl-section__header { padding: 3.5rem 1.25rem 1.5rem; }
}

/* ----------------------------------------------------------------
   15. Contact — 紺背景 アスリート
---------------------------------------------------------------- */
.contact {
  background: var(--color-navy);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
  position: relative;
}

.contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: relative;
  z-index: 1;
}

.contact__header {
  margin-bottom: 3rem;
}

/* Instagram フィード */
.insta-feed {
  margin: 3rem 0;
}

.insta-feed__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.insta-feed__icon {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.insta-feed__handle {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.insta-feed__handle:hover { color: rgba(255,255,255,0.9); }

/* --- グリッド本体 --- */
.insta-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.insta-cell {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.insta-cell__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.insta-cell__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.1) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.85rem 1rem;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.insta-cell:hover .insta-cell__img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.insta-cell:hover .insta-cell__overlay {
  opacity: 1;
}

@media (max-width: 600px) {
  .insta-feed__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }
}

.contact__sns {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding-top: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.contact__sns-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out-expo), opacity var(--dur-base);
}
.contact__sns-item:hover { transform: translateY(-4px); opacity: 0.8; }

.contact__sns-icon {
  width: 36px;
  height: 36px;
  color: white;
}
.contact__sns-icon svg { width: 100%; height: 100%; }

.contact__sns-name {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--color-navy);
  border-radius: 100px;
  padding: 1em 2.8em;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo);
}
.contact__mail svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact__mail:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255,255,255,0.18);
}

@media (max-width: 600px) {
  .contact__sns { gap: 2rem; }
  .contact__sns-icon { width: 40px; height: 40px; }
}

/* ----------------------------------------------------------------
   18. Footer — 紺背景
---------------------------------------------------------------- */
.footer {
  background: var(--color-navy);
  padding: var(--space-lg);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.footer__logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--color-white);
  padding: 2px;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer__insta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--dur-fast);
  flex-shrink: 0;
}

.footer__insta svg { width: 100%; height: 100%; }
.footer__insta:hover { color: var(--color-white); }

.footer__copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   19. Scroll Reveal Animations
---------------------------------------------------------------- */
.reveal-up,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: var(--delay, 0s);
}

.reveal-up    { transform: translateY(45px); }
.reveal-right { transform: translateX(55px); }
.reveal-scale { transform: scale(0.95); }

.reveal-up.in-view,
.reveal-right.in-view,
.reveal-scale.in-view {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
   20. Mobile Responsive
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --space-xl: 5rem; --space-2xl: 8rem; }

  .nav { padding: 0 2rem; }
  .nav__links { gap: 1.25rem; }

  .story__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .stats__grid  { grid-template-columns: repeat(4, 1fr); }
  .news__grid   { grid-template-columns: repeat(2, 1fr); }

  .photo-lead__track { height: 480vh; }
  .photo-lead__grid  { grid-template-columns: 1fr 1fr; height: 60vh; }
}

@media (max-width: 768px) {
  :root { --space-lg: 1.5rem; --space-xl: 4rem; --space-2xl: 6rem; }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-out-expo);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link       { font-size: 1.1rem; color: var(--color-navy) !important; }
  .nav__hamburger  { display: flex; }

  .nav__hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--color-navy); }
  .nav__hamburger.active span:nth-child(2) { opacity: 0; }
  .nav__hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--color-navy); }

  /* メニュー展開中は白背景になるため Instagram アイコンも紺色に */
  .nav__links.open ~ .nav__insta { color: var(--color-navy); }

  .nav__insta { width: 21px; height: 21px; }

  .hero__name { font-size: clamp(4rem, 22vw, 8rem); }
  .hero-bg__video { object-position: 30% center; }

  /* スクロールインジケーター: モバイルでは中央下に */
  .hero__scroll-indicator {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 2rem));
    flex-direction: column;
    gap: 0.4rem;
  }
  .hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.75), transparent);
    animation: scrollLine 2s ease-in-out infinite;
  }

  /* ナビ: モバイルでパディングを少し広げて見切れを防止 */
  .nav { padding: 0 1.25rem; }
  .nav__logo-text { font-size: 1.15rem; letter-spacing: 0.15em; }
  .nav__hamburger { padding: 8px 10px; }

  /* 音量ボタン: タップしやすいサイズ・位置 */
  .hero__controls {
    bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
    right:  max(1.25rem, calc(env(safe-area-inset-right) + 0.75rem));
  }
  .hero__sound-btn { width: 42px; height: 42px; }

  /* photo-lead: モバイルはstickyシアターでヒーローに重ねて1枚ずつ表示 */
  .photo-lead {
    margin-top: -90vh; /* ヒーローと重なる位置から開始 */
  }
  .photo-lead__track  { height: 340vh; }
  .photo-lead__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    padding: 68px 1rem 1.5rem; /* nav分の余白 + 下余白 */
    display: flex;
    flex-direction: column;
  }
  .photo-lead__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 62% 36%;
    gap: 6px;
    flex: 1;
    overflow: hidden;
  }
  .photo-lead__item {
    position: relative;
    inset: unset;
    transform: translateY(36px);
    min-height: 0;
  }
  /* モバイルでは revealed も in-view も同じ効果（どちらも使える） */
  .photo-lead__item.revealed,
  .photo-lead__item.in-view { opacity: 1; transform: none; }
  .photo-lead__item--main {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .photo-lead__item--sm:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .photo-lead__item--sm:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

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

  .footer__inner { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .footer__right { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 480px) {
  .hero__name { font-size: clamp(3.5rem, 25vw, 6rem); }
  /* gallery は 768px breakpoint で 1列にしているのでここでは上書き不要 */
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { padding: 1.2rem 0.25rem; }
  .medal-card { padding: 1rem 0.75rem 0.75rem; }
  .medal-card__count { font-size: clamp(1.8rem, 7vw, 2.5rem); }
}

/* ================================================================
   NEW SECTION STYLES — ABOUT / ATHLETE / LIFESAVING / PROJECTS /
   MEDIA / PARTNERS / CONTACT updates
================================================================ */

/* on-dark direct modifiers (used when class is on the element itself) */
.section-eyebrow.on-dark { color: var(--color-blue-light); }
.section-title.on-dark   { color: var(--color-white); }

/* ----------------------------------------------------------------
   ABOUT — 経歴 (Career Timeline)
---------------------------------------------------------------- */
/* (old career theater replaced by .story-theater above) */

/* Phase tab navigation */
.career-phase-nav {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.25rem;
}

.career-phase-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem 0.75rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: border-color var(--dur-base), color var(--dur-base);
}

.career-phase-btn__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: rgba(10,30,61,0.25);
  letter-spacing: 0.05em;
  transition: color var(--dur-base);
}

.career-phase-btn__label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(10,30,61,0.3);
  transition: color var(--dur-base);
}

.career-phase-btn.active {
  border-bottom-color: var(--color-blue);
}
.career-phase-btn.active .career-phase-btn__num  { color: var(--color-navy); }
.career-phase-btn.active .career-phase-btn__label { color: var(--color-blue); }

/* placeholder text (shared) */
.career-portrait-placeholder__text {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(10,30,61,0.15);
  text-align: center;
  line-height: 2.4;
}

/* ---- Category labels ---- */
.career-cat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.career-cat__badge {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-blue);
  padding: 0.35em 0.9em;
  border-radius: 2px;
}

.career-cat__badge--cons {
  background: var(--color-navy-mid);
}

.career-cat__note {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.career-cat__note em {
  font-style: normal;
  color: rgba(10,30,61,0.35);
  font-size: 0.65rem;
}

/* ---- Consultant timeline: slightly muted ---- */
.career-timeline--cons .career-year { color: var(--color-text-muted); }
.career-timeline--cons .career-item::before {
  background: var(--color-text-muted);
  box-shadow: 0 0 0 1px var(--color-text-muted);
}

.career-item--now .career-year {
  color: var(--color-blue);
}

.career-item--now::before {
  background: var(--color-blue);
  box-shadow: 0 0 0 1px var(--color-blue), 0 0 8px rgba(0,119,182,0.4);
  animation: nowPulse 2s ease-in-out infinite;
}

@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--color-blue), 0 0 0 rgba(0,119,182,0.4); }
  50%       { box-shadow: 0 0 0 1px var(--color-blue), 0 0 12px rgba(0,119,182,0.5); }
}

/* ---- Shared timeline base ---- */
.career-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.career-timeline {
  list-style: none;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0;
}

.career-timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.career-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.4rem 1.25rem;
  padding-bottom: 1.1rem;
  position: relative;
  transition-delay: var(--delay, 0s);
}

.career-item::before {
  content: '';
  position: absolute;
  /* Items are offset by padding-left:2.5rem from the timeline.
     Dot center should align with the line at left:3px from timeline.
     Dot left = 3px(line) - 4px(half-dot) - 2.5rem(padding) */
  left: calc(3px - 4px - 2.5rem);
  top: 0.38rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 1px var(--color-blue);
}

.career-item--gold::before {
  background: #d4a800;
  box-shadow: 0 0 0 1px #d4a800, 0 0 10px rgba(255,215,0,0.45);
}

.career-year {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-blue);
  line-height: 1.1;
  padding-top: 0.05rem;
}

.career-item--gold .career-year { color: #b8860b; }

.career-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
}

.career-body strong + strong {
  margin-top: 0.45rem;
}

.career-body p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.career-body__sub {
  font-size: 0.75em;
  font-weight: 400;
  color: rgba(10,30,61,0.45);
  letter-spacing: 0.01em;
}

/* (career responsive は .career-theater__sticky @media(max-width:900px) で管理) */

/* ----------------------------------------------------------------
   ABOUT — 世界観 (Philosophy)
---------------------------------------------------------------- */
.story__philosophy {
  background: var(--color-navy);
  padding: 6rem max(2.5rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}

.philosophy-inner { max-width: 800px; }

.philosophy-quote { margin-bottom: 2rem; }

.philosophy-quote__text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.philosophy-quote__author {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-blue-light);
  margin-top: 1.5rem;
  font-style: normal;
}

.philosophy-body {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.5);
  max-width: 60ch;
}

/* ----------------------------------------------------------------
   ATHLETE section
---------------------------------------------------------------- */
.athlete-section {
  background: var(--color-navy);
  overflow: hidden;
}

/* ---- 戦績ヒーロー ---- */
.athlete-bg-hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.athlete-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 左半分を暗く + 下部でネイビーに溶け込む */
.athlete-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(10,30,61,0.90) 0%,
      rgba(10,30,61,0.75) 38%,
      rgba(10,30,61,0.30) 62%,
      transparent 85%
    ),
    linear-gradient(
      to bottom,
      transparent 40%,
      rgba(10,30,61,0.60) 72%,
      rgb(10,30,61) 100%
    );
  z-index: 1;
}

/* 統計テキスト */
.athlete-hero-stats {
  position: relative;
  z-index: 2;
  padding: 4rem max(3rem, calc((100vw - var(--max-width)) / 2 + 3rem));
  padding-right: max(3rem, calc((100vw - var(--max-width)) / 2 + 3rem));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.athlete-hero-stats .section-eyebrow {
  margin-bottom: 0.75rem;
}

/* ── 競技実績 ────────────────────────────────── */
.achievement-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 530px;
  max-width: 100%;
  transition-delay: var(--delay, 0s);
}

.achievement-cat__title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-blue-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.achievement-event {
  margin-bottom: 0.75rem;
}

.achievement-event__name {
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* 年代 + 行のラッパー */
.achievement-row-wrap {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}

/* 年代ラベル（種目の上） */
.achievement-row-wrap > .achievement-row__years {
  text-align: right;
  padding-left: calc(2.4em + 0.45rem);
  font-size: 0.62rem;
  font-weight: 500;
  color: #c8a84b;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.15rem;
}

/* 各行: 種目 ····· 結果 */
.achievement-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0 0.4rem;
  width: 100%;
}

.achievement-row__event {
  font-size: 1rem;
  color: #fff;
  flex-shrink: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.achievement-row__icon {
  width: 2.4em;
  height: 2.4em;
  object-fit: contain;
  object-position: center center;
  border-radius: 50%;
  opacity: 0.95;
  flex-shrink: 0;
}

.achievement-row__dots {
  flex: 1;
  min-width: 0.5rem;
  align-self: center;
  height: 0.6em;
  background-image: url("../assets/images/dots-separator.svg");
  background-repeat: repeat-x;
  background-position: center left;
  background-size: auto 55%;
}

/* 結果（右端） */
.achievement-row__result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.achievement-row__result-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* standalone years（旧構造との後方互換）*/
.achievement-row__years {
  font-size: 0.62rem;
  font-weight: 500;
  color: #c8a84b;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* スマホ: 長い種目名の折り返し対応 */
@media (max-width: 480px) {
  .achievement-row__event {
    font-size: 0.88rem;
    flex-wrap: wrap;
  }
  .achievement-row__result-label {
    font-size: 1rem;
  }
  .achievement-row-wrap > .achievement-row__years {
    padding-left: calc(2.4em + 0.4rem);
  }

}


/* ---- 共通ヘッダー ---- */
.athlete-block__header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem)) 2rem;
}

.athlete-block--video { padding: 4rem 0 5rem; }

.athlete-block--what { border-top: 1px solid rgba(255,255,255,0.06); }

/* ライフセービングスポーツとは */
.what-ls {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.what-ls__body {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.5);
  margin: 1.5rem 0 2rem;
}

.what-ls__events {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.what-ls__events li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  line-height: 1.6;
}

.what-ls__event-label {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-blue-light);
  min-width: 6rem;
  flex-shrink: 0;
}

.what-ls__visual {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.what-ls__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .what-ls {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem));
  }

  /* モバイル: コンパクト */
  .athlete-bg-hero { min-height: auto; }

  .athlete-hero-img { object-position: 75% center; }

  .athlete-hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(5,15,40,0.85) 0%,
      rgba(5,15,40,0.60) 55%,
      rgba(5,15,40,0.85) 100%
    );
  }

  .athlete-hero-stats {
    padding: 3.5rem 1.5rem;
    padding-right: 1.5rem;
    gap: 2rem;
    width: 100%;
  }

  .achievement-categories {
    grid-template-columns: 1fr;
    gap: 1.75rem 0;
    width: 100%;
  }
}

/* ----------------------------------------------------------------
   LIFESAVING section
---------------------------------------------------------------- */
.lifesaving-section {
  background: var(--color-off-white);
  padding-bottom: 5rem;
  overflow: hidden;
}

.lifesaving-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem)) 3.5rem;
}

.lifesaving-lead {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-top: 1rem;
}

/* ---- 3カラムグリッド: ラベル行 + 3×3 正方形写真 ---- */
.ls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}

/* ラベルセル */
.ls-label {
  padding: 2rem 1.75rem 1.75rem;
  background: var(--color-white);
}

.lifesaving-cat__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: rgba(10,30,61,0.1);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.lifesaving-cat__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.lifesaving-cat__desc {
  font-size: 0.78rem;
  line-height: 1.85;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .lifesaving-cat__desc { display: none; }
}

/* ギャラリー写真スライドショー — 1枚の写真が3秒ごとにクロスフェード */
.ls-slideshow {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}

.ls-slideshow__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1e3d;
  box-shadow: 0 30px 60px -25px rgba(10, 30, 61, 0.35);
}

.ls-slideshow__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.ls-slideshow__slide.is-active {
  z-index: 2;
  opacity: 1;
}

.ls-slideshow__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 4.5s linear;
}

.ls-slideshow__slide.is-active .ls-slideshow__img {
  transform: scale(1.08);
}

/* 下端を軽く暗くして枚数カウンターを読みやすく */
.ls-slideshow__vignette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(5, 15, 40, 0.55), transparent);
  pointer-events: none;
  z-index: 3;
}

.ls-slideshow__count {
  position: absolute;
  left: 1.75rem;
  bottom: 1.5rem;
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
  pointer-events: none;
}

.ls-slideshow__count-current {
  font-size: 1.3rem;
  font-weight: 700;
}

.ls-slideshow__count-sep,
.ls-slideshow__count-total {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* インジケーター（ストーリー風プログレスバー） */
.ls-slideshow__bars {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.ls-slideshow__bar {
  position: relative;
  flex: 1;
  height: 8px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* トラック */
.ls-slideshow__bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2.5px;
  border-radius: 100px;
  background: rgba(10, 30, 61, 0.12);
  transform: translateY(-50%);
  transition: height 0.25s var(--ease-out-expo), background 0.25s ease;
}

/* 塗り */
.ls-slideshow__bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 2.5px;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-navy));
  transform: translateY(-50%);
  z-index: 1;
  transition: height 0.25s var(--ease-out-expo);
}

.ls-slideshow__bar:hover::after,
.ls-slideshow__bar:hover::before {
  height: 4px;
}

.ls-slideshow__bar.is-done::before {
  width: 100%;
}

.ls-slideshow__bar.is-active::before {
  width: 0%;
  animation: ls-bar-fill 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ls-slideshow__bar.is-active::after {
  background: rgba(10, 30, 61, 0.2);
}

@keyframes ls-bar-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ls-slideshow__img { transition: none; }
  .ls-slideshow__bar.is-active::before { animation: none; width: 100%; }
}

/* ----------------------------------------------------------------
   PROJECTS section
---------------------------------------------------------------- */
.projects-section {
  background: var(--color-white);
  padding: 6rem 0;
  overflow: hidden;
}

.projects-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}

.projects-header { margin-bottom: 3.5rem; }

/* ---- プロジェクト縦リスト ---- */
.proj-v-list {
  margin-top: 2rem;
}

.proj-v-item {
  display: grid;
  grid-template-columns: 1fr 1.5rem;
  gap: 0 1.5rem;
  align-items: start;
  padding: 1.3rem 0;
  border-top: 1px solid var(--color-border);
  text-decoration: none;
}

.proj-v-item__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}

.proj-v-item__icon {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 2.6rem;
}

.proj-v-item__icon--rounded-sq {
  border-radius: 22%;
}

@media (max-width: 768px) {
  .proj-v-item__icon {
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
  }
}

.proj-v-list .proj-v-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.proj-v-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}


.proj-v-item__title {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.proj-v-item__desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 0.15rem;
  max-width: 48rem;
}

/* 所属・実施主体の注記（薄字） */
.proj-v-item__affil {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---- Other Project: クリックで展開 ---- */
.proj-v-item--photo {
  display: block;
}

.proj-v-item__toggle {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 0 1.5rem;
  cursor: pointer;
}

.proj-v-item__chevron {
  width: 18px;
  height: 18px;
  color: rgba(10, 30, 61, 0.35);
  align-self: center;
  transition: transform 0.3s var(--ease-out-expo);
}

.proj-v-item__toggle[aria-expanded="true"] .proj-v-item__chevron {
  transform: rotate(180deg);
}

/* 0fr→1fr で高さをアニメーションさせる展開パネル */
.proj-other-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out-expo);
}

.proj-other-panel-wrap.is-open { grid-template-rows: 1fr; }

.proj-other-panel-inner { overflow: hidden; }

.proj-other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding-top: 1.25rem;
}

.proj-other-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  background: #dde4ed;
}

.proj-other-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.proj-other-card:hover .proj-other-card__img { transform: scale(1.05); }

.proj-other-card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.6rem 0.55rem;
  background: linear-gradient(to top, rgba(10,30,61,0.85), transparent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .proj-v-item__toggle { grid-template-columns: 1fr 16px; gap: 0 1rem; }
  .proj-other-grid { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .proj-other-card__label { padding: 0.35rem 0.35rem 0.4rem; font-size: 0.52rem; line-height: 1.25; }
}

.proj-v-item__arrow {
  width: 18px;
  height: 18px;
  color: rgba(10,30,61,0.2);
  margin-top: 0.6rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .proj-v-item {
    grid-template-columns: 1fr 1.2rem;
    gap: 0 1rem;
    padding: 1rem 0;
  }
}

/* ---- Featured カード ---- */
.project-card--featured {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 38vw, 360px);
  margin-bottom: 3px;
}

.project-card__bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 65%;
  transition: transform 0.6s var(--ease-out-expo);
}

.project-card--featured:hover .project-card__bg-img { transform: scale(1.04); }

.project-card__featured-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,30,61,0.92) 0%, rgba(10,30,61,0.70) 42%, rgba(10,30,61,0.20) 72%, transparent 100%),
    linear-gradient(to top, rgba(10,30,61,0.60) 0%, transparent 50%);
}

.project-card__featured-content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 3rem;
  max-width: 54%;
}

/* ---- 横スクロール行ラッパー ---- */
.projects-row-wrap {
  position: relative;
}


/* スクロールナビボタン */
.projects-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 10px)); /* プログレスバー分を上にオフセット */
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(10,30,61,0.28);
}

.projects-scroll-btn:hover {
  background: var(--color-blue);
  transform: translateY(calc(-50% - 10px)) scale(1.08);
}

.projects-scroll-btn--prev { left: -20px; }
.projects-scroll-btn--next { right: -20px; }

.projects-scroll-btn.is-hidden { opacity: 0; pointer-events: none; }

.projects-scroll-btn svg { width: 18px; height: 18px; }

/* ---- スクロールプログレスバー ---- */
.projects-scroll-track {
  position: relative;
  height: 3px;
  background: rgba(10,30,61,0.12);
  border-radius: 2px;
  margin-top: 14px;
  cursor: pointer;
  user-select: none;
}

.projects-scroll-thumb {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--color-navy);
  border-radius: 2px;
  cursor: grab;
  transition: background 0.2s;
  min-width: 24px;
}

.projects-scroll-thumb:hover { background: var(--color-blue); }
.projects-scroll-thumb.is-dragging {
  cursor: grabbing;
  background: var(--color-blue);
}

/* ---- 横スクロール行 ---- */
.projects-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-scroll-row::-webkit-scrollbar { display: none; }

.project-card__featured-desc--short { display: none; }

@media (max-width: 768px) {
  .projects-scroll-btn { display: none; }
  .projects-scroll-fade-right { width: 48px; }
  .project-card--featured { height: clamp(180px, 52vw, 260px); }
  .project-card__featured-logo { display: none; }
  .project-card__featured-content { max-width: 100%; padding: 1.2rem 1.4rem; }
  .project-card__featured-title { font-size: 1.05rem; margin-bottom: 0.3rem; }
  .project-card__featured-desc { font-size: 0.72rem; line-height: 1.55; margin-bottom: 0.75rem; }
  .project-card__featured-desc--full { display: none; }
  .project-card__featured-desc--short { display: block; }
}

/* ---- 縦長カード (スクロール行内) — Netflix スタイル ---- */
.project-card {
  flex: 0 0 175px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #172d4a;
  overflow: hidden;
}

/* サムネイル領域 */
.project-card__thumb {
  position: relative;
  flex: 0 0 195px;
  overflow: hidden;
}

.project-card--img .project-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out-expo);
}

.project-card--img:hover .project-card__img { transform: scale(1.06); }

/* ⓘ クリック時の詳細オーバーレイ (サムネイル上のみ) */
.project-card__overlay {
  position: absolute; inset: 0;
  background: rgba(10,25,45,0.90);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 0.85rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.project-card--img.is-active .project-card__overlay { opacity: 1; }

.project-card__desc {
  font-size: 0.70rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  text-align: center;
}

/* メタ情報エリア (タイトル + アクション) */
.project-card__meta {
  flex: 1;
  background: #172d4a;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.8rem 0;
}

.project-card__meta-text { flex: 1; }

.project-card__cat {
  font-family: var(--font-heading);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  display: block;
  margin-bottom: 0.25rem;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* アクションバー — 2分割 */
.project-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-top: 0.45rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.project-card__info-btn,
.project-card__link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0;
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.project-card__info-btn:hover,
.project-card__link-btn:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.project-card__link-btn {
  border-left: 1px solid rgba(255,255,255,0.07);
}

.project-card--img.is-active .project-card__info-btn {
  color: var(--color-white);
  background: rgba(255,255,255,0.12);
}

.project-card__info-btn svg,
.project-card__link-btn svg { width: 16px; height: 16px; }

/* featured カード — ロゴ */
.project-card__featured-logo {
  width: clamp(120px, 22vw, 190px);
  height: auto;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.50));
}

.project-card__featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.project-card__featured-desc {
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.70);
  max-width: 44ch;
  margin-bottom: 1rem;
}

/* featured カード — 詳細ボタン */
.project-card__detail-btn {
  display: inline-block;
  padding: 0.42rem 1.1rem;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  transition: opacity 0.2s;
}

.project-card__detail-btn:hover { opacity: 0.82; }

@media (max-width: 540px) {
  .project-card--featured { height: clamp(200px, 52vw, 280px); }
  .project-card { flex: 0 0 155px; }
  .project-card__thumb { flex: 0 0 170px; }
  .project-card__featured-content { max-width: 100%; padding: 1.5rem; }
}

/* ----------------------------------------------------------------
   MEDIA section
---------------------------------------------------------------- */
.media-section {
  background: var(--color-navy);
  padding: 6rem 0;
  overflow: hidden;
}

.media-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}

.media-header { margin-bottom: 4rem; }

/* ---- 左右交互タイムライン ---- */
.media-timeline {
  position: relative;
  margin-bottom: 3.5rem;
}

/* 中央縦ライン */
.media-timeline__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.media-tl-item {
  display: grid;
  grid-template-columns: 1fr 2.5rem 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}

/* ドット */
.media-tl-item__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-blue-light);
  border: 2px solid var(--color-navy);
  align-self: 1.4rem;
  margin: 1.4rem auto 0;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.media-tl-item:hover .media-tl-item__dot {
  transform: scale(1.6);
  background: var(--color-white);
}

/* 年ラベル */
.media-tl-item__year {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.10);
  line-height: 1;
  display: block;
  min-height: 0;
  align-self: center;
}

/* 左アイテム: カード | ドット | 年 */
.media-tl-item--left .media-tl-card  { grid-column: 1; }
.media-tl-item--left .media-tl-item__dot { grid-column: 2; }
.media-tl-item--left .media-tl-item__year { grid-column: 3; padding-left: 1rem; }

/* 右アイテム: 年 | ドット | カード */
.media-tl-item--right .media-tl-item__year { grid-column: 1; text-align: right; padding-right: 1rem; }
.media-tl-item--right .media-tl-item__dot  { grid-column: 2; }
.media-tl-item--right .media-tl-card { grid-column: 3; }

/* カード — 横長 (画像左・テキスト右) */
.media-tl-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  transition: background 0.22s, transform 0.28s var(--ease-out-expo);
}

.media-tl-item--left .media-tl-card  { margin-right: 1rem; }
.media-tl-item--right .media-tl-card { margin-left: 1rem; }

.media-tl-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}

.media-tl-card__img-wrap {
  flex: 0 0 180px;
  overflow: hidden;
  min-height: 130px;
}

.media-tl-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.media-tl-card:hover .media-tl-card__img { transform: scale(1.05); }

.media-tl-card__body {
  flex: 1;
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.media-tl-card__outlet {
  font-family: var(--font-heading);
  font-size: 0.50rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blue-light);
  display: block;
}

.media-tl-card__title {
  font-family: var(--font-heading);
  font-size: 0.80rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-tl-card__date {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.06em;
  display: block;
}

/* スマホ: 1列に / カードは縦積み */
@media (max-width: 680px) {
  .media-timeline__line { left: 14px; }

  .media-tl-item,
  .media-tl-item--left,
  .media-tl-item--right {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto;
  }

  .media-tl-item,
  .media-tl-item--left,
  .media-tl-item--right { row-gap: 0.75rem; }

  .media-tl-item--left .media-tl-item__year,
  .media-tl-item--right .media-tl-item__year {
    grid-column: 2; grid-row: 1;
    padding: 0 0 0 0.75rem;
    align-self: end;
    text-align: left;
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    color: rgba(255,255,255,0.12);
    line-height: 1;
  }

  .media-tl-item--left .media-tl-item__dot,
  .media-tl-item--right .media-tl-item__dot  { grid-column: 1; grid-row: 2; margin-top: 0.5rem; }

  .media-tl-item--left .media-tl-card,
  .media-tl-item--right .media-tl-card  { grid-column: 2; grid-row: 2; margin: 0 0 0 0.75rem; }

  .media-tl-card__img-wrap {
    flex: 0 0 100px;
    min-height: 90px;
  }
}

/* ---- 左軸タイムライン ---- */
.media-axis-list {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 3.5rem;
}

.media-axis-list__line {
  position: absolute;
  left: 0.7rem;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}

.media-axis-group {
  margin-bottom: 2.2rem;
  position: relative;
}

.media-axis-group--hidden { display: none; }

.media-axis-year-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
  position: relative;
}

.media-axis-year-row::before {
  content: '';
  position: absolute;
  left: calc(-3.5rem + 0.7rem - 4px);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.45);
  z-index: 1;
}

.media-axis-year {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.2);
  line-height: 1;
}

.media-axis-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.media-axis-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.055);
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.media-axis-card:hover {
  background: rgba(255,255,255,0.065);
}

/* 外部リンクアイコン */
.media-axis-card__ext {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0.3rem;
  flex-shrink: 0;
  color: rgba(255,255,255,0.25);
  transition: color 0.15s;
}

.media-axis-card__ext svg {
  width: 11px;
  height: 11px;
  display: block;
}

.media-axis-card__ext:hover {
  color: rgba(255,255,255,0.75);
}

.media-axis-card__month {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.media-axis-card__text {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  line-height: 1.4;
}

/* モバイル */
@media (max-width: 520px) {
  .media-axis-list { padding-left: 2.2rem; }
  .media-axis-list__line { left: 0.45rem; }
  .media-axis-year-row::before { left: calc(-2.2rem + 0.45rem - 4px); }
  .media-axis-year { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .media-axis-group { margin-bottom: 1.6rem; }
  .media-axis-card { padding: 0.5rem 0.7rem; gap: 0.5rem; }
  .media-axis-card__month { font-size: 0.56rem; }
  .media-axis-card__text { font-size: 0.76rem; }
  .media-axis-card__ext svg { width: 10px; height: 10px; }
}

/* ---- もっと見る ---- */
.media-more-wrap {
  text-align: center;
  padding: 0.5rem 0 2.5rem;
}

.media-more-btn {
  display: block;
  margin: 1.5rem auto 0;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 0.8rem 3.5rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.media-more-btn:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
}

.media-more-btn[hidden] { display: none; }

.media-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 2.5rem;
}

.media-note__link {
  color: var(--color-blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--dur-fast);
}

.media-note__link:hover { opacity: 0.75; }


/* ----------------------------------------------------------------
   PARTNERS section
---------------------------------------------------------------- */
.partners-section {
  background: var(--color-off-white);
  padding: 6rem 0;
  overflow: hidden;
}

.partners-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}

.partners-header { margin-bottom: 3.5rem; }

.partners-group { margin-bottom: 4rem; }

.partners-group__title {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.affil-logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.affil-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.affil-logo-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.affil-logo-img {
  height: 56px;
  width: 120px;
  object-fit: contain;
}

.affil-logo-img--wide {
  width: 160px;
}

.affil-logo-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--color-navy);
  text-transform: uppercase;
  text-align: center;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 2rem;
}

.sponsor-slot {
  aspect-ratio: 3/2;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-slot--soon {
  border: 1.5px dashed rgba(10,30,61,0.14);
  background: transparent;
}

.sponsor-slot--soon span {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(10,30,61,0.18);
  text-transform: uppercase;
}

.partners-cta { display: inline-flex; font-size: 0.75rem; }

@media (max-width: 768px) {
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
  .affil-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .affil-logo-img,
  .affil-logo-img--wide { height: 60px; width: 120px; }
}

/* ----------------------------------------------------------------
   CONTACT — 3タイプカード updates
---------------------------------------------------------------- */
.contact__subtitle {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

/* お問い合わせリスト */
.contact-list {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-list-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5rem;
  align-items: center;
  gap: 0 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: padding-left 0.35s var(--ease-out-expo);
}

.contact-list-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.035);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out-expo);
}

.contact-list-item:hover::before { transform: scaleX(1); }
.contact-list-item:hover { padding-left: 1.2rem; }

.contact-list-item__type {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.01em;
  position: relative;
}

.contact-list-item__desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
  position: relative;
}

.contact-list-item__arrow {
  width: 18px; height: 18px;
  color: rgba(255,255,255,0.2);
  position: relative;
  transition: color 0.3s, transform 0.35s var(--ease-out-expo);
}

.contact-list-item__arrow svg { width: 100%; height: 100%; }
.contact-list-item:hover .contact-list-item__arrow { color: var(--color-white); transform: translateX(4px); }

@media (max-width: 768px) {
  .contact__inner { gap: 0; }
  .contact-list-item { grid-template-columns: 1fr 1.5rem; gap: 0 0.75rem; padding: 0.85rem 0; }
  .contact-list-item__desc { display: none; }
  .career-item { grid-template-columns: 4rem 1fr; gap: 0.4rem 1rem; }
  .story__philosophy { padding: 4.5rem 1.5rem; }
  .lifesaving-header { padding: 3rem 1.5rem 2rem; }
  .ls-grid { padding: 0 1.5rem; }
  .ls-label { padding: 1.5rem 1rem 1.25rem; }
  /* モバイル: スライドショーは縦横比を少し高めにして写真の見え方を確保 */
  .ls-slideshow { padding: 0 1.5rem; }
  .ls-slideshow__frame { aspect-ratio: 4 / 3; }
  .ls-slideshow__count-current { font-size: 1.1rem; }
  .projects-inner { padding: 0 1.5rem; }
  .media-inner { padding: 0 1.5rem; }
  .partners-inner { padding: 0 1.5rem; }
  .contact__inner { padding: 0 1.5rem; }
  .affil-logo-img,
  .affil-logo-img--wide { height: 52px; width: 104px; }

  /* セクション上下余白 SP 削減 */
  .career-section   { padding: 3rem 0 3.5rem; }
  .projects-section { padding: 3.5rem 0 4rem; }
  .media-section    { padding: 3.5rem 0 4rem; }
  .partners-section { padding: 3.5rem 0 4rem; }
  .contact          { padding: 2rem 0 2.5rem; }
  .lifesaving-section { padding-bottom: 3rem; }
  .athlete-block--video { padding: 2.5rem 0 3rem; }
}
