*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #222;
  background: #f3f5f7;
  line-height: 1.6;
}

a {
  color: #0b67a3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.l-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  margin-bottom: 24px;
}

.site-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.site-header p {
  margin: 0;
  color: #666;
}

.breadcrumb {
  margin-bottom: 12px;
}

.card {
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  border-left: 5px solid #0b67a3;
  padding-left: 10px;
}

.player-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.player-card {
  display: block;
  border: 1px solid #d7dde3;
  border-radius: 10px;
  padding: 14px;
  background: #fafbfd;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.player-card__name {
  font-weight: 700;
  margin-bottom: 8px;
}

.player-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #666;
  font-size: 0.92rem;
}

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

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.data-table th,
.data-table td {
  border: 1px solid #d7dde3;
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap;
}

.data-table th {
  background: #eef4f8;
  font-size: 0.95rem;
}

.data-table td {
  background: #fff;
  font-size: 0.95rem;
}

.is-active-row td {
  background: #fdf7e8;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.year-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 12px;
  border: 1px solid #c8d4df;
  border-radius: 999px;
  background: #fff;
  color: #0b67a3;
  font-weight: 700;
}

.year-chip.is-current {
  background: #0b67a3;
  border-color: #0b67a3;
  color: #fff;
}

@media (max-width: 767px) {
  .l-wrap {
    width: min(100% - 24px, 1200px);
    padding-top: 16px;
  }

  .site-header h1 {
    font-size: 1.6rem;
  }

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

  .card {
    padding: 16px;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.status-badge--start {
  background: #19b6c9;
  color: #fff;
}

.status-badge--subin {
  background: #555;
  color: #fff;
}

.status-badge--bench {
  background: #d9dee3;
  color: #555;
}

.status-badge--none {
  background: #eef2f5;
  color: #777;
}

.result-chip {
  display: inline-block;
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.result-chip--win {
  background: #e7f7ef;
  color: #138a52;
}

.result-chip--lose {
  background: #fdecec;
  color: #c0392b;
}

.result-chip--draw {
  background: #eef2f5;
  color: #55606b;
}


.loan-label {
  margin-left: 6px;
  font-size: 0.75rem;
  color: #888;
}

.now-label {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #19b6c9;
  color: #fff;
  border-radius: 4px;
}

.team-history li:last-child {
  font-weight: bold;
}

.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 0 0 1px #ddd;
}

.match-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.match-hero__team {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.match-hero__team-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.match-hero__score {
  text-align: center;
}

.match-hero__score-main {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.match-hero__score-main span {
  margin: 0 8px;
  color: #666;
}

.match-hero__meta {
  margin-top: 8px;
  color: #666;
  font-size: 0.95rem;
}

.match-team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.match-group {
  border: 1px solid #d7dde3;
  border-radius: 10px;
  padding: 16px;
  background: #fafbfd;
}

.match-group__title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.simple-player-list {
  margin: 0;
  padding-left: 18px;
}

.simple-player-list li+li {
  margin-top: 6px;
}

@media (max-width: 767px) {
  .match-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .match-groups {
    grid-template-columns: 1fr;
  }

  .match-team-logo {
    width: 32px;
    height: 32px;
  }
}

.match-card {
  text-align: center;
}

.match-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.team-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.vs-text {
  font-size: 0.9rem;
  color: #666;
}

.win {
  color: #1a7f37;
  font-weight: bold;
}

.lose {
  color: #d1242f;
}

.player-name {
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-number {
  background: #003287;
  color: #fff;
  border-radius: 40px;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  text-align: center;
}



/* season.php */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.season-card {
  display: block;
  border: 1px solid #d7dde3;
  border-radius: 12px;
  padding: 20px 16px;
  background: #fff;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.season-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.season-card__label {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.season-card__sub {
  color: #666;
  font-size: 0.9rem;
}

.season-switch {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.season-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #c8d4df;
  background: #fff;
  font-weight: 700;
  color: #0b67a3;
}

.season-switch__btn.is-current {
  background: #0b67a3;
  border-color: #0b67a3;
  color: #fff;
}

.season-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.season-list__item {
  display: grid;
  gap: 12px;
  align-items: center;
  border: 1px solid #d7dde3;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  text-decoration: none;
  color: #222;
}

.season-list__item:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.season-list__item--player {
  grid-template-columns: 1.5fr 2fr;
}

.season-list__item--match {
  display: grid;
  grid-template-columns: 130px 220px 180px 1fr;
  gap: 16px;
  align-items: center;
}

.season-player-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.season-player-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #003287;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.season-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #555;
  font-size: 0.95rem;
}

.season-nationality {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.season-nationality__flag {
  font-size: 1.1rem;
  line-height: 1;
}

.season-match-date,
.season-match-competition,
.season-match-round {
  font-weight: 700;
}
.season-match-line {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 16px;
  align-items: center;
}
.season-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.season-match-team--home {
  justify-content: flex-end;
  text-align: right;
}

.season-match-team--away {
  justify-content: flex-start;
  text-align: left;
}

.season-match-team span {
  word-break: keep-all;
}

.season-match-score {
  text-align: center;
}

.score-main {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.score-sub {
  margin-top: 2px;
  font-size: 0.95rem;
  color: #777;
  line-height: 1.2;
}

.result-chip--win .score-main {
  color: #138a52;
}

.result-chip--lose .score-main {
  color: #c0392b;
}

.result-chip--draw .score-main {
  color: #55606b;
}

@media (max-width: 767px) {
  .season-list__item--match {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .season-match-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .season-match-team--home,
  .season-match-team--away {
    justify-content: flex-start;
    text-align: left;
  }

  .season-match-score {
    text-align: left;
  }
}


.season-match-card {
  text-align: center;
}

.match-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.team-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.vs-text {
  color: #666;
  font-size: 0.9rem;
}

.result-chip {
  display: inline-block;
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.result-chip--win {
  background: #e7f7ef;
  color: #138a52;
}

.result-chip--lose {
  background: #fdecec;
  color: #c0392b;
}

.result-chip--draw {
  background: #eef2f5;
  color: #55606b;
}

@media (max-width: 767px) {

  .season-list__item--player,
  .season-list__item--match {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .season-match-date,
  .season-match-competition,
  .season-match-score,
  .season-match-round,
  .season-match-card {
    text-align: left;
  }

  .match-card-inner {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


.match-hero__result-note--extra_time {
  color: #e67e22;
}

.match-hero__result-note--penalties {
  color: #8e44ad;
}


/* 監督表示 */
.season-manager {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid #d9e1e8;
  border-radius: 12px;
  background: #f8fbff;
  color: #222;
}

.season-manager__main {
  font-size: 1.4rem;
  line-height: 1.6;
}

.season-manager__name {
  font-size: 1.4rem;
  font-weight: 700;
}

.season-manager strong {
  font-weight: 700;
  color: #1255a6;
  margin-right: 6px;
}

.season-manager__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 6px;
}

.season-manager__stat {
  display: inline;
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.season-manager__by-competition {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.season-manager__competition {
  padding-top: 10px;
  border-top: 1px solid #d9e1e8;
}

.season-manager__competition-name {
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
}

.season-manager__competition-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.season-manager .loan-label {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1255a6;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  vertical-align: middle;
}

.player-match-score-link {
  display: inline-block;
  text-decoration: none;
}

.player-match-score-link:hover {
  text-decoration: none;
}

.player-match-score-link .result-chip {
  min-width: 72px;
  padding: 6px 10px;
  text-align: center;
}

.player-match-score-link .score-main {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.player-match-score-link .score-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.2;
}

/* ===== 静的ページ（プライバシーポリシー・運営者情報） ===== */
.static-content {
  line-height: 1.8;
}

.static-content p {
  margin: 0 0 1em;
  font-size: 1.4rem;
}

.static-content .section-title {
  margin-top: 28px;
}

.static-content .section-title:first-child {
  margin-top: 0;
}

.static-content__date {
  margin-top: 32px;
  color: #888;
  font-size: 1.2rem !important;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  margin-top: 8px;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border: 1px solid #d7dde3;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 140px;
  background: #f3f5f7;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .info-table th {
    width: 100px;
  }
}

/* フッターナビ */
.site-footer__nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}

.site-footer__nav a {
  font-size: 1.2rem;
  color: #aaa;
}

.site-footer__nav a:hover {
  color: #fff;
}

/* ===== トップページ ナビゲーションカード ===== */
.top-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .top-nav-grid {
    grid-template-columns: 1fr;
  }
}

.top-nav-card {
  display: block;
  background: #fff;
  border: 2px solid #d7dde3;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: #222;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.top-nav-card:hover {
  border-color: #0b67a3;
  box-shadow: 0 6px 20px rgba(11,103,163,0.12);
  text-decoration: none;
  color: #222;
}

.top-nav-card__label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b67a3;
  margin-bottom: 6px;
}

.top-nav-card__desc {
  font-size: 1.1rem;
  color: #888;
  line-height: 1.5;
}

/* ===== ガンバ通算成績 ===== */
.career-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.career-stat-box {
  background: #f3f5f7;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.career-stat-box__label {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 4px;
}

.career-stat-box__value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1255a6;
  line-height: 1.2;
}

.career-stat-box__sub {
  font-size: 1.0rem;
  color: #aaa;
}

/* ===== ソート可能テーブル ===== */
.sort-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.sort-th:hover {
  background: #eef5fb;
}

.sort-arrow {
  font-size: 0.8em;
  color: #aaa;
  margin-left: 3px;
}

.sort-th.is-sorted .sort-arrow {
  color: #0b67a3;
}

.filter-input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: normal;
  color: #333;
}

/* ===== 選手成績 / 監督成績ページ ===== */
.page-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-filter label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
}

.page-filter select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.3rem;
  color: #333;
}

.win-rate-bar {
  display: inline-block;
  height: 8px;
  background: #0b67a3;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ===== 更新情報リスト ===== */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.news-list__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f5;
  font-size: 1.4rem;
}

.news-list__item:last-child {
  border-bottom: none;
}

.news-list__date {
  color: #888;
  font-size: 1.2rem;
  white-space: nowrap;
  min-width: 90px;
}

.news-list__text {
  color: #333;
  line-height: 1.6;
}
