/* Shared shell: reset, type, buttons, header, mobile menu, glass tab bar, footer. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cloud); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.8; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display-ja); font-weight: 900; line-height: 1.25; letter-spacing: .02em; margin: 0; text-wrap: balance; }
html[lang=en] h1, html[lang=en] h2, html[lang=en] h3 { font-family: var(--font-display-en); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 18px; border-radius: var(--radius-button); background: var(--navy); color: var(--white); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display-en); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--mist); }

/* Buttons: always pills. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border: 1.5px solid transparent; border-radius: var(--radius-button); font: 700 15px/1.2 var(--font-body); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sunrise); color: var(--ink); }
.btn-primary:hover { background: #ff7f47; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background-color .35s, box-shadow .35s, color .35s; color: var(--navy); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--cloud) 86%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.site-header.header-on-dark:not(.is-scrolled) { color: var(--white); }
.site-header.is-scrolled.over-dark { background: color-mix(in srgb, var(--navy-deep) 72%, transparent); box-shadow: 0 1px 0 #ffffff14; color: var(--white); }
.site-header.over-dark .brand-logo { --logo-accent: var(--sunrise); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { width: 132px; height: auto; aspect-ratio: 662 / 292; color: inherit; --logo-accent: var(--sky); }
.site-header.header-on-dark:not(.is-scrolled) .brand-logo, .site-header.menu-open .brand-logo { --logo-accent: var(--sunrise); }
.brand-ja { font-size: 11px; font-weight: 700; letter-spacing: .24em; opacity: .8; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.site-nav a { position: relative; font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: .06em; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.site-nav a:hover::after, .site-nav a[aria-current=page]::after { transform: scaleX(1); }
.site-nav .nav-contact { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { min-height: 40px; padding: 8px 16px; border: 1.5px solid currentColor; border-radius: var(--radius-button); background: transparent; color: inherit; font: 700 13px/1 var(--font-display-en); letter-spacing: .06em; cursor: pointer; }
.header-cta { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand-logo { width: 112px; }
  .brand-ja { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 48px; height: 48px; padding: 0; border: 1.5px solid currentColor; border-radius: var(--radius-button); background: transparent; color: inherit; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease-out); }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header.nav-ready .site-nav { display: none; }
  .site-header.menu-open { background: var(--navy-deep); color: var(--white); }
  .site-header.menu-open .site-nav { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 32px; background: var(--navy-deep); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .site-header.menu-open .site-nav a { padding: 18px 0; font-size: 20px; border-bottom: 1px solid #ffffff1f; }
  .site-header.menu-open .site-nav a::after { display: none; }
  .site-nav .nav-contact { display: block; color: var(--sunrise); }
  .site-header:not(.nav-ready) { height: auto; padding-block: 10px; }
  .site-header:not(.nav-ready) .header-inner { flex-wrap: wrap; }
  .site-header:not(.nav-ready) .site-nav { order: 3; width: 100%; flex-wrap: wrap; gap: 12px 20px; }
}

/* Liquid-glass bottom tab bar (phones only). */
.tab-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 92px; }
  .tab-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 90; height: 64px; padding: 6px; border-radius: 26px; background: linear-gradient(180deg, #ffffffb8, #ffffff80); backdrop-filter: blur(18px) saturate(1.8); -webkit-backdrop-filter: blur(18px) saturate(1.8); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #0b2a6b14, 0 10px 30px #061a4529; }
  .tab-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 20px; color: var(--navy); text-decoration: none; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
  .tab-bar svg { width: 22px; height: 22px; }
  .tab-bar a[aria-current=page] { background: #0b2a6b14; color: var(--sky); }
}

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); padding: clamp(64px, 9vw, 120px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-logo { width: 220px; aspect-ratio: 662 / 292; color: var(--white); --logo-accent: var(--sunrise); }
.footer-tag { margin-top: 18px; color: var(--mist); font-size: 14px; }
.footer-title { margin-bottom: 14px; font: 600 12px/1 var(--font-display-en); letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid #ffffff24; color: var(--mist); font-size: 12px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Inline logo: wordmark follows currentColor, the rising stroke follows --logo-accent. */
.brand-logo, .footer-logo { fill: currentColor; }
.logo-accent { fill: var(--logo-accent, #2563eb); }
.hero h1, .beat-title, h2 { word-break: keep-all; overflow-wrap: anywhere; }

/* Full-bleed athlete photo behind a dark section; the gradient keeps text on the left readable. */
.with-bg { position: relative; isolation: isolate; overflow: hidden; }
.with-bg > .section-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--bg-pos, 70% 30%); }
.with-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #061a45f7 0%, #061a45e0 50%, #061a4566 100%); }
/* Wide screens: the photo fills the right two-thirds and fades into navy behind the copy, so the athlete is never under the text. */
@media (min-width: 861px) {
  .with-bg > .section-bg { left: auto; right: 0; width: 66%; }
  .with-bg::before { background: linear-gradient(90deg, var(--navy-deep) 34%, #061a45b3 50%, #061a4526 75%, #061a4500 100%); }
}
