/*
Theme Name: KATALLER TOYAMA WPテーマ
Theme URI: -
Author: Legatoship
Author URI: https://www.legatoship.co.jp/
Description: カターレ富山専用WordPressテーマです
Version: 1.0
*/

/* Reset CSS */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 画像・メディア要素のデフォルト */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* フォーム要素のフォントを継承 */
input,
button,
textarea,
select {
  font: inherit;
}

/* ボックスサイジングを統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =======================
基本ルール・共通変数
======================= */
:root {
  --navy: #22347a;
  --navy-dark: #232d72;
  --white: #ffffff;
  --black: #000000;
  /* カラーパレット（Figma指定） */
  --blue-main: #0070c0;
  --blue-light: #c0e6f5;
  --blue-mid: #a6c9ec;
  --gray-bg: #edeef2;
  --gray-light: #cccccc;
  --gray-mid: #888888;
  /* ヘッダー・ドロワー重なり順 */
  --z-header: 1000;
  --z-drawer: 900;
  /* 標準コンテンツ最大幅（PC・News / 選手など共通） */
  --content-max: 1280px;
  /* グラデーション */
  --fv-mask-gradient: linear-gradient(180deg, #fff 0%, #edeef2 100%);
  /* 見出しフォント共通変数 */
  --font-heading-en-family: "Oswald", sans-serif;
  --font-heading-en-weight: 600; /* semibold */
  --font-heading-en-size: 48px;

  --font-heading-jp-family: "Noto Sans JP", sans-serif;
  --font-heading-jp-weight: 700; /* bold */
  --font-heading-jp-size: 20px;
  /* 本文用フォント（日本語） */
  --font-body-jp-family: "Noto Sans JP", sans-serif;
  --font-body-jp-size: 16px;
  --font-body-jp-weight: 400;
  /* サブテキスト用フォント（日本語） */
  --font-sub-jp-family: "Noto Sans JP", sans-serif;
  --font-sub-jp-size: 14px;
  --font-sub-jp-weight: 400;
  /* 最小フォント */
  --font-sub-jp-xxs: 10px;
  /* 共通見出し（英和の段差・セクション見出し周り） */
  --heading-en-ja-stack-gap: 10px;
  --section-title-inline-gap: 12px;
  --section-title-margin-bottom: 34px;
  /* シングル記事タイトル（.c-entry-title の clamp） */
  --font-entry-title-min: 20px;
  --font-entry-title-preferred: 2.8vw;
  --font-entry-title-max: 30px;
  /* 余白（PC） */
  --gap-section-xlg: 100px;
  --gap-section-lg: 80px;
  --gap-section-md: 40px;
  --gap-section-sm: 20px;
}

/* SP: 767px以下 */
@media (max-width: 767px) {
  :root {
    --font-heading-en-size: 36px; /* PC 48px → SP 36px */
    --font-heading-jp-size: 16px; /* PC 20px → SP 16px */
    --font-body-jp-size: 14px; /* PC 16px → SP 14px */
    --font-sub-jp-size: 12px; /* PC 14px → SP 12px */
    --font-sub-jp-xxs: 8px; /* PC 10px → SP 8px */
    /* 余白（SP） */
    --gap-section-xlg: 40px; /* PC 100px → SP 40px */
    --gap-section-lg: 40px; /* PC 80px → SP 40px */
    --gap-section-md: 20px; /* PC 40px → SP 20px */
    --gap-section-sm: 8px; /* PC 20px → SP 8px */
  }
}
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body-jp-family);
  font-size: var(--font-body-jp-size);
  font-weight: var(--font-body-jp-weight);
  line-height: 1.7;
  min-width: 320px;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  transition: all 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--blue-main);
}

