@charset "UTF-8";
/* =========================================================
   夏まつり関連ページ 共通CSS（2026仕様）
   event.html（1Fアリーナ）/ stage.html（4Fイベントステージ）/ gourmet.html（グルメ）

   レイアウトは競輪ワールドシリーズ2026（world2026）の
   「日付ブロック＋正方形写真カード」「グルメ専用グリッド」を踏襲。
   配色・タイポは yoshioka2026.css の変数（モノトーン＋ゴールド）に置き換えている。
   yoshioka2026.css の後に読み込むこと。
   ========================================================= */

/* ---- ページ見出し ---- */
.page-head { padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.4rem, 3vw, 2rem); }
.page-head h1 { font-size: var(--step-2); font-weight: 900; letter-spacing: 0.02em; margin: 0.6rem 0 0; }
.page-head h1 span { display: inline-block; }
.page-head .lead { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.9; margin: 1rem 0 0; max-width: 62ch; }
.page-head .lead b { color: var(--ink); font-weight: 800; }

.crumbs { font-size: 0.76rem; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0 0 1.4rem; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 0.5em; }

/* ---- 開催概要バー ---- */
.infobar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
}
.infobar div { background: var(--surface); padding: 1rem 1.2rem; }
.infobar .k { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--f-disp); font-weight: 700; }
.infobar .v { font-weight: 800; font-size: 1.02rem; margin-top: 0.3rem; }
.infobar .v small { display: block; font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); margin-top: 0.2rem; letter-spacing: 0; }

/* ---- 夏まつり内ページ切替 ---- */
.fes-sub { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: clamp(1.6rem, 4vw, 2.2rem) 0 0; }
.fes-sub a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fes-sub a small { display: block; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--f-disp); }
.fes-sub a:hover { border-color: var(--ink); color: var(--ink); }
.fes-sub a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fes-sub a[aria-current="page"] small { color: var(--bg); opacity: 0.7; }

/* =========================================================
   日付ブロック（world2026 .event-day）
   ========================================================= */
.event-day { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.event-day:last-child { margin-bottom: 0; }

.event-day-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1.4rem;
}
.event-day-date { font-family: var(--f-disp); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.01em; }
.event-day-date .date-prefix { font-size: 0.62em; color: var(--ink-faint); }
.event-day-wday { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.06em; font-weight: 600; }
.event-day-head .en { margin-left: auto; font-family: var(--f-disp); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); }
/* 両日開催の帯はゴールドではなく地の色で落ち着かせる */
.event-day-head.day-both { border-bottom-color: var(--line-strong); }
.event-day-head.day-both .event-day-date { color: var(--ink); }

/* =========================================================
   イベントカード（world2026 .event-card）
   ========================================================= */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(0.9rem, 2vw, 1.2rem); }
/* 説明が短く枚数の多いカード（巨大遊具など）は1行に4枚並べる */
.event-grid.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.event-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.event-card-img { overflow: hidden; background: var(--surface-2); flex-shrink: 0; position: relative; }
.event-card-img-square { aspect-ratio: 1 / 1; }
.event-card-img-wide { aspect-ratio: 4 / 3; }
/* 横長バナー（100円夜市・かねりん＝800×360） */
.event-card-img-banner { aspect-ratio: 20 / 9; }
/* 透過PNGのマスコットはダークモードで線が沈むので白地を敷く */
.event-card-img.on-white { background: #fff; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 人物写真は顔が切れないよう上寄せで切り抜く */
.event-card-img img.pos-top { object-position: center top; }
/* ロゴ・キービジュアルは切らずに収める */
.event-card-img img.fit-contain { object-fit: contain; background: var(--surface-2); }

.event-card-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.event-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--f-disp);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  margin-bottom: 0.7rem;
}
.event-tag-free { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }
.event-tag-limited { border-color: var(--ink); color: var(--ink); }

.event-eyebrow { font-size: 0.74rem; color: var(--ink-faint); margin-bottom: 0.25rem; line-height: 1.6; }
.event-title { font-size: clamp(1.05rem, 0.96rem + 0.4vw, 1.24rem); font-weight: 900; color: var(--ink); line-height: 1.35; margin-bottom: 0.7rem; }
.event-desc { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.8; margin: 0 0 0.7rem; }

.event-guest { border-top: 1px solid var(--line); padding-top: 0.7rem; margin-bottom: 0.7rem; }
.event-guest .role { font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.06em; }
.event-guest .name { font-size: 1.02rem; font-weight: 900; margin-top: 0.1rem; }
.event-guest .name small { font-size: 0.62em; font-weight: 600; color: var(--ink-faint); margin-left: 0.5em; }

/* 写真の左上に重ねるバッジ（透過PNG） */
.event-card-img .event-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 32%;
  max-width: 104px;
  height: auto;
}

/* タグと同じ行に置く著作権表記（行が増えて他カードと高さがズレないように） */
.event-tagrow { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.7rem; }
.event-tagrow .event-tag { margin-bottom: 0; }
.event-credit {
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--ink-faint);
  text-align: right;
  margin: 0;
}

