:root {
  --orange: #f58220;
  --orange-strong: #ff6a00;
  --black: #111111;
  --ink: #1d1f23;
  --muted: #69707a;
  --line: #e6e8eb;
  --paper: #f5f6f7;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(17, 17, 17, 0.16);
  --display-font: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body-font: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body-font);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid currentColor;
  background: var(--white);
  line-height: 1;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name,
.brand-sub {
  display: block;
  line-height: 1.1;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0;
}

.brand-sub {
  color: currentColor;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  align-items: end;
  min-height: 92vh;
  padding: 140px clamp(18px, 5vw, 70px) 58px;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.88), rgba(9, 9, 9, 0.34) 58%, rgba(9, 9, 9, 0.72)),
    linear-gradient(0deg, rgba(9, 9, 9, 0.86), rgba(9, 9, 9, 0) 45%),
    url("assets/hero-baseball.png") center / cover;
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: linear-gradient(90deg, var(--orange), #111 34%, var(--orange) 62%, #111);
  content: "";
}

.hero-content,
.score-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  /* max-width: 720px; */
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(74px, 10vw, 156px);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 14px;
  font-weight: 900;
}

.button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #111;
}

.button.ghost {
  background: rgba(17, 17, 17, 0.18);
  color: var(--white);
}

.score-panel {
  display: grid;
  gap: 12px;
}

.score-block {
  display: block;
  padding: 20px;
  border-left: 5px solid var(--orange);
  background: rgba(17, 17, 17, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  color: inherit;
}

.panel-label {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 22px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  font-weight: 900;
}

.score-row strong {
  font-family: var(--display-font);
  font-size: 52px;
  line-height: 0.9;
}

.score-row.muted {
  color: rgba(255, 255, 255, 0.68);
}

.score-block p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.score-block.next strong {
  display: block;
  color: var(--white);
  font-size: 22px;
}

.ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 15px clamp(18px, 5vw, 70px);
  background: var(--black);
  color: var(--white);
}

.ticker > span {
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 22px;
}

.ticker-track {
  display: flex;
  gap: 30px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 76px clamp(18px, 5vw, 70px);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.recruit-section h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: end;
  gap: 28px;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.game-center {
  background: var(--paper);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card,
.player-card,
.stats-grid article,
.schedule-item,
.recruit-cards article,
.video-card,
.detail-main,
.detail-side {
  border: 1px solid var(--line);
  background: var(--white);
}

.game-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-card:hover,
.player-card:hover,
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.11);
}

.game-meta,
.player-position,
.schedule-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-score {
  display: grid;
  gap: 8px;
}