a img {
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* 共通ユーティリティ */
.u-font-16 {
  font-size: var(--font-body-jp-size);
}
.u-weight-400 {
  font-weight: 400;
}
.u-weight-700 {
  font-weight: 700;
}
/* 白背景コンテンツ内のセクション見出し（旧 article.bg_blue .bg_white h2 相当） */
.c-section-heading {
  color: #555;
  font-size: 20px;
  padding: 0.8em 0;
  border-bottom: 4px solid #dedfe8;
  text-align: center;
}
@media (min-width: 768px) {
  .c-section-heading {
    font-size: 24px;
  }
}

.u-font-16 {
  font-size: var(--font-body-jp-size);
}
.u-weight-400 {
  font-weight: 400;
}
.u-weight-700 {
  font-weight: 700;
}
/* =======================
共通ボタン（front-page 含む）
======================= */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 4px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: var(--font-body-jp-size);
  font-weight: 600;
  line-height: 1;
}
.c-btn,
.c-btn:hover,
.c-btn:focus-visible,
.c-btn:visited {
  text-decoration: none;
}
.c-btn--solid-white {
  color: var(--navy);
  background: var(--white);
}
.c-btn--solid-blue {
  color: var(--white);
  background: var(--blue-main);
}
.c-btn--solid-gray {
  color: var(--navy);
  background: var(--gray-bg);
}
.c-btn--outline-white {
  color: var(--white);
  background: transparent;
  border: 1px solid var(--white);
}
.c-btn--outline-navy {
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--navy);
}
.c-btn--solid-white,
.c-btn--solid-white:hover,
.c-btn--solid-white:focus-visible,
.c-btn--solid-white:visited,
.c-btn--solid-gray,
.c-btn--solid-gray:hover,
.c-btn--solid-gray:focus-visible,
.c-btn--solid-gray:visited,
.c-btn--outline-navy,
.c-btn--outline-navy:hover,
.c-btn--outline-navy:focus-visible,
.c-btn--outline-navy:visited {
  color: var(--navy);
}
.c-btn--solid-blue,
.c-btn--solid-blue:hover,
.c-btn--solid-blue:focus-visible,
.c-btn--solid-blue:visited,
.c-btn--outline-white,
.c-btn--outline-white:hover,
.c-btn--outline-white:focus-visible,
.c-btn--outline-white:visited {
  color: var(--white);
}
.c-btn::after {
  content: "";
  width: 11.73px;
  height: 17.6px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.c-btn--solid-blue::after,
.c-btn--outline-white::after {
  background-image: url("assets/images/front/front-slider-arrow-prev.svg");
}
.c-btn--solid-white::after,
.c-btn--solid-gray::after,
.c-btn--outline-navy::after {
  background-image: url("assets/images/front/front-slider-arrow-next.svg");
}
.c-btn--arrow-left {
  flex-direction: row-reverse;
}
.c-btn--arrow-left::after {
  transform: scaleX(-1);
}
.c-btn--no-icon::after {
  content: none;
}

/* 標準ページ枠（max 1280 / 上下 --gap-section-lg / 左右 --gap-section-md / 中央寄せ） */
.l-page,
.l-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section-lg);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-block: 0;
  margin-inline: auto;
  padding: var(--gap-section-lg) var(--gap-section-md) 0;
}

