/* ============================================================
   雙11 舊款鞋限時特賣の「全画面バナー」（トップを開いて最初に見える1画面・ヘッダーより上）。
   2026-11-04 本城さん採用＝案8「招牌牆」：隙間なく積み上がった台湾の看板の壁に、真ん中の大看板「老闆瘋了」。
   中身は assets/flash-hero.js が本文の一番上（ヘッダーの前）に差し込む（トップ専用＝index の head でだけ読む）。
   高さは画面いっぱい（100svh）。下へ進むとヘッダー（上に貼りつく）といつもの売場が続く。

   大きさの決め方：大看板の中身は全部 --u（設計図の1px）の倍数。--u は画面の幅と高さの小さい方から決まるので、
   どの画面でも同じ形のまま拡大縮小する。設計図は2枚＝横長（780×560）と縦長（356×350）。
   切替は「縦 ≥ 横」かどうか（幅では切らない＝立てたタブレットも横にしたスマホも形が崩れない）。
   940px 以下は下に「篩選・購物車」の島が浮くので、その分だけ大看板を上へ避ける。
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

.fsh {
  --u: min(56vw / 780, 62vh / 560);
  --mid: 50%;
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0c0b12;
  color: #fff;
  font-family: "Noto Sans TC", "Helvetica Neue", Arial, "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
@supports (height: 100svh) {
  .fsh { --u: min(56vw / 780, 62svh / 560); }
}
.fsh *, .fsh *::before, .fsh *::after { box-sizing: border-box; }
.fsh p, .fsh ul { margin: 0; padding: 0; list-style: none; }
.fsh a { color: inherit; text-decoration: none; }
.fsh img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.fsh-logo {
  display: inline-block; aspect-ratio: 160.723 / 41.744; background: currentColor;
  -webkit-mask: url("/assets/athleta-white.svg") center / contain no-repeat;
  mask: url("/assets/athleta-white.svg") center / contain no-repeat;
}
.fsh .hit { position: absolute; inset: 0; z-index: 5; }

/* 看板の壁（横14×縦7・縦長は横6×縦14）。置き方は flash-hero.js が隙間なく敷き詰める。 */
.fsh .wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(14, 1fr); grid-template-rows: repeat(7, 1fr); overflow: hidden; gap: 6px; padding: 6px; z-index: 0; }
.fsh .s { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; border-radius: 4px; font-weight: 700; color: var(--f); background: var(--b); box-shadow: inset 0 0 0 3px var(--e), 0 0 18px var(--g); }
.fsh .s span { font-size: min(2.6vw, 6.4vh); letter-spacing: .04em; text-shadow: 0 0 12px var(--g); white-space: nowrap; }
.fsh .s.v span { writing-mode: vertical-rl; letter-spacing: .1em; font-size: min(3vw, 8vh); }
.fsh .s.dim { filter: brightness(.3) saturate(.5); }
.fsh .c-r { --b: #e8102c; --f: #ffe94a; --e: #fff; --g: rgba(232,16,44,.8); }
.fsh .c-y { --b: #ffd900; --f: #d4001a; --e: #d4001a; --g: rgba(255,217,0,.7); }
.fsh .c-k { --b: #101010; --f: #39ff7a; --e: #39ff7a; --g: rgba(57,255,122,.7); }
.fsh .c-g { --b: #00a651; --f: #fff; --e: #ffe94a; --g: rgba(0,166,81,.8); }
.fsh .c-b { --b: #0a3cff; --f: #fff; --e: #ff2fb0; --g: rgba(10,60,255,.8); }
.fsh .c-p { --b: #ff2fb0; --f: #fff; --e: #fff200; --g: rgba(255,47,176,.8); }
.fsh .c-c { --b: #00e0ff; --f: #0c0b12; --e: #0a3cff; --g: rgba(0,224,255,.7); }
.fsh .c-w { --b: #fff; --f: #e8102c; --e: #101010; --g: rgba(255,255,255,.6); }

/* 電線 */
.fsh .wires { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(174deg, transparent 8%, #000 8.2% 8.5%, transparent 8.7%),
    linear-gradient(3deg, transparent 13%, #000 13.2% 13.4%, transparent 13.6%),
    linear-gradient(-6deg, transparent 90%, #000 90.2% 90.5%, transparent 90.7%); }

/* 中央の大看板 */
.fsh .main {
  position: absolute; z-index: 4; left: 50%; top: var(--mid); transform: translate(-50%, -50%); width: calc(780 * var(--u)); padding: max(30px, calc(30 * var(--u))) calc(34 * var(--u)) max(32px, calc(30 * var(--u))); text-align: center; pointer-events: none;
  background: #d4001a; border-radius: calc(14 * var(--u)); border: max(4px, calc(8 * var(--u))) solid #ffe94a;
  box-shadow: 0 0 0 max(4px, calc(8 * var(--u))) #101010, 0 30px 80px rgba(0,0,0,.8), 0 0 70px rgba(255,233,74,.5);
}
.fsh .bulbs { position: absolute; inset: 6px; border-radius: 6px; pointer-events: none;
  background:
    radial-gradient(circle, #fff 0 3px, #ffe94a 4px, transparent 6px) 0 0 / 24px 24px repeat-x,
    radial-gradient(circle, #fff 0 3px, #ffe94a 4px, transparent 6px) 0 100% / 24px 24px repeat-x;
  filter: drop-shadow(0 0 5px #ffe94a); animation: fsh-chase .45s steps(2, jump-none) infinite; }
@keyframes fsh-chase { to { background-position: 12px 0, 12px 100%; } }
.fsh .fsh-logo { position: absolute; left: max(22px, calc(26 * var(--u))); top: max(26px, calc(26 * var(--u))); width: calc(92 * var(--u)); color: #fff; }
.fsh .k1 { font-size: max(11px, calc(20 * var(--u))); font-weight: 700; color: #ffe94a; letter-spacing: .14em; margin-top: calc(16 * var(--u)); }
/* 「老闆瘋了」はどの画面でも必ず1行（割ると読めない）。 */
.fsh .h { display: flex; flex-wrap: nowrap; justify-content: center; gap: .1em; white-space: nowrap; font-size: calc(144 * var(--u)); line-height: 1.05; font-weight: 700; color: #fff; }
.fsh .h span { flex: none; text-shadow: 0 calc(6 * var(--u)) 0 #101010, 0 0 30px rgba(255,255,255,.5); }
.fsh .h span:last-child { color: #ffe94a; animation: fsh-shake .16s linear infinite; }
@keyframes fsh-shake { 0% { transform: translate(-2px, 1px) rotate(-1.4deg); } 50% { transform: translate(2px, -1px) rotate(1.2deg); } 100% { transform: translate(-1px, 2px) rotate(-.8deg); } }
.fsh .off { position: absolute; right: calc(-40 * var(--u)); top: calc(-34 * var(--u)); width: calc(156 * var(--u)); height: calc(156 * var(--u)); display: grid; place-items: center; text-align: center; line-height: 1.1; border-radius: 50%; background: #ffe94a; color: #d4001a; font-size: calc(46 * var(--u)); font-weight: 700; box-shadow: 0 0 0 max(3px, calc(6 * var(--u))) #101010; transform: rotate(10deg); animation: fsh-pulse .9s ease-in-out infinite; }
@keyframes fsh-pulse { 50% { transform: rotate(10deg) scale(1.1); } }
.fsh .shoe { width: 62%; margin: 0 auto calc(-6 * var(--u)); filter: drop-shadow(0 10px 8px rgba(0,0,0,.5)); }
.fsh .led { margin-top: calc(14 * var(--u)); display: inline-flex; align-items: baseline; gap: calc(14 * var(--u)); padding: calc(8 * var(--u)) calc(20 * var(--u)); background: #000; border-radius: 6px; color: #ff3030; text-shadow: 0 0 8px #ff3030; }
.fsh .led span { font-size: max(10px, calc(15 * var(--u))); font-weight: 700; }
.fsh .led b { font: 400 calc(34 * var(--u))/1 "Share Tech Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.fsh .go { position: absolute; z-index: 6; left: 50%; bottom: 3vh; transform: translateX(-50%); padding: 12px 30px; background: #39ff7a; color: #0c0b12; font-weight: 700; font-size: 18px; border-radius: 6px; box-shadow: 0 0 0 4px #0c0b12, 0 0 24px #39ff7a; white-space: nowrap; }

/* 縦長の画面（スマホ・立てたタブレット）＝設計図 356×350。 */
@media (max-aspect-ratio: 1/1) {
  .fsh { --u: min((100vw - 34px) / 356, 52vh / 350); --mid: 47%; }
  .fsh .wall { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(14, 1fr); gap: 4px; padding: 4px; }
  .fsh .s span { font-size: min(5.2vw, 3vh); }
  .fsh .s.v span { font-size: min(7vw, 3.6vh); }
  .fsh .main { width: calc(356 * var(--u)); padding: max(28px, calc(20 * var(--u))) calc(14 * var(--u)) max(32px, calc(26 * var(--u))); }
  .fsh .fsh-logo { left: max(20px, calc(18 * var(--u))); top: max(26px, calc(22 * var(--u))); width: calc(76 * var(--u)); }
  .fsh .k1 { font-size: max(11px, calc(13 * var(--u))); margin-top: calc(24 * var(--u)); }
  .fsh .h { font-size: calc(76 * var(--u)); margin-top: calc(4 * var(--u)); }
  .fsh .off { right: calc(-8 * var(--u)); top: calc(-40 * var(--u)); width: calc(92 * var(--u)); height: calc(92 * var(--u)); font-size: calc(26 * var(--u)); }
  .fsh .shoe { width: 72%; margin-top: calc(4 * var(--u)); }
  .fsh .led { margin-top: calc(12 * var(--u)); gap: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(16 * var(--u)); }
  .fsh .led span { font-size: max(10px, calc(12 * var(--u))); }
  .fsh .led b { font-size: calc(26 * var(--u)); }
  @supports (height: 100svh) {
    .fsh { --u: min((100vw - 34px) / 356, 52svh / 350); }
    .fsh .s span { font-size: min(5.2vw, 3svh); }
    .fsh .s.v span { font-size: min(7vw, 3.6svh); }
  }
}
/* 下に「篩選・購物車」の島が浮く幅。緑のボタンは島に隠れるので出さない（看板全体が押せる）。 */
@media (max-width: 940px) {
  .fsh .go { display: none; }
}
/* 横にしたスマホ＝高さが足りないので、島の上に収まる大きさへ。 */
@media (max-width: 940px) and (min-aspect-ratio: 1/1) {
  .fsh { --u: min(76vw / 780, (100vh - 124px) / 560); --mid: calc(50% - 30px); }
  @supports (height: 100svh) {
    .fsh { --u: min(76vw / 780, (100svh - 124px) / 560); }
  }
}

/* 画面の外へ出たら動きを止める。 */
.fsh.is-off *, .fsh.is-off *::before, .fsh.is-off *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .fsh *, .fsh *::before, .fsh *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
