/* =========================================================
   SportsPJ — SP/SYSTEM Studio Grid
   Palette: near-black + rationed signal-lime
   Type:  Anton (display) / Fraunces (serif numerals)
          Archivo (latin sub) / Zen Kaku Gothic New (JP)
          IBM Plex Mono (meta)
   ========================================================= */

:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface-alt: #1B1B1E;
  --text: #F4F4F1;
  --muted: #8A8A86;
  --border: rgba(244, 244, 241, 0.10);
  --border-strong: rgba(244, 244, 241, 0.22);
  --accent: #D8FF3E;

  --font-display: 'Anton', 'Zen Kaku Gothic New', sans-serif;
  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-latin: 'Archivo', 'Zen Kaku Gothic New', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --maxw: 1280px;
  --gutter: clamp(24px, 6vw, 96px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   写真の位置・拡大 — 各画像 x(左右px) / y(上下px、-で上) / zoom(拡大)
   左下の「✎ 画像を調整」ツール(localプレビュー時のみ表示)で感覚的に
   動かし、決めた値をここに書けば公開サイトにも反映されます。
   ============================================================ */
:root {
  /* トップ（ヒーロー）位置=％／拡大=倍率（背景cover＋位置％＋scaleで余白が原理的に出ない） */
  --hero-px: 50%;  --hero-py: 50%;  --hero-zoom: 1.12;
  /* About 写真 */
  --about-x: 0px;  --about-y: 0px;  --about-zoom: 1;
  /* メンバー写真① 大葉 */
  --m1-x: 0px;     --m1-y: 0px;     --m1-zoom: 1;
  /* メンバー写真② 樋口 */
  --m2-x: 0px;     --m2-y: 0px;     --m2-zoom: 1;
  /* 表示モード: cover=はみ出して枠を埋める / contain=全体表示（縦長写真向き・余白は背景色） */
  --hero-fit: cover; --about-fit: cover; --m1-fit: cover; --m2-fit: cover;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.accent { color: var(--accent); }

/* gradient-clipped hero keyword */
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--text) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { background: var(--text); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-pill { border-radius: 999px; border-color: var(--text); padding: 0.6em 1.4em; font-size: 0.82rem; }
.btn-pill:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
/* on dark (lime band) */
.btn-dark { background: var(--bg); color: var(--accent); }
.btn-dark:hover { background: #000; }
.btn-ghost-dark { border-color: var(--bg); color: var(--bg); }
.btn-ghost-dark:hover { background: var(--bg); color: var(--accent); }

/* =================== NAV =================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: baseline; gap: 0.7rem; }
.brand-mark {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand-tag { color: var(--muted); font-size: 0.62rem; }
.nav-links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background-size: 100% 1.5px; }
.nav-cta { margin-left: 0; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.55em 0.8em;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover { border-color: var(--accent); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-globe { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.lang-current { white-space: nowrap; }
.lang-caret { width: 9px; height: 9px; color: var(--muted); transition: transform 0.25s var(--ease); }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
  z-index: 120;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.6em 1.1em;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.lang-menu li:hover { color: var(--text); background: rgba(244, 244, 241, 0.04); }
.lang-menu li[aria-selected="true"] { color: var(--accent); }
.lang-menu li[aria-selected="true"]::after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-toggle { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 0.6rem; }
.mobile-menu-links a {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: clamp(2rem, 11vw, 3.2rem);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.mobile-menu-links .mono { color: var(--muted); font-size: 0.8rem; }
.mobile-menu-links a:hover { color: var(--accent); }
.mobile-menu-foot { margin-top: 3rem; color: var(--muted); }

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: 56px;
  overflow: hidden;
  background-image: radial-gradient(rgba(244, 244, 241, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-image: url('img/hero.jpg?v=5');
  background-size: cover;
  background-position: var(--hero-px, 50%) var(--hero-py, 50%);
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(1.04) brightness(0.9);
  transform: scale(var(--hero-zoom, 1.12));
  transform-origin: var(--hero-px, 50%) var(--hero-py, 50%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,11,12,0.92) 0%, rgba(11,11,12,0.62) 55%, rgba(11,11,12,0.4) 100%),
    linear-gradient(180deg, rgba(11,11,12,0.45) 0%, rgba(11,11,12,0.15) 42%, rgba(11,11,12,0.88) 100%);
}
.hero-glow {
  position: absolute;
  top: 8%; left: 8%;
  z-index: 1;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(216, 255, 62, 0.12), rgba(216, 255, 62, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner { position: relative; width: 100%; z-index: 2; }
.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 5vh, 3rem);
}
.hero-coord { color: var(--muted); }

.hero-title { margin: 0; line-height: 0.86; }
.line { display: block; overflow: hidden; }
.hero-display {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(64px, 14vw, 184px);
  letter-spacing: 0.01em;
  line-height: 0.86;
}
.hero-display--alt {
  -webkit-text-stroke: 1.5px var(--border-strong);
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-headline {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2.9rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-top: clamp(1.2rem, 3vh, 2rem);
  max-width: 18em;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-top: clamp(2rem, 6vh, 3.5rem);
}
.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 32em;
}
.hero-side { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  color: var(--text);
}
.hero-pillars li { position: relative; padding-left: 1rem; }
.hero-pillars li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  background: var(--accent);
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  right: 0; bottom: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue span { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* =================== TICKER =================== */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg);
}
.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
  padding: 0.9rem 0;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--muted);
  padding-right: 0;
}
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* =================== SECTIONS / SHARED =================== */
.section {
  position: relative;
  padding-top: clamp(80px, 14vh, 160px);
  padding-bottom: clamp(80px, 14vh, 160px);
  overflow: hidden;
}
.rule {
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
  margin-bottom: 1.4rem;
}
.rule.drawn { transform: scaleX(1); }
.kicker { color: var(--accent); margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.kicker--dark { color: var(--bg); }

.ghost-num {
  position: absolute;
  top: -0.18em;
  right: var(--gutter);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(140px, 26vw, 340px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 241, 0.07);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.ghost-num--dark { -webkit-text-stroke-color: rgba(11, 11, 12, 0.14); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.display-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* =================== ABOUT =================== */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}
.about-lead {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.about-sublead { color: var(--text); font-size: 1.05rem; margin-bottom: 1.5rem; }
.about-text { color: var(--muted); max-width: 46em; }
.pull-quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  color: var(--text);
  margin-top: 2.5rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
}
.about-facts { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.about-facts li {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.fact-key { color: var(--accent); min-width: 6.5em; flex-shrink: 0; }
.fact-val { color: var(--text); font-size: 0.95rem; }
.about-photo {
  position: relative;
  margin-top: clamp(3rem, 7vh, 5rem);
  border: 1px solid var(--border);
  overflow: hidden;
}
.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: var(--about-fit, cover);
  object-position: center;
  transform: translate(var(--about-x, 0px), var(--about-y, 0px)) scale(var(--about-zoom, 1));
  transform-origin: center;
  filter: grayscale(1) contrast(1.03);
  transition: filter 0.5s var(--ease);
}
.about-photo:hover img { filter: grayscale(0); }
.about-photo-cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--text);
  background: rgba(11, 11, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.4em 0.7em;
}

/* =================== ACTIVITIES / PILLARS =================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  background: var(--border);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.pillar {
  position: relative;
  background: var(--bg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
  transition: background-color 0.3s var(--ease);
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.pillar:hover { background: var(--surface); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-idx { color: var(--muted); }
.pillar-icon { color: var(--accent); }
.pillar-icon svg { width: 30px; height: 30px; }
.pillar-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}
.pillar-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.85; flex: 1; }
.pillar-arrow {
  color: var(--accent);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover .pillar-arrow { opacity: 1; transform: translateX(0); }
.pillar { cursor: pointer; }
.pillar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 1rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pillar:hover .pillar-toggle { color: var(--accent); border-color: var(--accent); }
.pillar-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.toggle-sign {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.pillar:hover .toggle-sign { transform: translateX(5px); }
.pillar-detail { display: none; }

/* Activities detail modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--accent);
  padding: clamp(2rem, 5vw, 3.2rem);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.modal-close:hover { color: var(--accent); }
.modal-idx { color: var(--accent); display: block; margin-bottom: 1rem; }
.modal-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4;
  margin-bottom: 1.6rem;
}
.modal-body ul { display: flex; flex-direction: column; gap: 0.8rem; }
.modal-body li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.modal-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* =================== SCOREBOARD =================== */
.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
  position: relative;
  z-index: 1;
}
.stat {
  background: var(--bg);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.2rem, 2.5vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.stat-fig {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: flex-start;
}
.plus { color: var(--accent); font-size: 0.55em; line-height: 1; }
.stat-label { color: var(--muted); }

.events-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.events-intro { color: var(--muted); max-width: 34em; }

/* =================== EVENTS TABLE =================== */
.events-table { border-top: 1px solid var(--border); position: relative; z-index: 1; }
.event-row {
  display: grid;
  grid-template-columns: 130px 1.4fr 110px 2fr 30px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease), background-color 0.3s var(--ease);
}
.event-row:hover { padding-left: 1.4rem; background: var(--surface); }
.event-date { color: var(--muted); }
.event-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.12rem;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.25s var(--ease);
  width: fit-content;
}
.event-row:hover .event-title { background-size: 100% 1.5px; }
.event-cat {
  color: var(--accent);
  border: 1px solid var(--border-strong);
  padding: 0.3em 0.6em;
  justify-self: start;
  font-size: 0.62rem;
}
.event-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.75; }
.event-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.event-row:hover .event-arrow { opacity: 1; transform: translateX(0); }