/* =======================
共通ページネーション
======================= */
.c-pagination-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}
.c-pagination {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-top: var(--gap-section-lg);
}
.c-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  cursor: pointer;
  background-color: var(--white);
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.c-pagination__capsule {
  display: flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 4px;
}
.c-pagination__list {
  display: flex;
  gap: 2px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-pagination__item a,
.c-pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-family: var(--font-heading-en-family);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background-color: var(--white);
  border-radius: 4px;
  transition: all 0.25s ease;
}
.c-pagination__item a:hover,
.c-pagination__item a:focus-visible,
.c-pagination__item a:visited {
  color: var(--navy);
  background-color: var(--white);
}
.c-pagination__item.is-current span {
  color: var(--navy);
  background-color: var(--gray-bg);
}
.c-pagination__item.is-dots span {
  min-width: auto;
  cursor: default;
  background: none;
}
.c-pagination__btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.c-pagination__btn.is-next svg {
  transform: rotate(180deg);
}
.c-pagination__btn:hover {
  color: var(--navy);
  background-color: var(--white);
}
@media (max-width: 767px) {
  .c-pagination {
    gap: 8px;
  }
  .c-pagination__capsule {
    padding: 5px 6px;
  }
  .c-pagination__btn {
    width: 38px;
    height: 38px;
  }
  .c-pagination__item a,
  .c-pagination__item span {
    min-width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

/* =======================
共通NEWSパーツ
======================= */
.c-news-pickup.c-news-section.front-section {
  padding: var(--gap-section-xlg) 0;
}
.c-news-pickup__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.c-news-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.c-news-card__link {
  display: block;
  text-decoration: none;
}
.c-news-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 720;
  object-fit: cover;
}
.c-news-card__title {
  min-height: 120px;
  margin: 0;
  padding: var(--gap-section-sm);
  color: var(--navy);
  font-size: var(--font-body-jp-size);
  font-weight: 700;
  line-height: 1.3;
}
.c-news-list-panel {
  border-radius: 8px;
  background: var(--white);
  padding: var(--gap-section-sm);
}
.c-news-tabs {
  border-bottom: 1px solid #5da2c3;
}
.c-news-tabs ul {
  display: flex;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-news-tabs li {
  flex-shrink: 0;
}
.c-news-tabs li a:hover {
  color: var(--white);
  background-color: var(--navy);
}
.c-news-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 8px 20px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  font-size: var(--font-body-jp-size);
  font-weight: 700;
  line-height: 1;
}

.c-news-tabs li.is-active a {
  color: var(--white);
  background: var(--navy);
}
/* news.html のカテゴリタブ（可変数） */
.c-news-tabs.p-category-nav {
  width: 100%;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--navy);
}
.c-news-tabs.p-category-nav .p-category-nav__list {
  display: flex;
  gap: 1px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.c-news-tabs.p-category-nav .p-category-nav__item {
  flex: 0 0 auto;
  min-width: max-content;
}
.c-news-tabs.p-category-nav .p-category-nav__item a {
  min-height: 60px;
  padding: clamp(8px, 1.7vw, var(--gap-section-sm));
  color: var(--navy);
  background-color: var(--white);
  font-size: clamp(10px, 1.2vw, var(--font-body-jp-size));
}
.c-news-tabs.p-category-nav .p-category-nav__item a:hover,
.c-news-tabs.p-category-nav .p-category-nav__item a:focus-visible,
.c-news-tabs.p-category-nav .p-category-nav__item.is-active a {
  color: var(--white);
  background-color: var(--navy);
}
.c-news-list__items {
  display: grid;
}
.c-news-item {
  border-bottom: 1px solid var(--gray-bg);
}
.c-news-item__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 82px;
  padding: 8px 0;
  text-decoration: none;
}
.c-news-item__thumb-img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  flex-shrink: 0;
}
.c-news-item__body {
  flex: 1;
  min-width: 0;
}
.c-news-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.c-news-item__date {
  color: #888;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}
.c-news-item__tag {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 8px;
  color: var(--white);
  background: var(--blue-main);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}
.c-news-item__title {
  margin: 0;
  color: var(--navy);
  font-size: var(--font-body-jp-size);
  font-weight: 400;
  line-height: 1;
}
.c-news-list__more {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0 0;
}
.c-news-list__line {
  display: block;
  width: 100%;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .c-news-section.front-section {
    padding: 0;
  }
  .c-news-pickup__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .c-news-tabs a {
    padding-inline: 16px;
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  .c-news-section.front-section {
  }
  .c-news-section::before {
    top: -120px;
  }
  .c-news-pickup__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .c-news-card__title {
    min-height: 86px;
    padding: 8px;
    font-size: 14px;
  }
  .c-news-list-panel {
    padding: 12px;
  }
  .c-news-tabs {
    border-bottom: none;
  }
  .c-news-tabs ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
  .c-news-tabs a {
    min-height: 40px;
    padding: 8px;
    font-size: 14px;
    background: var(--gray-bg);
  }
  .c-news-tabs.p-category-nav {
    border-bottom: none;
  }
  .c-news-tabs.p-category-nav .p-category-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
  .c-news-tabs.p-category-nav .p-category-nav__item {
    min-width: 0;
  }
  .c-news-tabs.p-category-nav .p-category-nav__item a {
    min-height: 40px;
    padding: 8px;
    font-size: 14px;
    background-color: var(--gray-bg);
  }
  .c-news-item__link {
    align-items: flex-start;
  }
  .c-news-item__thumb-img {
    width: 92px;
    height: 52px;
  }
  .c-news-item__meta {
    gap: 4px;
  }
  .c-news-item__title {
    font-size: 14px;
    line-height: 1.3;
  }
  .c-news-list__more {
    margin-top: 16px;
  }
}

/* skeleton.css 由来の .container をプロジェクト基準（README/.cursor/rules）へ上書き */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0;
  position: relative;
  box-sizing: border-box;
}
.l-page article {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section-lg);
}
.display-none {
  display: none !important;
}

