@charset "UTF-8";
/* ==========================================================================
   見出しの帯とパンくずの共通の決まり(2026-12-05 制作担当)
   - 位置・文字の大きさは、下の :root の変数だけで決める。ページごとに変えない
   - 帯の文字とパンくずの左端 = 本文の左端(本文の幅 --page-content を中央に置いた位置)
   - 本文の幅が違う種類のページだけ、最後の「例外」で --page-content を変える
   - 各ページの古い指定より必ず強くなるよう、セレクタに :not(#pb) を付けている
   ========================================================================== */
:root {
  --page-content: 1040px;   /* 本文の幅 */
  --page-gutter: 5vw;       /* 画面の端からの最小の余白(PC・タブレット) */
  --page-gutter-sp: 20px;   /* スマホの余白 */
  --band-title: 35px;       /* 帯の大きい文字 PC */
  --band-title-tab: 28px;   /*               タブレット(769〜1024px) */
  --band-title-sp: 24px;    /*               スマホ(768px以下) */
  --band-title-sp-img: 18px;/*               スマホの画像ありの帯(写真の横で狭いため。480px以下) */
  --band-title-tab-img: 22px;/*              画像ありの帯 481〜768px */
  --band-sub: 16px;         /* 帯の小さい文字 PC */
  --band-sub-tab: 14px;
  --band-sub-sp: 10px;
  --band-pad-y: 26px;       /* 画像なしの帯の上下の余白 */
  --band-pad-y-tab: 24px;
  --band-pad-y-sp: 18px;
  --page-x: max(var(--page-gutter), calc((100% - var(--page-content)) / 2));
  --page-x-vw: max(var(--page-gutter), calc((100vw - var(--page-content)) / 2)); /* 幅の計算用(画面幅が基準) */
}
@media (max-width: 1024px) {
  :root { --band-title: var(--band-title-tab); --band-sub: var(--band-sub-tab); --band-pad-y: var(--band-pad-y-tab); }
}
@media (max-width: 768px) {
  :root { --band-title: var(--band-title-sp); --band-sub: var(--band-sub-sp); --band-pad-y: var(--band-pad-y-sp); --page-x: var(--page-gutter-sp); --page-x-vw: var(--page-gutter-sp); }
}

/* 1. パンくず: 左右の余白を本文に合わせる */
html body .match-page-header:not(#pb) .match-breadcrumb-inner {
  max-width: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--page-x) !important;
  padding-right: var(--page-x) !important;
  box-sizing: border-box !important;
}

/* 2. 帯の文字: 左右の余白を本文に合わせる(画像あり・なし共通) */
html body .match-page-header:not(#pb) .match-banner .match-banner-inner {
  max-width: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--page-x) !important;
  padding-right: var(--page-x) !important;
  box-sizing: border-box !important;
}
html body .match-page-header:not(#pb) .match-banner .match-banner-text {
  padding-left: 0 !important;
}

/* 3. 帯の文字の大きさ: 画面幅に比例させず、3段階にする */
html body .match-page-header:not(#pb) .match-banner .match-banner-title {
  font-size: var(--band-title) !important;
  width: auto !important;
  max-width: 100% !important;
  text-align: left !important;
}
html body .match-page-header:not(#pb) .match-banner .match-banner-subtitle {
  font-size: var(--band-sub) !important;
}