/* =================== MEMBERS =================== */
.members-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem; position: relative; z-index: 1; }
.members-intro { color: var(--muted); max-width: 30em; }
.members-grid {
  display: grid;
  /* auto-fill（auto-fitではなく）＝項目が少ない年度でも空き列を畳まずに保持するので、
     2名だけの年度でも各写真が横に引き伸ばされて巨大化しない（旧 auto-fit は2倍以上に膨張）。
     人数の多い年度の見た目（横並び）はそのまま。 */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 1;
}
.member { display: flex; flex-direction: column; gap: 0.7rem; }
.member-block {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.member-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  filter: grayscale(1) contrast(1.04) brightness(0.95);
  transition: filter 0.4s var(--ease);
}
.member:hover .member-photo { filter: grayscale(0); }
/* メンバー写真の位置・拡大は「並び順」ではなく各メンバー個人に紐づけ、
   site-content.js が member-photo に object-position(%)＋scale(>=1) をインライン適用する。
   cover＋拡大のみなので、どう動かしても余白は出ない（年度間の干渉も無い）。 */
/* 写真が無いメンバーは、控えめなシルエットのプレースホルダ（大きなイニシャル文字は廃止） */
.member-block.noimg { background: var(--surface); }
.member-block.noimg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: center / 38% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238A8A86' d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4.5 0-8 2.7-8 6v2h16v-2c0-3.3-3.5-6-8-6Z'/%3E%3C/svg%3E");
  opacity: 0.22;
}
/* 写真付きはホバーで色付け、プレースホルダは穏やかなまま */
.member:hover .member-block:not(.noimg) { background: var(--accent); border-color: var(--accent); }

