/* 数字のフォント: Pixerif(assets/font/Pixerif.ttf)。同じ文字サイズだとひと回り小さいので 120% に */
@font-face {
  font-family: "Pixerif";
  src: url("assets/font/Pixerif.ttf") format("truetype");
  font-display: block;
  size-adjust: 120%;
}
/* ============================================================
   foodman 108 Spirits LP — v2「光でできた顔」
   1画面固定。stage をコンテナにして cqw / cqh で組む
   共通 → SP(@container max-width:600px。2026-11-16 から縦向きのタブレット(幅 1100px まで)も SP)
   ============================================================ */
:root {
  /* 色を使わない: 白地・黒文字・グレー */
  --bg: #ffffff;
  --fg: #111111;
  --mute: #8c8c8c;
  --gold: var(--fg); /* 旧ゴールドの箇所も黒に */
  --f-en: "Baskervville", "Times New Roman", serif;
  --f-ja: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-num:
    "Pixerif", "Baskervville", monospace; /* カウンター・数字(Pixerif / Thomas Versteeg。DaFont: Public domain / GPL / OFL) */
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-ja);
  font-feature-settings: "palt";
  font-variant-numeric: lining-nums;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
p,
h1,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- 顔 ---------- */
.photo {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh; /* svh 非対応ブラウザ用 */
  height: 100svh;
  z-index: 0;
  opacity: 0;
}
.face {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh; /* svh 非対応ブラウザ用 */
  height: 100svh;
  z-index: 0;
}
.face-src {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 画面(1画面) ---------- */
.stage {
  --m: 44px;
  position: fixed;
  inset: 0;
  height: 100vh; /* svh 非対応ブラウザ用 */
  height: 100svh;
  z-index: 1;
  container-type: size;
  pointer-events: none;
}
.stage > * {
  position: absolute;
  pointer-events: auto;
}

.kick,
.tools,
.cd .k,
.count .k,
.count .mine,
.info dt {
  font-family: var(--f-en);
  letter-spacing: 0;
}
.kick {
  top: var(--m);
  left: var(--m);
  font-size: 13px;
}
.cd {
  top: 50%; /* PC: 画面のど真ん中(SP は下の @container で別の位置) */
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 14px;
  align-items: baseline;
  white-space: nowrap;
}
.cd .k {
  font-size: 11px;
  color: #3a3a3a; /* 画面の中央(顔の上)でも読めるように濃いめ */
}
.cd .n {
  font-family: var(--f-num);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.tools {
  top: var(--m);
  left: var(--m); /* PC は左上(SP は下の @container で別の位置) */
  display: flex;
  gap: 22px;
  font-size: 13px;
}
.tools .ticket {
  color: var(--gold);
}

/* 全体イベント名「108 Spirits」: 小さく、左下の概要の上に(主役は企画名) */
/* 左下の見出しと情報: 企画名が光で見えてくるのと対になって消えていく(--pair は main.js が 1→0 に) */
.head,
.info {
  opacity: var(--pair, 1);
  transition: opacity 0.5s;
}
.head {
  left: var(--m);
  bottom: calc(var(--m) + 70px);
  display: flex;
  flex-direction: column; /* -108 Spirits- はタイトルの下に */
  align-items: flex-start;
  gap: 0;
}
.t {
  font-family: var(--f-en);
  font-weight: 400;
  font-size: clamp(16px, min(1.55vw, 2.5vh), 22px); /* 非対応ブラウザ用 */
  font-size: clamp(16px, min(1.55cqw, 2.5cqh), 22px); /* 前回の約70% */
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.t-sub {
  font-family: var(--f-en);
  font-size: clamp(13px, min(1.2vw, 2vh), 17px); /* 非対応ブラウザ用 */
  font-size: clamp(13px, min(1.2cqw, 2cqh), 17px);
  margin-top: 4px;
}
/* 縦組みの企画名: このページの主役。右側に大きく */
.proj {
  top: calc(var(--m) + 52px);
  right: var(--m);
  display: flex;
  flex-direction: row-reverse; /* 右から: 和文 → 英文 */
  align-items: flex-start;
  gap: 14px;
}
.proj-when {
  writing-mode: vertical-rl;
  font-family: var(--f-en);
  font-size: 18px; /* WWWβ の日時: 前回の120% */
  line-height: 1.4;
  white-space: nowrap;
  margin-top: 0.3em;
}
.proj-en {
  writing-mode: vertical-rl;
  font-family: var(--f-en);
  font-size: 15px;
  line-height: 1.45;
  white-space: nowrap;
  margin-top: 0.4em;
}
.ja {
  writing-mode: vertical-rl;
  font-feature-settings: "vpal";
  font-weight: 600;
  font-size: clamp(26px, min(3.2vw, 5vh), 60px); /* 非対応ブラウザ用 */
  font-size: clamp(26px, min(3.2cqw, 5cqh), 60px); /* 主役。前回の約70% */
  line-height: 1.1; /* 行間を詰めてタイトルらしく */
  letter-spacing: 0;
  white-space: nowrap;
}
.ja .ch,
.proj-en,
.proj-when {
  transition:
    opacity 0.5s,
    filter 0.5s;
}
/* 企画名のロゴ(SVG)。高さは前の和文タイトル(8字)とそろえる */
.title-svg {
  margin: 0;
  font-size: clamp(26px, min(3.2vw, 5vh), 60px); /* 非対応ブラウザ用 */
  font-size: clamp(26px, min(3.2cqw, 5cqh), 60px);
  transition: opacity 0.5s;
}
.title-svg svg {
  display: block;
  height: calc(
    1em * 8.45
  ); /* 和文の字の大きさは前と同じ(2026-11-15 新ロゴ。日時は別に中央へ) */
  width: auto;
}
.ja .by {
  font-family: var(--f-en);
  font-weight: 700; /* 和文(600)と太さをそろえる */
  font-size: 0.85em;
}

.info {
  left: var(--m);
  bottom: calc(var(--m) - 2px); /* 文字の並ぶ線を、チャット・YOU とそろえる */
  display: grid;
  gap: 3px;
  font-size: 12.5px;
  line-height: 1.5;
}
.info p {
  font-family: var(--f-en), var(--f-ja);
}
.info dt {
  letter-spacing: 0;
  color: var(--mute);
}
.info dd {
  font-family: var(--f-en), var(--f-ja);
  letter-spacing: 0;
}

.count {
  right: var(--m);
  bottom: var(--m);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.count .ja-k {
  align-self: center; /* 「みんなで集めた光」はカウンターの数字の左右中央 */
}
.count .k {
  font-size: 12px;
  color: var(--mute);
}
.count .ja-k {
  font-family: var(--f-ja);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--fg);
}
.count .n {
  font-family: var(--f-num);
  font-weight: 400;
  font-size: clamp(40px, min(5vw, 9vh), 84px); /* 非対応ブラウザ用 */
  font-size: clamp(40px, min(5cqw, 9cqh), 84px);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
/* カウンターの数字: SVG の字(1字 32.45×57.3、字間 7.02)。高さは文字サイズの 0.68 倍 */
.count .n {
  display: flex;
  gap: calc(0.68em * 7.02 / 57.3);
  padding: 0.12em 0 0.06em;
}
.count .n .dg {
  display: block;
  height: 0.68em;
  width: calc(0.68em * 32.45 / 57.3);
  fill: currentColor;
}
.count .mine .num {
  font-family: var(--f-num);
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: 0;
}
.count .mine {
  font-size: 13px;
  letter-spacing: 0;
}
/* YOU と SHARE を1行に(SHARE は YOU の右) */
.count .row2 {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 16px; /* 数字との間を広げる(カウンターはその分上へ) */
}
.count .share {
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: 0;
}

/* ボタンの上のひとこと */
.slogan {
  left: 50%; /* ボタンの下・左右中央 */
  translate: -50% 0;
  bottom: var(--m); /* 下端を左の情報・右の YOU にそろえる */
  line-height: 1.5;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.slogan-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}
.slogan-caret.typing {
  animation: none; /* 打っている間は点滅させない */
}

/* ボタン: CHARGE(1つずつ)と BOOST(9つまとめて)。108 で CHARGE が RING に変わる */
.btns {
  left: 50%;
  bottom: calc(var(--m) + 30px); /* チャットの文字の上 */
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.light {
  position: relative;
  width: 180px;
  height: 56px;
  border-radius: 999px; /* ピル型 */
  /* 立体の質感(前回LPの Live Pocket ボタンと同じ光沢) */
  color: #111;
  background: linear-gradient(
    to bottom,
    #fdfdfd 0%,
    #ececec 42%,
    #cfcfcf 78%,
    #a3a3a3 100%
  );
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.95),
    inset 0 -4px 7px rgba(0, 0, 0, 0.22),
    0 2px 3px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.4s,
    opacity 0.3s,
    transform 0.12s;
}
.light .lbl {
  font-family: var(--f-en);
  font-size: 18px;
  letter-spacing: 0;
}
.light.down,
.light:active {
  transform: scale(0.97);
  background: linear-gradient(to bottom, #b9b9b9 0%, #d6d6d6 40%, #ececec 100%);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.3),
    0 1px 1px rgba(0, 0, 0, 0.2);
}
.light.ring {
  animation: breathe 1.6s ease-in-out infinite;
}
.light:disabled {
  opacity: 0.25;
  cursor: default;
}
@keyframes breathe {
  50% {
    transform: scale(1.04);
  }
}

/* ---------- BOOST の演出5案の写真の層(boost-fx.js)。光の字の顔より上、文字とボタンより下 ---------- */
.fxp {
  position: fixed;
  inset: 0;
  z-index: 1; /* .stage と同じ。DOM で先にあるので文字とボタンの下になる */
  pointer-events: none;
  overflow: hidden;
}
.fxp:empty {
  display: none;
}

/* ---------- BOOST の演出レイヤー「日めくり」(文字とボタンより手前、押せる) ---------- */
.fx {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 0%;
}
.fx-wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #111;
}
.sh {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  will-change: transform;
}
.sh-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.sh-back {
  transform: rotateX(180deg);
  background-repeat: repeat;
}
.sh-wrap,
.sh-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sh-stage {
  position: absolute !important;
  pointer-events: none !important;
}
.sh-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-num);
  font-size: min(30vw, 46vh);
  line-height: 1;
  color: #111;
  background: #fff;
}
.sh-quiet {
  font-size: min(20vw, 30vh);
  background: none;
}
.sh-photo {
  position: absolute;
  inset: 0;
  background: #fff center 42% / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}
.sh-dark .sh-front {
  background: #111;
}
.sh-year {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-num);
  font-size: min(34vw, 50vh);
  line-height: 1;
  color: #fff;
}

/* ---------- 入口 ---------- */
/* 入口の5案(intro.js, ?intro=1〜5) */
body.pre
  .stage
  > :is(.btns, .slogan, .count, .info, .head, .cd, .tools, .proj, .fm-logo) {
  opacity: 0;
}
.in-ov {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: transparent;
}
.in-white {
  background: #fff;
}
.in-line {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 15px;
  white-space: nowrap;
}
.in-num {
  font-family: var(--f-num);
  font-size: 1.15em;
}
.in-enter {
  font-family: var(--f-en);
  font-size: 13px;
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.6s;
}
.in-enter.show {
  opacity: 1;
}
/* 1 まぶた */
.in-mabuta {
  position: fixed;
  left: 0;
  right: 0;
  top: 58%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.in-mabuta .in-line {
  position: static;
  padding: 2px 6px;
  background: #fff;
}
.in-mabuta .in-enter {
  background: #fff;
}
/* 2 ひとつのボタン */
.in-top {
  font-size: 15px;
}
.in-one {
  border-radius: 999px;
}
/* 3 全部、光に変換 */
.in-corner {
  position: absolute;
  left: 44px;
  top: 44px;
  margin: 0;
  z-index: 2;
  font-family: var(--f-en);
  font-size: 11px; /* ページで一番小さい文字の大きさ */
  line-height: 1.45;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .in-corner {
    left: 18px;
    top: 18px;
  }
}
.in-split {
  background: transparent;
}
.in-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #fff;
}
.in-top-half {
  top: 0;
}
.in-bot-half {
  bottom: 0;
}
/* 一行と (ENTER) をひとまとまりにして上下中央に */
.in-center {
  top: calc(50% - 26px);
  z-index: 2;
}
.in-ch.conv {
  font-weight: 500;
}
.in-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0;
  transform-origin: 50% 50%;
  translate: 0 -50%;
  font-family: var(--f-ja);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  z-index: 2;
  text-align: center;
}
.in-split .in-enter {
  position: absolute;
  left: 50%;
  top: calc(50% + 1px);
  padding-top: 0;
  translate: -50% 0;
  z-index: 2;
}
/* 4 光で書いた光 */
.in-low {
  top: 76%;
  z-index: 2;
}
.in-low2 {
  position: absolute;
  left: 50%;
  top: calc(76% + 40px);
  translate: -50% 0;
  z-index: 2;
}
/* 5 先に一度、年を越す */
.in-bigcd {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -55%;
  text-align: center;
  font-family: var(--f-num);
  font-size: min(11vw, 18vh);
  line-height: 1;
  color: #111;
}
.in-year.in-dark {
  background: #111;
}
.in-year.in-dark .in-bigcd {
  color: #fff;
  font-size: min(26vw, 40vh);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transition: opacity 0.9s;
}
.intro[hidden] {
  display: none;
}
.intro.out {
  opacity: 0;
  pointer-events: none;
}
.intro-line {
  font-size: 14px;
  letter-spacing: 0;
  min-height: 1.6em;
}
.caret {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.2em;
  background: var(--fg);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.intro-enter {
  font-family: var(--f-en);
  font-size: 13px;
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.6s;
}
.intro-enter.show {
  opacity: 1;
}

.debug {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 99;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font: 11px/1.4 monospace;
  white-space: pre;
}

@media (prefers-reduced-motion: reduce) {
  .light.ring {
    animation: none;
  }
}

/* ============================================================
   SP
   ============================================================ */
/* iOS 15 以前の Safari などコンテナクエリ非対応のブラウザ用に、同じ指定を画面幅で(.stage は画面全体なので同じ結果)。2026-11-15 レビュー */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .stage > * {
    --m: 18px; /* container 自身の変数は上書きできないので子に置く */
  }
  .kick {
    font-size: 10px;
    letter-spacing: 0;
  }
  .cd {
    top: auto;
    left: var(--m);
    transform: none;
    bottom: 252px;
    flex-direction: column;
    gap: 0;
  }
  .cd .k {
    font-size: 11px;
  }
  .cd .n {
    font-size: 17px; /* 120% */
  }
  .tools {
    top: auto;
    bottom: 104px;
    left: var(--m);
    right: var(--m);
    justify-content: space-between;
    gap: 0;
    font-size: 10.5px;
  }
  .head {
    bottom: 211px; /* 注意書きを2段にしたぶん 1行(約17px)上へ。2026-11-15 */
  }
  .t {
    font-size: 12px;
  }
  .t-sub {
    font-size: 11.5px;
    margin-top: 2px;
  }
  /* SP: 見出しの右隣 */
  .proj {
    top: var(--m); /* SP: 企画名(CHARGE で見えてくる)は右上に */
    right: var(--m);
    bottom: auto;
    gap: 8px;
  }
  .ja {
    font-size: clamp(16px, 5vw, 21px);
    line-height: 1.1;
  }
  .title-svg {
    font-size: clamp(
      19px,
      6.6vw,
      28px
    ); /* ロゴは英文も入るので、前の和文タイトルより大きめに */
  }
  .proj-en {
    font-size: 11px;
    line-height: 1.4;
  }
  .proj-when {
    font-size: 13px;
  }
  .info {
    bottom: 136px;
    font-size: 11.5px; /* 日付が SOUND・TICKET より小さく見えないように */
    gap: 1px;
  }
  .info .note {
    font-size: 10.5px;
  }
  .count {
    bottom: 224px;
  }
  .count .k {
    font-size: 9.5px;
  }
  .count .ja-k {
    font-size: 11px;
  }
  .count .n {
    font-size: 36px;
  }
  .count .mine,
  .count .share {
    font-size: 10.5px;
  }
  .count .row2 {
    margin-top: 9px;
    gap: 14px;
  }
  .slogan {
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    font-size: 12px;
  }
  .btns {
    left: var(--m);
    right: var(--m);
    transform: none;
    bottom: calc(38px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .light {
    flex: 1;
    width: auto;
    height: 52px;
  }
  .light .lbl {
    font-size: 16px;
  }
}
@container (max-width: 600px) or ((orientation: portrait) and (max-width: 1100px)) {
  .stage > * {
    --m: 18px; /* container 自身の変数は上書きできないので子に置く */
  }
  .kick {
    font-size: 10px;
    letter-spacing: 0;
  }
  .cd {
    top: auto;
    left: var(--m);
    transform: none;
    bottom: 252px;
    flex-direction: column;
    gap: 0;
  }
  .cd .k {
    font-size: 11px;
  }
  .cd .n {
    font-size: 17px; /* 120% */
  }
  .tools {
    top: auto;
    bottom: 104px;
    left: var(--m);
    right: var(--m);
    justify-content: space-between;
    gap: 0;
    font-size: 10.5px;
  }
  .head {
    bottom: 211px; /* 注意書きを2段にしたぶん 1行(約17px)上へ。2026-11-15 */
  }
  .t {
    font-size: 12px;
  }
  .t-sub {
    font-size: 11.5px;
    margin-top: 2px;
  }
  /* SP: 見出しの右隣 */
  .proj {
    top: var(--m); /* SP: 企画名(CHARGE で見えてくる)は右上に */
    right: var(--m);
    bottom: auto;
    gap: 8px;
  }
  .ja {
    font-size: clamp(16px, 5vw, 21px); /* 非対応ブラウザ用 */
    font-size: clamp(16px, 5cqw, 21px);
    line-height: 1.1;
  }
  .title-svg {
    font-size: clamp(19px, 6.6vw, 28px); /* 非対応ブラウザ用 */
    font-size: clamp(
      19px,
      6.6cqw,
      28px
    ); /* ロゴは英文も入るので、前の和文タイトルより大きめに */
  }
  .proj-en {
    font-size: 11px;
    line-height: 1.4;
  }
  .proj-when {
    font-size: 13px;
  }
  .info {
    bottom: 136px;
    font-size: 11.5px; /* 日付が SOUND・TICKET より小さく見えないように */
    gap: 1px;
  }
  .info .note {
    font-size: 10.5px;
  }
  .count {
    bottom: 224px;
  }
  .count .k {
    font-size: 9.5px;
  }
  .count .ja-k {
    font-size: 11px;
  }
  .count .n {
    font-size: 36px;
  }
  .count .mine,
  .count .share {
    font-size: 10.5px;
  }
  .count .row2 {
    margin-top: 9px;
    gap: 14px;
  }
  .slogan {
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    font-size: 12px;
  }
  .btns {
    left: var(--m);
    right: var(--m);
    transform: none;
    bottom: calc(38px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .light {
    flex: 1;
    width: auto;
    height: 52px;
  }
  .light .lbl {
    font-size: 16px;
  }
}

/* BOOST の光の案(6〜10): 一瞬だけ夜になる。文字は白に */
body.fx-dark .stage {
  --fg: #fff;
  --mute: #9a9a9a;
  --gold: #fff;
  color: #fff;
}
.fxp canvas {
  display: block;
}

/* おつげの文字(oracle.js): 1字ずつ浮かび上がり、出たあともゆっくり漂う */
.or-ch {
  display: inline-block;
  animation: or-float 3.6s ease-in-out infinite;
}
@keyframes or-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .or-ch {
    animation: none;
  }
}

/* ---------- ホバー(マウスのある端末だけ) ----------
   SHARE・SOUND・TICKET: 字の下に細い線が左から引かれる。TICKET の矢印は右上へ少し動く
   CHARGE・BOOST: 少し浮いて、表面を光が左から右へすっと流れる */
.tools > *,
.count .share {
  position: relative;
}
.tools > *::after,
.count .share::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tools .arw {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.light {
  overflow: hidden;
}
.light::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(0);
  pointer-events: none;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .tools > *:hover::after,
  .count .share:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
  .tools .ticket:hover .arw {
    transform: translate(2px, -2px);
  }
  /* CHARGE・BOOST のホバー(浮き上がり・表面を光が流れる)は 2026-11-15 にやめた。押したときの動きだけ残す
     2026-11-16: ボタンだとわかるように、光らない動きだけ戻す。2px 浮いて、下の影が少し深くなる(押している間・押せない間は出さない) */
  html:not(.hvx) .light:not(:disabled):not(.down):not(:active):hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 2px 1px rgba(255, 255, 255, 0.95),
      inset 0 -4px 7px rgba(0, 0, 0, 0.22),
      0 6px 12px rgba(0, 0, 0, 0.28);
  }
}
.light {
  transition:
    background-color 0.4s,
    opacity 0.3s,
    transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s;
}

/* 入口の一行と (ENTER): 浮かんだあとも、ゆっくり漂う(チャットより大きく) */
.in-center .or-ch {
  animation: or-float-in 4.2s ease-in-out infinite;
}
@keyframes or-float-in {
  0%,
  100% {
    transform: translateY(1.5px);
  }
  50% {
    transform: translateY(-3.5px);
  }
}
.in-split .in-enter.show {
  animation: in-float 5s ease-in-out infinite;
}
@keyframes in-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .in-center .or-ch,
  .in-split .in-enter.show {
    animation: none;
  }
}

/* 左下の見出し: 1字ずつゆらめく(字ごとにリズムをずらす。main.js の splitHead) */
.fl-ch {
  display: inline-block;
  animation: ch-float 4.4s ease-in-out infinite;
}
/* 2026-11-20: PC だけ揺れの頂点で 0.4px ぼかしていたのを外した(左下の文字が読みづらい。ユーザー)。タブレット・SP の ch-float-nb と同じ */
@keyframes ch-float {
  0%,
  100% {
    transform: translateY(2px);
    opacity: 1;
  }
  50% {
    transform: translateY(-4.5px);
    opacity: 0.7;
  }
}
/* SP: 左下の小さい文字(日時・会場・注意書き)はうねりを控えめに(上下 6.5px → 3.5px、濃さとぼやけの変化も弱く)。PC はそのまま。2026-11-15 */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .info .fl-ch,
  .head .fl-ch {
    animation-name: ch-float-sp; /* 見出し(WWW New Year Party 2026–27 / -108 Spirits-)も同じく控えめに(2026-11-15) */
  }
}
@keyframes ch-float-sp {
  0%,
  100% {
    transform: translateY(1px);
    opacity: 1;
  }
  50% {
    transform: translateY(-2.5px);
    opacity: 0.82;
  }
}
/* 左下の情報: 1行ずつ、ゆっくり漂う(行ごとに少しずらす) */
.info p {
  animation: line-float 5.2s ease-in-out infinite;
}
.info p:nth-child(1) {
  animation-delay: -1.4s;
}
.info p:nth-child(2) {
  animation-delay: -2.1s;
}
.info p:nth-child(3) {
  animation-delay: -2.8s;
}
@keyframes line-float {
  0%,
  100% {
    transform: translateY(1px);
  }
  50% {
    transform: translateY(-2.5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl-ch,
  .info p {
    animation: none;
  }
}

/* 企画名のロゴ: 字ごとにゆっくり漂い、ほんの少し明滅する(揺らめき)。上から下へ波のようにずれる */
.title-svg path,
.title-svg line {
  transform-box: fill-box;
  animation: logo-float 4.6s ease-in-out infinite;
}
@keyframes logo-float {
  0%,
  100% {
    transform: translateY(2px);
    opacity: 1;
  }
  50% {
    transform: translateY(-3px);
    opacity: 0.82;
  }
}
@media (prefers-reduced-motion: reduce) {
  .title-svg path,
  .title-svg line {
    animation: none;
  }
}

/* カウンター: 数字は1字ずつゆらめき、「みんなで集めた光」と YOU・SHARE は行ごとに漂う */
.count .n .dg {
  animation: ch-float 4.4s ease-in-out infinite;
}
.count .n .dg:nth-child(2) {
  animation-delay: -0.35s;
}
.count .n .dg:nth-child(3) {
  animation-delay: -0.7s;
}
.count .n .dg:nth-child(4) {
  animation-delay: -1.05s;
}
.count .n .dg:nth-child(5) {
  animation-delay: -1.4s;
}
.count .n .dg:nth-child(6) {
  animation-delay: -1.75s;
}
.count .n .dg:nth-child(7) {
  animation-delay: -2.1s;
}
/* SHARE はボタンなので動かさない。YOU の文字だけ漂う */
.count .ja-k,
.count .mine {
  animation: line-float 5.2s ease-in-out infinite;
}
.count .mine {
  animation-delay: -2.6s;
}
.count .n .dg:nth-child(8) {
  animation-delay: -2.45s;
}
@media (prefers-reduced-motion: reduce) {
  .count .n .dg,
  .count .ja-k,
  .count .mine {
    animation: none;
  }
}

/* 背景の写真: 光の字の型で抜いたうえで、ゆっくりゆらめく(光の字とわずかにずれて、きらめいて見える) */
.photo {
  animation: photo-sway 7s ease-in-out infinite;
}
@keyframes photo-sway {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(1.2px, -0.8px) scale(1.004);
  }
  66% {
    transform: translate(-1px, 0.6px) scale(1.002);
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo {
    animation: none;
  }
}

/* YOU の数字: 1字ずつの箱(変わった桁がせり上がるときに、箱の外へはみ出さない) */
.count .mine .num .md {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.1;
}
.count .mine .num .md > span {
  display: inline-block;
}

/* ---------- TICKET・SHARE: CHARGE・BOOST を小さくしたような、白い小さなボタン ---------- */
.tools .ticket,
.count .share {
  display: inline-flex;
  align-items: center;
  padding: 0.42em 1.15em 0.38em;
  border: 0; /* CHARGE・BOOST と同じく罫線なし。ふくらみは影で */
  border-radius: 999px;
  background: linear-gradient(#ffffff, #ececec);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(0, 0, 0, 0.1),
    0 2px 5px rgba(0, 0, 0, 0.16);
  color: var(--fg);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s;
}
.tools .ticket::after,
.count .share::after {
  display: none; /* 下線のホバーは使わない */
}
.tools .ticket:active,
.count .share:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.12),
    0 0 0 rgba(0, 0, 0, 0);
}
@media (hover: hover) and (pointer: fine) {
  .tools .ticket:hover,
  .count .share:hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 3px 8px rgba(0, 0, 0, 0.14);
  }
}
.tools {
  align-items: center;
}
.count .row2 {
  align-items: center;
}

/* SP: CHARGE で企画名が見えてきても、左下の見出しと情報は消さない(画面のつり合いのため。PC は消える) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .head,
  .info {
    opacity: 1;
  }
}

/* SP: TICKET を左・SOUND を右に入れ替え。すぐ下の CHARGE・BOOST と装飾が近すぎるので、
   TICKET はボタンのあしらいをやめて、下線だけの文字に */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .tools .ticket {
    order: -1;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
  .tools .ticket:active,
  .tools .ticket:hover {
    transform: none;
    box-shadow: none;
  }
}

/* PC: TICKET は左上(SOUND の隣)から、左下の日時情報の下へ。下の位置を右下の YOU・SHARE とそろえる(画面下から var(--m))。
   そのぶん、左下の見出しと情報を上へ */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .tools .ticket {
    position: fixed; /* .stage(container)の中で、画面の左下へ */
    left: var(--m);
    top: auto;
    bottom: var(--m);
  }
  .info {
    bottom: calc(var(--m) + 37px); /* TICKET(高さ約23px)+ 間 14px */
  }
  .head {
    bottom: calc(
      var(--m) + 130px
    ); /* 注意書きを2段にしたぶん 1行(約21px)上へ。2026-11-15 */
  }
  .count .ja-k {
    font-size: 17px; /* 「みんなで集めた光」: 13px の 130% */
  }
}

