@charset "UTF-8";
/* ==========================================================================
   第20回 吉岡稔真カップ[GⅢ] 特設サイト  デザインシステム
   world2026準拠モノトーン ＋ 真鍮ゴールド差し色
   ========================================================================== */

/* ============ TOKENS ============ */
:root {
  --bg: #F4F2EC;
  --surface: #EBE8DF;
  --surface-2: #E1DDD2;
  --ink: #16140F;
  --ink-soft: #57534A;
  --ink-faint: #8B867B;
  --line: rgba(22, 20, 15, 0.14);
  --line-strong: rgba(22, 20, 15, 0.30);
  --accent: #94722A;
  --accent-bright: #C9A24B;
  --accent-ink: #0D0C09;

  --maxw: 1180px;
  --header-h: 92px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  --f-disp: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --f-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.9vw, 2.9rem);
  --step-3: clamp(2.6rem, 1.8rem + 4vw, 5rem);
  --step-4: clamp(4rem, 2rem + 10vw, 11rem);

  /* ダークモードは廃止。OSがダーク設定でも常にライト表示に固定する。 */
  color-scheme: light;
}

/* ============ BASE / RESET ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.05; }
::selection { background: var(--accent-bright); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--f-disp);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before { content: ""; width: 2.4em; height: 1px; background: currentColor; display: inline-block; }

/* ============ HEADER ============ */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site .bar {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand img { height: 64px; width: auto; display: block; }
@media (max-width: 900px) { :root { --header-h: 72px; } .brand img { height: 44px; } }
@media (max-width: 560px) { :root { --header-h: 64px; } .brand img { height: 36px; } }
.brand .mark { font-family: var(--f-disp); font-weight: 800; letter-spacing: 0.02em; font-size: 1.02rem; }
.brand .mark b { color: var(--accent); }
.brand .sub { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--f-disp); font-weight: 700; }
nav.main { display: flex; align-items: center; gap: 1.6rem; }
.nav-item { position: relative; }
.nav-parent { display: block; font-size: 0.82rem; letter-spacing: 0.14em; font-weight: 600; color: var(--ink-soft); position: relative; padding: 0.4rem 0; transition: color 0.2s; cursor: pointer; }
.nav-parent small { display: block; font-size: 0.58rem; letter-spacing: 0.22em; color: var(--ink-faint); text-transform: uppercase; font-family: var(--f-disp); }
.nav-item:hover .nav-parent, .nav-item:focus-within .nav-parent { color: var(--ink); }
.nav-parent::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent-bright); transition: width 0.25s ease; }
.nav-item:hover .nav-parent::after, .nav-item:focus-within .nav-parent::after { width: 100%; }
/* リンクしない静的なナビ項目（内容未定のキャンペーン等）：下線・ホバー色・ポインタを無効化 */
.nav-parent--static, .nav-item:hover .nav-parent--static, .nav-item:focus-within .nav-parent--static { color: var(--ink-soft); cursor: default; }
.nav-parent--static::after { display: none; }
/* 子メニュー（PC：ホバードロップダウン） */
.submenu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 20px 44px -24px rgba(0, 0, 0, 0.55); padding: 0.4rem; margin: 0; z-index: 70; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; }
.submenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(6px); }
.nav-item:last-child .submenu, .nav-item:nth-last-child(2) .submenu { left: auto; right: 0; }
.submenu li { margin: 0; }
.submenu a { display: block; padding: 0.6rem 0.8rem; border-radius: 3px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.submenu a small { color: var(--ink-faint); font-weight: 500; letter-spacing: 0; }
.submenu a:hover { background: var(--surface); color: var(--accent); }
.btn-ctc {
  display: inline-flex; align-items: center; line-height: 0;
  border-radius: 5px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-ctc img { display: block; width: 46px; height: 46px; }
.btn-ctc:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45); }
.burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0.4rem; }
.burger svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  nav.main { display: none; }
  .burger { display: inline-flex; }
  .brand .sub { display: none; }
  nav.main.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  nav.main.open .nav-item { border-top: 1px solid var(--line); }
  nav.main.open .nav-parent { padding: 0.9rem 0 0.3rem; color: var(--ink); }
  nav.main.open .nav-parent::after { display: none; }
  /* モバイル：子メニューは常時展開（アコーディオン式） */
  nav.main.open .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; min-width: 0;
    padding: 0 0 0.6rem 0.8rem; border-left: 2px solid var(--line);
  }
  nav.main.open .submenu::before { display: none; }
  nav.main.open .submenu a { padding: 0.5rem 0.4rem; white-space: normal; color: var(--ink-soft); }
}

