@charset "utf-8";

/*================================================
CSS for ヴィジュアルページ
下階層ページ向けCSS
2015 atali.inc(telime)
This style is released under the MIT License
use "Twitter Bootstrap v3.0.2"
================================================*/
.content .container h2.title {
  color: var(--c-navy);
}

/* 下層ページ共通ヘッダー（ssi/page-visual.html）: トップの KV と同じ素材・背景 */
#page-visual {
  background: var(--bg-poster);
  text-align: center;
}

#page-visual .pv {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1160px;
  height: 260px;
  margin: 0 auto;
  padding: 0 4%;
  text-decoration: none;
}

/* 文字パーツの比率はポスターに合わせる（開催名を主役に、冠名・開催日は従） */
#page-visual .pv__lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(54%, 600px);
}

#page-visual .pv__grade {
  width: 42%;
  height: auto;
}

#page-visual .pv__title {
  width: 100%;
  height: auto;
  margin: -1% 0 -1.3%; /* 画像上下の光彩の余白を詰める */
}

#page-visual .pv__date {
  width: 46%;
  height: auto;
}

/* 人物: 頭〜胸元（マイク・国旗）が帯の中央に来るよう縦位置を合わせる */
#page-visual .pv__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: min(40%, 460px);
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, var(--c-black) 30%, var(--c-black) 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, var(--c-black) 30%, var(--c-black) 86%, transparent 100%);
}

@media (min-width: 768px) and (max-width: 991px) {
  #page-visual .pv {
    height: 220px;
  }

  #page-visual .pv__lockup {
    width: 58%;
  }

  #page-visual .pv__grade {
    width: 50%;
  }

  #page-visual .pv__date {
    width: 54%;
  }
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--c-navy);
}

/* inner vivid */
.row>.col5 {
  display: block;
  float: left;
  padding: 0 6px;
  position: relative;
  width: 20%;
  z-index: 2;
}

.inner-vivid {
  background-color: transparent;
}

.inner-vivid .container>.body {
  color: var(--c-navy);
  background: transparent none;
  padding: 0;
  position: relative;
  z-index: 2;
}

.inner-vivid .container>.body>h3 {
  color: var(--c-navy);
  margin: 0;
  padding: 8px;
  letter-spacing: 0.2em;
  font-weight: bold;
}

.inner-vivid .container>.body>h3 {
  font-size: 1.55em;
  border-bottom: 3px solid var(--c-navy);
}

.inner-vivid .container>.body>h3#history01 {
  width: 580px;
}

.inner-vivid .container>.body>h3#history02 {
  width: 940px;
}

.inner-vivid .container>.body>h3#history03 {
  width: 580px;
}

.inner-vivid .container>.body>h3::before {
  content: "・";
  color: var(--c-red);
}

.inner-vivid .container>.body .btn {
  color: var(--c-white);
}

.inner-vivid .menu .button {
  display: block;
  background: linear-gradient(to left, var(--c-navy) 40%, var(--c-white) 60%);
  background-size: 1200px auto;
  background-repeat: no-repeat;
  background-position: right;
  border: 3px solid var(--c-white);
  box-shadow: var(--shadow-card);
  color: var(--c-white);
  font-size: 1.5em;
  padding: 0.7em 0 0.8em 0;
  margin-bottom: 4px;
  text-decoration: none;
  position: relative;
  border-radius: var(--radius-8);
  transition: .5s cubic-bezier(0.45, 0, 0.55, 1);
}

.inner-vivid .menu .button:hover,
.inner-vivid .menu .button:focus-visible {
  background-position: left;
  border: 3px solid var(--c-navy);
  color: var(--c-navy);
  transition: .5s cubic-bezier(0.45, 0, 0.55, 1);
}

/* vivid-bundle */
.body>.vivid-bundle {
  margin-top: 32px;
  overflow: hidden;
  color: var(--c-navy);
  border: 2px solid var(--c-navy);
  font-size: 1.2em;
}

.inner-vivid .menu {
  margin-top: 30px;
  margin-bottom: 60px;
}

.vivid-date {
  overflow: hidden;
  margin-bottom: 20px;
}

.vivid-date>.body {
  padding: 15px;
}

/*image*/
.vivid-bundle .image-bundle {
  text-align: center;
}

.vivid-bundle .image-bundle>img {
  display: inline-block;
  width: 100%;
  margin-right: 3px;
  margin-bottom: 5px;
}