/* WWWβ の日時(新ロゴと別に): 画面の中央あたりに大きめに。CHARGE・BOOST で企画名と一緒に浮かび上がる
   PC: カウントダウン(画面のど真ん中)のすぐ下 / SP: 顔の上、画面の中ほど */
.when-big {
  position: absolute;
  left: 50%;
  top: calc(50% + 34px);
  width: clamp(300px, 30vw, 520px);
  margin: 0;
  opacity: 0;
  translate: -50% var(--rise, 14px);
  transition:
    opacity 0.5s,
    translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.when-big svg {
  display: block;
  width: 100%;
  height: auto;
}
.when-big path {
  transform-box: fill-box;
  animation: logo-float 4.6s ease-in-out infinite;
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .when-big {
    top: 44%;
    width: 78vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .when-big path {
    animation: none;
  }
}

/* foodman のロゴ: PC は画面の上辺の中央(左上の SOUND と右上の企画名のあいだ)、SP は左上 */
.fm-logo {
  top: var(--m);
  left: 50%;
  translate: -50% 0;
  width: 112px;
  margin: 0;
  line-height: 0;
  /* 2026-11-18: 押すと前回 LP の声(fm-logo.js)。押せる範囲は周りに 12px 広げる */
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.fm-logo::after {
  content: "";
  position: absolute;
  inset: -12px;
}
.fm-logo svg,
.in-logo svg {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .fm-logo {
    top: calc(var(--m) + 4px);
    left: var(--m);
    translate: none;
    width: 92px;
  }
}
/* 入口: 下辺の中央に小さく */
.in-logo {
  position: absolute;
  left: 50%;
  bottom: 44px;
  translate: -50% 0;
  width: 104px;
  margin: 0;
  line-height: 0;
  z-index: 2;
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .in-logo {
    bottom: calc(28px + env(safe-area-inset-bottom));
    width: 88px;
  }
}

/* ---------- PC の調整(2026-11-15) ---------- */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  /* 1. CHARGE で企画名が出ても、左下の見出し・情報・TICKET は消さない(SP と同じ) */
  .head,
  .info,
  .tools .ticket {
    opacity: 1;
  }
  /* 2. カウントダウン: 「UNTIL 2027」は出さず、浮かび上がる日時(WWWβ 12.31 …)を数字の上に。2つで画面の上下中央 */
  .cd .k {
    font-size: 11px; /* 「UNTIL 12.31 21:00」: SP と同じく出す。数字の左に(上は浮かび上がる日時が来るので空けておく) */
  }
  .cd {
    top: calc(50% + 10px);
  }
  .when-big {
    top: calc(50% - 26px);
    width: clamp(120px, 12vw, 208px); /* 前の約40% */
  }
  /* 3. SOUND はページの最小サイズ(11px) */
  .tools {
    font-size: 11px;
  }
}

/* PC: 企画名ロゴは右上の角(上の余白は他の要素と同じ var(--m))。大きさは前の120% */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .proj {
    top: var(--m);
  }
  .title-svg {
    font-size: clamp(31px, min(3.84vw, 6vh), 72px); /* 非対応ブラウザ用 */
    font-size: clamp(31px, min(3.84cqw, 6cqh), 72px);
  }
}

/* SP: 企画名ロゴも 120%(PC は前の指定で 120% 済み) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .title-svg {
    font-size: clamp(23px, 7.92vw, 34px); /* 非対応ブラウザ用 */
    font-size: clamp(23px, 7.92cqw, 34px);
  }
}