/* メンバーを年度ごとに区切る見出し（グリッド全幅） */
.member-year-label {
  grid-column: 1 / -1;
  margin: 0.6rem 0 -0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.55rem;
}
.member-year-label:first-child { margin-top: 0; }

/* 年度タブ（メンバーを年度で切替。年度が増えても見やすい） */
.member-year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
  z-index: 1;
}
.member-year-tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 0.5em 1.15em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.member-year-tab:hover { color: var(--text); border-color: var(--text); }
.member-year-tab.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* =================== NEWS（お知らせ） =================== */
.news-section .news-list { list-style: none; position: relative; z-index: 1; }
.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}
.news-item:last-child { border-bottom: 1px solid var(--border); }
.news-date { color: var(--accent); padding-top: 0.2rem; }
.news-title { font-family: var(--font-jp); font-weight: 700; font-size: 1.12rem; margin-bottom: 0.4rem; }
.news-text { color: var(--muted); font-size: 0.92rem; line-height: 1.9; }
@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 0.35rem; }
}
.member-role { color: var(--accent); }
.member-name {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.15rem;
}
.member-roman {
  display: block;
  color: var(--muted);
  margin-top: -0.45rem;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}
.member-bio { color: var(--muted); font-size: 0.86rem; line-height: 1.8; }