/* 権利表記を兼ねた公式ロゴ（透過PNG。カード幅いっぱいには広げない） */
.event-logo { margin: 0 0 0.8rem; }
.event-logo img { display: block; width: 100%; max-width: 132px; height: auto; }

/* 時間・場所の行（キーはバッジ状） */
.event-info { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.84rem; color: var(--ink); margin-bottom: 0.35rem; line-height: 1.6; }
.event-info:last-child { margin-bottom: 0; }
.event-info-key {
  font-family: var(--f-disp);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.14rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.event-info .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.event-info em { font-style: normal; color: var(--ink-soft); font-size: 0.92em; }
/* 申込などの外部リンクは、クリックできると分かるようゴールド＋下線に */
.event-info a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.event-info a:hover { color: var(--ink); }
.event-infos { margin-top: auto; padding-top: 0.5rem; }

/* カード内のページ間リンク */
.event-xlink { display: inline-flex; align-items: center; gap: 0.35em; margin-top: 0.7rem; font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.event-xlink:hover { color: var(--ink); }
.event-xlink::after { content: "→"; transition: transform 0.2s; }
.event-xlink:hover::after { transform: translateX(3px); }

/* =========================================================
   グルメ（world2026 .gourmet-wrap / .gourmet-grid）
   ========================================================= */
.gourmet-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.gourmet-intro { display: flex; gap: clamp(1rem, 3vw, 1.6rem); padding: clamp(1.2rem, 3vw, 1.6rem); border-bottom: 1px solid var(--line); align-items: flex-start; }
.gourmet-title-block { flex-shrink: 0; min-width: 130px; }
/* 英語を小さく上に、日本語を大きく下に（page-head の eyebrow → h1 と同じ並び） */
.gourmet-title-en { font-family: var(--f-disp); font-size: 0.72rem; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.3rem; }
.gourmet-title-ja { font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.4rem); font-weight: 800; color: var(--ink); line-height: 1.3; }

.gourmet-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.gourmet-stand { padding: 1rem 0.75rem; border-right: 1px solid var(--line); border-top: 1px solid var(--line); text-align: center; }
.gourmet-stand:nth-child(6n) { border-right: none; }
.gourmet-stand:nth-child(-n+6) { border-top: none; }
/* 最終行の空きを埋めて罫線をつなぐダミーセル（必要な列数のときだけ出す）。
   エリアごとに列数を変えるとカードの大きさが揃わないため、全エリア同じ列数にしている */
.gourmet-fill { display: none; padding: 0; }
@media (min-width: 901px) { .gourmet-fill.for-lg { display: block; } }
@media (min-width: 561px) and (max-width: 900px) { .gourmet-fill.for-md { display: block; } }
@media (max-width: 560px) { .gourmet-fill.for-sm { display: block; } }
/* 元画像が130〜190px程度なので、セルが広くても引き伸ばさない */
.gourmet-stand-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; background: var(--surface-2); margin: 0 auto 0.6rem; max-width: 190px; }
.gourmet-stand-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gourmet-stand-name { font-size: 0.84rem; font-weight: 800; color: var(--ink); line-height: 1.45; }
.gourmet-stand-sub { font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.15rem; line-height: 1.45; }
/* 限定出店のマーク。写真の左上に重ねる。
   ゴールドは大会全体の差し色なので、限定告知はチラシ同様の赤で区別する */
.gourmet-stand-venue {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--f-disp);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #D0342C;
  background: #fff;
  padding: 0.24rem 0.5rem;
  border-radius: 2px 0 2px 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .gourmet-grid { grid-template-columns: repeat(3, 1fr); }
  .gourmet-stand { border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .gourmet-stand:nth-child(6n) { border-right: 1px solid var(--line); }
  .gourmet-stand:nth-child(3n) { border-right: none; }
  .gourmet-stand:nth-child(-n+6) { border-top: 1px solid var(--line); }
  .gourmet-stand:nth-child(-n+3) { border-top: none; }
}
@media (max-width: 560px) {
  .gourmet-grid { grid-template-columns: repeat(2, 1fr); }
  .gourmet-stand:nth-child(3n) { border-right: 1px solid var(--line); }
  .gourmet-stand:nth-child(2n) { border-right: none; }
  .gourmet-stand:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .gourmet-stand:nth-child(-n+2) { border-top: none; }
  .gourmet-intro { flex-direction: column; gap: 0.9rem; }
}

/* ---- 補足ボックス・注意書き・戻り導線 ---- */
.morenote {
  margin: 1.2rem 0 0;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-bright);
  border-radius: 3px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.morenote a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.morenote a:hover { color: var(--ink); }

.fes-note { margin: clamp(1.6rem, 4vw, 2.4rem) 0 0; font-size: 0.84rem; color: var(--ink-soft); line-height: 1.9; }
.fes-note li { margin-left: 1.1em; list-style: disc; }

.back-row { margin: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 3vw, 2rem); display: flex; flex-wrap: wrap; gap: 0.8rem; }