/* 中央の日時(WWWβ 12.31 21:00_4:00): 全体を120%に。数字は WWWβ と同じくらいに見えるよう SVG の中で 1.1倍(絵が横に約6%広がったぶんも幅に足す)
   SP は画面幅に収まる上限(左右の余白ぶん)まで */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .when-big {
    width: clamp(152px, 15.2vw, 264px);
    top: calc(50% - 30px);
  }
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .when-big {
    width: calc(100vw - 2 * var(--m));
  }
}

/* PC も TICKET は SP と同じく、ボタンのあしらいをやめて下線だけの文字に */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .tools .ticket {
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-size: 11px;
  }
  .tools .ticket:active,
  .tools .ticket:hover {
    transform: none;
    box-shadow: none;
  }
}

/* TICKET の下線: 細く・薄く(PC・SP 共通) */
.tools .ticket {
  text-decoration-thickness: 0.75px !important; /* 元(1px・100%)より薄く、0.5px・40% より濃く */
  text-decoration-color: rgba(17, 17, 17, 0.65);
}

/* SP: 浮かび上がる日時(WWWβ 12.31 …)を 90% に */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .when-big {
    width: calc((100vw - 2 * var(--m)) * 0.9);
  }
}

/* スマホでタップしたとき、押した場所が水色に光る表示を出さない */
html,
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* SP: 文字の小さいボタン(TICKET・SHARE・SOUND)は、見た目はそのままで押せる範囲だけ広げる(透明の枠を外側に) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .tools > *,
  .count .share {
    position: relative;
  }
  .tools > *::before,
  .count .share::before {
    content: "";
    position: absolute;
    inset: -10px -14px; /* 上下 10px・左右 14px 広く(すぐ下の CHARGE・BOOST にはかからない) */
  }
}

