/* ============================================================
   JR東日本東北野球部 — メインスタイルシート
   ============================================================ */

/* ------ 変数 ------ */
:root {
  --green:        #008803;
  --green-dark:   #135920;
  --green-mid:    #28a03e;
  --green-light:  #e8f5eb;
  --orange:       #FF9500;
  --white:        #fff;
  --gray-bg:      #f5f5f5;
  --green-bg:     #F0F6F2;
  --border:       #d8d8d8;
  --text:         #333;
  --text-mid:     #444;
  --text-light:   #99A1AF;
  --radius:       4px;
  --shadow:       0 2px 12px rgba(0,0,0,.09);
  --transition:   .18s ease;
}

/* ------ リセット ------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { opacity: 0.8; }
ul { list-style: none; }

/* ------ レイアウト ------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
main { flex: 1; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 5px solid var(--green);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .header-inner {
    padding: 23.5px 20px;
    max-width: 1200px;
  }
}

/* ロゴ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  width: 48px; height: 35px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text { line-height: 1.25; }
.logo-text span { display: block; }
.logo-text .name-ja { white-space: nowrap; font-size: 18px; font-weight: 700; }
.logo-text .name-en { white-space: nowrap; font-size: 10px; letter-spacing: .02em; }

/* グローバルナビ（モバイルでは非表示） */
.global-nav { display: none; }
.global-nav ul {
  display: flex;
  align-items: center;
}
.global-nav ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mid);
  border-left: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.global-nav ul li:last-child a { border-right: 1px solid var(--border); }
.global-nav ul li a:hover,
.global-nav ul li a.active {
  color: var(--green);
  text-decoration: none;
}

/* ハンバーガー（モバイルで表示） */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 45px; height: 45px;
  background: var(--green);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 23px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav ul li a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: var(--green-light);
  color: var(--green);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .global-nav { display: block; }
  .hamburger { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--green);
  color: var(--white);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  padding: 36px 20px 24px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.footer-brand .brand-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.footer-brand .brand-sub { font-size: 11px; opacity: .75; letter-spacing: .05em; }
.footer-contact h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.footer-contact p { font-size: 12px; line-height: 1.9; opacity: .88; }
.footer-copy {
  text-align: center;
  font-size: 11px;
  opacity: .65;
  padding: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }
}

/* ============================================================
   パンくず
   ============================================================ */
.breadcrumb {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text-light);
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ============================================================
   ページヒーロー
   ============================================================ */