/* ul */
.sns>.container {
  padding: 0;
}

.sns>.container>div {
  margin-bottom: 12px;
}

.sns>.container>div>a:hover,
#page-links .flags a:hover {
  opacity: 0.8;
}

/* sabpage */
.sabpage {
  margin-bottom: 48px !important;
}

.sabpage h3 {
  border: none !important;
  background-color: var(--c-navy);
  box-shadow: inset 0 -4px 0 var(--c-red);
  color: var(--c-white) !important;
  text-align: center;
  padding: 16px 0 !important;
}

.sabpage h3::before {
  display: none;
}

.sabpage h4 {
  font-size: 1.5em;
  border-bottom: 3px solid var(--c-red);
  padding-bottom: 8px;
  width: 500px;
}

.sabpage h4::before {
  content: "・"
}

.sabpage .vivid-bundle {
  margin-top: 0 !important;
  border: none !important;
  background-color: var(--c-white);
  box-shadow: var(--shadow-card);
  color: var(--c-navy);
}

.sabpage .vivid-bundle .row,
.sabpage .vivid-bundle p {
  margin: 12px 0;
}

.sabpage .btn-primary {
  background-color: var(--c-red);
  border: 2px solid var(--c-pink-soft);
  border-radius: var(--radius-10);
}

.sabpage .btn-primary:hover {
  background-color: var(--c-white);
  border: 2px solid var(--c-red);
  color: var(--c-red) !important;
}

.sabpage.seat h4 {
  width: 100%;
}

.sabpage.seat h4::before {
  display: none;
}

.sabpage.seat .row {
  margin-bottom: 24px;
}

.sabpage table {
  border-collapse: separate;
  border-spacing: 0px 6px;
}

#event_stage table {
  margin-top: 12px;
}

.sabpage table.text {
  margin-bottom: 0 !important;
}

.sabpage table td,
.sabpage table th {
  vertical-align: top;
}

.sabtext {
  margin-bottom: 0 !important;
}

/*================================================
 Media Query
 デバイスの幅毎にCSS値変更
================================================*/
@media (min-width: 768px) {
  .sabpage {
    padding-top: 60px !important;
    margin-top: -60px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .inner-vivid .menu .button {
    font-size: 1.2em;
  }

  .vivid-bundle>dl.row {
    font-size: 1.2em;
  }
}

@media (max-width: 767px) {
  #page-visual .pv {
    height: max(150px, 42vw);
    padding: 0 3%;
  }

  #page-visual .pv__lockup {
    gap: 2px;
    width: 66%;
  }

  #page-visual .pv__grade {
    width: 70%;
  }

  #page-visual .pv__date {
    width: 76%;
  }

  /* ハンバーガー（右上固定）と顔が重ならないよう右端から離す */
  #page-visual .pv__photo {
    right: 3%;
    width: 48%;
    object-position: 50% 20%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, var(--c-black) 30%, var(--c-black) 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, var(--c-black) 30%, var(--c-black) 82%, transparent 100%);
  }

  .row>.col5 {
    display: block;
    float: none;
    padding: 0 10px;
    width: 100%;
  }

  .inner-vivid .container>.body>h3 {
    margin: 0;
    padding: 5px;
    font-size: 1.4em;
    line-height: 1.3;
  }

  .inner-vivid .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .inner-vivid .container>.row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .inner-vivid .container>.body {
    margin: 30px 0;
  }

  .inner-vivid .menu {
    font-size: 0.8em;
    margin-bottom: 0;
  }

  .vivid-bundle>dl.row {
    font-size: 1.4em;
  }

  .vivid-bundle>dl.row>dt,
  .vivid-bundle>dl.row>dd {
    padding: 5px;
    border: 0 none;
  }

  .vivid-bundle>dl.row>dd {
    font-size: 0.9em;
  }

  .vivid-date>.body {
    font-size: 0.95em;
    padding: 10px 15px 15px 15px;
  }

  .vivid-bundle .image-bundle>img {
    margin-right: 3px;
    margin-bottom: 5px;
  }

  .sabpage.seat h4 {
    font-size: 1.2em;
  }
}

