/* 動きの演出（a4・b4 共通）。初期非表示は html.js-motion があるときだけ */

/* JS が無いときは既存の .reveal も見せる */
html:not(.js-motion) .reveal{opacity:1;transform:none}

/* 1. スクロールで下から浮き出る */
html.js-motion .mv{opacity:0;transform:translateY(36px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--d,0) * 90ms)}
html.js-motion .mv.is-in{opacity:1;transform:none}

/* 3. 写真のワイプ（a は斜め、b は直線） */
html.js-motion .wp{transition:clip-path 1.2s cubic-bezier(.7,0,.2,1);transition-delay:calc(var(--d,0) * 90ms)}
html.js-motion[data-motion="a"] .wp{clip-path:polygon(0 0,0 0,0 100%,0 100%)}
html.js-motion[data-motion="a"] .wp.is-in{clip-path:polygon(0 0,130% 0,100% 100%,0 100%)}
html.js-motion[data-motion="b"] .wp{clip-path:inset(0 100% 0 0)}
html.js-motion[data-motion="b"] .wp.is-in{clip-path:inset(0 0 0 0)}

/* 2. パララックスの写真（親からはみ出さない） */
.px-wrap{overflow:hidden}
.px{will-change:transform}

/* 4. ヒーロー: ゆっくりしたズーム、大見出しを1文字ずつ */
html.js-motion .hero-bg,html.js-motion .hero-main img{animation:kenburns 26s ease-in-out infinite alternate}
@keyframes kenburns{0%{transform:scale(1.02) translate(0,0)}100%{transform:scale(1.16) translate(-2%,-1.5%)}}
.t-main .ch{display:inline-block}
html.js-motion .t-main .ch{opacity:0;transform:translateY(.6em) rotate(4deg);animation:chUp .8s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(.35s + var(--i) * 60ms)}
@keyframes chUp{to{opacity:1;transform:none}}
html.js-motion .hero-body > :not(.hero-title),html.js-motion .hero-bar > *{opacity:0;animation:fadeUp .9s ease-out forwards;animation-delay:1.1s}
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}

/* 5. カウントダウン: 数字が替わるとき動く */
.cd-num{display:inline-block}
.cd-num.tick{animation:tick .45s cubic-bezier(.2,.8,.2,1)}
@keyframes tick{0%{transform:translateY(-35%);opacity:0}100%{transform:none;opacity:1}}

/* 6. 協賛社ロゴの流れる帯 */
.sp-marquee{overflow:hidden;padding:26px 0;margin-bottom:10px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.sp-track{display:flex;width:max-content;animation:marquee var(--dur,40s) linear infinite}
.sp-marquee:hover .sp-track,.sp-marquee:focus-within .sp-track{animation-play-state:paused}
.sp-set{display:flex;align-items:center;gap:56px;padding-right:56px;list-style:none;margin:0}
.sp-set li{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 auto}
.sp-set .sp-rank{font-size:12px;font-weight:700;opacity:.7;white-space:nowrap}
.sp-set img{height:60px;width:auto;max-width:240px;object-fit:contain}
.sp-set .sp-cap{font-size:11px}
@keyframes marquee{to{transform:translateX(-50%)}}
/* 協賛社の段組み: 階級名なし、大きさの差で順を示す */
.sponsors .sponsor-tier.sp-t1,.sponsors .sponsor-tier.sp-t2,.sponsors .sponsor-tier.sp-t3,.sponsors .sponsor-tier.sp-t4,.sponsors .sponsor-tier.sp-t5{display:block;text-align:center;border-bottom:0;padding:18px 0}
.sponsors .sp-t5{border-top:1px solid rgba(128,128,128,.25);margin-top:10px;padding-top:26px}
.sponsors .sp-t5 .rank{margin-bottom:12px}
.sponsors [class*="sp-t"] .sp-logos{justify-content:center}
.sponsors .sp-t1 .sp-logos img{height:120px;max-width:420px}
.sponsors .sp-t2 .sp-logos{gap:24px 64px}
.sponsors .sp-t2 .sp-logos li{flex:0 0 240px}
.sponsors .sp-t2 .sp-logos img{height:72px;width:240px;max-width:100%}
.sponsors .sp-t3 .sp-logos img{height:52px;width:180px;max-width:100%}
.sponsors .sp-t4 .sp-logos img{height:40px;width:140px;max-width:100%}
.sponsors .sp-t5 .sp-logos img{height:34px;width:auto;max-width:130px}
@media (max-width:900px){.sponsors .sp-t1 .sp-logos img{height:84px;max-width:300px}.sponsors .sp-t2 .sp-logos{gap:16px}.sponsors .sp-t2 .sp-logos li{flex:0 0 calc(33.3% - 12px)}.sponsors .sp-t2 .sp-logos img{height:48px;width:100%}.sponsors .sp-t3 .sp-logos img{height:38px;width:110px}.sponsors .sp-t4 .sp-logos img{height:30px;width:100px}.sponsors .sp-t5 .sp-logos img{height:28px;max-width:100px}}

/* 7. スクロールの進み具合のバー・ボタンの滑り込み */
.scroll-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:60;transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
html[data-motion="a"] .scroll-progress{background:#fff}
html[data-motion="b"] .scroll-progress{background:var(--yellow,#ffd400)}
.btn{position:relative;overflow:hidden;z-index:0}
.btn::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(255,255,255,.22);transform:translateX(-101%);transition:transform .45s cubic-bezier(.7,0,.2,1)}
.btn:hover::before,.btn:focus-visible::before{transform:none}

/* 8. ヘッダー: 縮む・下へ隠れる・上へ戻すと出る */
.site-header{transition:transform .4s ease,background .3s}
.header-inner{transition:height .3s ease}
.brand-logo{transition:height .3s ease}
.site-header.is-small .header-inner{height:52px}
.site-header.is-small .brand-logo{height:28px}
.site-header.is-hidden{transform:translateY(-110%)}
@media (max-width:900px){.site-header.is-small .global-nav{top:52px}}

/* 9. 動きを減らす設定のときは全部止める */
@media (prefers-reduced-motion:reduce){
  html.js-motion .mv,html.js-motion .wp{opacity:1;transform:none;clip-path:none;transition:none}
  .hero-bg,.hero-main img,.t-main .ch,.hero-body > *,.hero-bar > *{animation:none!important;opacity:1!important;transform:none!important}
  .sp-track,.cd-num.tick{animation:none}
  .site-header,.btn::before{transition:none}
  .scroll-progress{display:none}
}

/* お知らせ（開催要項と同じ罫線の並び） */
.news-list{list-style:none;margin:0;padding:0}
.news-list li{display:grid;grid-template-columns:170px 1fr;gap:12px;padding:16px 0;border-bottom:1px solid var(--line,#d9dde4)}
.news-list time{font-weight:900}
.news-list .news-body{margin-top:4px;font-size:.92em;opacity:.85}
.news-list .news-empty{display:block}
@media (max-width:900px){.news-list li{grid-template-columns:1fr;gap:2px}}

/* 日ごとのチケット購入ボタン */
.ticket-buy,.panel-buy{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.panel-buy{margin-top:24px}
.hero-cta{flex-wrap:wrap}
.global-nav .nav-cta + .nav-cta{margin-left:6px}