.page-hero {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #0e4a1a 0%, var(--green) 55%, var(--green-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
}
.page-hero.sche { background-image: url("/sendai/baseball/img/title_sche.jpg"); }
.page-hero.conv { background-image: url("/sendai/baseball/img/title_conv.jpg"); }
.page-hero.meikan { background-image: url("/sendai/baseball/img/title_meikan.jpg"); }
.page-hero.senseki { background-image: url("/sendai/baseball/img/title_senseki.jpg"); }
.page-hero.info { background-image: url("/sendai/baseball/img/title_info.jpg"); }
.page-hero.link { background-image: url("/sendai/baseball/img/title_link.jpg"); }

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
}
.page-hero .overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.3);
}
.page-hero h1 {
  position: relative; z-index: 1;
  color: var(--white);
  letter-spacing: .1em;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.page-hero.has-photo {
  background-size: cover;
  background-position: center;
  height: 200px;
}

@media (min-width: 769px) {
  .page-hero {
    height: 250px;
  }
  .page-hero h1 {
    font-size: clamp(22px, 5vw, 34px);
  }
}

/* ============================================================
   年度タブ
   ============================================================ */
.year-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}
.year-tabs li {
  width: calc(33.3% - 7px);
  border-right: 1px solid var(--border);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
  display: block;
  background-image: url("/sendai/baseball/img/year-tabs-bg.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.year-tabs.senseki li { width: calc(50% - 10px); }

.year-tabs li a { color: var(--text); }
.year-tabs li a:hover { color: var(--green); text-decoration: none; }

@media (min-width: 769px) {
  .year-tabs ul { margin: 50px 0; }
  .year-tabs li {
    width: calc(25% - 8px);
    padding: 10px 22px;
    font-size: 16px;
  }
  .year-tabs.senseki li { width: calc(25% - 8px); }
}

/* ============================================================
   ホームページ
   ============================================================ */

/* ヒーロー写真エリア */
.home-hero {
  width: 100%;
  height: 230px;
  background: linear-gradient(160deg, #0a2e13 0%, #1a5c26 40%, #2d9140 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.home-hero h1 {
  width: 100%; height: 100%;
}
.home-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .88;
}
.home-hero-placeholder {
  text-align: center;
  color: rgba(255,255,255,.15);
  font-size: 80px;
  user-select: none;
}

@media (min-width: 769px) {
  .home-hero { height: 820px; }
}

/* スローガンバナー */
.slogan-banner {
  padding: 20px;
  text-align: center;
}
@media (min-width: 1024px) {
  .slogan-banner {
    padding: 50px;
    text-align: center;
  }
}
.slogan-inner {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* クイックリンク */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
}
@media (min-width: 1024px) {
  .quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    gap: 30px;
  }
}

.quick-link {
  background: var(--green);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  text-decoration: none;
  border-right: 2px solid #006702;
  transition: background var(--transition);
}
.quick-link:first-child { border-radius: 5px 0 0 5px; }
.quick-link:last-child { border-radius: 0 5px 5px 0; border-right: none; }
.quick-link:hover { background: var(--green-dark); text-decoration: none; }
.quick-link .ql-icon img { height: 40px; width:40px; }
.quick-link .ql-ja { font-size: 10px; font-weight: 700; }
.quick-link .ql-en { font-size: 10px; font-weight: 700; color: var(--orange); }

@media (min-width: 769px) {
  .quick-link {
    gap: 8px;
    padding: 26px 12px;
  }
  .quick-link .ql-icon { font-size: 30px; }
  .quick-link .ql-ja { font-size: 14px; }
  .quick-link .ql-en { display: block; font-size: 10px; letter-spacing: .1em; }
}

@media (min-width: 1024px) {
  .quick-link {
    border-right: none;
    border-radius: 5px;
  }
  .quick-link:first-child { border-radius: 5px; }
  .quick-link:last-child { border-radius: 5px; }
  .quick-link .ql-icon img { height: 70px; width:70px; }
  .quick-link .ql-ja { font-size: 18px; }
  .quick-link .ql-en { font-size: 12px; }
}


/* 更新情報 */
.news-section {
  background: var(--green-bg);
  padding: 48px 20px;
}

@media (min-width: 1024px) {
  .news-section {
    padding: 56px 20px 120px;
  }
}

.section-heading {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

@media (min-width: 1024px) {
  .section-heading {
    font-size: 26px;
    margin-bottom: 10px;
  }
}
.section-bar {
  width: 70px; height: 3px;
  background: var(--green);
  margin: 0 auto 28px;
  border-radius: 2px;
}
@media (min-width: 1024px) {
  .section-bar {
    margin: 0 auto 40px;
  }
}

.news-list {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.news-list dt { padding: 13px 18px 0; font-size: 16px; color: var(--text-light); white-space: nowrap; min-width: 80px; }
.news-list dd { 
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  padding: 0 18px 13px;
}

@media (min-width: 1024px) {
  .news-list dl {
    display: flex;
    flex-wrap: wrap;
  }
  .news-list dt { 
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    width: 12em;
  }
  .news-list dd { 
    padding: 25px 30px;
    width: calc(100% - 12em);
  }
}
.news-list dt:nth-last-child(2) { border-bottom: none; }
.news-list dd:last-child { border-bottom: none; }

/* ============================================================
   スケジュールページ
   ============================================================ */
.sche-year-head {
  font-size: 17px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--gray-bg);
  border-top: 4px solid var(--green);
  margin-bottom: 24px;
}

.schedule-grid ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.schedule-grid li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green);
  padding: 16px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  gap: 8px;
  transition: background var(--transition);
  background-image: url("/sendai/baseball/img/icon-pdf-w.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
}
.schedule-grid li a { color: var(--white); font-size: 14px; }
.schedule-grid li a:hover { background: var(--green-dark); text-decoration: none; }
.schedule-grid li .icon_pdf { display:none; }


@media (min-width: 769px) {
  .sche-year-head {
    margin-bottom: 50px;
    font-size: 25px;
  }
  .schedule-grid ul {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 120px;
  }
  .schedule-grid li {
    padding: 16px 20px;
  }
  .schedule-grid li a {
    font-size: 16px;
  }
}

/* ============================================================
   大会組合せページ
   ============================================================ */
.tournament-year-head {
  font-size: 17px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--gray-bg);
  border-top: 4px solid var(--green);
  margin-bottom: 24px;
}
.tournament-list { margin-bottom: 56px; }
.tournament-list ul {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
}
.tournament-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  gap: 12px;
  transition: background var(--transition);
}
.tournament-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}

.tournament-list li:last-child { border-bottom: none; }
.tournament-list li:hover { background: var(--green-light); text-decoration: none; }
.tournament-list li::after { content:"›"; font-size:18px; }
.tournament-list li .icon_pdf { padding-left: 16px; }
.tournament-list li .icon_pdf::before {
  position: absolute;
  display: block;
  content:"";
  width: 21px;
  height: 26px;
  background-image: url("/sendai/baseball/img/icon-pdf-g.svg");
  background-repeat: no-repeat;
}