.game-team {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.game-team strong {
  font-family: var(--display-font);
  font-size: 42px;
  line-height: 1;
}

.game-result {
  width: fit-content;
  padding: 4px 9px;
  background: var(--black);
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}

.detail-tags {
  margin: 0 0 14px;
}

.game-status {
  width: fit-content;
  padding: 4px 9px;
  background: rgba(17, 17, 17, 0.08);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.game-status.status-league,
.game-status.status-power-league,
.game-status.status-power-league-final {
  background: #000;
  color: #fff;
}

.game-status.status-friendly,
.game-status.status-open {
  background: #f0f1f2;
  color: #4d535a;
}

.game-result.result-win {
  background: #d9362b;
  color: #fff;
}

.game-result.result-loss {
  background: #1f5fbf;
  color: #fff;
}

.game-result.result-draw {
  background: #6f747b;
  color: #fff;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.player-card {
  position: relative;
  min-height: 278px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(245, 130, 32, 0.14), rgba(255, 255, 255, 0) 48%),
    var(--white);
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.player-card::before {
  position: absolute;
  right: -9px;
  bottom: -34px;
  color: rgba(17, 17, 17, 0.07);
  content: attr(data-number);
  font-family: var(--display-font);
  font-size: 162px;
  line-height: 1;
}

.player-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 30px;
}

.player-name {
  position: relative;
  margin: 46px 0 4px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.player-comment {
  position: relative;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.player-stats {
  position: relative;
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.player-stats span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.player-stats strong {
  color: var(--black);
  font-family: var(--display-font);
  font-size: 26px;
}

.stats-band {
  background: var(--black);
}

.stats-band .section-head h2 {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stats-grid article {
  padding: 22px;
  background: #181818;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.stats-grid h3 {
  margin: 0 0 18px;
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 25px;
}

.stats-grid ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-grid li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.stats-grid li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rank {
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 26px;
}

.value {
  color: var(--white);
  font-family: var(--display-font);
  font-size: 30px;
}

.stats-band .section-more {
  margin-top: 22px;
}

.schedule-layout {
  background: var(--paper);
}

.schedule-list {
  display: grid;
  gap: 12px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.schedule-date strong {
  display: block;
  color: var(--black);
  font-family: var(--display-font);
  font-size: 34px;
  line-height: 1;
}

.schedule-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.schedule-place {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.schedule-tag {
  padding: 5px 10px;
  background: var(--orange);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 14px;
  background: var(--black);
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.empty-state {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-weight: 900;
}

.youtube-section {
  background: var(--white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -18px 0 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.video-card.compact {
  margin-bottom: 18px;
}

.detail-video-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.detail-video-main {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.detail-video-main strong {
  color: var(--black);
  font-size: 16px;
  line-height: 1.45;
}

.detail-video-main small {
  color: var(--muted);
  font-weight: 900;
}

.detail-video-sublist {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.detail-video-sublist a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fafafa;
  color: inherit;
  text-decoration: none;
}

.detail-video-sublist span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--black);
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 18px;
}

.detail-video-sublist strong {
  overflow: hidden;
  color: var(--black);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-video-sublist small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.detail-video-empty {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.94), rgba(17, 17, 17, 0.84)),
    url("assets/hero-baseball.png") center / cover;
  color: var(--white);
}

.detail-video-empty span {
  width: fit-content;
  padding: 4px 8px;
  background: var(--orange);
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
}

.detail-video-empty strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.4;
}

.detail-video-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.7;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.video-thumb::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.62), rgba(245, 130, 32, 0.22));
  content: "";
}

.play-mark {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--display-font);
  font-size: 22px;
  text-transform: uppercase;
}

.video-label {
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.video-card strong {
  color: var(--black);
  font-size: 20px;
  line-height: 1.35;
}

.video-card small {
  color: var(--muted);
  font-weight: 900;
}

.recruit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 38px;
  padding: 82px clamp(18px, 5vw, 70px);
  background:
    linear-gradient(135deg, rgba(245, 130, 32, 0.92), rgba(245, 130, 32, 0.72)),
    var(--orange);
}

.recruit-section .eyebrow,
.recruit-section h2 {
  color: var(--black);
}

.recruit-section p {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(17, 17, 17, 0.76);
  font-weight: 800;
}

.recruit-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.recruit-cards article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.recruit-cards span {
  color: var(--orange-strong);
  font-family: var(--display-font);
  font-size: 24px;
}

.recruit-cards strong {
  display: block;
  color: var(--black);
  font-size: 20px;
  line-height: 1.28;
}

.recruit-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.recruit-form label {
  display: grid;
  gap: 7px;
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.recruit-form input,
.recruit-form select,
.recruit-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.recruit-form textarea {
  min-height: 130px;
  resize: vertical;
}

.recruit-form input:focus,
.recruit-form select:focus,
.recruit-form textarea:focus {
  outline: 3px solid rgba(17, 17, 17, 0.18);
  border-color: var(--black);
}

.recruit-form button {
  min-height: 50px;
  border: 0;
  background: var(--black);
  color: var(--orange);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.recruit-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: rgba(17, 17, 17, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.form-status.is-success {
  color: #147a3d;
}

.form-status.is-error {
  color: #b3261e;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: 180px;
  gap: 14px;
}

.photo-tile {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.14), rgba(245, 130, 32, 0.34)),
    url("assets/hero-baseball.png") center / cover;
  filter: grayscale(0.1);
}

.photo-tile.large {
  grid-row: span 2;
}

.photo-tile.orange {
  background:
    linear-gradient(135deg, rgba(245, 130, 32, 0.68), rgba(17, 17, 17, 0.2)),
    url("assets/hero-baseball.png") 60% 55% / cover;
}

.photo-tile.dark {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.2)),
    url("assets/hero-baseball.png") 35% 45% / cover;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 70px);
  background: var(--black);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.site-footer strong {
  color: var(--white);
}

.page-header {
  position: fixed;
  color: var(--ink);
}

.subpage {
  min-height: 72vh;
}

.page-hero,
.detail-hero {
  padding: 140px clamp(18px, 5vw, 70px) 64px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.45)),
    url("assets/hero-baseball.png") center / cover;
  color: var(--white);
}