@media screen and (min-width: 1000px) {
  .br-sp {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  .br-sp {
    display: block;
  }

  .inner-vivid .container>.body>h3 {
    width: 100% !important;
  }

  .sabpage h4 {
    width: 100% !important;
  }
}

/* テキスト調整&フォントサイズ */

.text {
  text-indent: 1.0em;
  margin: 0px;
  font-weight: bold;
}

@media (min-width : 768px) {
  .text {
    font-size: 1.3em !important;
  }
}

/*サブタイトル*/

.history_why {
  width: 100%;
  min-width: 720px;
  background-color: var(--c-navy);
  color: var(--c-white) !important;
  font-weight: bold;
  margin: 10px auto 0;
  text-align: center;
}

.vivid-bundle .history_why {
  margin: 0;
  font-size: 1.0em;
  padding: 12px 0 !important;
}

.history_why h4 {
  font-size: 1.8em;
  padding: 8px 0;
  color: var(--c-white) !important;
}

@media (max-width : 767px) {
  .history_why {
    width: 100%;
    min-width: 100%;
  }

  .history_why h4 {
    font-size: 1.5em;
    padding: 8px 0;
    margin: 12px auto 0;
    line-height: 1.3;
  }
}

#inner-events .text,
#inner-service .text {
  text-indent: 0;
  margin-bottom: 20px;
}

/*余白調整*/

.p15 {
  padding: 15px;
}

/*スマホで見た時のヘッダー画像（.pv の画像は #page-visual 側の指定が優先）*/
.visual img {
  width: 100%;
}

.border-event {
  border: 3px dashed var(--c-red);
  border-radius: var(--radius-15);
}

/* 準備中（お待ちください）表示 */
.notice-soon {
  margin: 0;
  padding: 36px 20px;
  text-align: center;
  color: var(--c-navy);
  background: var(--bg-poster-soft);
  border: 2px dashed rgba(var(--c-navy-rgb), 0.35);
  border-radius: var(--radius-15);
}

.notice-soon__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 18px;
  font-size: 0.85em;
  line-height: 1.6;
  letter-spacing: 0.2em;
  color: var(--c-white);
  background: var(--c-red);
  border-radius: var(--radius-pill);
}

.sabpage .vivid-bundle .notice-soon__text {
  margin: 8px 0 0;
  font-size: 1.15em;
  line-height: 1.9;
}

.notice-soon__note {
  margin: 0;
  font-size: 0.9em;
  color: rgba(var(--c-navy-rgb), 0.75);
}

@media (max-width: 767px) {
  .notice-soon {
    padding: 24px 12px;
  }

  .sabpage .vivid-bundle .notice-soon__text {
    font-size: 1em;
  }
}

/* 開催履歴（トップ「経緯と経過」）: 名称・格付けの時代ごとにまとめたカード一覧 */
.body>.vivid-bundle.history {
  padding-bottom: 8px;
  background: var(--c-white);
}

.history-era {
  padding: 20px 20px 4px;
  text-align: left;
}

.history-era+.history-era {
  border-top: 1px dashed rgba(var(--c-navy-rgb), 0.25);
}

.history .history-era__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 12px;
  padding-left: 12px;
  font-size: 1.05em;
  font-weight: bold;
  line-height: 1.4;
  color: var(--c-navy);
  border-left: 5px solid var(--c-red);
}

.history-era__range {
  font-size: 0.8em;
  color: rgba(var(--c-navy-rgb), 0.7);
}

.history-era__note {
  padding: 2px 10px;
  font-size: 0.7em;
  color: var(--c-navy);
  background: var(--c-sky-pale);
  border-radius: var(--radius-pill);
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list>li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "no grade"
    "date grade"
    "note note";
  align-items: center;
  column-gap: 8px;
  padding: 8px 12px;
  font-size: 0.85em;
  line-height: 1.4;
  color: var(--c-navy);
  background: var(--c-white);
  border: 1px solid rgba(var(--c-navy-rgb), 0.18);
  border-radius: var(--radius-8);
}

.history-list__no {
  grid-area: no;
  font-weight: bold;
}

.history-list__date {
  grid-area: date;
  font-size: 0.9em;
}

.history-list__date small {
  font-size: 0.85em;
  color: rgba(var(--c-navy-rgb), 0.7);
}

.history-list__grade {
  grid-area: grade;
  min-width: 3.4em;
  padding: 2px 8px;
  font-size: 0.8em;
  font-weight: bold;
  text-align: center;
  border-radius: var(--radius-pill);
}

.history-list__grade--fi {
  color: var(--c-navy);
  background: var(--c-sky-pale);
}