/* SP: 浮かび上がる日時を、さらに今の 80% に(左右の余白いっぱい × 0.72) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .when-big {
    width: calc((100vw - 2 * var(--m)) * 0.72);
  }
}

/* SP: カウントダウンの数字を、上の「UNTIL 12.31 21:00」より 2文字ぶんほど横に長く(375px 幅で約 103px) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .cd .n {
    font-size: 25px;
  }
}

/* PC: 企画名ロゴの下の辺を、カウントダウンの数字の下の辺にそろえる(右上を起点に大きさを決める)
   数字の行は 画面の中央 + 10px を中心。字の下端は 50% + 約15px(Pixerif の実測) */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .title-svg svg {
    height: calc(50vh + 15px - var(--m)); /* 非対応ブラウザ用 */
    height: calc(
      50cqh + 15px - var(--m)
    ); /* 数字の字そのものの下端(行の箱ではなく)= 画面中央 + 約15px */
  }
}

/* CHARGE・BOOST: 押していないときも、まわりがほんのり明るく光る(白い光のにじみ。ゆっくり呼吸する)
   ボタン本体は overflow: hidden(表面を流れる光のため)なので、外側の光はボタンを並べた .btns に重ねる */
.btns {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 26px rgba(255, 255, 255, 0.85));
  animation: btn-aura 4.2s ease-in-out infinite;
}
@keyframes btn-aura {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85))
      drop-shadow(0 0 20px rgba(255, 255, 255, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 1))
      drop-shadow(0 0 34px rgba(255, 255, 255, 0.95));
  }
}
@media (prefers-reduced-motion: reduce) {
  .btns {
    animation: none;
  }
}