.article_padding_btm {
  padding: 0 0 2em;
}

/* =======================
404
======================= */
.error-404 {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.error-404 .page-header {
  margin-bottom: var(--gap-section-md);
}

.error-404 .page-title {
  margin: 0;
  font-family: var(--font-heading-en-family);
  font-size: var(--font-heading-en-size);
  font-weight: var(--font-heading-en-weight);
  line-height: 1;
  letter-spacing: 0;
  color: var(--navy);
}

.error-404 .page-content {
  display: grid;
  gap: var(--gap-section-sm);
}

.error-404 .page-content p {
  margin: 0;
}

/* =======================
共通見出し（用途の目安）
- .p-common-pagetitle* … 固定ページなど「ページ全体のタイトル」（中央・英+和）
- .p-section-title* … セクション見出し（横並び: 英 + 和）
- .c-main-title / .c-main-title-sub … NEWS 固定・single ヒーロー（縦積み: 英 + 和）
- .c-entry-title … single 記事タイトル（ネイビー帯の h1 相当）
- .c-subheading-bar … 本文内のグレー帯小見出し（試合情報など）
======================= */

/* ページタイトル（中央） */
.p-common-pagetitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-section-md);
}

.p-common-pagetitle__heading {
  display: grid;
  justify-items: center;
  gap: var(--heading-en-ja-stack-gap);
}

.p-common-pagetitle__title-en {
  font-family: var(--font-heading-en-family);
  font-weight: var(--font-heading-en-weight);
  font-size: var(--font-heading-en-size);
  line-height: 1;
  letter-spacing: 0;
}

.p-common-pagetitle__title-en a {
  color: inherit;
  text-decoration: none;
}

.p-common-pagetitle__title-en a:hover {
  opacity: 0.85;
}

.p-common-pagetitle__title-ja {
  font-family: var(--font-heading-jp-family);
  font-weight: var(--font-heading-jp-weight);
  font-size: var(--font-heading-jp-size);
  line-height: 1;
}