/* GIII・GII は同じ紺（赤は最新回の枠だけに使う） */
.history-list__grade--g3,
.history-list__grade--g2 {
  color: var(--c-white);
  background: var(--c-navy);
}

.history-list__note {
  grid-area: note;
  margin-top: 4px;
  font-size: 0.8em;
  color: var(--c-navy);
}

/* 最新回（今開催）は枠と背景で示す */
.history-list>li.is-latest {
  background: var(--c-pink-mist);
  border: 2px solid var(--c-red);
}

@media (max-width: 767px) {
  .history-era {
    padding: 16px 10px 4px;
  }

  .history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .history-list>li {
    padding: 6px 8px;
    font-size: 0.75em;
  }
}

/* 語句の途中で改行させない（見出しを意味の切れ目でだけ折り返す） */
.phrase {
  display: inline-block;
}

/* SNS バナー帯: 背景画像なし。直前のコンテンツ背景（共通グラデーションの末尾＝桃）から継ぎ目なく続ける。
   下層ページは直前の記事が白（.invert）なので白のまま */
#page-sns {
  padding-bottom: 36px; /* 旧 #page-links の margin-top 36px をここへ移し、フッターとの間に #page の白地を出さない */
  background: none;
}

.content:not(.invert)+#page-sns {
  background: var(--c-pink-mist);
}

/* トップ「オランダ王国友好杯」: 入れ子の .content が背景を重ねて境目が出るのを防ぐ */
.content .content.inner-vivid {
  background: none;
}

/* SP: 下層ヘッダー画像とページタイトルの間隔 */
@media (max-width: 767px) {
  #page-visual+#page-header+.content {
    padding-top: 32px !important; /* .pt-3 (bootstrap, !important) を上書き */
  }
}

/* SP: 開催履歴の時代見出しは名称を 1 行目、回数・注記を 2 行目に揃える */
@media (max-width: 767px) {
  .history-era__name {
    flex-basis: 100%;
  }
}

/* 374px 以下: 「「オランダ王国友好杯」なのか？」「「オランダ王国皇太子杯」」を 1 行に収める */
@media (max-width: 374px) {
  .history_why h4 {
    font-size: 1.15em;
    letter-spacing: 0.04em;
  }

  .inner-vivid .container>.body>h3 {
    letter-spacing: 0.1em;
  }
}

/* ============================================================
   イベントページ（2026 パンフレット反映 / events/index_open.html）
   曜日色はポスターの日付に合わせる: 木金＝紺 / 土＝青 / 日＝赤
   ============================================================ */

/* Murecho-Bold に無い字（稔・俊之・弘・彦・智・桝 など人名）は代替フォントで出るため、
   太字指定で代替フォントも太字にそろえる。Murecho 側は font-synthesis: none で疑似太字を防ぐ */
.ev-page {
  font-weight: bold;
  font-synthesis: none;
}

/* 開催概要（開催日・開門・入場） */
.ev-summary {
  margin: 0 0 8px;
  padding: 20px 24px;
  color: var(--c-navy);
  background: var(--bg-poster-soft);
  border: 2px solid var(--c-navy);
  border-radius: var(--radius-15);
  box-shadow: var(--shadow-card);
}

.ev-summary__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 0;
}

.ev-summary__item {
  display: flex;
  flex-shrink: 0; /* 縮めて日付を折り返さず、項目ごと次の行へ送る */
  align-items: center;
  gap: 12px;
}

.ev-summary__item dt {
  padding: 4px 14px;
  font-size: 0.95em;
  letter-spacing: 0.1em;
  color: var(--c-white);
  background: var(--c-red);
  border-radius: var(--radius-pill);
}

.ev-summary__item dd {
  margin: 0;
  font-size: 1.6em;
  line-height: 1.3;
}

.ev-summary__item dd small {
  font-size: 0.6em;
}

.ev-summary__note {
  margin: 10px 0 0;
  font-size: 0.9em;
  text-align: center;
}

/* 共通: リード文・注記 */
.sabpage .vivid-bundle .ev-lead {
  margin: 16px 0;
  line-height: 1.7;
}

.ev-notes {
  margin: 20px 0 0;
  padding: 0;
  font-size: 0.85em;
  line-height: 1.7;
  list-style: none;
}

.ev-notes--list {
  margin-top: 0;
  font-size: 1em;
}

.ev-notes--list li {
  position: relative;
  padding-left: 1.2em;
}

.ev-notes--list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--c-red);
  font-size: 0.8em;
  line-height: 2.1;
}