/* BOOST × 3D の比較用の切り替え(?b3d を付けたときだけ出る。boost3d.js) */
.b3d-bar {
  position: fixed;
  left: 50%;
  top: 76px;
  translate: -50% 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ddd;
  border-radius: 999px;
  font:
    11px/1 var(--f-en),
    sans-serif;
  color: #111;
}
.b3d-bar button {
  font: inherit;
  min-width: 26px;
  padding: 5px 7px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
}
.b3d-bar button.on {
  background: #111;
  color: #fff;
  border-color: #111;
}
.b3d-bar .b3d-name {
  margin-left: 4px;
  font-family: var(--f-ja), serif;
  white-space: nowrap;
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .b3d-bar {
    top: 60px;
  }
}

/* YOU と SHARE の行も、カウンターの数字に対して左右中央に(「みんなで集めた光」とそろえる) */
.count .row2 {
  align-self: center;
}

/* 企画名ロゴと中央の日時: 濃さと一緒にぼかしもなめらかに変わる(main.js の renderTitle) */
.title-svg,
.when-big {
  transition:
    opacity 0.5s,
    filter 0.6s,
    translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 左下の 3行(日時・会場・注意書き)も見出しと同じく 1字ずつゆらめく。行ごとの揺れは止める(二重にならないように) */
.info p {
  animation: none;
}

/* 「みんなで集めた光」も 1字ずつゆらめく(行ごとの揺れは止める) */
.count .ja-k {
  animation: none;
}

/* 入口: 画面のどこを押しても入れるので、PC ではどこでも指の形のカーソルに */
@media (hover: hover) and (pointer: fine) {
  .in-ov,
  .in-ov * {
    cursor: pointer;
  }
}

/* 右上の企画名ロゴ・中央の日時: いちばん手前の層に置き、白の「除外」で重ねる(main.js の exclusionLayer)
   3D のイラスト・ボタン・カウンターより手前。連打で真っ白になる演出(.ultra-light)だけはさらに手前 */
.ex-layer {
  --m: 44px;
  position: fixed;
  inset: 0;
  height: 100vh; /* svh 非対応ブラウザ用 */
  height: 100svh;
  z-index: 50;
  pointer-events: none;
  container-type: size; /* .stage と同じ大きさの基準(cqw・cqh) */
  mix-blend-mode: exclusion;
}
.ex-layer > * {
  position: absolute;
  pointer-events: none;
}
.ex-layer .title-svg,
.ex-layer .when-big,
.ex-layer .head,
.ex-layer .info {
  color: #fff;
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .ex-layer > * {
    --m: 18px;
  }
}
body.pre .ex-layer {
  opacity: 0; /* 入口の間は出さない */
}

/* 入口の ENTER: ホバーで 1字ずつ下からロールアップ(intro.js の rollText) */
.roll-ch {
  display: inline-flex;
  flex-direction: column;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
  vertical-align: top;
}
.roll-ch > span {
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 28ms);
}
@media (hover: hover) and (pointer: fine) {
  .in-enter:hover .roll-ch > span {
    transform: translateY(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .roll-ch > span {
    transition: none;
  }
}

/* カウントダウンも白の「除外」の層で(ラベルの濃いグレー指定も白に) */
.ex-layer .cd,
.ex-layer .cd .k,
.ex-layer .cd .n {
  color: #fff;
}

/* SOUND・TICKET も白の「除外」の層で。押せるボタンなので、この層の中でも押せるように */
.ex-layer .tools {
  color: #fff;
  pointer-events: auto;
}
.ex-layer .tools > * {
  color: #fff;
  pointer-events: auto;
}
.ex-layer .tools .ticket {
  text-decoration-color: rgba(255, 255, 255, 0.65);
}

/* 右下のカウンターも白の「除外」の層で。SHARE は押せるボタンのまま */
.ex-layer .count,
.ex-layer .count .k,
.ex-layer .count .ja-k,
.ex-layer .count .n,
.ex-layer .count .mine {
  color: #fff;
}
.ex-layer .count .share {
  pointer-events: auto;
  /* 除外で重なると色が反転するので、反転した色で描く(白い背景の上で、今までどおりの白いボタンに見える) */
  color: #eee;
  background: linear-gradient(#000000, #131313);
  /* 2026-11-20: PC で影が薄い(ユーザー) → 影を少し濃く(0.16→0.24)・ごく薄い輪郭を足す(SP の .share-solid と同じ考え) */
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.95),
    inset 0 -2px 3px rgba(255, 255, 255, 0.12),
    0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(255, 255, 255, 0.24);
}
@media (hover: hover) and (pointer: fine) {
  .ex-layer .count .share:hover {
    box-shadow:
      inset 0 1px 1px rgba(0, 0, 0, 0.95),
      0 0 0 0.5px rgba(255, 255, 255, 0.1),
      0 3px 9px rgba(255, 255, 255, 0.22);
  }
}
.ex-layer .count .share:active {
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12);
}

/* ---------- 2026-11-15 軽量化(SP・iPhone Safari で CHARGE/BOOST を押すと固まって発熱する対策) ----------
   1字ずつのぼかし(filter: blur)や、ボタンの光のにじみ(drop-shadow)をずっと動かすと、iPhone では毎コマ描き直しになって重い。
   SP だけ: 揺れ(位置と濃さ)は残してぼかしを外す / ボタンのまわりの光は止めて固定 / ロゴの字の揺れは、ロゴが見えない間は止める */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .fl-ch,
  .count .n .dg {
    animation-name: ch-float-nb;
  }
  .info .fl-ch,
  .head .fl-ch {
    animation-name: ch-float-sp;
  }
  .btns {
    animation: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 24px rgba(255, 255, 255, 0.8));
  }
}
@keyframes ch-float-nb {
  0%,
  100% {
    transform: translateY(2px);
    opacity: 1;
  }
  50% {
    transform: translateY(-4.5px);
    opacity: 0.7;
  }
}
/* ロゴ(企画名)が見えない間は、字ごとの揺れを止める(PC・SP 共通。見た目は変わらない) */
body.title-off .title-svg path,
body.title-off .title-svg line {
  animation-play-state: paused;
}

/* 入口の背景: 光の写真2枚を薄く高速で切り替える(intro.js flashBg)。上下の白い板それぞれに、画面全体ぶんの写真を敷く */
.in-half {
  overflow: hidden;
}
.in-fl {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(
    100% / 0.505
  ); /* 板の高さは画面の 50.5%。写真は画面全体の高さに */
  pointer-events: none;
}
.in-fl-top {
  top: 0;
}
.in-fl-bot {
  bottom: 0;
}
.in-fl img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--fl-out, 320ms) ease-out; /* 消えるとき(残像) */
}
.in-fl img.on {
  opacity: var(--fl-op, 0.35);
  transition-duration: var(--fl-in, 0ms); /* 出るとき */
}