.p-common-pagetitle__category {
  margin: 0;
  padding: 6px 40px;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-body-jp-family);
  font-size: var(--font-body-jp-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

@media (max-width: 767px) {
  .p-common-pagetitle {
    gap: 20px;
  }
}

/* セクションタイトル（横並び） */
.p-section-title {
  display: flex;
  gap: var(--section-title-inline-gap);
  align-items: end;
  margin: 0 0 var(--section-title-margin-bottom);
}

.p-section-title__en {
  font-family: var(--font-heading-en-family);
  font-size: var(--font-heading-en-size);
  font-weight: var(--font-heading-en-weight);
  margin: 0;
  line-height: 1;
}

.p-section-title__jp {
  margin: 0;
  font-family: var(--font-heading-jp-family);
  font-size: var(--font-heading-jp-size);
  font-weight: var(--font-heading-jp-weight);
  line-height: 1;
}

.c-main-title,
.c-main-title-sub {
  margin: 0;
}

.c-main-title {
  font-family: var(--font-heading-en-family);
  font-size: var(--font-heading-en-size);
  font-weight: var(--font-heading-en-weight);
  line-height: 1;
}

.c-main-title a {
  color: inherit;
  text-decoration: none;
}

.c-main-title a:hover {
  opacity: 0.85;
}

.c-main-title-sub {
  display: block;
  margin-top: var(--heading-en-ja-stack-gap);
  font-family: var(--font-heading-jp-family);
  font-size: var(--font-heading-jp-size);
  font-weight: var(--font-heading-jp-weight);
  line-height: 1;
}

/* ページ/シングル共通ヒーローヘッダー（英+和） */
.p-page-hero-header {
  margin-bottom: var(--gap-section-sm);
  text-align: center;
}

/* シングル記事タイトル（ネイビー帯・h1 相当） */
.c-entry-title {
  margin: 0;
  color: inherit;
  font-family: var(--font-heading-jp-family);
  font-size: clamp(
    var(--font-entry-title-min),
    var(--font-entry-title-preferred),
    var(--font-entry-title-max)
  );
  font-weight: var(--font-heading-jp-weight);
  line-height: 1.35;
  text-align: center;
}

/* グレー帯小見出し */
.c-subheading-bar {
  margin: 0 0 1em;
  padding: 0.6em 0.4em;
  background-color: var(--gray-bg);
  color: var(--black);
  font-family: var(--font-body-jp-family);
  font-size: var(--font-body-jp-size);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* クラブスローガン画像中央揃え */
.aligncenter {
  margin: auto;
}

/* ==================================================
Legacy compatibility additions from previous style.css
新デザインをベースに、旧テーマ固有差分のみ追記
================================================== */

/* 試合日程・結果テーブル（page-game-schedule* / page-youth-games など共通） */
main table.game-list {
  margin: 0 0 var(--gap-section-sm);
}
main table.game-list thead {
  display: none;
}
main table.game-list tr {
  display: block;
}
main table.game-list th {
  display: block;
}
main table.game-list td {
  display: block;
  border-bottom: none;
}
main table.game-list tbody tr.bg_away th {
  background-color: #fff;
}
main table.game-list tbody tr.bg_home th,
main table.game-list tbody tr.bg_home td {
  background-color: #f1f4fb;
}
main table.game-list tbody tr.bg_home td.score-box,
main table.game-list tbody tr.bg_away td.score-box {
  width: auto;
  text-align: center;
  padding: var(--gap-section-md);
}
main table.game-list td.score-box {
  margin-top: 0;
}
main table.game-list a:hover .gl-score {
  color: orange;
}

/* game-list：SP（〜1023px）カード表示・score-box 調整 */
@media (max-width: 1023px) {
  main table.game-list {
    border-top: none;
    border-left: none;
  }
  main table.game-list tbody tr {
    margin-bottom: var(--gap-section-sm);
    border: 1px solid #bbb;
  }
  main table.game-list th,
  main table.game-list td {
    width: 100%;
    box-sizing: border-box;
    border-right: none;
    border-left: none;
    border-top: none;
    text-align: center;
    padding: var(--gap-section-sm) 0;
  }
  main table.game-list td:not(:last-child) {
    padding: 0 0 var(--gap-section-sm);
  }
  main table.game-list td:first-of-type {
    padding: var(--gap-section-md) 0 var(--gap-section-sm);
  }
  main table.game-list td:last-child {
    padding: 0 0 var(--gap-section-md);
  }
  main table.game-list tbody tr > :last-child {
    border-bottom: none;
  }
  main table.game-list td.score-box .flex-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
  }
  main table.game-list td.score-box .cl-logo,
  main table.game-list td.score-box .gl-score {
    float: none;
    width: auto;
    flex: 1 1 28%;
    max-width: 33%;
  }
  main table.game-list td.score-box .gl-score {
    flex: 1 1 40%;
    max-width: 44%;
  }
  main table.game-list td.score-box .cl-logo img {
    max-width: 72px;
    margin-inline: auto;
  }
  main table.game-list td.score-box .clear {
    display: none;
  }

  /* thead 非表示分のラベル（5列＝会場・イベント・中継） */
  main[class*="p-game-schedule"]
    table.game-list:has(thead th:nth-child(5))
    tbody
    tr
    > td:nth-child(3)::before {
    content: "会場：";
  }
  main[class*="p-game-schedule"]
    table.game-list:has(thead th:nth-child(5))
    tbody
    tr
    > td:nth-child(4)::before {
    content: "イベント：";
  }
  main[class*="p-game-schedule"]
    table.game-list:has(thead th:nth-child(5))
    tbody
    tr
    > td:nth-child(5)::before {
    content: "中継：";
  }

  /* 4列テーブル（会場・中継のみ） */
  main[class*="p-game-schedule"]
    table.game-list:has(thead th:nth-child(4)):not(:has(thead th:nth-child(5)))
    tbody
    tr
    > td:nth-child(3)::before {
    content: "会場：";
  }
  main[class*="p-game-schedule"]
    table.game-list:has(thead th:nth-child(4)):not(:has(thead th:nth-child(5)))
    tbody
    tr
    > td:nth-child(4)::before {
    content: "中継：";
  }
}

@media (min-width: 1024px) {
  main table.game-list thead {
    display: table-header-group;
  }
  main table.game-list tr {
    display: table-row;
  }
  main table.game-list th {
    display: table-cell;
  }
  main table.game-list td {
    display: table-cell;
    border-bottom: 1px solid #bbb;
  }
  main table.game-list tbody tr.bg_home td.score-box,
  main table.game-list tbody tr.bg_away td.score-box {
    width: 30%;
    padding: var(--gap-section-sm);
  }
  main table.game-list tbody tr.bg_away th {
    background-color: #fff;
  }
  main table.game-list th span {
    display: block;
  }
}

/* 試合スコア表示（single-game_info / page-game など。game-list 内 td は除外） */
.score-box {
  margin: var(--gap-section-lg) 0 0;
}
div.score-box .clear,
.score-box .clear {
  clear: both;
}
main table.game-list .flex-box {
  text-decoration: none;
  color: inherit;
}
.cl-logo {
  width: 28%;
  float: left;
  text-align: center;
}
.cl-logo img {
  width: 100%;
}
.gl-score-game,
.gl-score {
  width: 44%;
  float: left;
  color: var(--black);
  display: block;
  text-align: center;
  font-family: var(--font-heading-en-family);
}
.gl-score-game {
  font-size: var(--font-heading-en-size);
}
.gl-score {
  font-size: var(--font-heading-en-size);
  font-weight: 600;
}
.gl-score span {
  display: block;
  font-size: var(--font-sub-jp-size);
  font-weight: 400;
  padding: 0.2em;
  border: 1px solid #ccc;
  background-color: #efefef;
  width: 80%;
  margin: auto;
}
.gl-score dl {
  margin: 0 0 1em;
}
.gl-score dl dt {
  font-family: var(--font-heading-en-family);
  display: block;
  font-size: calc(var(--font-heading-en-size) * 2);
  font-weight: var(--font-heading-en-weight);
  text-align: center;
  color: var(--navy);
}
.gl-score dl dd {
  display: block;
  font-size: var(--font-body-jp-size);
  text-align: center;
  margin: 0;
}
@media (min-width: 768px) {
  .gl-score-game {
    font-size: 13rem;
  }
  .gl-score {
    font-size: 2.2em;
  }
  .gl-score dl dt {
    font-size: 10rem;
  }
  .gl-score dl dd {
    font-size: 1.8rem;
  }
}

/* Shared section header layout (NEWS PICK UP / hub headings) */
.c-section-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: var(--gap-section-sm);
  margin-bottom: var(--gap-section-md);
}

