/* Shared masthead and homepage hero, composed around the official club assets. */
:root {
  --site-gutter: clamp(1.25rem, 5vw, 5rem);
  --masthead-height: 6rem;
}

.site-header {
  height: var(--masthead-height);
  padding-inline: var(--site-gutter);
  gap: 1.5rem;
  border-bottom-color: #383838;
}
.site-header .brand-lockup {
  gap: .25rem;
  margin-right: 0;
  min-height: 3.5rem;
}
.site-header .brand-lockup > .official-emblem { width: 3.5rem; height: auto; }
.site-header .brand-lockup > .official-logo { width: 12.5rem; max-width: none; height: auto; }
.site-header .nav { gap: clamp(.875rem, 1.5vw, 1.75rem); }
.site-header .nav > a:not(.join) {
  padding-block: .625rem;
  line-height: 1.15;
  font-size: 1.25rem;
  letter-spacing: .035em;
}
.site-header .nav > a small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .875rem;
  line-height: 1.5;
  color: #c5c5c5;
}
.site-header .nav > a[aria-current=page] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}
.site-header .nav > a.join {
  min-height: 3rem;
  padding: .875rem 1.125rem;
  font-size: .875rem;
  line-height: 1.5;
  white-space: nowrap;
}
.site-header .menu-toggle {
  align-items: center;
  justify-content: space-between;
  gap: .875rem;
  flex: none;
  min-height: 3rem;
  padding: .625rem .875rem;
  font-size: .875rem;
  line-height: 1.5;
  border-color: #737373;
}
.menu-icon { position: relative; display: block; width: 1.125rem; height: .75rem; }
.menu-icon::before, .menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .2s, top .2s;
}
.menu-icon::before { top: 1px; }
.menu-icon::after { top: 9px; }
[aria-expanded=true] .menu-icon::before { top: 5px; transform: rotate(45deg); }
[aria-expanded=true] .menu-icon::after { top: 5px; transform: rotate(-45deg); }