/* ============ HERO ============ */
.hero { position: relative; padding: clamp(2rem, 5vh, 4rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }

/* ヒーロースライダー(キービジュアル) */
.hero-slider { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.5); }
.hero-slider .slides { display: flex; }
.js .hero-slider .slides { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.hero-slider.no-anim .slides { transition: none; }
.hero-slider .slide { flex: 0 0 100%; min-width: 0; }
.hero-slider .slide a, .hero-slider .slide picture { display: block; }
.hero-slider .slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
/* 矢印 */
.hero-slider .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: color-mix(in srgb, #0D0D0F 55%, transparent); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; transition: background 0.2s; }
.hero-slider .nav:hover { background: color-mix(in srgb, #0D0D0F 78%, transparent); }
.hero-slider .nav svg { width: 22px; height: 22px; }
.hero-slider .prev { left: 0.8rem; }
.hero-slider .next { right: 0.8rem; }
/* ドット */
.hero-slider .dots { position: absolute; bottom: 0.9rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; z-index: 3; }
.hero-slider .dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); cursor: pointer; transition: width 0.25s, background 0.25s; }
.hero-slider .dots button[aria-current="true"] { width: 24px; border-radius: 5px; background: var(--accent-bright); }
.hero-slider:not(.ready) .nav, .hero-slider:not(.ready) .dots { display: none; }
@media (max-width: 640px) {
  .hero-slider .nav { width: 38px; height: 38px; }
  .hero-slider .nav svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .js .hero-slider .slides { transition: none; } }

.hero-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: clamp(1.4rem, 3vw, 2rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-bar .hero-meta { margin: 0; padding: 0; border: 0; width: 100%; justify-content: space-between; align-items: flex-start; gap: 1rem clamp(1rem, 3vw, 2rem); }
.hero-bar .hero-meta .meta-block.open { text-align: left; }
.open-times { display: flex; flex-direction: column; gap: 0.15rem; margin: 0.2rem 0 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.open-times b { color: var(--ink); font-weight: 800; }
@media (max-width: 640px) {
  .hero-bar .hero-meta { justify-content: flex-start; }
  .hero-bar .hero-meta .meta-block.open { text-align: left; }
}
.hero-grid {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 3.4rem,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 3.4rem 100%;
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, #000 30%, transparent 78%);
}
.hero-top { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; padding-bottom: clamp(1.2rem, 3vw, 2rem); }
.grade-chip { font-family: var(--f-disp); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; border: 1px solid var(--line-strong); color: var(--ink); padding: 0.34rem 0.7rem; border-radius: 2px; }
.grade-chip b { color: var(--accent); }
.hero-top .venue { font-size: 0.84rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.edition { display: flex; align-items: flex-end; gap: clamp(0.6rem, 2vw, 1.4rem); font-family: var(--f-disp); color: var(--ink-faint); margin-bottom: 0.2rem; }
.edition .no { font-size: var(--step-4); font-weight: 800; line-height: 0.8; color: var(--accent); letter-spacing: -0.03em; }
.edition .label { font-size: var(--step-1); font-weight: 700; letter-spacing: 0.05em; padding-bottom: 0.4em; color: var(--ink); }
.edition .label span { display: block; font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-faint); }
.title-jp { font-family: var(--f-body); font-weight: 900; font-size: var(--step-3); letter-spacing: 0.02em; line-height: 1.02; margin: 0.1em 0 0.35em; }
.title-jp .accent { color: var(--accent); }
.title-en { font-family: var(--f-disp); font-weight: 800; font-size: var(--step-1); letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-faint); }
.tagline { font-weight: 800; font-size: var(--step-2); line-height: 1.4; margin: clamp(1.6rem, 4vw, 2.6rem) 0 0; max-width: 20ch; }
.tagline .thin { color: var(--ink-soft); font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0 clamp(1.4rem, 4vw, 3rem); align-items: baseline; margin: clamp(1.6rem, 4vw, 2.4rem) 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.meta-block .k { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--f-disp); font-weight: 700; }
.meta-block .v { font-size: var(--step-1); font-weight: 800; }
.meta-block .v small { font-size: 0.6em; font-weight: 600; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: clamp(1.8rem, 4vw, 2.6rem) 0 clamp(2.4rem, 5vw, 3.2rem); }
.cta { font-family: var(--f-disp); font-weight: 800; letter-spacing: 0.06em; font-size: 0.9rem; padding: 0.9rem 1.6rem; border-radius: 2px; display: inline-flex; align-items: center; gap: 0.6em; transition: transform 0.15s, filter 0.2s, background 0.2s, color 0.2s; }
.cta.solid { background: var(--accent-bright); color: var(--accent-ink); }
.cta.solid:hover { filter: brightness(1.07); transform: translateY(-2px); }
.cta.ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.cta.ghost:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); transform: translateY(-2px); }
/* ヒーロー下：レース情報ボタンを等幅で横いっぱいに */
.hero-bar .hero-cta { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.7rem; margin: 0; }
.hero-bar .hero-cta .cta { width: 100%; justify-content: center; padding-inline: 0.8rem; }

/* ============ MARQUEE ============ */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; white-space: nowrap; position: relative; z-index: 3; }
.marquee .track { display: inline-flex; align-items: center; gap: 2.5rem; padding: 0.85rem 1.25rem; will-change: transform; animation: yc-slide 26s linear infinite; }
.marquee span { font-family: var(--f-disp); font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.7rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.marquee .dot { color: var(--accent); font-size: 0.7em; }
@keyframes yc-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ============ SECTION SHELL ============ */
section.block { padding: clamp(3.5rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); flex-wrap: wrap; }
.sec-head .idx { font-family: var(--f-disp); font-weight: 800; font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.sec-head h2 { font-size: var(--step-2); font-weight: 900; letter-spacing: 0.02em; }
.sec-head .en { font-family: var(--f-disp); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); margin-left: auto; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about-lead { font-size: var(--step-1); font-weight: 800; line-height: 1.55; }
.about-lead .accent { color: var(--accent); }
.about-body { color: var(--ink-soft); margin-top: clamp(1.2rem, 3vw, 1.8rem); }
.about-body p { margin: 0 0 1.1em; }
.legend-card { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 0; position: relative; overflow: hidden; }
.legend-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; z-index: 1; background: var(--accent-bright); }
.legend-photo { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--surface)); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.legend-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.legend-photo__ph { font-family: var(--f-disp); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.22em; color: var(--ink-faint); }
.legend-body { padding: clamp(1.3rem, 3vw, 1.9rem); }
.legend-card .who { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); font-family: var(--f-disp); font-weight: 700; }
.legend-card .name { font-size: var(--step-1); font-weight: 900; margin: 0.2rem 0 0.1rem; }
.legend-card .name small { font-size: 0.55em; color: var(--ink-faint); font-weight: 600; letter-spacing: 0.1em; margin-left: 0.5em; }
.legend-card p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.86rem; }
.legend-stats { display: flex; gap: 1.6rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legend-stats div { line-height: 1.2; }
.legend-stats b { display: block; font-family: var(--f-disp); font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.legend-stats span { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---- Schedule ---- */
.days { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.day { padding: clamp(1.3rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.6rem); border-right: 1px solid var(--line); background: var(--surface); transition: background 0.25s; }
.day:last-child { border-right: 0; }
.day:hover { background: var(--surface-2); }
.day .dow { font-family: var(--f-disp); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.day .date { font-family: var(--f-disp); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; margin: 0.3rem 0 0.1rem; }
.day .date sup { font-size: 0.34em; vertical-align: super; color: var(--ink-faint); }
.day .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); display: inline-block; margin-top: 0.4rem; }
.day .note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.5rem; }
.day.final { background: var(--ink); }
.day.final .dow, .day.final .note { color: var(--bg); }
.day.final .date, .day.final .tag { color: var(--accent-bright); }
@media (max-width: 620px) {
  .days { grid-template-columns: 1fr; }
  .day { border-right: 0; border-bottom: 1px solid var(--line); }
  .day:last-child { border-bottom: 0; }
}
.open-row { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; font-size: 0.9rem; color: var(--ink-soft); }
.open-row b { font-family: var(--f-disp); color: var(--ink); font-weight: 800; letter-spacing: 0.04em; }

/* ---- Race links ---- */
.race-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.race-link { background: var(--surface); padding: clamp(1.3rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.2s; min-height: 130px; }
.race-link:hover { background: var(--surface-2); }
.race-link .rl-idx { font-family: var(--f-disp); font-weight: 800; font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.race-link .rl-t { font-weight: 800; font-size: var(--step-1); margin-top: auto; }
.race-link .rl-s { font-size: 0.74rem; color: var(--ink-faint); }
.race-link .arw { align-self: flex-end; margin-top: 0.4rem; color: var(--accent); transition: transform 0.2s; }
.race-link:hover .arw { transform: translate(3px, -3px); }

/* ---- Winners ---- */
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.winners-note { margin: 0 0 clamp(1rem, 2.5vw, 1.4rem); font-size: 0.86rem; color: var(--ink-soft); }
.winners-note b { color: var(--ink); font-weight: 800; }
.win { background: var(--surface); padding: 1rem 1.1rem; border: 0; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; position: relative; transition: background 0.2s; }
.win:hover { background: var(--surface-2); }
.win .yr { font-family: var(--f-disp); font-weight: 800; font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.06em; }
.win .nm { font-weight: 800; font-size: 1.02rem; margin-top: 0.15rem; }
.win .rg { font-size: 0.68rem; color: var(--ink-faint); }
.win-play { position: absolute; bottom: 0.7rem; right: 0.7rem; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-bright); color: var(--accent-ink); display: grid; place-items: center; opacity: 0.9; transform: none; transition: opacity 0.2s, transform 0.2s; }
.win-play svg { width: 13px; height: 13px; margin-left: 1px; }
.win:hover .win-play, .win:focus-visible .win-play { opacity: 1; transform: scale(1.1); }

/* 決勝戦映像 ポップアップ */
.vmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(1rem, 4vw, 2rem); opacity: 0; visibility: hidden; transition: opacity 0.25s; }
.vmodal.open { opacity: 1; visibility: visible; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 10, 0.82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.vmodal__box { position: relative; z-index: 1; width: min(960px, 100%); transform: translateY(12px); transition: transform 0.25s; }
.vmodal.open .vmodal__box { transform: none; }
.vmodal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.vmodal__frame #VideoMount { position: absolute; inset: 0; }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vmodal__cap { margin: 0.9rem 0 0; color: #f4f2ec; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em; text-align: center; }
.vmodal__close { position: absolute; top: -14px; right: -14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f4f2ec; color: #16140f; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); transition: transform 0.15s; }
.vmodal__close:hover { transform: scale(1.08); }
.vmodal__close svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .vmodal__close { top: -10px; right: -6px; width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .vmodal, .vmodal__box { transition: none; } }

/* ---- Events ---- */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.5rem); }
@media (max-width: 900px) { .events { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .events { grid-template-columns: 1fr; } }
.ev { border: 1px solid var(--line); border-radius: 3px; padding: clamp(1.3rem, 3vw, 1.7rem); background: var(--surface); display: flex; flex-direction: column; gap: 0.6rem; transition: transform 0.2s, border-color 0.2s; }
.ev:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.ev .cat { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-family: var(--f-disp); font-weight: 700; }
.ev h3 { font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem); font-weight: 900; }
.ev p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.ev .when { margin-top: auto; font-family: var(--f-disp); font-weight: 700; font-size: 0.8rem; color: var(--ink); letter-spacing: 0.04em; padding-top: 0.7rem; border-top: 1px solid var(--line); }
/* 内容未定で非リンクのキャンペーンカード（近日公開） */
.ev--static { cursor: default; }
.ev--static:hover { transform: none; border-color: var(--line); }
.ev--static .when { color: var(--ink-faint); }

/* ---- Movie ---- */
.movie-frame { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 3px; background: linear-gradient(135deg, var(--surface), var(--surface-2)); display: grid; place-items: center; position: relative; overflow: hidden; }
.movie-frame iframe { width: 100%; height: 100%; border: 0; }
.movie-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.movie-label { display: flex; align-items: center; gap: 0.6em; margin: 0 0 0.9rem; font-weight: 800; font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem); color: var(--ink); letter-spacing: 0.02em; }
.movie-label::before { content: ""; width: 1.7em; height: 2px; background: var(--accent-bright); flex: none; }
.movie-frame .play { width: clamp(64px, 10vw, 92px); height: clamp(64px, 10vw, 92px); border-radius: 50%; background: var(--accent-bright); color: var(--accent-ink); display: grid; place-items: center; transition: transform 0.2s; }
.movie-frame:hover .play { transform: scale(1.08); }
.movie-frame .ph { position: absolute; bottom: 1rem; left: 1.2rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--f-disp); font-weight: 700; }