.c-pickup-label {
  margin: 0;
  font-family: var(--font-heading-en-family);
  font-size: var(--font-heading-en-size);
  font-weight: var(--font-heading-en-weight);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.c-pickup-sub {
  font-family: var(--font-heading-jp-family);
  font-size: var(--font-heading-jp-size);
  font-weight: var(--font-heading-jp-weight);
}

@media (max-width: 767px) {
  .c-section-header {
    gap: 8px;
  }
}

/* 白背景コンテンツ内のセクション見出し（旧 article.bg_blue .bg_white h2 相当）
   - 手動付与: .c-section-heading
   - page-game-schedule*.php: main[class*="p-game-schedule"] .bg_white > h2
   - page-youth-games.php: .p-youth-games-page .bg_white > h3 */
.c-section-heading,
main[class*="p-game-schedule"] .bg_white > h2,
.p-youth-games-page .bg_white > h3 {
  color: #555;
  font-size: 20px;
  padding: var(--gap-section-sm) 0;
  border-bottom: 4px solid #dedfe8;
  text-align: center;
  margin: 0 0 var(--gap-section-sm);
}
@media (min-width: 768px) {
  .c-section-heading,
  main[class*="p-game-schedule"] .bg_white > h2,
  .p-youth-games-page .bg_white > h3 {
    font-size: 24px;
  }
}

.u-font-16 {
  font-size: var(--font-body-jp-size);
}
.u-weight-400 {
  font-weight: 400;
}
.u-weight-700 {
  font-weight: 700;
}