@media (min-width: 769px) {
  .tournament-year-head {
    margin-bottom: 50px;
    font-size: 25px;
  }
  .tournament-list {
    margin-bottom: 120px;
  }
}

/* ============================================================
   選手名鑑ページ
   ============================================================ */

.player-filter{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}
.filter-btn {
  border: none;
  border-right: 1px solid var(--border);
  padding: 9px 24px 9px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
  display: block;
  background-image: url("/sendai/baseball/img/year-tabs-bg.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: var(--white);
}
.filter-btn { color: var(--text); }
.filter-btn:hover { color: var(--green); text-decoration: none; }
.filter-btn:hover, .filter-btn.active {
  color: var(--green);
}

@media (min-width: 769px) {
  .player-filter { margin: 50px 0; }
  .filter-btn {
    padding: 10px 44px 10px 24px;
    font-size: 16px;
    background-position: right 20px center;
  }
}

.player-section { margin-bottom: 40px; }
.player-section-head {
  font-size: 17px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--green-bg);
  border-top: 4px solid var(--green);
  margin-bottom: 2px;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.player-grid li { box-shadow: var(--shadow); }
.player-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition);
}
.player-card:hover { transform: translateY(-3px); text-decoration: none; }
.player-photo {
  width: 100%;
  background: #ddd;
  overflow: hidden;
  position: relative;
  border-radius: 10px 10px 0 0;
}
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #e0e0e0, #c4c4c4);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #aaa;
}
.player-info {
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  position: relative;
  min-height: 56px;
  border-radius: 0 0 10px 10px;
}
.player-role { font-size: 10px; margin-bottom: 1px; }
.player-name-ja { font-size: 13px; font-weight: 700; line-height: 1.3; }
.player-name-en { font-size: 10px; }
.player-number {
  position: absolute;
  right: 10px; bottom: 10px;
  font-size: 24px;
  font-weight: 900;
  opacity: .85;
  line-height: 1;
  color: #fff100;
}

@media (min-width: 769px) {
  .player-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .player-role { font-size: 13px; }
  .player-name-ja { font-size: 20px; }
  .player-name-en { font-size: 13px; }
  .player-section-head {
    margin-bottom: 50px;
    font-size: 25px;
  }
  .player-number { font-size: 42px; right: 20px; bottom: 20px; }
}

@media (min-width: 1024px) {
  .player-grid { grid-template-columns: repeat(4, 1fr); }
  .player-number { font-size: 48px; right: 20px; bottom: 24px; }
}

/* 選手詳細 */
.player-detail-wrap { max-width: 840px; margin: 0 auto; }
.player-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green-bg);
  padding: 14px 20px;
  border-radius: var(--radius);
  margin: 24px 0;
}
.detail-number {
  font-size: 40px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  min-width: 56px;
}
.detail-position {
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
}
.detail-name-ja { font-size: 24px; font-weight: 700; }
.detail-name-en { font-size: 13px; color: var(--text-light); }
.player-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
  align-items: start;
}
.player-main-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
}
.player-main-photo-placeholder {
  width: 100%; aspect-ratio: 2/3;
  background: linear-gradient(160deg, #e0e0e0, #c4c4c4);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: #bbb;
}
.player-stats-table { width: 100%; border-collapse: collapse; }
.player-stats-table tr { border-bottom: 1px solid var(--border); }
.player-stats-table td { padding: 12px 10px; font-size: 13px; vertical-align: top; }
.player-stats-table td:first-child {
  color: var(--green);
  font-weight: 700;
  width: 110px;
  white-space: nowrap;
}
.player-stats-table tr.highlight td { background: var(--green-light); }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
}
.back-btn:hover { background: var(--green-dark); text-decoration: none; }