/* ---- Access ---- */
.access-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.access-info .addr { font-size: var(--step-1); font-weight: 800; }
.access-info .addr small { display: block; font-size: 0.5em; color: var(--ink-faint); letter-spacing: 0.1em; margin-top: 0.4rem; font-weight: 600; }
.ways { margin-top: 1.6rem; display: flex; flex-direction: column; }
.way { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.way:last-child { border-bottom: 1px solid var(--line); }
.way .ic { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.way .ic svg { width: 20px; height: 20px; }
.way b { display: block; font-weight: 800; }
.way span { font-size: 0.86rem; color: var(--ink-soft); }
.map-embed { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3); }
@media (max-width: 820px) { .access-grid { grid-template-columns: 1fr; } }

/* ---- Access note ---- */
.access-note { margin: clamp(1.5rem, 4vw, 2.4rem) 0 0; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent-bright); border-radius: 3px; padding: 1rem 1.3rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; }
.access-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.access-note a:hover { color: var(--ink); }

/* ---- Partners ---- */
.link-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; align-items: stretch; }
.link-banners a { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; transition: transform 0.15s, box-shadow 0.2s; }
.link-banners a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.3); }
.link-banners img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 1; object-fit: cover; }

/* ============ FOOTER ============ */
footer.site { background: var(--surface); border-top: 1px solid var(--line-strong); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.foot-brand .mark { font-family: var(--f-disp); font-weight: 800; font-size: 1.3rem; }
.foot-brand .mark b { color: var(--accent); }
.foot-brand p { color: var(--ink-soft); font-size: 0.86rem; margin: 0.6rem 0 0; max-width: 34ch; }
.foot-links { display: flex; gap: clamp(2rem, 6vw, 4rem); flex-wrap: wrap; }
.foot-col h4 { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--f-disp); font-weight: 700; margin: 0 0 0.9rem; }
.foot-col a { display: block; font-size: 0.9rem; color: var(--ink-soft); padding: 0.28rem 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; }
.foot-bottom small { color: var(--ink-faint); font-size: 0.76rem; letter-spacing: 0.04em; }