.page-hero h1,
.detail-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 900;
}

.page-hero p:last-child,
.detail-hero p:last-child {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.full-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.season-summary {
  margin-bottom: 24px;
}

.record-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: end;
  padding: clamp(22px, 4vw, 34px);
  background: var(--black);
  color: var(--white);
}

.record-panel h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

.record-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.record-metrics span {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #191919;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
}

.record-metrics strong {
  color: var(--orange);
  font-family: var(--display-font);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}

.record-note {
  max-width: 440px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.season-block > .record-metrics {
  margin: 0 0 4px;
  background: var(--line);
}

.season-block > .record-metrics span {
  background: var(--white);
  color: var(--muted);
}

.season-block > .record-metrics strong {
  color: var(--black);
}

.stats-page-section {
  display: grid;
  gap: 28px;
  background: var(--paper);
}

.stats-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 18px;
  align-items: end;
}

.stats-page-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.qualification-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.qualification-panel span,
.qualification-panel small {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.qualification-panel strong {
  color: var(--black);
  font-family: var(--display-font);
  font-size: 34px;
  line-height: 1;
}

.qualification-panel small {
  grid-column: 1 / -1;
}

.leaderboard-groups,
.leaderboard-group {
  display: grid;
  gap: 18px;
}

.leaderboard-group h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.leaderboard-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.leaderboard-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

.leaderboard-card h3 {
  margin: 0;
  color: var(--black);
  font-size: 22px;
}

.leaderboard-card-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.leaderboard-card ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.leaderboard-card li a {
  text-decoration: none;
}

.leaderboard-card li strong {
  color: var(--black);
  font-family: var(--display-font);
  font-size: 28px;
  line-height: 1;
}

.compact-empty {
  margin: 0;
  padding: 14px;
}

.season-groups {
  display: grid;
  gap: 20px;
}

.season-block {
  display: grid;
  gap: 16px;
}

.season-head,
.season-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.season-head h2,
.season-block summary span {
  margin: 0;
  color: var(--black);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.season-head span,
.season-block summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.season-block summary {
  cursor: pointer;
  list-style: none;
}

.season-block summary::-webkit-details-marker {
  display: none;
}

.season-block summary::after {
  color: var(--orange);
  content: "+";
  font-family: var(--display-font);
  font-size: 34px;
  line-height: 1;
}

.season-block[open] summary::after {
  content: "-";
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  overflow: hidden;
}

.detail-number {
  color: rgba(245, 130, 32, 0.92);
  font-family: var(--display-font);
  font-size: clamp(96px, 18vw, 220px);
  line-height: 0.78;
}

.game-detail-hero h1 {
  display: grid;
  gap: 10px;
  font-size: clamp(34px, 5.6vw, 64px);
}

.game-detail-hero h1 span {
  display: block;
}

.game-detail-hero h1 span:last-child {
  color: var(--orange);
  font-size: 0.82em;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 20px;
  background: var(--paper);
}

.profile-only-layout {
  grid-template-columns: 1fr;
}

.detail-main,
.detail-side {
  padding: clamp(22px, 4vw, 36px);
}

.detail-main h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: var(--black);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

.detail-main p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.95;
}

.game-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  background: var(--line);
}