/* 掲載画像は元の縦横比のまま（img の width/height 属性があるため height: auto を明示。無いと width: 100% だけ効いて縦横比が崩れる） */
.ev-page img {
  height: auto;
}

/* パンフレットの画像（文字入りのため大きくしすぎない） */
.vivid-bundle .ev-visual {
  max-width: 760px;
  margin: 0 auto 8px;
}

/* ステージイベント: 日付ごとのカード */
.ev-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.ev-day {
  --ev-day-color: var(--c-navy);
  overflow: hidden;
  background: var(--c-white);
  border: 2px solid var(--ev-day-color);
  border-radius: var(--radius-15);
}

.ev-day--sat {
  --ev-day-color: var(--c-blue);
}

.ev-day--sun {
  --ev-day-color: var(--c-red);
}

.ev-day--all {
  grid-column: 1 / -1;
}

.sabpage .ev-day__title {
  width: auto;
  margin: 0;
  padding: 10px 16px;
  font-size: 1.15em;
  color: var(--c-white);
  background: var(--ev-day-color);
  border: 0;
}

.sabpage .ev-day__title::before {
  content: none;
}

.ev-day__date {
  font-size: 1.5em;
  font-style: italic;
  letter-spacing: 0.02em;
}

.ev-list {
  margin: 0;
  padding: 4px 16px 8px;
  list-style: none;
}

.ev-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(var(--c-navy-rgb), 0.25);
}

.ev-item:last-child {
  border-bottom: 0;
}

.ev-item__tag {
  flex-basis: 100%;
  font-size: 0.75em;
  color: var(--ev-day-color);
}

.ev-item__name {
  font-size: 1.15em;
  line-height: 1.4;
}

/* 見出し・名前は語の途中で折り返さない（折り返し位置は <wbr> で指定。収まらないときだけ任意の位置で折る） */
.ev-item__name,
.sabpage .ev-card__title,
.ev-shops li {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ev-item__note {
  flex-basis: 100%;
  order: 3;
  font-size: 0.8em;
  line-height: 1.6;
  color: rgba(var(--c-navy-rgb), 0.8);
}

.ev-item__time {
  padding: 1px 10px;
  font-size: 0.78em;
  white-space: nowrap;
  color: var(--c-white);
  background: var(--c-red);
  border-radius: var(--radius-pill);
}

/* スペシャルトークショー: 名前を大きく、背景を桃に */
.ev-item--sp {
  margin: 8px -16px 0;
  padding: 12px 16px;
  background: var(--c-pink-mist);
}

.ev-item--sp .ev-item__tag {
  flex-basis: auto;
  padding: 1px 10px;
  color: var(--c-white);
  background: var(--ev-day-color);
  border-radius: var(--radius-pill);
}

.ev-item--sp .ev-item__name {
  flex-basis: 100%;
  font-size: 1.6em;
}

/* グルメ */
.ev-block+.ev-block {
  margin-top: 28px;
}

.ev-shops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ev-shops li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 14px;
  line-height: 1.4;
  background: var(--c-sky-pale);
  border-left: 5px solid var(--c-red);
  border-radius: var(--radius-8);
}

.ev-shops__day {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0 8px;
  font-size: 0.75em;
  color: var(--c-white);
  border-radius: var(--radius-pill);
}

.ev-shops__day--sat {
  background: var(--c-blue);
}

.ev-shops__day--sun {
  background: var(--c-red);
}

/* 項目名つきの情報（開催日・場所など） */
.ev-info {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.ev-info>div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  align-items: start;
  gap: 10px;
}

.ev-info dt {
  padding: 2px 6px;
  font-size: 0.8em;
  line-height: 1.5;
  text-align: center;
  color: var(--c-white);
  background: var(--c-navy);
  border-radius: var(--radius-7);
}

.ev-info dd {
  margin: 0;
  line-height: 1.6;
}

/* ファンサービス・交通アクセス: カード */
.ev-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ev-card {
  padding: 18px 20px 20px;
  background: var(--bg-poster-soft);
  border: 2px solid rgba(var(--c-navy-rgb), 0.2);
  border-radius: var(--radius-15);
}

.sabpage .ev-card__title {
  width: auto;
  margin: 0 0 8px;
  padding: 0 0 8px;
  font-size: 1.35em;
  line-height: 1.35;
  border-bottom: 3px solid var(--c-red);
}