.hero--editorial {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 2.25rem 4%;
  padding: clamp(2.5rem, 4.5vw, 4.5rem) var(--site-gutter) 1.75rem;
  padding-inline: max(var(--site-gutter), calc((100% - 1440px) / 2));
}
.hero--editorial::after { height: 1px; background: #414141; }
.hero--editorial h1 {
  font-size: clamp(4.75rem, 10.2vw, 10rem);
  line-height: .88;
  letter-spacing: -.015em;
  margin: 1.625rem 0 1.5rem;
}
.hero--editorial .eyebrow {
  font-size: .875rem;
  letter-spacing: .075em;
  line-height: 1.5;
}
.hero--editorial .eyebrow::before { width: 1.5rem; flex: none; }
.hero--editorial .hero-jp {
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  line-height: 1.5;
  letter-spacing: .035em;
  margin: 0 0 1.5rem;
}
.hero--editorial .hero-description {
  max-width: 32em;
  font-size: 1rem;
  line-height: 1.95;
  line-break: strict;
  overflow-wrap: anywhere;
}
.hero-statement {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f5f5f2;
  margin-bottom: .5rem;
}
.hero-support { display: block; color: #c9c9c9; }
.hero--editorial .hero-frame {
  max-width: none;
  border: 0;
  padding: 0;
}
.hero--editorial .hero-photo { height: auto; aspect-ratio: 1162 / 797; object-fit: contain; }
.hero-frame figcaption {
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .075em;
  padding-top: .75rem;
  color: #aaa;
}
.hero--editorial .hero-bottom { gap: 1.25rem; padding-top: 1.5rem; }
.hero--editorial .outline-link {
  min-height: 3rem;
  gap: 2.5rem;
  padding: .75rem 1.25rem;
}
.hero--editorial .hero-meta { font-size: .875rem; color: #bcbcbc; }

@media (max-width: 1250px) {
  :root { --masthead-height: 5rem; }
  .site-header .menu-toggle { display: flex; }
  .site-header .nav {
    top: var(--masthead-height);
    gap: 0;
    padding: .75rem var(--site-gutter) 1.5rem;
    max-height: calc(100dvh - var(--masthead-height));
    box-shadow: 0 16px 24px #0003;
  }
  .site-header .nav > a:not(.join) { min-height: 3.75rem; padding-block: .875rem; font-size: 1.5rem; }
  .site-header .nav > a.join { margin-top: 1rem; }
}

@media (max-width: 760px) {
  :root { --masthead-height: 4.75rem; }
  .site-header { gap: .5rem; }
  .site-header .brand-lockup { gap: .125rem; }
  .site-header .brand-lockup > .official-emblem { width: 2.625rem; }
  .site-header .brand-lockup > .official-logo { width: clamp(7.25rem, 35vw, 10.5rem); }
  .site-header .menu-toggle { min-width: 0; gap: .625rem; padding: .625rem; }
  .hero--editorial { padding: 1.75rem var(--site-gutter) 1.5rem; gap: 1.75rem; }
  .hero--editorial .eyebrow { font-size: .8125rem; letter-spacing: .025em; gap: .5rem; }
  .hero--editorial .eyebrow::before { width: 1rem; }
  .hero--editorial h1 { font-size: clamp(4rem, 20vw, 7.5rem); margin: 1.25rem 0; }
  .hero--editorial .hero-jp { font-size: 1.25rem; margin-bottom: 1.125rem; }
  .hero-statement { font-size: 1rem; margin-bottom: .375rem; }
  .hero--editorial .hero-description { line-height: 1.85; }
  .hero--editorial .hero-frame { width: 100%; max-width: 36rem; }
  .hero--editorial .hero-bottom { margin: 0; padding-top: 1.25rem; }
  .hero-frame figcaption { font-size: .75rem; }
}

@media (max-width: 359px) {
  .site-header { padding-inline: .875rem; }
  .site-header .brand-lockup > .official-emblem { width: 2.125rem; }
  .site-header .brand-lockup > .official-logo { width: 6.875rem; }
}

/* Visual QA: balance Japanese lines and bring the photograph forward on mobile. */
.hero-support { text-wrap: balance; }
.site-header .menu-toggle { width: 7.5rem; }
.menu-label { white-space: nowrap; }
.menu-icon { flex: none; }
.hero-support > span { display: inline-block; }
@media (max-width: 760px) {
  .hero--editorial { gap: 0; }
  .hero--editorial .hero-inner { display: contents; }
  .hero--editorial .eyebrow { order: 0; }
  .hero--editorial h1 { order: 1; margin: 1.25rem 0; }
  .hero--editorial .hero-jp { order: 2; margin-bottom: 1.5rem; }
  .hero--editorial .hero-frame { order: 3; margin-bottom: 1.5rem; }
  .hero--editorial .hero-description { order: 4; margin-bottom: 1.5rem; }
  .hero--editorial .hero-bottom { order: 5; }
}

@media (max-width: 760px) { .site-header .menu-toggle { width: 6.625rem; } }

/* Recruitment and history share the same content edges and full-width backgrounds. */
.recruit-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2rem;
  padding: 1.5rem max(var(--site-gutter), calc((100% - 1440px) / 2));
}
.recruit-bar > span:not(.arrow) { justify-self: start; line-height: 1.7; }
.recruit-bar .mobile-break { display: none; }
.final-feature {
  display: block;
  max-width: none;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 4.5rem) max(var(--site-gutter), calc((100% - 1440px) / 2));
  border-top: 0;
  background: var(--ink);
}
.final-feature-inner {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: 1.75rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.final-feature-inner > .eyebrow { grid-column: 1 / -1; font-size: .875rem; }
.final-feature .final-year { font-size: clamp(6.5rem, 14vw, 11.5rem); line-height: .9; }
.final-feature .final-year span { font-size: .875rem; margin-top: 1rem; letter-spacing: .1em; }
.final-feature .final-copy { min-width: 0; }
.final-feature h2 { margin: 0 0 1.25rem; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.45; }
.final-feature p { margin: 0; line-height: 1.9; }
.final-feature .button { margin-top: 1.5rem; border-color: #666; padding: .875rem 1.125rem; gap: 1.5rem; }
@media(max-width:760px) {
  .recruit-bar { grid-template-columns: minmax(0, 1fr) auto; gap: .625rem 1rem; padding-block: 1.25rem; }
  .recruit-bar > b { grid-column: 1; }
  .recruit-bar > span:not(.arrow) { grid-column: 1; }
  .recruit-bar > .arrow { grid-column: 2; grid-row: 1 / 3; }
  .recruit-bar .mobile-break { display: block; }
  .final-feature-inner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .final-feature .final-year { display: flex; align-items: end; gap: 1rem; font-size: 5.5rem; }
  .final-feature .final-year span { margin: 0 0 .25rem; max-width: 6.5rem; line-height: 1.4; }
  .final-feature .button { width: 100%; justify-content: space-between; font-size: .875rem; }
}

/* Alumni names and F-league club histories remain paired at every width. */
.ob-history{margin:1.5rem 0 0;border-top:1px solid #ccc}
.ob-history>div{display:grid;grid-template-columns:9rem minmax(0,1fr);gap:1.5rem;padding:1.1rem 0;border-bottom:1px solid #ddd}
.ob-history dt{font-weight:700}.ob-history dd{margin:0;line-height:1.8}
@media(max-width:600px){.ob-history>div{grid-template-columns:1fr;gap:.35rem}.ob-history dd{font-size:.9rem}}

.ob-representative{display:block;margin-top:.4rem;font-size:.875rem;font-weight:700;color:#555}
/* A compact Japanese flag identifies national-team history. */
.ob-representative::before{content:"";display:inline-block;width:1.3em;height:.87em;margin-right:.55em;vertical-align:-.08em;border:1px solid #ddd;background:radial-gradient(circle at center,#bc002d 0 28%,transparent 30%),#fff}

/* Keep every destination reachable without JavaScript and lock the page behind an open menu. */
@media(max-width:1250px){
  html:not(.js) .site-header{position:static;height:auto;min-height:var(--masthead-height);flex-wrap:wrap;padding-block:.75rem}
  html:not(.js) .site-header .menu-toggle{display:none}
  html:not(.js) .site-header .nav{position:static;display:flex;flex:1 0 100%;max-height:none;box-shadow:none}
  body.menu-open{overflow:hidden}
}

/* Keep the two most useful actions within thumb reach on small screens. */
.mobile-actions { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .mobile-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink);
    color: #fff;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 24%);
  }
  .mobile-actions a {
    display: flex;
    min-width: 0;
    min-height: 4.5rem;
    padding: .625rem 1rem;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #444;
  }
  .mobile-actions a + a { border-left: 1px solid #444; }
  .mobile-actions small { color: #bdbdbd; font-size: .75rem; line-height: 1.4; }
  .mobile-actions strong { font-size: .9375rem; line-height: 1.5; white-space: nowrap; }
  .mobile-actions-primary { background: var(--orange); color: var(--ink); }
  .mobile-actions-primary small { color: #3b1a0e; }
}
@media print { .mobile-actions { display: none !important; } }

/* Selection journey: keep the club identity and put the next action in view. */
.button-orange{background:var(--orange);border-color:var(--orange);color:var(--ink);font-weight:800}
.button-orange:hover{background:#ff763f;color:var(--ink)}
.hero-entry{width:100%;max-width:35rem}
.hero--editorial .hero-entry .hero-practical{font-weight:500;margin:0 0 1.125rem;color:#ddd;line-height:1.8}
.hero-entry .button{font-size:1rem;min-height:3.5rem;padding:.875rem 1.25rem;gap:1.5rem}
.hero--editorial .hero-bottom{padding-top:1.125rem}
.selection-summary{display:grid;grid-template-columns:1fr .7fr 1.3fr;margin:2rem 0;border-top:3px solid var(--orange);border-bottom:1px solid #ccc;background:#fff}
.selection-summary>div{padding:1.25rem}
.selection-summary>div+div{border-left:1px solid #ddd}
.selection-summary dt{font-size:.875rem;color:#555;margin-bottom:.5rem}
.selection-summary dd{font-size:1.125rem;font-weight:800;line-height:1.65;margin:0}
.selection-summary dd span{font-size:.875rem;font-weight:500}
.join-intro .join-summary{font-size:1.125rem;line-height:1.9}
.join-intro .note a,.reply-help a,.form-gap a{text-decoration:underline;text-underline-offset:.2em;overflow-wrap:anywhere}
.join-facts{margin-top:2rem}
.join-intro .notice{font-size:1rem;padding:1.25rem 1.5rem}
.apply-panel{padding:2rem;margin-top:3rem;background:var(--ink);color:#fff;border-top:4px solid var(--orange)}
.apply-panel .section-kicker{color:#ff8a58;font-size:1rem}
.apply-panel h2{font-size:clamp(1.8rem,4vw,2.5rem);margin-bottom:1rem}
.apply-panel .note,.apply-panel .reply-help{color:#ccc;font-size:.875rem;line-height:1.85}
.apply-panel .button{margin-top:.5rem;font-size:1rem}
.form-gap{font-size:.875rem;line-height:1.9;border-left:3px solid var(--orange);padding:.75rem 1rem;margin:1rem 0 1.5rem;background:#eaeae5}
.apply-panel .form-gap{background:#292929;color:#eee}
#apply,#participation-terms,#join-steps{scroll-margin-top:calc(var(--masthead-height) + 1rem)}
:target{scroll-margin-top:calc(var(--masthead-height) + 1rem)}
.button:focus-visible,.mobile-actions-primary:focus-visible,.recruit-bar:focus-visible{outline:3px solid #fff;outline-offset:-6px;box-shadow:0 0 0 3px #141414}
@media(max-width:760px){
 .hero--editorial .hero-inner{display:block;order:0}
 .hero--editorial .hero-frame{order:1;margin-top:1.75rem;margin-bottom:1.5rem}
 .hero--editorial .hero-jp{margin-bottom:1rem}
 .hero-entry .button{width:100%;justify-content:space-between}
 .hero--editorial h1{font-size:clamp(4rem,20vw,7.5rem);margin:1.125rem 0}
 .hero--editorial .hero-entry .hero-practical{font-size:1rem;margin-bottom:1rem}
 .selection-summary{grid-template-columns:1fr;margin:1.5rem 0}
 .selection-summary>div{display:grid;grid-template-columns:5rem minmax(0,1fr);gap:.75rem;padding:.875rem 1rem;align-items:baseline}
 .selection-summary>div+div{border-left:0;border-top:1px solid #ddd}
 .selection-summary dt{margin:0}
 .selection-summary dd{font-size:1rem}
 .join-intro .join-summary{font-size:1rem}
 .join-intro .join-actions{gap:.75rem}
 .join-intro .join-actions .text-link{min-height:2.75rem}
 .apply-panel{padding:1.5rem 1.125rem}
 .apply-panel .button{width:100%;justify-content:space-between;gap:.5rem;padding:.875rem 1rem}
 .mobile-actions strong{white-space:normal;font-size:.875rem}
 .mobile-actions small{font-size:.875rem}
 .mobile-actions{z-index:19}
 .site-header .nav{max-height:calc(100dvh - var(--masthead-height) - 6rem);padding-bottom:1rem}
 body{padding-bottom:calc(6rem + env(safe-area-inset-bottom))}
 html{scroll-padding-bottom:6rem}
 .mobile-actions a{padding:.625rem .75rem;min-height:5rem}
 .text-link{white-space:normal}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Activity links can wrap at tablet widths instead of overflowing their grid cell. */
.result-row .text-link{white-space:normal;min-width:0;gap:.5rem;font-size:.875rem}
@media (min-width:761px) and (max-width:1050px){.result-row{grid-template-columns:80px minmax(0,1fr) 150px;gap:1rem}}
/* Reflow the recruitment facts and masthead when readers enlarge text. */
.join-facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))}
.join-facts>div{grid-template-columns:minmax(0,6rem) minmax(0,1fr)}
.selection-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr))}
.site-header .brand-lockup{min-width:0;flex-shrink:1}
.site-header .brand-lockup>.official-logo{width:clamp(110px,24vw,200px);min-width:0;flex-shrink:1}
.site-header .brand-lockup>.official-emblem{width:clamp(34px,6vw,56px);flex-shrink:0}
@media(max-width:760px){
 .selection-summary{grid-template-columns:1fr}
 .site-header .brand-lockup>.official-logo{width:clamp(90px,35vw,168px)}
 .site-header .brand-lockup>.official-emblem{width:clamp(30px,10vw,42px)}
 .site-header .menu-toggle{width:auto;gap:.5rem}
 .join-facts>div{grid-template-columns:1fr;gap:.5rem}
}
@media(max-width:760px){
 .hero--editorial h1{font-size:min(clamp(4rem,20vw,7.5rem),22vw)}
 .hero--editorial .outline-link{gap:.75rem;padding-inline:.875rem}
 .final-feature .final-year{flex-wrap:wrap;font-size:min(5.5rem,28vw)}
 .final-feature .final-year span{max-width:none}
 .join-actions .text-link{gap:.5rem}
 .join-facts dd{overflow-wrap:anywhere}
}
@media(max-width:760px){
 .selection-summary>div{grid-template-columns:minmax(0,.7fr) minmax(0,2fr);gap:.75rem;padding:.875rem clamp(12px,4vw,16px)}
 .selection-summary dd{overflow-wrap:anywhere}
 .recruit-bar>b{white-space:normal}
 .news-visual .graphic{font-size:clamp(1.25rem,7vw,1.6rem)}
 .ob-teaser h2,.result-row p{overflow-wrap:anywhere}
 .team-card .num{font-size:min(3.7rem,18vw)}
}