/* ---------- SP のレイアウト(2026-11-15): PC に近い見え方に ----------
   - カウントダウン: PC と同じく「UNTIL 12.31 21:00」と数字を横に並べ、背景の顔の上下中央(--face-y は main.js の spLayout)・左右中央に
   - 浮かび上がる日時(WWWβ 12.31 …): カウントダウンのすぐ下に(上に置くと、背の低い画面で右上の企画名ロゴと重なるため)
   - 右下のカウンター: 上端を左の見出しにそろえる(main.js が top を入れる)
   - 企画名ロゴ: 右上を起点に今の 80% */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .cd {
    top: calc(var(--face-y, 38%) + var(--cd-dy, 0px));
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .when-big {
    top: calc(var(--face-y, 38%) + var(--cd-dy, 0px) + 24px);
  }
  .title-svg {
    font-size: clamp(18.4px, 6.336vw, 27.2px); /* 非対応ブラウザ用 */
    font-size: clamp(
      18.4px,
      6.336cqw,
      27.2px
    ); /* 前(clamp(23px, 7.92cqw, 34px))の 80% */
  }
}

/* SP: 左下の日時は「–」のあとで2行に(1行だと、上端をそろえた右のカウンターの数字と重なるため)。見出しはそのぶん1行上へ */
.sp-br {
  display: none;
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .sp-br {
    display: inline;
  }
  .head {
    bottom: 228px; /* 211px + 日時の2行目(約17px) */
  }
}

/* SP: 中央のカウントダウンを小さく(PC の 数字 17px・UNTIL 11px に近い大きさ。読める範囲でいちばん小さく)。2026-11-15 */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .cd {
    gap: 10px;
  }
  .cd .k {
    font-size: 10px;
  }
  .cd .n {
    font-size: 16px;
  }
  .when-big {
    top: calc(var(--face-y, 38%) + var(--cd-dy, 0px) + 18px);
  }
}

/* 入口: 光の写真で止まったあと、白く明るくなっていく層(intro.js flashBg の glow) */
.in-fl-white {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

/* SP: 浮かび上がる日時(WWWβ 12.31 21:00_4:00)を、さらに今の 80% に(左右の余白いっぱい × 0.576)。2026-11-15 */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .when-big {
    width: calc((100vw - 2 * var(--m)) * 0.576);
  }
}

/* SP: SHARE を除外の層から出した本物の白いボタン(main.js placeShare)。見た目は TICKET・SHARE の白いボタンと同じ。輪郭が見えるよう影を少し強めに */
.share-solid {
  position: fixed;
  display: inline-flex;
  align-items: center;
  padding: 0.42em 1.15em 0.38em;
  border: 0;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  z-index: 52;
  margin: 0;
  font-family: var(--f-en);
  font-size: 10.5px;
  letter-spacing: 0;
  color: var(--fg);
  background: linear-gradient(#ffffff, #ececec);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(0, 0, 0, 0.12),
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.22);
  transition: opacity 0.6s;
}
.share-solid::before {
  content: "";
  position: absolute;
  inset: -10px -14px; /* 押せる範囲を広げる(見た目はそのまま) */
}
.share-solid:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.14),
    0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
body.pre .share-solid {
  opacity: 0; /* 入口の間は出さない */
}

/* ---------- 公開前チェック(2026-11-15)で見つかった崩れの修正 ---------- */
/* 縦向きのタブレット(601〜1100px・縦長): PC の配置だと、下中央の CHARGE・BOOST が左下の情報・右下のカウンターと重なる。
   ボタンとひとことを、左下の見出しより上へ上げる */
/* (縦向きのタブレットは 2026-11-16 から SP のレイアウトにしたので、ボタンを上げる仮の修正は外した) */

/* 320px 幅の小さいスマホ: 企画名ロゴが中央のカウントダウン・日時にかかり、カウンターの数字が左の見出しにかかるので小さく */
@media (max-width: 340px) {
  .title-svg {
    font-size: 16px;
  }
  .count .n {
    font-size: 30px;
  }
  .when-big {
    width: calc((100vw - 2 * var(--m)) * 0.52);
  }
}
/* 横向きのスマホ(タッチ操作・高さ 500px 以下): 縦長の1画面で組んでいるため、縦に持ってもらう案内を出す */
.rotate-ask {
  display: none;
}
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .rotate-ask {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--fg);
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.04em;
  }
  .rotate-ask .en {
    font-family: var(--f-en);
    font-size: 12px;
    color: #555;
  }
}
.rotate-ask p {
  margin: 0;
}

/* ---------- 縦向きのタブレット(SP のレイアウトを使う。2026-11-16) ----------
   SP の寸法のままだと、ボタンが画面いっぱいに伸び、文字が小さすぎるので、タブレットに合わせて調整する */
@media (orientation: portrait) and (min-width: 601px) and (max-width: 1100px) {
  .btns {
    left: 50%;
    right: auto;
    width: min(560px, calc(100% - 2 * var(--m)));
    transform: translateX(-50%);
    bottom: calc(46px + env(safe-area-inset-bottom));
  }
  .slogan {
    font-size: 15px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .tools {
    font-size: 13px;
    bottom: 124px;
  }
  .t {
    font-size: 15px;
  }
  .t-sub {
    font-size: 14px;
  }
  .info {
    font-size: 14px;
    bottom: 160px;
  }
  .info .note {
    font-size: 13px;
  }
  .head {
    bottom: 276px;
  }
  .count .ja-k {
    font-size: 14px;
  }
  .count .n {
    font-size: 46px;
  }
  .count .mine,
  .count .share,
  .share-solid {
    font-size: 13px;
  }
  .cd .k {
    font-size: 12px;
  }
  .cd .n {
    font-size: 20px;
  }
  .title-svg {
    font-size: clamp(27px, 4.4vw, 42px);
  }
  .when-big {
    width: min(360px, calc((100vw - 2 * var(--m)) * 0.5));
  }
}

/* ---------- 軽量モード(html.lite: iPad・タッチ操作が主の端末。index.html で判定)。2026-11-16 ----------
   横向きの iPad など PC のレイアウトを使う端末でも、1字ずつのぼかしの揺れとボタンの光の呼吸を止める(揺れそのものは残す)。SP は前から同じ */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  html.lite .fl-ch,
  html.lite .count .n .dg {
    animation-name: ch-float-nb;
  }
  html.lite .btns {
    animation: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 24px rgba(255, 255, 255, 0.8));
  }
}
/* 中央の日時(WWWβ…)も、見えない間は字ごとの揺れを止める(全端末。見た目は同じ) */
body.title-off .when-big path {
  animation-play-state: paused;
}

/* 縦向きのタブレット: TICKET・SOUND ON の行が CHARGE・BOOST に近すぎるので 26px 上へ。上の情報・見出しも同じだけ上げる(カウンターは見出しの上端に合わせて自動で上がる)。2026-11-16 */
@media (orientation: portrait) and (min-width: 601px) and (max-width: 1100px) {
  .tools {
    bottom: 150px;
  }
  .info {
    bottom: 186px;
  }
  .head {
    bottom: 302px;
  }
}

/* ---------- 音のボタン: 縦線のアイコン(2026-11-16) ----------
   再生中(aria-pressed=true)は 5本の縦線がそれぞれの間で静かに伸び縮み。オフは線が点に縮んで平らに並ぶ。色は文字と同じ(除外の層で白→画面では黒) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#sound {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.snd-ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  overflow: visible;
}
.snd-ico .b {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: scaleY(0.12);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.25s;
}
.snd-ico .snd-dots circle {
  transition: opacity 0.25s;
}
#sound[aria-pressed="true"] .snd-dots circle {
  opacity: 0;
}
#sound[aria-pressed="true"] .snd-ico .b {
  opacity: 1;
  animation: snd-eq 1.6s ease-in-out infinite alternate;
}
#sound[aria-pressed="true"] .snd-ico .b1 {
  animation-duration: 1.3s;
  animation-delay: -0.4s;
}
#sound[aria-pressed="true"] .snd-ico .b2 {
  animation-duration: 1.7s;
  animation-delay: -1.1s;
}
#sound[aria-pressed="true"] .snd-ico .b3 {
  animation-duration: 1.45s;
  animation-delay: -0.2s;
}
#sound[aria-pressed="true"] .snd-ico .b4 {
  animation-duration: 1.9s;
  animation-delay: -0.8s;
}
#sound[aria-pressed="true"] .snd-ico .b5 {
  animation-duration: 1.55s;
  animation-delay: -1.4s;
}
@keyframes snd-eq {
  0% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(0.85);
  }
  100% {
    transform: scaleY(0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  #sound[aria-pressed="true"] .snd-ico .b {
    animation: none;
    transform: scaleY(0.6);
  }
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .snd-ico {
    width: 20px;
    height: 20px;
  }
}

/* 音のボタンには、文字ボタン用のホバーの下線を出さない */
#sound::after,
#sound:hover::after {
  display: none !important;
}