@media (min-width: 769px) {
  .player-detail-body {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .player-section { margin-bottom: 120px; }
}


/* ============================================================
   選手名鑑詳細ページ
   ============================================================ */

.player-p-section { margin-bottom: 40px; }
.player-p-section-head {
  font-size: 17px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--green-bg);
  border-top: 4px solid var(--green);
  margin-top: 50px;
  margin-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.prof-number { font-size: 40px; color: var(--green); }
.prof-role { font-size: 13px; padding: 5px 10px; border-radius: 5px; background-color: var(--green); color: var(--white); }
.prof-name-ja { font-size: 25px; }
.prof-name-en { font-size: 16px; display:none; }

.player-p-inner { width: 100%; }
.player-p-img { margin:20px 0; }
.player-p-img img { width: 100%; }
.player-p-detail table { width: 100%; margin:20px 0; }
.player-p-detail tr { display: flex; flex-wrap:wrap; }
.player-p-detail th { font-size: 16px; padding: 15px 20px; width: 100%; border-top: 1px solid var(--border); background-color: var(--green-bg); }
.player-p-detail td { font-size: 16px; padding: 15px 20px; width: 100%; border-top: 1px solid var(--border); text-align:center; }
.player-p-detail tr:last-child td { border-bottom: 1px solid var(--border); }
.player-p-btn a {
  background-color: var(--green);
  color: var(--white);
  padding: 10px 20px;
  display: table;
  margin-left:auto;
  margin-right:auto;
  border-radius: 10px;
}
.player-p-btn a::after {
  content: "›";
  font-size: 18px;
  margin-left: 10px;
}

@media (min-width: 769px) {
  .player-p-section-head {
    margin-bottom: 50px;
    font-size: 25px;
  }
  .prof-name-en { display:inline; }
  .player-p-section { margin-bottom: 120px; }
}

@media (min-width: 1024px) {
  .player-p-inner { display: flex; gap:30px; margin-bottom:60px; }
  .player-p-img { margin:0; width:50%; }
  .player-p-detail { margin:0; width:50%; }
  .player-p-detail table { margin:0; }
  .player-p-detail th { width:50%; }
  .player-p-detail td { width:50%; text-align:left; }
  .player-p-detail tr:last-child th { border-bottom: 1px solid var(--border); }
}


/* ============================================================
   戦績ページ
   ============================================================ */
.stats-year-head {
  font-size: 17px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--gray-bg);
  border-top: 4px solid var(--green);
  margin-bottom: 24px;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 36px; }
.stats-table table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 12px; }
.stats-table th {
  background: var(--green-bg);
  color: var(--green);
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}
.stats-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.stats-table tr:hover td { background: var(--green-light); }
.stats-table td a { color: var(--green); font-weight: 500; }
.stats-table td.result-win  { color: #0a7a0a; font-weight: 700; }
.stats-table td.result-lose { color: #c0000a; font-weight: 700; }
.stats-table td.result-draw { color: #888;    font-weight: 700; }

/* PCでは隠す */
.scroll-hint-top { display: none; }

@media (max-width: 768px) {
  .scroll-hint-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 5px;
    padding-right: 5px;
  }
  .scroll-hint-top span {
    line-height: 18px;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--green);
  }
  /* 動く矢印のアニメーション */
  .scroll-arrow {
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008803'%3E%3Cpath d='M16.01 11H4v2h12.01v3L20 12l-3.99-4v3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    animation: arrow-move 1.5s infinite;
    border:1px solid var(--green);
  }
}

@keyframes arrow-move {
  0% { transform: translateX(-5px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(5px); opacity: 0; }
}

@media (max-width: 768px) {
  .stats-table table { width:800px; }
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    /* 影とマスクの定義を直線的なものに変更 */
    background: 
      /* 左端の影を隠すマスク（背景と同じ白） */
      linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
      /* 右端の影を隠すマスク（背景と同じ白） */
      linear-gradient(to left, white 30%, rgba(255, 255, 255, 0)),
      /* 左側の影本体（スクロールすると出現） */
      linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0)),
      /* 右側の影本体（最初から表示、右端で消える） */
      linear-gradient(to left, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));

    background-repeat: no-repeat;
    /* 影の幅を15px（適宜調整可）にして上下いっぱいに表示 */
    background-size: 50px 100%, 50px 100%, 10px 100%, 10px 100%;
    /* 右側の影とマスクを右端に配置 */
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-attachment: local, local, scroll, scroll;
    background-color: white;
  }
}


/* ============================================================
   インフォメーションページ
   ============================================================ */
.info-section { margin-top: 28px; margin-bottom: 44px; }
.info-section-head {
  font-size: 17px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--gray-bg);
  border-top: 4px solid var(--green);
  margin-bottom: 24px;
}
.info-address { font-size: 13px; color: var(--text-mid); line-height: 1.9; margin-bottom: 12px; }
.map-frame {
  width: 100%; height: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: none; }
.map-link { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--green); }

@media (min-width: 769px) {
  .info-section { margin-top: 50px; margin-bottom: 120px; }
  .info-section-head { font-size: 25px; }
  .map-frame {
    width: 100%; height: 600px;
  }
  .info-address { font-size: 16px; }
  .map-link { font-size: 16px; }
}

/* ============================================================
   リンクページ
   ============================================================ */
.link-section { margin-top: 28px; margin-bottom: 44px; }
.link-section-head {
  font-size: 17px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--gray-bg);
  border-top: 4px solid var(--green);
  margin-bottom: 24px;
}
.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
  color: var(--green);
  transition: background var(--transition);
}
.link-item:hover { background: var(--green-light); text-decoration: none; }
@media (min-width: 769px) {
  .link-section { margin-top: 50px; margin-bottom: 120px; }
  .link-section-head { font-size: 25px; }
  .link-item { font-size: 16px; }
}