/* ============ MOTION ============ */
/* JS有効時のみ隠す（未実行・reduced-motion時は常に表示＝内容が消えない） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ PAGE TOP ============ */
#PageTop { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; width: 44px; height: 44px; border-radius: 2px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#PageTop.show { opacity: 1; pointer-events: auto; }

/* ============ 仮情報バッジ（本番公開前に削除可） ============ */
.demo-note { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 80; background: color-mix(in srgb, var(--ink) 92%, transparent); color: var(--bg); font-size: 0.7rem; letter-spacing: 0.06em; padding: 0.5rem 0.95rem; border-radius: 100px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); font-family: var(--f-disp); font-weight: 600; }

/* ============================================================
   夏まつり3ページ（event / stage / gourmet）は承認前のため
   一時的にリンク無効化。承認が出たら「ここから」〜「ここまで」の
   ブロックを丸ごと削除すれば全リンクが復活する。
   ============================================================ */
/* --- 一時リンク無効化 ここから --- */
a[href*="event.html"],
a[href*="stage.html"],
a[href*="gourmet.html"] {
  pointer-events: none !important;
  cursor: default !important;
}
/* カードの浮き上がりホバーも止める */
.ev[href*="event.html"]:hover,
.ev[href*="stage.html"]:hover,
.ev[href*="gourmet.html"]:hover { transform: none; border-color: var(--line); }
/* --- 一時リンク無効化 ここまで --- */

/* ============ 画像のダウンロード抑止 ============
   ドラッグ保存・iOS長押し保存を抑止（右クリック抑止は footer2026.php のJS）。
   ※完全な防止は不可。一般的な保存操作を抑止する目的。 */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