/* 4. 画像ありの帯: 題名が写真に重ならない幅にする(写真は帯の右 約45%) */
html body .match-page-header:not(#pb) .match-banner.has-image .match-banner-title {
  max-width: calc(55vw - var(--page-x-vw) - 24px) !important;
}
@media (max-width: 768px) {
  html body .match-page-header:not(#pb) .match-banner.has-image .match-banner-title { font-size: var(--band-title-tab-img) !important; }
}
@media (max-width: 480px) {
  html body .match-page-header:not(#pb) .match-banner.has-image .match-banner-title { font-size: var(--band-title-sp-img) !important; }
}
/* 画像ありの帯: 高さは写真の比率(画面幅の約25%)。題名が長いときだけ伸びる。文字は上下の真ん中 */
html body .match-page-header:not(#pb) .match-banner.has-image {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 25.2vw !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  html body .match-page-header:not(#pb) .match-banner.has-image { min-height: 25.4vw !important; }
}
html body .match-page-header:not(#pb) .match-banner.has-image .match-banner-inner {
  width: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 5. 画像なしの下層ページの帯: 高さは中身(行数)で決める。画面幅で急に変わらない */
html body .match-page-header.template_page:not(#pb) .match-banner.no-image {
  height: auto !important;
  min-height: 0 !important;
}
html body .match-page-header.template_page:not(#pb) .match-banner.no-image .match-banner-inner {
  height: auto !important;
  min-height: 0 !important;
  padding-top: var(--band-pad-y) !important;
  padding-bottom: var(--band-pad-y) !important;
}

/* 6. 題名の改行の欄(inc/band-title.php)で入れた、画面幅ごとの改行 */
@media (min-width: 769px) {
  .match-banner-title br.band-br-sp, .match-banner-title .band-t-sp { display: none; }
}
@media (max-width: 768px) {
  .match-banner-title br.band-br-pc, .match-banner-title .band-t-pc { display: none; }
}

/* ---------- 下層テンプレートの本文: スマホ表示の大きい画面(431〜768px) 2026-12-06 ----------
   スマホ用は「393px幅を基準に画面幅に比例して拡大」のため、768pxでは本文が27pxまで大きくなっていた。
   12/06 改: スマホ表示(768px以下)は、どの幅でも393px版のデザインの数値どおり(本文14px)にする(案A)。サンフレッチェ広島と比べて大きいとの指摘で、見出し・行の高さも下で調整(案B・C)。
   393px幅で画面いっぱいになるよう数値で決めていた幅(写真スライド・表の列)は、割合に置き換える */
@supports (width: calc(1px * tan(atan2(1px, 1px)))) {
  @media (max-width: 768px) {
    html body .template_contents:not(#pb) { --base: tan(atan2(100vw, 1px)); }
    html body .template_contents:not(#pb) .gallery-wrapper { width: calc(337 / 353 * 100%) !important; }
    html body .template_contents:not(#pb) .main-item { height: auto !important; aspect-ratio: 337 / 190; }
    html body .template_contents:not(#pb) .nav-item { height: auto !important; aspect-ratio: 83 / 48; }
    html body .template_contents:not(#pb) dl.stadium-dl dt { width: calc(102 / 353 * 100%) !important; }
    html body .template_contents:not(#pb) dl.stadium-dl dd { width: calc(251 / 353 * 100%) !important; }
    html body .template_contents:not(#pb) :is(.col-name, .col-address, .col-info) { width: calc(117 / 353 * 100%) !important; }
    html body .template_contents:not(#pb) img { max-width: 100%; }
  }
}

/* ---------- チケット購入ガイドの料金表: スマホ表示の大きい画面で文字が大きくなりすぎないように 2026-12-06 ----------
   文字=画面幅の3%・表の幅=画面幅の150% の指定で、768pxでは文字23pxになっていた。430px幅のときの大きさ(文字12.9px・表645px)で止める */
@media (max-width: 768px) {
  html body .ticket-main .ticket_step2 .price-table:not(#pb) { font-size: min(3vw, 12.9px) !important; width: min(150vw, 645px) !important; }
}

/* ---------- 下層テンプレートの帯の地図(福岡県): 1440px以上は大きさを止め、文字と一緒に動かす 2026-12-06 ----------
   地図は画面幅に比例して拡大しながら左端に固定されていたため、広い画面では文字だけが右へ離れていった。
   1441px以上は1440px幅のときの大きさ・文字との位置関係(文字の左380px)のまま保つ */
@media (min-width: 1441px) {
  html body .match-page-header.template_page:not(#pb) .match-banner-inner::before {
    width: 627px !important; height: 653px !important; top: -90px !important;
    left: calc(var(--page-x-vw) - 380px) !important;
  }
}

/* ---------- 例外: 本文の幅が違う種類のページ ---------- */
/* ニュース一覧・ニュース詳細は本文の幅が1300px */
html body:has(.filter_wrapper_news) {
  --page-content: 1300px;
  /* --page-x は :root で計算済みのため、ここで計算し直す(12/06 修正: 以前は幅だけ変えていて効いていなかった) */
  --page-x: max(var(--page-gutter), calc((100% - 1300px) / 2));
  --page-x-vw: max(var(--page-gutter), calc((100vw - 1300px) / 2));
}
@media (max-width: 768px) {
  html body:has(.filter_wrapper_news) { --page-x: var(--page-gutter-sp); --page-x-vw: var(--page-gutter-sp); }
}
/* ニュース一覧: 帯の文字・パンくずを「ALL」タブの左端(=日付の左端)にそろえる。位置は common.js が測って --news-all-x に入れる */
html body:has(.filter_wrapper_news .filter_tabs) {
  --page-x: var(--news-all-x, max(var(--page-gutter), calc((100% - 1300px) / 2)));
}

/* ---------- 下層テンプレート(page-template.php)の本文: 769px以上 2026-12-06 ----------
   ※1440px以上も、ほかのページと同じ「本文の幅1040px・PCと同じ文字の大きさ」に固定(元は画面幅に比例して拡大し、帯・パンくずと左端がずれていた)
   元の template.css は「PC1440px基準で画面幅に比例して縮む」作りのため、タブレットでは本文が7〜12pxまで小さくなり、
   左右の余白も広く残っていた。769〜1439pxでは:
   ・文字・余白・線などの部品は PC(1440px幅)と同じ大きさに固定する(--base を「今の画面幅の数値」にする)
   ・本文の左右は帯・パンくずと同じ位置(--page-x)にそろえ、目次と本文の幅は画面に合わせて伸び縮みさせる
   古いブラウザ(この書き方が使えないもの)は今のまま。 */
@supports (width: calc(1px * tan(atan2(1px, 1px)))) {
  @media (min-width: 769px) {
    html body .template_contents:not(#pb) {
      margin-top: 55px !important; /* パンくずと本文の間 110→55px(12/06 半分に) */
      --base: tan(atan2(100vw, 1px));
      max-width: none !important;
      width: auto !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      padding-left: var(--page-x) !important;
      padding-right: var(--page-x) !important;
      grid-template-columns: clamp(160px, 22%, 228px) minmax(0, 1fr) !important;
      column-gap: clamp(40px, calc(112px - (1040px - 100%) * 0.2), 112px) !important;
    }
    html body .template_contents:not(#pb) img { max-width: 100%; }
    /* 目次の見出しの横線: PCは目次の幅(228px)ちょうどの長さ。タブレットは目次の幅に合わせる */
    html body .template_contents:not(#pb) .toc-title::after { width: calc(100% - 37px) !important; }
    /* 写真スライド: 高さを固定(大450px・小107px)から、PCと同じ縦横比に */
    html body .template_contents:not(#pb) .main-item { height: auto !important; aspect-ratio: 700 / 450; }
    html body .template_contents:not(#pb) .nav-item { height: auto !important; aspect-ratio: 166 / 107; }
    /* PC用に700px固定の部品(2枚並びの画像・3枚並びのカード・写真スライド・動画・地図)は本文の幅に収める。高さは元の縦横比を保つ */
    html body .template_contents:not(#pb) :is(.two-column-images, .column-cards, .gallery-wrapper, .gallery_main) { max-width: 100% !important; }
    html body .template_contents:not(#pb) .video-block iframe { max-width: 100% !important; height: auto !important; aspect-ratio: 700 / 450; }
    /* 写真スライドの左右の矢印(PCは写真の55px外)を、画面の余白に収まる位置まで寄せる */
    html body .template_contents:not(#pb) .gallery-main .slick-prev { left: calc(-1 * min(55px, var(--page-x-vw) - 6px)) !important; }
    html body .template_contents:not(#pb) .gallery-main .slick-next { right: calc(-1 * min(55px, var(--page-x-vw) - 6px)) !important; }
    html body .template_contents:not(#pb) .stadium-info iframe { max-width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; }
  }
}

/* ---------- 下層テンプレートのスマホ表示: 見出しと行の高さ(2026-12-06 案B・C) ----------
   大見出し 20→17px、小見出し 18→16px、枠の中の見出し → 17px(大見出しとそろえる)、本文の行の高さ 1.86倍→1.7倍 */
@media (max-width: 768px) {
  html body .template_contents:not(#pb) h2:not(#x) { font-size: 17px !important; }
  html body .template_contents:not(#pb) h3:not(#x) { font-size: 16px !important; }
  html body .template_contents:not(#pb) .text-block--decorated :is(h4, h4 *):not(#x) { font-size: 17px !important; }
  html body .template_contents:not(#pb) :is(p, li, dd, td, th):not(#x) { line-height: 1.7 !important; }
  /* 固定サイズにしたため、狭い画面(360px等)で表の左列が1文字ずつ縦に並ぶ・ボタンが折り返すのを防ぐ */
  html body .template_contents:not(#pb) :is(td, th):not(#x) { padding-left: 12px !important; padding-right: 12px !important; }
  html body .template_contents:not(#pb) tr > :is(td, th):first-child:not(#x) { min-width: calc(5em + 24px); }
  html body .template_contents:not(#pb) .text-block--decorated:not(#x) { padding-left: 16px !important; padding-right: 16px !important; }
  html body .template_contents:not(#pb) .text-block--decorated .filter_action_link:not(#x) { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---------- 下層テンプレートのスマホ表示: 見出しの上の余白(2026-12-06) ----------
   直前の本文との間が20pxしかなく詰まって見えたため、大見出しの上56px・中見出しの上40px。
   大見出しの直後の中見出し、ブロック先頭の見出しは今のまま */
@media (max-width: 768px) {
  html body .template_contents:not(#pb) h2:not(:first-child):not(#x) { margin-top: 56px !important; }
  html body .template_contents:not(#pb) h3:not(:first-child):not(h2 + h3):not(#x) { margin-top: 40px !important; }
}

/* ---------- 下層テンプレートのPC表示(769px以上): 見出しの上の余白(2026-12-06) ----------
   直前の本文との間が35pxで詰まって見えたため、大見出しの上80px・中見出しの上56px(スマホと同じ考え方) */
@media (min-width: 769px) {
  html body .template_contents:not(#pb) h2:not(:first-child):not(#x) { margin-top: 80px !important; }
  html body .template_contents:not(#pb) h3:not(:first-child):not(h2 + h3):not(#x) { margin-top: 56px !important; }
}