/* スマホ縦: ボタンの下のひとことと画面の下端の余白を 2倍(12px → 24px)に。上のかたまり(ボタン・TICKET/SOUND・左下の情報と見出し)も同じだけ上げる。
   カウンターは見出しの上端に合わせて自動で上がる。タブレット縦は別の値(上の指定)のまま。2026-11-16 */
@media (max-width: 600px) {
  .slogan {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .btns {
    bottom: calc(50px + env(safe-area-inset-bottom));
  }
  .tools {
    bottom: 116px;
  }
  .info {
    bottom: 148px;
  }
  .head {
    bottom: 240px;
  }
}

/* 音のボタン: アイコンに「SOUND」の文字を添える(PC はアイコンの右、スマホ・タブレット縦はアイコンの左)。2026-11-16 */
#sound {
  gap: 7px;
  line-height: 1;
}
.snd-txt {
  font-family: var(--f-en);
  letter-spacing: 0.02em;
}
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  #sound .snd-txt {
    order: -1;
  }
}

/* ---------- BOOST のミニゲーム(light-game.js。2026-11-16 試作) ----------
   ゲーム中は、みんなの光・YOU(得点に使う)だけ残して、ほかの文字とボタンを隠す */
body.game .ex-layer > :not(.count),
body.game .btns,
body.game .slogan,
body.game .share-solid,
body.game .fm-logo {
  opacity: 0 !important;
  transition: opacity 0.4s;
  pointer-events: none !important;
}
body.game .ex-layer .count .share {
  opacity: 0;
}
.lg-tap {
  position: fixed;
  inset: 0;
  z-index: 55;
  touch-action: none;
  cursor: pointer;
}
.lg-cv {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 45;
  pointer-events: none;
}
.lg-pix {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.lg-hint {
  position: fixed;
  left: 50%;
  top: 56%;
  z-index: 56;
  margin: 0;
  translate: -50% 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #111;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.lg-hint.on {
  opacity: 1;
  animation: lg-blink 1s steps(2, end) infinite;
}
@keyframes lg-blink {
  50% {
    opacity: 0.35;
  }
}
.lg-result {
  position: fixed; /* 白い四角の背景は 2026-11-16 に外した */
  left: 50%;
  top: 40%;
  z-index: 56;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #111;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.lg-result.on {
  opacity: 1;
}
.lg-plus {
  font-family: var(--f-num);
  font-size: 44px;
  line-height: 1;
}
.lg-of {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.lg-white {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: #fff;
  pointer-events: none;
}

.lg-best {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #555;
  min-height: 1em;
  white-space: pre;
}

/* ゲーム中: みんなで集めた光のカウンターは、画面の左右中央・いちばん下へ。YOU と SHARE は隠す(2026-11-16) */
body.game .ex-layer .count {
  top: auto !important;
  bottom: var(--m) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  align-items: center;
}
body.game .ex-layer .count .row2,
body.game .ex-layer .count .mine {
  opacity: 0;
  visibility: hidden;
}

/* ゲーム中は「みんなで集めた光」も隠し、盤面上端の SCORE(今のゲームの得点)を見せる。結果のときだけ下中央に出し、今回の光が数え上がって加わる(2026-11-16) */
body.game:not(.game-res) .ex-layer .count {
  opacity: 0;
}
body.game .ex-layer .count {
  transition: opacity 0.5s;
}

/* 入口の比較用3案(?ilook=a / c。intro.js flashLook。2026-11-16)
   灰色の霧にしない: 写真の中間の灰色を白へ飛ばし、暗いところだけを墨のように残す。切り替えはゆっくり重ねる */
.in-look img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) invert(1) contrast(1.35) brightness(1.12); /* 暗い会場は白に、照明の当たったところが墨の濃淡に(反転) */
  transition: opacity var(--fl-fade, 900ms) ease-in-out;
}
.in-look img.on {
  opacity: 0.42;
}
.in-look img.in-look-light.on {
  opacity: 0.32;
}
.in-look-on .in-half {
  height: 50%;
}
/* 板を 50% にしたときは、写真の箱も画面全体(板の 2倍)に。50.5% 用の高さのままだと上下の写真が 1% ずれて、真ん中に段差が出た(2026-11-16) */
.in-look-on .in-fl {
  height: 200%;
}
/* ?ilook=b: 写真を「光」の字で描くキャンバス */
.in-look-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- CHARGE・BOOST のホバー 5案(2026-11-16 比較用。?hover=1〜5。指定なしは今の「2px 浮く」) ----------
   どれも光らせない・弾ませない。マウスのある端末だけ。押している間・押せない間は出さない */
.light .lbl {
  position: relative;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  /* 1 沈む: 触れると、石に指を置いたように少し沈む(上の内側の影が深くなり、下の影が縮む) */
  .hv-1 .light {
    transition:
      background-color 0.4s,
      opacity 0.3s,
      transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
      box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .hv-1 .light:not(:disabled):not(.down):not(:active):hover {
    transform: translateY(1px);
    box-shadow:
      inset 0 4px 8px rgba(0, 0, 0, 0.24),
      inset 0 -2px 4px rgba(0, 0, 0, 0.1),
      0 1px 1px rgba(0, 0, 0, 0.22);
  }
  /* 2 字間がひらく: ボタンはそのまま、文字だけがゆっくり間をあける */
  .hv-2 .light .lbl {
    transition: letter-spacing 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .hv-2 .light:not(:disabled):not(.down):not(:active):hover .lbl {
    letter-spacing: 0.14em;
  }
  /* 3 細い輪: まわりに細い墨の線が、少し離れたところに静かに現れる */
  .hv-3 .light {
    outline: 1px solid rgba(17, 17, 17, 0);
    outline-offset: 1px;
    transition:
      background-color 0.4s,
      opacity 0.3s,
      transform 0.12s,
      outline-color 0.5s,
      outline-offset 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .hv-3 .light:not(:disabled):not(.down):not(:active):hover {
    outline-color: rgba(17, 17, 17, 0.55);
    outline-offset: 4px;
  }
  /* 4 墨が満ちる: 表面に、下から淡い墨がゆっくり上がってくる */
  .hv-4 .light::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.06)
    );
    transform: translateY(101%);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
  }
  .hv-4 .light:not(:disabled):not(.down):not(:active):hover::before {
    transform: translateY(0);
  }
  /* 5 文字が送られる: 入口の ENTER と同じく、1字ずつ下から入れ替わる */
  .hv-5 .light:not(:disabled):not(.down):not(:active):hover .roll-ch > span {
    transform: translateY(-100%);
  }
}