.game-highlights div {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: var(--white);
}

.game-highlights span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.game-highlights strong {
  color: var(--black);
  font-size: 13px;
  line-height: 1.45;
}

.game-highlights a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(245, 130, 32, 0.7);
  text-underline-offset: 3px;
}

.info-list {
  display: grid;
  gap: 1px;
  margin: 24px 0 0;
  background: var(--line);
}

.info-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px;
  background: var(--white);
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.info-list dd {
  margin: 0;
  font-weight: 800;
}

.profile-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  background: transparent;
  border-top: 1px solid var(--line);
}

.profile-info-grid div {
  grid-template-columns: 112px 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.metric-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--black);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.metric-grid strong {
  color: var(--orange);
  font-family: var(--display-font);
  font-size: 34px;
  line-height: 1;
}

.scoreboard-wrap {
  max-width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: var(--white);
}

.scoreboard {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.scoreboard th,
.scoreboard td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-weight: 900;
}

.scoreboard th:first-child {
  min-width: 190px;
  text-align: left;
}

.scoreboard thead th {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
}

.scoreboard tbody th {
  color: var(--black);
}

.scoreboard tbody td:nth-last-child(-n + 3) {
  background: rgba(245, 130, 32, 0.12);
  color: var(--black);
}

.stat-detail-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 0;
  background: var(--paper);
}

.stat-table-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background: var(--white);
}

.player-career-stats {
  display: block;
}

.player-career-stats .season-stat-grid {
  width: 100%;
}

.stat-card-batting {
  border-color: var(--line);
  background: var(--white);
}

.stat-card-pitching {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.stat-table-card h2 {
  margin: 0 0 18px;
  color: var(--black);
  font-size: clamp(26px, 4vw, 38px);
}

.stat-table-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.stat-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.stat-table div {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 13px;
  background: var(--white);
}

.stat-table span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stat-table strong {
  color: var(--black);
  font-family: var(--display-font);
  font-size: 34px;
  line-height: 1;
}

.appearance-section {
  background: var(--paper);
  padding-top: 0;
}

.appearance-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: var(--white);
}

.appearance-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.appearance-table.pitching-table {
  min-width: 680px;
}

.appearance-table th,
.appearance-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.appearance-table thead th {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
}

.appearance-table .total-row {
  background: rgba(245, 130, 32, 0.1);
  font-weight: 900;
}

.appearance-table td:nth-child(2) {
  text-align: left;
}

.appearance-table.batting-table td:nth-child(2) {
  text-align: center;
}

.appearance-table.batting-table td:nth-child(3) {
  text-align: left;
}

.appearance-table .total-row td,
.appearance-table .total-row td:nth-child(2),
.appearance-table.batting-table .total-row td:nth-child(3) {
  border-top: 2px solid var(--orange);
  text-align: center;
}

.appearance-table a {
  color: var(--black);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(245, 130, 32, 0.7);
  text-underline-offset: 3px;
}

.pitching-appearance-section {
  padding-top: 0;
}

.season-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.season-stat-grid + .appearance-table-wrap {
  margin-top: 16px;
}

.stat-table-card h3,
.season-head h3 {
  margin: 0 0 14px;
  color: var(--black);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}

.season-head h3 {
  margin: 0;
  font-weight: 900;
}

.compact-stat-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-stat-table div {
  min-height: 72px;
}