/* =================== JOIN (inverted band) =================== */
.join {
  position: relative;
  background: var(--accent);
  color: var(--bg);
  padding-top: clamp(80px, 14vh, 150px);
  padding-bottom: clamp(80px, 14vh, 150px);
  overflow: hidden;
}
.join .kicker { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  position: relative;
  z-index: 1;
}
.join-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.9;
  text-transform: uppercase;
}
.join-subline {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin-top: 1rem;
}
.join-lead { font-size: 1.02rem; margin-top: 1.2rem; max-width: 26em; font-weight: 500; }
.join-points { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.join-points li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(11, 11, 12, 0.2);
}
.jp-title { font-weight: 700; font-size: 1.05rem; }
.jp-desc { font-size: 0.9rem; line-height: 1.8; opacity: 0.85; }

/* form */
.join-form { display: flex; flex-direction: column; gap: 1.6rem; }
.form-head { color: rgba(11, 11, 12, 0.6); margin-bottom: 0.4rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.12em; }
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bg);
  color: var(--bg);
  font-family: var(--font-jp);
  font-size: 1rem;
  padding: 0.6rem 0;
  caret-color: var(--bg);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(11, 11, 12, 0.4); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-width: 2px; }
.form-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.6rem; }
.form-note { margin-top: 0.4rem; color: var(--bg); }