.sabpage .ev-card__title::before {
  content: none;
}

.ev-card__kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 0.6em;
  color: var(--c-red);
}

.sabpage .vivid-bundle .ev-card__lead {
  margin: 4px 0 0;
  font-size: 1.05em;
}

.sabpage .vivid-bundle .ev-card__text {
  margin: 10px 0 0;
  font-size: 0.9em;
  line-height: 1.7;
}

/* 横幅いっぱいのカード（太ももライド・よっちょくれ別府けいりん） */
.ev-card--wide {
  grid-column: 1 / -1;
}

/* よっちょくれ別府けいりん: 左に開催情報、右に出演者の顔写真（顔の大きさをそろえて切り出し済み） */
.ev-yk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 16px 24px;
  align-items: start;
}

.ev-cast {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.ev-cast li {
  text-align: center;
}

.ev-cast img {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  background: var(--c-white);
  border-radius: var(--radius-8);
}

.ev-cast span {
  display: block;
  font-size: 0.8em;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ev-card__media {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}

.ev-card__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-8);
}

/* タイムテーブル・交通アクセス: パンフレット画像（タップで原寸を開く。枠なし） */
.ev-figure {
  display: block;
  line-height: 0;
}

.ev-figure img {
  width: 100%;
}

.ev-figure:focus-visible {
  outline: 3px solid var(--c-red);
  outline-offset: 2px;
}

.sabpage .vivid-bundle .ev-zoom-hint {
  margin: 6px 0 0;
  font-size: 0.8em;
  text-align: right;
}

/* 交通アクセス: シャトルタクシー時刻表（会場看板と同じ「時台＋分」表記） */
.ev-shuttle {
  margin-top: 24px;
}

.ev-timetable-wrap {
  max-width: 560px;
  margin: 12px 0 0;
}

/* .sabpage table（行間 6px の separate 指定）を打ち消す */
.sabpage table.ev-timetable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.4;
}

.sabpage .ev-timetable th,
.sabpage .ev-timetable td {
  padding: 6px 4px;
  vertical-align: middle;
  border: 1px solid rgba(var(--c-navy-rgb), 0.25);
}

.ev-timetable thead th {
  color: var(--c-white);
  background: var(--c-navy);
  border-color: var(--c-white);
}

.ev-timetable tbody th {
  white-space: nowrap;
  background: var(--c-sky-pale);
}

.ev-timetable td.is-empty {
  background: var(--c-gray-100);
}

/* 別府駅東口発と競輪場発の境目を太線で区切る */
.ev-timetable thead th:nth-child(3),
.ev-timetable tbody td:nth-of-type(3) {
  border-left: 3px solid var(--c-navy);
}

/* ページ内のボタン（アクセス情報・パンフレット PDF）: 文字サイズと余白をそろえる */
.sabpage .ev-btn {
  margin-top: 15px;
  padding: 0.7em 1em;
  font-size: 1.15em;
  line-height: 1.5;
  text-decoration: none;
}

/* .invert a:hover（base.css）の下線を打ち消す */
.sabpage .ev-btn:hover,
.sabpage .ev-btn:focus-visible {
  text-decoration: none;
}

@media (max-width: 767px) {
  .sabpage .ev-btn {
    font-size: 1em;
  }
}

.sabpage .vivid-bundle .ev-organizer {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(var(--c-navy-rgb), 0.3);
}

@media (max-width: 991px) {
  .ev-days,
  .ev-cards,
  .ev-yk {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* SP: 3 人＋2 人の 2 段、2 段目は中央寄せ */
@media (max-width: 575px) {
  .ev-cast {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ev-cast li {
    width: calc((100% - 20px) / 3);
  }
}

@media (max-width: 767px) {
  .ev-summary {
    padding: 16px 12px;
  }

  .ev-summary__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ev-summary__item dd {
    font-size: 1.3em;
    text-align: left;
  }

  .ev-summary__note {
    text-align: left;
  }

  .ev-card {
    padding: 14px 14px 16px;
  }

  .ev-card__media {
    grid-template-columns: minmax(0, 1fr);
  }

  .ev-card__media img {
    width: 140px;
  }

  /* 項目名を上、内容を下に積む（狭い幅で内容欄が細くならないように） */
  .ev-info>div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .ev-info dt {
    justify-self: start;
    padding: 1px 10px;
  }

  .ev-item--sp .ev-item__name {
    font-size: 1.4em;
  }
}