.split-log {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.split-log h4 {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero,
  .section-head.split,
  .recruit-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
  }

  .score-panel {
    margin-top: 46px;
  }

  .game-grid,
  .players-grid,
  .stats-grid,
  .leaderboard-grid,
  .full-grid,
  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }


  .stat-detail-section {
    grid-template-columns: 1fr;
  }

  .season-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page-hero,
  .detail-hero {
    padding-top: 116px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    display: none;
    min-width: 210px;
    padding: 16px;
    background: rgba(17, 17, 17, 0.96);
    color: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-header.is-scrolled .site-nav {
    background: var(--black);
    color: var(--white);
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-inline: 16px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero-copy {
    font-size: 14px;
  }

  .ticker {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-inline: 16px;
  }

  .ticker-track {
    display: grid;
    gap: 4px;
    white-space: normal;
  }

  .section {
    padding: 58px 16px;
  }

  .game-grid,
  .players-grid,
  .stats-grid,
  .leaderboard-grid,
  .recruit-cards,
  .gallery-grid,
  .video-grid,
  .full-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .record-panel,
  .record-metrics,
  .stats-page-head,
  .qualification-panel,
  .game-highlights,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .season-head,
  .season-block summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .detail-hero {
    grid-template-columns: 1fr;
    padding: 112px 16px 44px;
  }

  .game-detail-hero {
    gap: 12px;
  }

  .detail-number {
    font-size: 92px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1,
  .detail-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
    overflow-wrap: anywhere;
  }

  .game-detail-hero h1 {
    gap: 6px;
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.04;
  }

  .game-detail-hero h1 span:first-child {
    font-size: 0.86em;
  }

  .game-detail-hero h1 span:last-child {
    font-size: 0.8em;
  }

  .game-detail-hero p {
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .season-summary {
    margin-bottom: 16px;
  }

  .record-panel {
    gap: 16px;
    padding: 20px;
  }

  .record-metrics span {
    min-height: 74px;
  }

  .season-block {
    gap: 12px;
  }

  .season-head,
  .season-block summary {
    padding: 14px;
  }

  .game-card,
  .player-card {
    min-height: 0;
  }

  .player-card::before {
    font-size: 126px;
    right: -6px;
    bottom: -28px;
  }

  .player-name {
    margin-top: 34px;
    font-size: 21px;
  }

  .player-stats {
    flex-wrap: wrap;
  }

  .detail-main,
  .detail-side,
  .stat-table-card {
    padding: 16px;
  }

  .detail-layout {
    gap: 12px;
    padding-inline: 12px;
  }

  .detail-main,
  .detail-side {
    min-width: 0;
  }

  .detail-main h2,
  .detail-side h2,
  .stat-table-card h2 {
    font-size: 28px;
  }

  .detail-main p {
    font-size: 14px;
    line-height: 1.85;
  }

  .scoreboard-wrap {
    margin: 20px 0;
    border-left: 0;
    border-right: 0;
  }

  .scoreboard-wrap::after,
  .appearance-table-wrap::after {
    display: block;
    padding: 8px 12px;
    background: #f7f7f7;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: right;
    content: "横にスクロールできます";
  }

  .appearance-section {
    padding-bottom: 58px;
  }

  .appearance-table-wrap {
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .appearance-table {
    min-width: 900px;
  }

  .appearance-table.pitching-table {
    min-width: 760px;
  }

  .appearance-table th,
  .appearance-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .scoreboard {
    min-width: 500px;
  }

  .scoreboard th,
  .scoreboard td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .scoreboard th:first-child {
    min-width: 112px;
  }

  .game-highlights div {
    padding: 12px;
  }

  .info-list {
    margin-top: 18px;
  }

  .detail-video-panel {
    margin-bottom: 14px;
  }

  .detail-video-main {
    gap: 8px;
    padding: 10px;
  }

  .detail-video-main strong {
    font-size: 14px;
  }

  .detail-video-sublist a {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .detail-video-sublist span {
    width: 22px;
    height: 22px;
    font-size: 15px;
  }

  .detail-video-empty {
    padding: 14px;
  }

  .video-thumb {
    aspect-ratio: 16 / 8.6;
  }

  .play-mark {
    left: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .stat-detail-section {
    padding-bottom: 58px;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .form-row,
  .stat-table,
  .compact-stat-table {
    grid-template-columns: 1fr;
  }

  .schedule-tag {
    width: fit-content;
  }

  .recruit-section {
    padding: 62px 16px;
  }

  .gallery-grid {
    grid-auto-rows: 190px;
  }

  .photo-tile.large {
    grid-row: span 1;
  }

  .site-footer {
    display: grid;
    padding-inline: 16px;
  }
}