/* =================== CONTACT =================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}
.contact-lead { color: var(--muted); margin-top: 1.2rem; max-width: 24em; }
.contact-email {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.3s var(--ease);
  display: inline-block;
  word-break: break-all;
}
.contact-email:hover { background-size: 100% 2px; }
.sns { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.sns a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.4rem;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.sns a:hover { padding-left: 1rem; color: var(--accent); }
.sns-icon { display: inline-flex; color: var(--text); transition: color 0.3s var(--ease); }
.sns a:hover .sns-icon { color: var(--accent); }
.sns-icon svg { width: 22px; height: 22px; }
.sns-name { min-width: 7em; }
.sns-handle { color: var(--muted); margin-left: auto; }
.sns a:hover .sns-handle { color: var(--accent); }

/* =================== FOOTER =================== */
.footer { position: relative; padding-top: clamp(60px, 10vh, 110px); padding-bottom: 0; overflow: hidden; }
.footer .rule { margin-bottom: 3rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand .brand-mark { font-size: 1.6rem; }
.footer-tagline { color: var(--muted); margin-top: 0.8rem; }
.footer-msg { color: var(--text); margin-top: 0.6rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0.6rem 2.5rem; font-family: var(--font-latin); font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  padding: 3rem 0 2rem;
}
.footer-signature {
  font-family: var(--font-display);
  font-size: clamp(60px, 22vw, 320px);
  line-height: 0.8;
  text-align: center;
  color: var(--text);
  opacity: 0.05;
  letter-spacing: 0.02em;
  margin-bottom: -0.12em;
  user-select: none;
  white-space: nowrap;
}

/* =================== REVEAL ANIMATION =================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .lang { margin-left: auto; }
  .brand-tag { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
  }
  .nav-toggle span { display: block; height: 1.5px; width: 24px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .event-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date cat"
      "title title"
      "desc desc";
    gap: 0.6rem 1rem;
    row-gap: 0.5rem;
  }
  .event-date { grid-area: date; }
  .event-cat { grid-area: cat; justify-self: end; }
  .event-title { grid-area: title; }
  .event-desc { grid-area: desc; }
  .event-arrow { display: none; }
  .event-row:hover { padding-left: 0.5rem; }
}

@media (max-width: 520px) {
  .scoreboard { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: 0.4rem; }
  .scroll-cue { display: none; }
  .footer-grid { flex-direction: column; }
}

/* =================== GALLERY =================== */
.gallery-head { margin-bottom: clamp(2.2rem, 5vh, 3.6rem); position: relative; z-index: 1; }
.gallery-intro {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 1.1rem;
  font-size: 0.98rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
  gap: clamp(8px, 1.1vw, 14px);
  position: relative;
  z-index: 1;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  outline: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}
.gallery-item::before {
  /* lime corner tick — appears on hover/focus */
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::before,
.gallery-item:focus-visible::before { opacity: 1; transform: none; }
.gallery-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 0.85rem 0.7rem;
  color: var(--text);
  background: linear-gradient(to top, rgba(11, 11, 12, 0.86), rgba(11, 11, 12, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.gallery-item:hover .gallery-cap,
.gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }

/* =================== LIGHTBOX =================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 22px);
  padding: clamp(16px, 4vw, 52px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1120px, 90vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  object-fit: contain;
  border: 1px solid var(--border-strong);
  transform: scale(0.97);
  transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-cap { color: var(--muted); text-align: center; letter-spacing: 0.1em; }
.lightbox-close {
  position: absolute;
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-nav {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 12, 0.55);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox-nav:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .lightbox-nav { position: absolute; bottom: 22px; z-index: 3; }
  .lightbox-prev { left: 22px; }
  .lightbox-next { right: 22px; }
  .lightbox-figure { max-width: 94vw; }
}

/* =================== SCHEDULE & ACCESS =================== */
.schedule-head { margin-bottom: clamp(2.2rem, 5vh, 3.4rem); position: relative; z-index: 1; }
.schedule-intro { color: var(--muted); max-width: 60ch; margin-top: 1.1rem; font-size: 0.98rem; }
.schedule-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) { .schedule-grid { grid-template-columns: 1fr; } }

/* --- Calendar --- */
.cal {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: clamp(1rem, 2.5vw, 1.6rem);
}
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.cal-title { color: var(--text); font-size: 0.92rem; letter-spacing: 0.16em; }
.cal-nav {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  font-size: 1rem; cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; color: var(--muted); font-size: 0.6rem; letter-spacing: 0.06em; padding: 0.2rem 0 0.4rem; }
.cal-wd.sun { color: #e0705f; }
.cal-wd.sat { color: #6aa0e0; }
.cal-cell {
  position: relative; min-height: 64px;
  display: flex; flex-direction: column; align-items: stretch;
  border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 3px; font-size: 0.82rem; color: var(--text); overflow: hidden;
}
.cal-cell.empty { border-color: transparent; }
.cal-cell.sun .cal-d { color: #e0705f; }
.cal-cell.sat .cal-d { color: #6aa0e0; }
.cal-cell.reg { background: rgba(216, 255, 62, 0.08); border-color: rgba(216, 255, 62, 0.3); }
.cal-cell.reg .cal-d { color: var(--accent); font-weight: 700; }
.cal-cell.sp { border-color: rgba(216, 255, 62, 0.45); }
.cal-cell.today { outline: 1px solid var(--text); outline-offset: -2px; }
.cal-d { line-height: 1; font-size: 0.74rem; align-self: flex-start; }
.cal-chip {
  margin-top: 2px; background: var(--accent); color: var(--bg);
  border-radius: 3px; padding: 1px 4px; font-size: 0.5rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-chip b { font-weight: 800; }
@media (max-width: 560px) { .cal-cell { min-height: 48px; } .cal-chip { font-size: 0.44rem; padding: 1px 2px; } }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: 0.62rem; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: 0.45rem; }
.cal-key { width: 12px; height: 12px; flex: 0 0 auto; display: inline-block; }
.cal-key--reg { background: rgba(216, 255, 62, 0.16); border: 1px solid rgba(216, 255, 62, 0.4); }
.cal-events { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.66rem; color: var(--muted); }
.cal-events li { display: flex; gap: 0.6rem; align-items: baseline; }
.cal-events .ce-date { color: var(--accent); flex: 0 0 auto; min-width: 2.4em; }
.cal-events .ce-body { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.cal-events .ce-time { color: var(--accent); flex: 0 0 auto; }
.cal-events .ce-label { color: var(--text); }
.cal-events .ce-gcal { text-decoration: none; font-size: 0.9rem; line-height: 1; flex: 0 0 auto; }
.cal-events .ce-gcal:hover { filter: brightness(1.25); }

/* --- Access / map --- */
.access-label { color: var(--accent); margin-bottom: 0.9rem; }
.access-place { font-family: var(--font-jp); font-weight: 700; font-size: 1.18rem; line-height: 1.4; margin-bottom: 0.5rem; }
.access-note { color: var(--muted); font-size: 0.9rem; line-height: 1.85; margin-bottom: 1.2rem; }
.access-map {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: var(--surface);
}
.access-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.access-links .btn { font-size: 0.82rem; }

/* =================== REDUCED MOTION =================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rule { transform: scaleX(1); transition: none; }
  .ticker-track { animation: none; }
  .scroll-cue span { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
