/* ===================================================
   金光学園高等学校 硬式野球部  — style.css
   黒基調 × 金のアクセント
   =================================================== */
:root {
  --bg: #0a1120;
  --bg-2: #111b2e;
  --navy: #1b2c4f;
  --text: #f2efe8;
  --muted: #9b968c;
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, .35);
  --line: rgba(255, 255, 255, .14);
  --serif-en: "EB Garamond", serif;
  --sans-en: "Josefin Sans", sans-serif;
  --mincho: "Shippori Mincho B1", serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;
  --brush: "Yuji Boku", serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--gothic);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,0));
  transition: background .4s, padding .4s;
}
.site-header.is-scrolled { background: rgba(10,17,32,.92); padding-top: 12px; padding-bottom: 12px; backdrop-filter: blur(6px); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--mincho); font-weight: 800; font-size: 18px;
  background: rgba(0,0,0,.35);
}
.logo-mark.big { width: 64px; height: 64px; font-size: 34px; }
.logo-text { font-family: var(--mincho); font-weight: 800; font-size: 16px; letter-spacing: .08em; line-height: 1.2; }
.logo-text small { display: block; font-family: var(--sans-en); font-weight: 600; font-size: 9px; letter-spacing: .25em; color: var(--muted); margin-top: 3px; }
.gnav { display: flex; align-items: center; gap: 30px; font-size: 13px; letter-spacing: .1em; font-weight: 500; }
.gnav a:not(.btn-pill) { position: relative; }
.gnav a:not(.btn-pill)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--gold); transition: width .3s; }
.gnav a:not(.btn-pill):hover::after { width: 100%; }

.btn-pill {
  display: inline-block; padding: 8px 22px;
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--text); font-weight: 700; letter-spacing: .1em;
  background: rgba(0,0,0,.35);
  transition: background .3s, color .3s;
}
.btn-pill:hover { background: var(--gold); color: #111; }
.btn-pill.light { border-color: #fff; }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 120; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .35s, opacity .35s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.overlay-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,17,32,.97);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.menu-open .overlay-menu { opacity: 1; pointer-events: auto; }
.om-label { font-family: var(--sans-en); letter-spacing: .3em; color: var(--gold); font-size: 12px; }
.overlay-menu ul { list-style: none; margin: 0; padding: 0; }
.overlay-menu li a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--serif-en); font-size: 30px; letter-spacing: .06em; }
.overlay-menu li a span { font-family: var(--gothic); font-size: 12px; color: var(--muted); }