/* SP: YOU の数字を 120%(1.15em → 1.38em)にして、YOU の文字と上下の中心をそろえる(2026-11-16) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .count .mine {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
  }
  .count .mine .num {
    font-size: 1.38em;
    display: inline-flex;
    align-items: center;
  }
  .count .mine .num .md {
    vertical-align: middle;
  }
}

/* 入口の写真の1枚目: パッと出ず、ぼやけた少し大きめの状態から、ゆっくり澄んで現れる(intro.js flashLook の .in-first。2026-11-16) */
.in-look img.in-first {
  transition: opacity 1.8s cubic-bezier(0.25, 0.6, 0.25, 1);
  animation: in-first 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes in-first {
  from {
    transform: scale(1.04);
    filter: grayscale(1) invert(1) contrast(1.35) brightness(1.12) blur(6px);
  }
  to {
    transform: scale(1);
    filter: grayscale(1) invert(1) contrast(1.35) brightness(1.12) blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .in-look img.in-first {
    animation: none;
  }
}

/* 入口の一行の数字(108 から数え下がる。intro.js countDownNum)。数えている間も字の幅がぶれないように、数字は等幅・中央寄せ */
.or-ch.or-num {
  display: inline-block;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 入口の一行の数字のリール: 消えていく数は重ねて置き(幅を取らない)、上から降りてくる数だけで幅を取る */
.or-num .or-roll {
  display: inline-block;
}
.or-num .or-roll.out {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

/* 入口から入る瞬間の光(intro.js の .in-bloom。2026-11-16): 真ん中ほど強い白い光が、開いた奥を満たしてから引いていく */
.in-bloom {
  position: fixed;
  inset: -10%;
  z-index: 59;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 50%,
    #fff 0%,
    #fff 38%,
    rgba(255, 255, 255, 0.92) 55%,
    rgba(255, 255, 255, 0.55) 75%,
    rgba(255, 255, 255, 0.25) 100%
  );
}

/* スマホ・タブレットの入室: PC の明るさ(filter)の代わりに、顔の字の上にかける白い膜(intro.js の .in-veil。2026-11-18) */
.in-veil {
  position: fixed;
  inset: 0;
  z-index: 58;
  pointer-events: none;
  background: #fff;
}

/* ミニゲームの結果の終わり: 下中央のカウンターも盤面と一緒に消え、元の場所でふわっと現れる(light-game.js。2026-11-16) */
body.game-res.game-out .ex-layer .count {
  opacity: 0;
  transition: opacity 0.5s;
}
body.lg-after .ex-layer .count {
  opacity: 0;
  transition: none;
}
body.lg-after-on .ex-layer .count {
  transition: opacity 0.8s ease-out;
}

/* スマホ・縦向きのタブレット: ホバーがないので、入口の ENTER は 2秒ごとに 1字ずつロールアップ(PC のホバーと同じ動き。2026-11-16) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .in-enter .roll-ch > span {
    animation: roll-loop 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    animation-delay: calc(0.6s + var(--i) * 28ms);
  }
}
@keyframes roll-loop {
  0% {
    transform: translateY(0);
  }
  32%,
  100% {
    transform: translateY(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .in-enter .roll-ch > span {
    animation: none;
  }
}

/* スマホ・縦向きのタブレット: 「20歳未満入場不可」「要顔写真付ID」の2行は、上の日時・会場よりはっきり小さく、
   行間も字の大きさに合わせて詰める。上の2行とのあいだだけ、少しあける(2026-11-16) */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .info .note {
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }
  .info .note + .note {
    margin-top: -1px;
  }
  .info p:not(.note) + .note {
    margin-top: 3px;
  }
}
@media (orientation: portrait) and (min-width: 601px) and (max-width: 1100px) {
  .info .note {
    font-size: 11px;
  }
}

/* タッチ端末: 押された見た目は .down だけで出す(iPhone の Safari は、押せなくしたボタンに :active が残ることがあるため。2026-11-16) */
@media (hover: none) {
  .light:active:not(.down) {
    transform: none;
    background: linear-gradient(
      to bottom,
      #fdfdfd 0%,
      #ececec 42%,
      #cfcfcf 78%,
      #a3a3a3 100%
    );
    box-shadow:
      inset 0 2px 1px rgba(255, 255, 255, 0.95),
      inset 0 -4px 7px rgba(0, 0, 0, 0.22),
      0 2px 3px rgba(0, 0, 0, 0.35);
  }
}

/* 背景にまぎれる「食」を押したときの演出(shoku.js。2026-11-18): 前回 LP の BOOST のモノクロ版アレンジ */
.shk-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  overflow: hidden;
}
.shk-glyph {
  position: absolute;
  font-family: var(--f-ja);
  font-weight: 500;
  line-height: 1;
  color: #111;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.shk-photo {
  position: absolute;
  object-fit: cover;
  filter: grayscale(1);
}
.shk-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shk-white {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    ellipse at 50% 45%,
    #fff 0%,
    #fff 45%,
    rgba(255, 255, 255, 0.9) 100%
  );
}
.shk-dango {
  position: absolute;
  height: auto;
  filter: grayscale(1) contrast(1.1);
}
/* 「食」の判子: 文字の上を光がすっと走る(墨の中を白い帯が左から右へ、くり返す) */
.shk-stamp {
  font-weight: 600;
  color: transparent;
  background: linear-gradient(
    105deg,
    #111 0%,
    #111 38%,
    #fff 47%,
    #f2f2f2 50%,
    #111 60%,
    #111 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shk-sheen 1.3s cubic-bezier(0.4, 0, 0.3, 1) 0.35s infinite;
  z-index: 2;
}
@keyframes shk-sheen {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}
/* 判子の後ろの後光: 灰色の光の筋が放射状に。画面より大きく敷き、筋と溶かし方は shoku.js で(円に切り抜いたように見えないように) */
.shk-halo {
  position: absolute;
}
/* 吸い込み: 顔の中心から差し込む白い光の筋と、ふくらむ光の芯 */
.shk-rays {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.shk-core {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff 0%,
    #fff 18%,
    rgba(255, 255, 255, 0.85) 35%,
    rgba(255, 255, 255, 0) 70%
  );
}

/* FOODMAN ロゴを押すと出る、食品まつりの Instagram への入口(fm-logo.js。2026-11-18)
   名前「@tyousinkai」だけを、企画名と同じく霧(ぼかし)の中から浮かび上がらせ、消えるときも霧に戻る */
.fm-ig {
  position: fixed;
  z-index: 55;
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 4px;
  margin: -6px -4px;
  opacity: 0;
  filter: blur(6px);
  scale: 1.04;
  pointer-events: none;
  transition:
    opacity 1.1s ease,
    filter 1.4s cubic-bezier(0.2, 0.6, 0.2, 1),
    scale 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}
.fm-ig.fm-ig-c {
  transform: translateX(-50%);
}
.fm-ig.on {
  opacity: 1;
  filter: blur(0);
  scale: 1;
  pointer-events: auto;
}
.fm-ig:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.75px;
}
body.game .fm-ig,
body.pre .fm-ig {
  display: none;
}

/* TICKET の隣の WWW(2026-11-18): TICKET と同じ大きさ・同じ下線。SP は TICKET のすぐ右、PC は左下の TICKET の右 */
@media (max-width: 600px), (orientation: portrait) and (max-width: 1100px) {
  .tools .ticket-www {
    margin-left: 16px; /* TICKET との間(SP の .tools は gap なし) */
    margin-right: auto; /* SOUND は右端のまま */
  }
}
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .tools .ticket-www {
    left: calc(var(--m) + 59px); /* TICKET(幅 約43px)+ 間 16px */
  }
}

/* 横長の小さめの画面(開いた iPhone Duo 約 900×550 など): CHARGE・BOOST が PC と同じ 180×56 のままで大きく見え、
   左の告知文(右端 約297px)とも重なっていた。幅は画面幅に合わせて、高さは画面の高さの 8.5% まで縮める(1200px 以上・高さ 660px 以上の PC は今までどおり)。2026-11-19 */
@media (min-width: 601px) and (orientation: landscape), (min-width: 1101px) {
  .light {
    width: clamp(
      118px,
      22vw - 76px,
      180px
    ); /* 900px で約122px(告知文とのあいだ 25px)、1164px 以上は 180px */
    height: clamp(44px, 8.5vh, 56px);
  }
}

/* 背の低いスマホ(閉じた iPhone Duo 約 380×580、SE など): 下の文字とボタンを最大 26px 下げ、ボタンを 52→44px に、
   企画名を最大 12% 小さくして、WWWβ の行と下の文字のあいだを空け、顔を大きく見せる。
   量は main.js が入れる --lo-t(高さ 700 以上で 0、580 以下で 1)で連続的に変わる。0 のときは今までと同じ値。2026-11-19(Fable 案) */
@media (max-width: 600px) {
  .slogan {
    bottom: calc(24px - 12px * var(--lo-t, 0) + env(safe-area-inset-bottom));
  }
  .btns {
    bottom: calc(50px - 12px * var(--lo-t, 0) + env(safe-area-inset-bottom));
  }
  .tools {
    bottom: calc(116px - 22px * var(--lo-t, 0));
  }
  .info {
    bottom: calc(148px - 24px * var(--lo-t, 0));
  }
  .head {
    bottom: calc(240px - 26px * var(--lo-t, 0));
  }
  .light {
    height: calc(52px - 8px * var(--lo-t, 0));
  }
  .light .lbl {
    font-size: calc(16px - 1px * var(--lo-t, 0));
  }
  .title-svg {
    font-size: calc(
      clamp(18.4px, 6.336vw, 27.2px) * (1 - 0.12 * var(--lo-t, 0))
    );
    font-size: calc(
      clamp(18.4px, 6.336cqw, 27.2px) * (1 - 0.12 * var(--lo-t, 0))
    );
  }
}
@media (max-width: 340px) {
  .title-svg {
    font-size: calc(16px * (1 - 0.12 * var(--lo-t, 0)));
  }
}