/* ---------- メインビジュアル(スクロール演出) ---------- */
.hero { position: relative; height: 620vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.scenes, .scene, .hero-shade { position: absolute; inset: 0; }
.scene {
  background-size: cover; background-position: center;
  opacity: 0; will-change: transform, opacity, filter;
  transform-origin: 50% 50%;
}
.scene:first-child { opacity: 1; }
.hero-shade {
  background:
    linear-gradient(to right, rgba(6,12,26,.7) 0%, rgba(6,12,26,.2) 55%, rgba(6,12,26,.05) 100%),
    linear-gradient(to top, rgba(6,12,26,.65) 0%, rgba(6,12,26,0) 45%);
  pointer-events: none;
}

.final-shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(6,12,26,.72) 0%, rgba(6,12,26,.45) 45%, rgba(6,12,26,.2) 100%); }
.caption {
  position: absolute; left: var(--gutter); top: 50%;
  transform: translateY(-40%);
  max-width: 760px;
  opacity: 0; pointer-events: none;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.caption.is-active { pointer-events: auto; }
.cap-right { left: auto; right: var(--gutter); text-align: right; }
.cap-center { left: 50%; right: auto; text-align: center; transform: translate(-50%, -50%); width: 100%; max-width: none; padding: 0 var(--gutter); }
.cap-label { font-family: var(--sans-en); font-weight: 600; font-size: 12px; letter-spacing: .3em; color: var(--gold); margin: 0 0 18px; }
.cap-title { font-family: var(--mincho); font-weight: 800; font-size: clamp(40px, 7.2vw, 96px); line-height: 1.25; letter-spacing: .06em; margin: 0; }
.cap-title.sm { font-size: clamp(32px, 5.2vw, 70px); }
.cap-sub { font-size: 14px; letter-spacing: .14em; margin: 22px 0 0; color: #e9e4da; }
.cap-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.btn-outline { padding: 12px 30px; border: 1px solid #fff; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .12em; background: rgba(0,0,0,.3); transition: background .3s, color .3s; }
.btn-outline:hover { background: #fff; color: #111; }
.cap-link { font-size: 13px; letter-spacing: .1em; border-bottom: 1px solid rgba(255,255,255,.5); }

.cap-final { font-family: var(--mincho); font-weight: 800; font-size: clamp(44px, 9vw, 130px); letter-spacing: .12em; margin: 0; line-height: 1.2; }
.cap-final .ch { display: inline-block; opacity: 0; transform: translateY(40px); filter: blur(8px); }

/* 最初の場面:読み込み時のふわっと表示 */
.cap-first > * { opacity: 0; transform: translateY(24px); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.cap-first > *:nth-child(1) { animation-delay: .3s; }
.cap-first > *:nth-child(2) { animation-delay: .5s; }
.cap-first > *:nth-child(3) { animation-delay: .8s; }
.cap-first > *:nth-child(4) { animation-delay: 1s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-progress { position: absolute; right: calc(var(--gutter) - 8px); top: 50%; transform: translateY(-50%); width: 2px; height: 120px; background: rgba(255,255,255,.2); }
.hero-progress span { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--gold); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-family: var(--serif-en); letter-spacing: .2em; font-size: 13px; text-align: center; transition: opacity .4s; }
.scroll-cue i { display: block; width: 1px; height: 40px; margin: 8px auto 0; background: linear-gradient(#fff, transparent); animation: cue 1.8s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero-float-btn { position: absolute; right: var(--gutter); bottom: 26px; padding: 9px 22px; border: 1px solid var(--gold); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .12em; background: rgba(0,0,0,.5); }
.hero-float-btn:hover { background: var(--gold); color: #111; }

/* ---------- 共通セクション ---------- */
.sec { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; }
.sec-title { font-family: var(--serif-en); font-weight: 400; font-size: clamp(42px, 6vw, 72px); letter-spacing: .08em; line-height: 1; margin: 0 0 48px; }
.sec-title span { display: block; font-family: var(--gothic); font-size: 13px; letter-spacing: .2em; color: var(--gold); margin-top: 14px; }
.btn-more { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; padding: 12px 30px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--sans-en); font-weight: 600; font-size: 12px; letter-spacing: .2em; transition: border-color .3s, background .3s, color .3s; }
.btn-more:hover { background: #fff; color: #111; border-color: #fff; }
.btn-more i { font-style: normal; transition: transform .3s; }
.btn-more:hover i { transform: translateX(4px); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- NEWS ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 120px 100px 1fr; align-items: center; gap: 16px; padding: 24px 8px; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s; }
.news-list a:hover { background: rgba(255,255,255,.04); padding-left: 16px; }
.news-list time { font-family: var(--sans-en); font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.news-list .tag { font-size: 11px; text-align: center; border: 1px solid var(--gold-soft); color: var(--gold); padding: 2px 0; }
.news-list p { margin: 0; font-size: 15px; }

/* ---------- MESSAGE ---------- */
.message { overflow: hidden; }
.message-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) brightness(.3); }
.message::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, var(--bg) 0%, rgba(10,17,32,.35) 25%, rgba(10,17,32,.35) 75%, var(--bg) 100%); pointer-events: none; }
.message-inner { z-index: 2; }
.stats { grid-column: 1 / -1; list-style: none; display: flex; justify-content: center; gap: clamp(28px, 7vw, 90px); margin: 30px 0 0; padding: 0; }
.stats li { text-align: center; }
.stats b { display: block; font-family: var(--serif-en); font-weight: 400; font-size: clamp(48px, 7vw, 80px); line-height: 1; color: var(--gold); }
.stats span { font-size: 12px; letter-spacing: .2em; }
.message-inner { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 40px; }
.vertical-label { writing-mode: vertical-rl; font-family: var(--serif-en); letter-spacing: .4em; font-size: 15px; color: var(--gold); margin: 0; }
.message-text p { font-size: 15px; line-height: 2.3; letter-spacing: .08em; margin: 0 0 1.6em; max-width: 640px; }
.slogan { grid-column: 1 / -1; font-family: var(--brush); font-size: clamp(72px, 15vw, 190px); line-height: 1; margin: 40px 0 0; text-align: center; letter-spacing: .05em; }

/* ---------- MEMBER ---------- */
.slider-nav { display: flex; gap: 12px; margin-bottom: 48px; }
.circle-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: none; color: #fff; font-size: 18px; cursor: pointer; transition: background .3s, color .3s; }
.circle-btn:hover { background: #fff; color: #111; }
.member-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
.member-track::-webkit-scrollbar { display: none; }
.member-card { flex: 0 0 clamp(220px, 24vw, 300px); scroll-snap-align: start; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.member-card .ph { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(.4); transition: transform .8s, filter .6s; }
.member-card:hover .ph { transform: scale(1.06); filter: grayscale(0); }
.member-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 55%); }
.member-info { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.member-no { font-family: var(--serif-en); font-size: 54px; line-height: 1; color: var(--gold); }
.member-name { font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: .1em; margin: 6px 0 0; }
.member-en { font-family: var(--sans-en); font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.member-pos em { font-style: normal; margin-left: 6px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.4); }
.sample-note { margin-left: 14px; font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.member-pos { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: 11px; padding: 2px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(0,0,0,.4); }

/* ---------- SUPPORT ---------- */
.support { padding: 0 var(--gutter); }
.support-banner { position: relative; display: flex; align-items: center; justify-content: flex-end; max-width: 1200px; min-height: 340px; margin: 0 auto; padding: 40px clamp(24px, 6vw, 80px); background-size: cover; background-position: center; overflow: hidden; }
.support-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.1), rgba(0,0,0,.8) 60%); transition: background .4s; }
.support-banner > div { position: relative; }
.support-en { font-family: var(--serif-en); font-size: clamp(40px, 6vw, 64px); letter-spacing: .1em; margin: 0; line-height: 1; }
.support-jp { font-size: 16px; letter-spacing: .1em; margin: 16px 0 24px; }

/* ---------- GAME ---------- */
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.game-card { padding: 40px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--navy), var(--bg-2)); }
.scoreboard { width: 100%; margin-top: 24px; border: 1px solid var(--line); opacity: .9; }
.game-card.next { border-color: var(--gold-soft); }
.game-kind { font-family: var(--sans-en); font-weight: 700; letter-spacing: .25em; font-size: 12px; color: var(--gold); margin: 0 0 12px; }
.game-league { font-size: 14px; margin: 0; color: #ddd; }
.game-date { display: flex; align-items: center; gap: 14px; margin: 18px 0 8px; }
.game-date b { font-family: var(--serif-en); font-weight: 400; font-size: 64px; line-height: 1; }
.game-date span { font-family: var(--sans-en); font-size: 12px; letter-spacing: .1em; line-height: 1.5; color: var(--muted); }
.game-place { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.game-vs { display: flex; align-items: center; gap: 20px; font-family: var(--mincho); font-weight: 800; font-size: 20px; }
.game-vs i { font-family: var(--serif-en); font-style: italic; color: var(--gold); font-size: 22px; }
.score { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.score div { display: flex; align-items: center; gap: 16px; font-family: var(--mincho); font-weight: 800; font-size: 18px; }
.score b { font-family: var(--serif-en); font-weight: 400; font-size: 72px; line-height: 1; }
.score div:first-child b { color: var(--gold); }
.score i { font-style: normal; font-size: 30px; color: var(--muted); }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.about-card { position: relative; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; background-size: cover; background-position: center; overflow: hidden; }
.about-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,17,32,.9), rgba(10,17,32,.35)); transition: background .5s; }
.about-card:hover::before { background: linear-gradient(to top, rgba(10,17,32,.75), rgba(10,17,32,0)); }
.about-en { position: relative; font-family: var(--serif-en); font-size: clamp(30px, 3.4vw, 44px); letter-spacing: .1em; line-height: 1; }
.about-jp { position: relative; font-size: 13px; color: var(--gold); letter-spacing: .15em; margin-top: 10px; }

/* ---------- SNS ---------- */
.sns { position: relative; padding: clamp(90px, 12vw, 140px) 0; overflow: hidden; }
.sns-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; filter: brightness(.4); }
.sns-inner { position: relative; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sns-en { font-family: var(--sans-en); font-weight: 600; font-size: clamp(48px, 7vw, 80px); letter-spacing: .14em; line-height: 1; margin: 0; }
.sns-en span { display: block; font-size: 14px; letter-spacing: .2em; margin-top: 8px; color: var(--gold); }
.sns-jp { font-size: 18px; letter-spacing: .12em; margin: 22px 0; font-weight: 700; }
.sns-links { display: flex; align-items: center; gap: 18px; }
.sns-links a { width: 38px; height: 38px; transition: color .3s, transform .3s; }
.sns-links a:hover { color: var(--gold); transform: translateY(-3px); }
.sns-links span { font-family: var(--sans-en); font-size: 13px; letter-spacing: .1em; }

/* ---------- FOOTER ---------- */
.site-footer { background: #070c18; border-top: 1px solid var(--line); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-name { font-family: var(--mincho); font-weight: 800; font-size: 18px; letter-spacing: .08em; margin: 20px 0 8px; }
.footer-addr { font-size: 12px; color: var(--muted); margin: 0; }
.footer-label { font-family: var(--sans-en); font-size: 12px; letter-spacing: .3em; color: var(--gold); margin: 0 0 16px; }
.footer-nav, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; font-family: var(--serif-en); font-size: 18px; letter-spacing: .06em; }
.footer-nav a span { font-family: var(--gothic); font-size: 11px; color: var(--muted); }
.footer-links a { display: block; padding: 6px 0; font-size: 13px; color: #ccc; }
.footer-nav a:hover, .footer-links a:hover { color: var(--gold); }
.copyright { text-align: center; font-family: var(--sans-en); font-size: 11px; letter-spacing: .1em; color: var(--muted); margin: 60px 0 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .gnav { display: none; }
  .menu-btn { display: block; }
  .hero-shade { background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.35) 100%); }
  .caption { top: auto; bottom: 120px; transform: none; right: var(--gutter); }
  .cap-right { text-align: left; left: var(--gutter); }
  .cap-center { bottom: auto; top: 50%; left: 0; transform: translateY(-50%); }
  .hero-progress { display: none; }
  .hero-float-btn { bottom: 20px; }
  .scroll-cue { left: var(--gutter); transform: none; bottom: 22px; }
  .news-list a { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .news-list p { grid-column: 1 / -1; }
  .news-list .tag { padding: 2px 10px; }
  .message-inner { grid-template-columns: 1fr; gap: 20px; }
  .vertical-label { writing-mode: horizontal-tb; letter-spacing: .3em; }
  .slider-nav { display: none; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { padding: 28px 22px; }
  .score b { font-size: 56px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr; }
  .support-banner { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cap-first > * { animation: none; opacity: 1; transform: none; }
}

/* ===================================================
   選手紹介ページ(member.html)
   =================================================== */
.mv { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.mv-photo { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.08); animation: mvZoom 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes mvZoom { to { transform: scale(1); } }
.mv-shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(10,17,32,1) 0%, rgba(10,17,32,.55) 35%, rgba(10,17,32,.1) 70%),
  linear-gradient(to right, rgba(10,17,32,.6), rgba(10,17,32,0) 60%); }
.mv-no { position: absolute; right: var(--gutter); bottom: -0.12em; font-family: var(--serif-en); font-size: clamp(200px, 34vw, 460px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,164,92,.55); pointer-events: none; }
.mv-info { position: absolute; left: var(--gutter); bottom: clamp(40px, 8vh, 90px); right: var(--gutter); }
.mv-info > * { opacity: 0; transform: translateY(24px); animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
.mv-info > *:nth-child(2) { animation-delay: .25s; }
.mv-info > *:nth-child(3) { animation-delay: .4s; }
.mv-info > *:nth-child(4) { animation-delay: .55s; }
.sample-badge { display: inline-block; font-size: 11px; color: var(--muted); margin: 0 0 14px; letter-spacing: .05em; }
.mv-tags { display: flex; gap: 8px; margin-bottom: 18px; }
.mv-tags span { padding: 4px 16px; font-size: 13px; font-weight: 700; letter-spacing: .15em; background: var(--gold); color: #111; }
.mv-tags span + span { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.mv-name { font-family: var(--mincho); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .14em; margin: 0; line-height: 1.3; }
.mv-name small { display: block; font-family: var(--gothic); font-weight: 500; font-size: 12px; letter-spacing: .25em; color: var(--muted); }
.mv-en { font-family: var(--sans-en); font-weight: 700; font-size: clamp(48px, 8.5vw, 120px); line-height: .95; letter-spacing: .04em; margin: 14px 0 0; }
.mv-arrow { position: absolute; bottom: clamp(40px, 8vh, 90px); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); font-size: 18px; background: rgba(10,17,32,.35); transition: background .3s, color .3s; }
.mv-arrow:hover { background: #fff; color: #111; }
.mv-arrow.prev { right: calc(var(--gutter) + 64px); }
.mv-arrow.next { right: var(--gutter); }
.mv-no { right: calc(var(--gutter) + 150px); }

.detail { padding-top: clamp(60px, 9vw, 110px); padding-bottom: clamp(80px, 10vw, 130px); max-width: 980px; }
.d-block { margin-bottom: clamp(60px, 8vw, 100px); }
.d-title { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif-en); font-weight: 400; font-size: clamp(30px, 4vw, 44px); letter-spacing: .1em; margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--gold-soft); }
.d-title span { font-family: var(--gothic); font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.hitokoto { display: flex; align-items: center; gap: 20px; margin: 0 0 28px; padding: 22px 26px; background: linear-gradient(135deg, var(--navy), var(--bg-2)); }
.hitokoto small { font-size: 12px; letter-spacing: .2em; color: var(--gold); white-space: nowrap; }
.hitokoto span { font-family: var(--mincho); font-weight: 800; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: .1em; }
.profile-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.profile-table th, .profile-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.profile-table th { width: 30%; font-weight: 500; font-size: 13px; letter-spacing: .15em; color: var(--muted); }
.profile-table tr:nth-child(odd) { background: rgba(255,255,255,.025); }
.career { display: block; }
.career b { display: inline-block; width: 1.8em; color: var(--gold); font-weight: 700; }
.qa-list { margin: 0; }
.qa-list div { display: grid; grid-template-columns: 30% 1fr; gap: 18px; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.qa-list dt { font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.qa-list dt::before { content: "Q. "; font-family: var(--serif-en); color: var(--gold); font-size: 16px; }
.qa-list dd { margin: 0; font-size: 15px; }
.d-message { position: relative; margin: 0; padding: 36px clamp(24px, 4vw, 48px); font-family: var(--mincho); font-weight: 600; font-size: clamp(16px, 1.8vw, 19px); line-height: 2.2; letter-spacing: .08em; border-left: 2px solid var(--gold); background: rgba(255,255,255,.03); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 30px; border-top: 1px solid var(--line); }
.pager .btn-more { margin-top: 0; }
.pager-item { display: flex; flex-direction: column; gap: 4px; transition: color .3s; }
.pager-item.right { text-align: right; }
.pager-item small { font-family: var(--sans-en); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.pager-item span { font-family: var(--mincho); font-weight: 800; font-size: 16px; letter-spacing: .08em; }
.pager-item:hover { color: var(--gold); }

@media (max-width: 860px) {
  .mv-arrow { bottom: 24px; width: 44px; height: 44px; }
  .mv-arrow.prev { right: calc(var(--gutter) + 54px); }
  .mv-no { right: var(--gutter); top: 80px; bottom: auto; font-size: 170px; }
  .mv-info { bottom: 90px; }
  .profile-table th { width: 36%; padding: 14px 10px; }
  .profile-table td { padding: 14px 10px; }
  .qa-list div { grid-template-columns: 1fr; gap: 6px; padding: 16px 10px; }
  .hitokoto { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .btn-more { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ===================================================
   下層ページ共通
   =================================================== */
.gnav a.is-current { color: var(--gold); }
.page-hero { position: relative; min-height: clamp(320px, 52vh, 480px); padding-top: 110px; box-sizing: border-box; display: flex; align-items: flex-end; background-size: cover; background-position: center 35%; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(10,17,32,.55) 50%, rgba(10,17,32,.45) 100%); }
.page-hero .inner { position: relative; padding-bottom: 40px; }
.page-hero .inner > * { opacity: 0; transform: translateY(20px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.page-hero .inner > *:nth-child(2) { animation-delay: .15s; }
.page-hero .inner > *:nth-child(3) { animation-delay: .3s; }
.ph-en { font-family: var(--serif-en); font-size: clamp(52px, 9vw, 110px); letter-spacing: .08em; line-height: 1; margin: 0; }
.ph-jp { font-family: var(--gothic); font-weight: 500; font-size: 14px; letter-spacing: .3em; color: var(--gold); margin: 12px 0 10px; }

.tabs { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.tabs button { padding: 10px 24px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font-family: var(--gothic); font-size: 14px; font-weight: 500; letter-spacing: .1em; cursor: pointer; transition: all .3s; }
.tabs button:hover { border-color: var(--gold); }
.tabs button.is-active { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 700; }
.tabs.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs.scroll button { flex: 0 0 auto; }
.note { font-size: 12px; color: var(--muted); }
.note.center { text-align: center; }
.sub-title { font-family: var(--mincho); font-weight: 800; font-size: 22px; letter-spacing: .12em; margin: 70px 0 24px; padding-left: 14px; border-left: 3px solid var(--gold); }
.lead { font-size: 15px; line-height: 2.2; letter-spacing: .06em; }

/* ---------- 選手一覧 ---------- */
.roster-count { font-size: 13px; color: var(--muted); margin: -16px 0 40px; }
.roster-count b { font-family: var(--serif-en); font-size: 22px; color: var(--gold); font-weight: 400; }
.roster-group { margin-bottom: 64px; }
.roster-title { display: flex; align-items: baseline; gap: 14px; font-family: var(--mincho); font-weight: 800; font-size: 24px; letter-spacing: .12em; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--gold-soft); }
.roster-title span { font-family: var(--sans-en); font-weight: 600; font-size: 11px; letter-spacing: .25em; color: var(--gold); }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.roster-grid .member-card { flex: none; }
.member-card.no-photo { background: linear-gradient(150deg, var(--navy), var(--bg-2)); }
.ph-none { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif-en); font-size: 140px; color: transparent; -webkit-text-stroke: 1px rgba(201,164,92,.35); padding-bottom: 60px; }
.mv-photo.is-fallback { filter: blur(6px) brightness(.5); }

/* ---------- 野球部について ---------- */
.anchor-nav { display: flex; justify-content: center; gap: 0; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 50; background: rgba(10,17,32,.92); backdrop-filter: blur(6px); }
.anchor-nav a { padding: 16px clamp(16px, 4vw, 48px); font-family: var(--serif-en); letter-spacing: .15em; font-size: 15px; transition: color .3s; }
.anchor-nav a:hover { color: var(--gold); }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { padding: 34px 24px; text-align: center; background: linear-gradient(135deg, var(--navy), var(--bg-2)); border: 1px solid var(--line); }
.stat-card p { margin: 0; font-size: 13px; letter-spacing: .15em; color: #ddd; }
.stat-card b { display: block; font-family: var(--serif-en); font-weight: 400; font-size: clamp(56px, 7vw, 84px); line-height: 1.1; color: var(--gold); }
.stat-card b small { font-family: var(--gothic); font-size: 16px; color: var(--text); margin-left: 4px; }
.stat-card span { font-size: 13px; letter-spacing: .2em; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--gold-soft); margin-left: 8px; }
.timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0 14px 28px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline time { font-family: var(--serif-en); font-size: 22px; color: var(--gold); line-height: 1.3; }
.timeline p { margin: 0; font-size: 15px; padding-top: 3px; }
.facility { background: #0d1628; }
.facility-item { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.facility-item.reverse .facility-ph { order: 2; }
.facility-ph { aspect-ratio: 3 / 2; background-size: cover; background-position: center; }
.facility-en { font-family: var(--sans-en); font-weight: 600; font-size: 12px; letter-spacing: .3em; color: var(--gold); margin: 0 0 8px; }
.facility-body h3 { font-family: var(--mincho); font-weight: 800; font-size: 26px; letter-spacing: .12em; margin: 0 0 14px; }
.facility-body p { font-size: 15px; line-height: 2; margin: 0; }
.spec { margin: 20px 0 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 80px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); } .spec dd { margin: 0; }
.access-box { padding: 30px; border: 1px solid var(--line); }
.access-box p { margin: 0 0 6px; }
.slogan-box { text-align: center; padding: 50px 24px; background: linear-gradient(135deg, var(--navy), var(--bg-2)); }
.slogan-text { font-family: var(--brush); font-size: clamp(64px, 11vw, 130px); line-height: 1.1; margin: 10px 0 16px !important; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { display: flex; align-items: center; gap: 22px; padding: 18px 8px; border-bottom: 1px solid var(--line); font-family: var(--mincho); font-weight: 600; font-size: 18px; letter-spacing: .1em; }
.rules b { font-family: var(--serif-en); font-weight: 400; font-size: 28px; color: var(--gold); }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.staff { padding: 30px 26px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.staff-role { display: inline-block; margin: 0 0 14px; padding: 2px 12px; font-size: 12px; font-weight: 700; letter-spacing: .15em; background: var(--gold); color: #111; }
.staff-name { font-family: var(--mincho); font-weight: 800; font-size: 24px; letter-spacing: .12em; margin: 0; }
.staff-en { font-family: var(--sans-en); font-size: 10px; letter-spacing: .2em; color: var(--muted); margin: 2px 0 14px; }
.staff-text { font-size: 13px; line-height: 1.9; margin: 0; }
.team-photo { margin-top: 60px; aspect-ratio: 16 / 7; background-size: cover; background-position: center; }

/* ---------- 試合情報 ---------- */
.next-big { margin-bottom: 70px; }
.season-label { font-family: var(--serif-en); font-size: 34px; letter-spacing: .12em; margin: 0 0 18px; }
.table-title { font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: .1em; margin: 0 0 16px; }
.game-table-wrap { overflow-x: auto; }
.game-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.game-table th { padding: 12px 14px; font-weight: 500; font-size: 12px; letter-spacing: .15em; color: var(--gold); text-align: left; border-bottom: 1px solid var(--gold-soft); }
.game-table td { padding: 18px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.game-table tr:hover td { background: rgba(255,255,255,.03); }
.game-table .date { font-family: var(--serif-en); font-size: 20px; }
.game-table .vs { font-family: var(--mincho); font-weight: 800; font-size: 16px; letter-spacing: .06em; }
.game-table .sc { font-family: var(--serif-en); font-size: 20px; white-space: nowrap; }
.game-table .sc b { font-weight: 400; color: var(--gold); font-size: 24px; }
.game-table .sc small { display: block; font-family: var(--gothic); font-size: 11px; color: var(--muted); }
.game-table .place { font-size: 12px; color: var(--muted); }
.res { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 14px; }
.res.win { background: var(--gold); color: #111; }
.res.lose { border: 1px solid var(--muted); color: var(--muted); }
.res.draw { border: 1px solid var(--text); }

/* ---------- 応援ページ ---------- */
.support-lead { font-family: var(--mincho); font-weight: 800; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.7; letter-spacing: .1em; text-align: center; margin: 0 0 90px; }
.sec .sec-title + .steps, .sec .sec-title + .cheer-grid { margin-top: 0; }
.steps { list-style: none; margin: 0 0 100px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 30px 22px; border-top: 2px solid var(--gold); background: rgba(255,255,255,.02); }
.steps b { font-family: var(--serif-en); font-weight: 400; font-size: 40px; color: var(--gold); line-height: 1; }
.steps h3, .cheer h3, .stadium h3, .goods h3 { font-family: var(--mincho); font-weight: 800; font-size: 18px; letter-spacing: .08em; margin: 14px 0 10px; }
.steps p, .cheer p, .goods p { font-size: 13px; line-height: 1.9; margin: 0; }
.cheer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 100px; }
.cheer { padding: 30px; background: linear-gradient(135deg, var(--navy), var(--bg-2)); }
.cheer-when { display: inline-block; margin: 0 !important; padding: 2px 14px; font-size: 12px !important; font-weight: 700; letter-spacing: .15em; border: 1px solid var(--gold); color: var(--gold); }
.stadium-list { margin-bottom: 100px; border-top: 1px solid var(--line); }
.stadium { padding: 22px 8px; border-bottom: 1px solid var(--line); }
.stadium h3 { margin-top: 0; }
.stadium p { margin: 0 0 4px; font-size: 14px; }
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.goods { padding: 28px 22px; border: 1px solid var(--line); text-align: center; }
.goods b { font-family: var(--serif-en); font-weight: 400; font-size: 28px; color: var(--gold); }

@media (max-width: 860px) {
  .anchor-nav { top: 60px; }
  .anchor-nav a { padding: 14px 12px; font-size: 13px; }
  .stat-cards, .staff-grid { grid-template-columns: 1fr; }
  .facility-item { grid-template-columns: 1fr; gap: 20px; }
  .facility-item.reverse .facility-ph { order: 0; }
  .timeline li { grid-template-columns: 64px 1fr; padding-left: 20px; }
  .timeline time { font-size: 18px; }
  .roster-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .roster-grid .member-name { font-size: 16px; }
  .roster-grid .member-no { font-size: 40px; }
  .ph-none { font-size: 100px; }
  .steps, .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .cheer-grid { grid-template-columns: 1fr; }
  .team-photo { aspect-ratio: 4 / 3; }
}
.sec[id] { scroll-margin-top: 60px; }
#history, #facility, #team { scroll-margin-top: 110px; }

/* 校章ロゴ */
.logo-mark { width: 38px; height: 38px; border: 0; background: none; padding: 0; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-mark.big { width: 72px; height: 72px; }
.ph-none img { width: 46%; opacity: .18; }

/* ===================================================
   選手ページ:校章背景 × 切り抜き選手の登場演出
   =================================================== */
.mv { background: radial-gradient(ellipse at 50% 35%, #1a2a4a 0%, #0d1628 55%, #070c18 100%); }
.mv-rays, .mv-rays i { position: absolute; inset: 0; pointer-events: none; }
.mv-rays i { background: linear-gradient(to bottom, rgba(216,192,138,.22), rgba(216,192,138,0) 85%); }
.mv-rays i:nth-child(1) { clip-path: polygon(0 0, 22% 0, 58% 100%, 44% 100%); }
.mv-rays i:nth-child(2) { clip-path: polygon(78% 0, 100% 0, 56% 100%, 42% 100%); }
.mv-emblem {
  position: absolute; left: 50%; top: 50%; width: min(78vh, 92vw); aspect-ratio: 1;
  transform: translate(-50%, -54%) scale(1.08); color: #d8c08a; opacity: .5;
  background: currentColor; /* 校章の形に切り抜いて1色で表示 */
  -webkit-mask: url("../images/emblem-mask.png") center / contain no-repeat;
  mask: url("../images/emblem-mask.png") center / contain no-repeat;
  transition: opacity 1.4s ease, transform 1.6s cubic-bezier(.2,.7,.2,1);
}
.mv-player { position: absolute; left: 50%; bottom: 0; height: 88%; transform: translate(-50%, 40px) scale(.97); opacity: 0; filter: blur(8px);
  transition: opacity 1.1s ease .35s, transform 1.3s cubic-bezier(.2,.7,.2,1) .35s, filter 1.1s ease .35s; }
.mv-player img { height: 100%; width: auto; max-width: none; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.mv-shade { background: linear-gradient(to top, rgba(10,17,32,1) 0%, rgba(10,17,32,.6) 22%, rgba(10,17,32,0) 50%); }
.mv-info > * { animation: none; opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.mv-no { opacity: 0; transition: opacity 1.2s ease .6s; }

/* 表示中 */
.mv.is-shown .mv-emblem { opacity: .13; transform: translate(-50%, -54%) scale(1); }
.mv.is-shown .mv-player { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
.mv.is-shown .mv-info > * { opacity: 1; transform: none; }
.mv.is-shown .mv-info > *:nth-child(1) { transition-delay: .8s; }
.mv.is-shown .mv-info > *:nth-child(2) { transition-delay: .9s; }
.mv.is-shown .mv-info > *:nth-child(3) { transition-delay: 1s; }
.mv.is-shown .mv-info > *:nth-child(4) { transition-delay: 1.1s; }
.mv.is-shown .mv-no { opacity: 1; }

/* 次の選手へ切り替え中:選手と文字が消え、校章が前に */
.mv.is-leaving .mv-player { opacity: 0; transform: translate(-50%, 24px) scale(.98); filter: blur(6px); transition: opacity .5s ease, transform .6s ease, filter .5s ease; }
.mv.is-leaving .mv-info > * { opacity: 0; transform: translateY(-12px); transition: opacity .35s ease, transform .4s ease; transition-delay: 0s; }
.mv.is-leaving .mv-no { opacity: 0; transition: opacity .3s ease 0s; }
.mv.is-leaving .mv-emblem { opacity: .45; transform: translate(-50%, -54%) scale(1.04); transition: opacity .6s ease, transform .7s ease; }
.mv.is-intro .mv-player, .mv.is-intro .mv-info > *, .mv.is-intro .mv-emblem, .mv.is-intro .mv-no { transition: none !important; }

/* 写真のない選手:背番号を中央に大きく */
.mv.no-cut .mv-no { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -58%); font-size: min(56vh, 70vw); }

@media (max-width: 860px) {
  .mv-player { height: 72%; bottom: 120px; }
  .mv-emblem { width: 120vw; transform: translate(-50%, -62%) scale(1.08); }
  .mv.is-shown .mv-emblem { transform: translate(-50%, -62%) scale(1); }
  .mv.is-leaving .mv-emblem { transform: translate(-50%, -62%) scale(1.04); }
  .mv-shade { background: linear-gradient(to top, rgba(10,17,32,1) 0%, rgba(10,17,32,.85) 28%, rgba(10,17,32,0) 55%); }
  .mv.no-cut .mv-no { top: 40%; font-size: 60vw; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-player, .mv-emblem, .mv-info > *, .mv-no { transition: none !important; }
}
.mv.no-cut.is-shown .mv-emblem { opacity: .07; }
.mv.no-cut .mv-no { -webkit-text-stroke: 2px rgba(201,164,92,.85); }

/* ===================================================
   中高一貫対応(高校 硬式 / 中学 軟式)
   =================================================== */
/* 「高校 硬式」「中学 軟式」バッジ */
.team-badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--gothic); font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1; padding: 4px 8px; border-radius: 3px; vertical-align: middle; white-space: nowrap; }
.team-badge i { font-style: normal; font-weight: 500; opacity: .85; }
.team-badge.high { background: var(--gold); color: #111; }
.team-badge.junior { background: #fff; color: var(--navy); }
.team-badge.all { border: 1px solid rgba(255,255,255,.4); color: #ddd; }
.member-card .team-badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
.news-list p .team-badge { margin-right: 10px; }
.game-kind .team-badge { margin-left: 10px; letter-spacing: .08em; }
.mv-tags .team-badge { padding: 6px 10px; font-size: 12px; }

/* 高校/中学の切り替えタブ */
.tabs.team-tabs button { padding: 14px 34px; font-size: 15px; font-family: var(--mincho); font-weight: 800; }
.tabs.sub-tabs { margin-top: -12px; }
.tabs.sub-tabs button { padding: 8px 20px; font-size: 13px; }
#memberTabs { margin: -20px 0 28px; }

/* ヘッダー:項目が増えた分、幅が狭いときは詰める */
@media (max-width: 1240px) { .gnav { gap: 20px; font-size: 12px; } }
@media (max-width: 1060px) { .gnav { gap: 14px; letter-spacing: .04em; } .logo-text small { display: none; } }
.footer-teams { margin: -4px 0 12px; font-size: 12px; color: var(--gold); letter-spacing: .1em; }

/* トップ:高校・中学の入口 */
.cap-actions { flex-wrap: wrap; }
.team-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.team-card { position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; background-size: cover; background-position: center; overflow: hidden; border: 1px solid var(--line); }
.team-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,17,32,.95), rgba(10,17,32,.3)); transition: opacity .5s; }
.team-card.junior::before { background: linear-gradient(to top, rgba(27,44,79,.96), rgba(27,44,79,.4)); }
.team-card:hover::before { opacity: .8; }
.team-card > * { position: relative; }
.team-type { position: absolute; top: 24px; right: 24px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: var(--mincho); font-weight: 800; font-size: 18px; }
.team-card.junior .team-type { border-color: #fff; color: #fff; }
.team-en { font-family: var(--sans-en); font-weight: 600; font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.team-card.junior .team-en { color: #cfd8ea; }
.team-jp { font-family: var(--mincho); font-weight: 800; font-size: clamp(24px, 3vw, 34px); letter-spacing: .12em; margin: 8px 0 18px; }
.team-go { font-size: 13px; letter-spacing: .15em; transition: transform .3s; }
.team-card:hover .team-go { transform: translateX(6px); }

/* 部ページ */
.ph-type { display: inline-block; margin: 0 .5em; padding: .15em .6em; vertical-align: .1em; border: 1px solid var(--gold); color: var(--gold); font-size: .85em; line-height: 1.3; letter-spacing: .1em; white-space: nowrap; }
.team-hero .ph-en { font-size: clamp(40px, 6.2vw, 80px); }
.team-hero + .sec .lead { margin: -16px 0 48px; }
.team-switch { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; border: 1px solid var(--gold-soft); background: linear-gradient(135deg, var(--navy), var(--bg-2)); text-align: center; transition: border-color .3s; }
.team-switch:hover { border-color: var(--gold); }
.team-switch span { font-family: var(--sans-en); font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.team-switch b { font-family: var(--mincho); font-size: clamp(20px, 2.6vw, 28px); letter-spacing: .1em; }
.result-label { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; font-size: 13px; color: var(--muted); }

/* 野球部について:年表のタグ・指導者の見出し */
.tl-tag { display: inline-block; min-width: 3.2em; margin-right: 10px; padding: 2px 6px; font-size: 11px; text-align: center; border-radius: 3px; vertical-align: 1px; }
.tl-tag.high { background: var(--gold); color: #111; }
.tl-tag.junior { background: #fff; color: var(--navy); }
.tl-tag.all { border: 1px solid rgba(255,255,255,.4); }
.sub-team { margin-left: 14px; font-size: 13px; color: var(--gold); letter-spacing: .1em; }
#staffArea .staff-grid { margin-bottom: 48px; }
.news-list li.empty { padding: 32px 8px; color: var(--muted); border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .team-entry { grid-template-columns: 1fr; }
  .team-card { padding: 26px 22px; }
  .team-type { width: 52px; height: 52px; font-size: 15px; top: 18px; right: 18px; }
  .tabs.team-tabs button { padding: 12px 22px; font-size: 14px; }
  .member-card .team-badge { top: 10px; left: 10px; }
}
/* 下段のタブ(学年別など)は控えめに */
.tabs.sub-tabs button.is-active { background: transparent; color: var(--gold); border-color: var(--gold); }

/* 指導者カード(写真つき) */
.staff-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); gap: 24px; }
.staff { padding: 0; border: none; background: none; }
.staff-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.staff:hover .staff-photo img { transform: scale(1.04); }
.staff-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 50%); }
.staff-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.staff-cap .staff-role { margin-bottom: 10px; }
.staff-cap .staff-en { margin-bottom: 0; }
.staff-sample { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 10px; letter-spacing: .1em; padding: 2px 8px; border: 1px solid rgba(255,255,255,.35); color: #ccc; background: rgba(0,0,0,.35); }
.staff > .staff-text { margin-top: 16px; }
@media (max-width: 860px) {
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .staff-cap { left: 14px; right: 14px; bottom: 14px; }
  .staff-cap .staff-name { font-size: 18px; }
  .staff-cap .staff-en { font-size: 9px; letter-spacing: .12em; }
  .staff > .staff-text { font-size: 12px; }
}
a.staff { display: block; color: inherit; }
a.staff:hover .staff-name { color: var(--gold); }
/* スマホ:カードが細いので、ポジション表示をバッジの下に置いて重なりを防ぐ */
@media (max-width: 860px) {
  .member-card .member-pos { top: 36px; left: 10px; right: auto; font-size: 10px; padding: 2px 8px; }
}

/* ホームボタン(下層ページだけに表示) */
.home-btn { display: none; }
@media (max-width: 860px) {
  .home-btn { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; margin-right: 4px; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.3); }
  .home-btn svg { width: 20px; height: 20px; }
  .home-btn:active { border-color: var(--gold); color: var(--gold); }
}
.gnav a { white-space: nowrap; }
@media (max-width: 960px) { .gnav { gap: 12px; font-size: 11.5px; } .gnav .btn-pill { padding: 7px 14px; } }

/* トップ3枚目(ハイタッチ):顔と手が切れないよう上寄せ、文字は顔と手を避けて左下へ */
.scene-hometouch { background-position: 50% 0%; }
.cap-bottom { top: auto; bottom: 9vh; transform: none; }
@media (max-width: 860px) {
  .scene-hometouch { background-position: 25% 0%; }
  .cap-bottom { bottom: 120px; }
}

/* ===================================================
   お問い合わせページ
   =================================================== */
.contact-lead { font-family: var(--mincho); font-weight: 800; font-size: clamp(20px, 2.8vw, 30px); line-height: 1.8; letter-spacing: .1em; text-align: center; margin: 0 0 90px; }
.ctype-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ctype { display: flex; flex-direction: column; padding: 30px 24px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--navy), var(--bg-2)); transition: border-color .3s, transform .3s; }
.ctype:hover { border-color: var(--gold); transform: translateY(-4px); }
.ctype-en { font-family: var(--sans-en); font-weight: 600; font-size: 11px; letter-spacing: .25em; color: var(--gold); }
.ctype h3 { font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: .08em; margin: 12px 0 12px; }
.ctype p { font-size: 13px; line-height: 1.9; color: #ccc; margin: 0 0 20px; flex: 1; }
.ctype-go { font-size: 13px; letter-spacing: .12em; color: var(--gold); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 44px; font-weight: 700; font-size: 15px; letter-spacing: .05em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 6px; top: 16px; font-family: var(--serif-en); font-size: 24px; color: var(--gold); }
.faq summary::after { content: "+"; position: absolute; right: 12px; top: 18px; font-size: 22px; color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 24px 44px; font-size: 14px; line-height: 2; color: #ddd; }

.cform, .cconfirm, .cdone { max-width: 820px; margin: 0 auto; }
.cform-note { font-size: 13px; color: var(--muted); margin: 0 0 30px; }
.req { display: inline-block; margin-left: 10px; padding: 1px 8px; font-size: 10px; font-weight: 700; letter-spacing: .1em; background: var(--gold); color: #111; border-radius: 2px; vertical-align: 2px; }
.req.opt { background: none; color: var(--muted); border: 1px solid var(--line); }
.cform-note .req { margin: 0 4px 0 0; }
.f-row { margin-bottom: 26px; }
.f-label { display: block; margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.f-grid.three { grid-template-columns: repeat(3, 1fr); }
.cform input[type=text], .cform input[type=email], .cform input[type=tel], .cform input[type=number], .cform input[type=date], .cform select, .cform textarea {
  width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s, background .2s; color-scheme: dark;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.08); }
.cform ::placeholder { color: rgba(255,255,255,.3); }
.cform textarea { resize: vertical; line-height: 1.8; }
.f-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.f-choices label { cursor: pointer; }
.f-choices input { position: absolute; opacity: 0; pointer-events: none; }
.f-choices span { display: inline-block; padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: all .2s; }
.f-choices label:hover span { border-color: var(--gold); }
.f-choices input:checked + span { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 700; }
.f-choices input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.f-extra { margin: 6px 0 30px; padding: 26px 26px 4px; border: 1px solid var(--gold-soft); border-radius: 4px; background: rgba(201,164,92,.04); }
.f-extra legend { padding: 0 10px; font-family: var(--mincho); font-weight: 800; color: var(--gold); letter-spacing: .1em; }
.f-err { margin: 8px 0 0; font-size: 12px; color: #f08f7f; min-height: 0; }
.f-err:empty { display: none; }
.f-err.center { text-align: center; }
.privacy { margin: 10px 0 20px; padding: 22px 24px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 13px; line-height: 1.9; color: #ccc; }
.privacy p { margin: 0; }
.privacy-title { font-weight: 700; color: var(--text); margin-bottom: 8px !important; }
.privacy-title small { margin-left: 8px; color: var(--muted); font-weight: 400; }
.f-agree { display: flex; justify-content: center; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.f-agree input { width: 20px; height: 20px; accent-color: var(--gold); }
.f-actions { display: flex; justify-content: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.f-btn { min-width: 240px; padding: 16px 30px; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: #111; font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .12em; cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.f-btn:hover { opacity: .85; }
.f-btn.ghost { background: none; color: var(--text); border-color: var(--line); }
.cconfirm-lead { text-align: center; line-height: 1.9; margin: 0 0 30px; }
.cdone { text-align: center; padding: 50px 24px; border: 1px solid var(--gold-soft); }
.cdone-title { font-family: var(--mincho); font-weight: 800; font-size: 24px; letter-spacing: .1em; color: var(--gold); margin: 0 0 16px; }
.cdone p { line-height: 2; }
.cdone .f-btn { margin-top: 24px; }
.tel-box { max-width: 820px; margin: 0 auto; padding: 44px 24px; text-align: center; border: 1px solid var(--line); background: linear-gradient(135deg, var(--navy), var(--bg-2)); }
.tel-title { font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: .1em; margin: 6px 0 14px; }
.tel-num { display: inline-block; font-family: var(--serif-en); font-size: clamp(34px, 5vw, 48px); letter-spacing: .06em; color: var(--gold); }
.tel-box .note { margin-top: 10px; line-height: 1.9; }
#form { scroll-margin-top: 80px; }

@media (max-width: 960px) { .ctype-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .contact-lead { margin-bottom: 60px; }
  .ctype-grid { grid-template-columns: 1fr; }
  .f-grid, .f-grid.three { grid-template-columns: 1fr; }
  .f-extra { padding: 20px 16px 2px; }
  .f-choices span { padding: 10px 16px; font-size: 13px; }
  .f-btn { min-width: 0; width: 100%; }
  .f-actions { flex-direction: column-reverse; }
}

/* ===================================================
   ブロック間の余白を詰める(全ページ共通)
   以前: 上下 各 画面幅の12%(80〜150px)+部品の下100px
   =================================================== */
.sec { padding: clamp(56px, 7vw, 90px) 0; }
/* ブロック最後の部品の下の余白は0にして、二重に空かないようにする */
.sec .inner > :last-child { margin-bottom: 0; }
.sec .inner > .btn-more:last-child { margin-bottom: 0; }
.contact-lead { margin-bottom: 56px; }

/* 野球部について:アクセス(住所+Googleマップ) */
.access-box { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; padding: 40px; }
.access-title { font-family: var(--mincho); font-weight: 800; font-size: 22px; letter-spacing: .08em; margin: 10px 0 24px; }
.access-list { margin: 0 0 30px; border-top: 1px solid var(--line); }
.access-list div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.access-list dt { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.access-list dd { margin: 0; font-size: 14px; line-height: 1.8; }
.map-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 26px; border: 1px solid var(--gold); border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .1em; transition: background .3s, color .3s; }
.map-btn:hover { background: var(--gold); color: #111; }
.map-btn i { font-style: normal; }
.access-map { position: relative; min-height: 340px; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.access-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) {
  .access-box { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; }
  .access-map { min-height: 280px; }
  .map-btn { width: 100%; justify-content: center; box-sizing: border-box; }
}

/* ===================================================
   校章の演出(紺の画面に校章が浮かび上がる)
   ・出すのは「ホームを開いたとき」と「リロードしたとき」だけ
     (各ページの <head> の短い判定で html に pt-show が付く)
   ・js/layout.js が時間がたったら pt-done を付けて消す
   =================================================== */
body::before, body::after {
  content: ""; position: fixed; opacity: 0; visibility: hidden; pointer-events: none;
}
body::before {
  inset: 0; z-index: 9998;
  background: radial-gradient(ellipse at center, #13213d 0%, #0a1120 70%);
}
body::after {
  inset: 0; margin: auto; z-index: 9999;
  width: clamp(120px, 14vw, 180px); height: clamp(120px, 14vw, 180px); /* 校章の大きさ */
  background: url("../images/emblem-hd.png") center / contain no-repeat;
}
/* 演出を出すページ */
html.pt-show body::before, html.pt-show body::after { opacity: 1; visibility: visible; pointer-events: auto; }
html.pt-show body::before { animation: ptFailsafe .5s 4s forwards; }
html.pt-show body::after { animation: ptIn .7s .12s cubic-bezier(.2,.7,.2,1) backwards, ptFailsafe .5s 4s forwards; }
@keyframes ptIn { from { opacity: 0; transform: scale(.86); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
/* 安全装置:何かの理由で消えなくても、4秒後には必ず消える */
@keyframes ptFailsafe { to { opacity: 0; visibility: hidden; } }
/* 表示し終わったら消す */
html.pt-done body::before, html.pt-done body::after {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
/* ホームへ戻るリンクを押したとき:画面を暗くしてから移動する */
html.pt-leave body::before { opacity: 1; visibility: visible; pointer-events: auto; animation: none; transition: opacity .4s ease; }
html.pt-leave body::after { opacity: 0; visibility: hidden; animation: none; }
@media (prefers-reduced-motion: reduce) {
  html.pt-show body::after { animation: ptFailsafe .5s 4s forwards; }
}
