:root {
  --white: #ffffff;
  --black: #2f66ff;
  --green: #ffe900;
  --mint: #dfffe8;
  --aqua: #33c6e8;
  --ink: #16315f;
  --font-display: "Anton", Impact, sans-serif;
  --font-ui: "Inter", "Noto Sans JP", Arial, sans-serif;
  --font-ja: "Noto Sans JP", sans-serif;
  --line: 1px solid var(--black);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(47, 102, 255, 0.22) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(47, 102, 255, 0.18) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--mint);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px max(14px, calc((100vw - 1120px) / 2));
  border-bottom: var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.home-nav__brand {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--black);
  font-family: var(--font-ui);
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.home-nav__menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.home-nav__menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease;
}

.home-nav__menu a:hover,
.home-nav__brand:hover {
  transform: translateY(-2px);
}

.home-nav__menu a:hover {
  background: var(--green);
}

.home-nav__toggle {
  display: none;
  width: 44px;
  height: 38px;
  place-items: center;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 11px;
}

.home-nav__toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--black);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 100svh;
  padding: clamp(18px, 3vw, 34px);
  background:
    repeating-conic-gradient(from -12deg at 50% 56%, rgba(51, 198, 232, 0.26) 0deg 7deg, rgba(255, 255, 255, 0.9) 7deg 12deg, rgba(223, 255, 232, 0.88) 12deg 19deg),
    var(--mint);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 14px;
  min-height: calc(100svh - clamp(36px, 6vw, 68px));
}

.hero__meta {
  grid-column: 1 / 9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.badge--live {
  background: var(--green);
}

.badge i,
.panel-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: var(--line);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: var(--line);
  border-radius: 50%;
  background: var(--green);
  animation: status-pulse 1.8s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 開催前：オレンジ点滅 */
.status-dot--upcoming {
  background: #ffe600;
}

/* 開催中：緑点滅 */
.status-dot--live {
  background: #23c552;
}

/* 終了：黒・点滅なし */
.status-dot--ended {
  background: #111111;
  animation: none;
}

.hero__title-block {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: center;
  min-width: 0;
}

.hero__banner {
  display: block;
  width: min(100%, 1500px);
  height: auto;
  margin-inline: auto;
}

.hero-movie {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(72px, 14.6vw, 210px);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  max-width: 100%;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 span:last-child {
  font-size: 0.74em;
}

.hero h1 em {
  display: inline-block;
  margin-left: 0.04em;
  font-style: normal;
  font-size: 0.34em;
  letter-spacing: 0;
  vertical-align: baseline;
}

.window-card,
.chat-window,
.quote-block,
.metric-card,
.gauge-card,
.list-card,
.sticker-card,
.cast-card,
.stepper,
.closing__poster {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.hero__panel {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  justify-self: stretch;
  padding: 14px;
}

.window-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: var(--line);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.window-card__bar span {
  width: 10px;
  height: 10px;
  border: var(--line);
  border-radius: 50%;
}

.window-card__bar strong {
  margin-left: auto;
}

dl {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: var(--line);
}

dt,
small,
.section-head p,
.poster-meta,
.cast-card b,
.sticker-card b {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.barcode {
  height: 58px;
  border: var(--line);
  background:
    linear-gradient(90deg,
      var(--black) 0 4px, transparent 4px 8px,
      var(--black) 8px 10px, transparent 10px 18px,
      var(--black) 18px 25px, transparent 25px 30px,
      var(--black) 30px 33px, transparent 33px 42px,
      var(--black) 42px 48px, transparent 48px 54px,
      var(--black) 54px 56px, transparent 56px 66px);
  background-size: 66px 100%;
}

.hero__bubble {
  grid-column: 7 / 11;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--green);
  font-weight: 900;
}

.hero__bubble p {
  margin: 0;
  font-size: 14px;
}

.smile {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid var(--black);
  border-radius: 50%;
}

.smile::before,
.smile::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--black);
}

.smile::before {
  left: 10px;
}

.smile::after {
  right: 10px;
}

.icon-button {
  grid-column: 12 / 13;
  grid-row: 1;
  display: grid;
  place-items: center;
  align-self: end;
  justify-self: end;
  width: 76px;
  height: 76px;
  border: var(--line);
  border-radius: 50%;
  background: var(--black);
  color: var(--green);
  font-size: 34px;
  transition: transform 180ms ease;
}

.icon-button:hover {
  transform: rotate(-12deg) scale(1.04);
}

.ticker {
  overflow: hidden;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  background: var(--green);
}

.ticker__track {
  display: flex;
  width: max-content;
  min-width: 200%;
  gap: 34px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 58px);
  line-height: 1;
  white-space: nowrap;
  animation: marquee-left 24s linear infinite;
}

.section {
  padding: clamp(60px, 8vw, 120px) clamp(18px, 3vw, 36px);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head--inline {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 22px);
  flex-wrap: wrap;
}

.section-head p {
  margin: 0;
  width: fit-content;
  padding: 8px 10px;
  border: var(--line);
  border-radius: 999px;
  background: var(--green);
}

.section-head h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 148px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-head--inline h2 {
  grid-column: auto;
}

.faq-panel .section-head h2,
.footer-panel h2 {
  font-family: var(--font-ja);
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.faq-panel .section-head--inline h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 148px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-head em,
.quote-block em {
  color: var(--green);
  font-style: normal;
  -webkit-text-stroke: 1px var(--black);
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.sticker-card {
  min-height: 210px;
  padding: 14px;
  transition: transform 180ms ease, background 180ms ease;
}

.sticker-card:hover {
  background: var(--green);
  transform: translateY(-5px) rotate(-1deg);
}

.sticker-card b,
.cast-card b {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--green);
}

.line-icon {
  display: grid;
  place-items: center;
  height: 94px;
  font-size: 58px;
  font-weight: 900;
}

.loading-mark {
  width: 64px;
  height: 64px;
  margin: 14px auto;
  border: 8px solid var(--black);
  border-right-color: var(--green);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.sticker-card h3,
.cast-card h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.sticker-card small,
.cast-card small {
  display: block;
  margin-top: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.metric-card,
.gauge-card,
.list-card {
  min-height: 220px;
  padding: 16px;
  transition: transform 180ms ease;
}

.metric-card:hover,
.gauge-card:hover,
.list-card:hover,
.cast-card:hover,
.chat-window:hover {
  transform: translateY(-5px);
}

.metric-card {
  grid-column: span 2;
}

.gauge-card,
.list-card {
  grid-column: span 3;
}

.metric-card--black {
  background: var(--black);
  color: var(--white);
}

.metric-card--black .mini-bars i {
  background: var(--green);
}

.metric-card strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 116px);
  line-height: 0.9;
}

.metric-card p {
  margin: 12px 0 0;
  font-weight: 900;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 6px;
  height: 54px;
  margin-top: 20px;
}

.mini-bars i {
  display: block;
  border: var(--line);
  background: var(--black);
}

.mini-bars i:nth-child(1) { height: 30%; }
.mini-bars i:nth-child(2) { height: 64%; }
.mini-bars i:nth-child(3) { height: 48%; }
.mini-bars i:nth-child(4) { height: 82%; }
.mini-bars i:nth-child(5) { height: 100%; }

.progress {
  height: 18px;
  margin-top: 26px;
  border: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  animation: grow 1s ease forwards;
}

.gauge {
  display: grid;
  place-items: center;
  width: min(230px, 70vw);
  aspect-ratio: 1;
  margin: 24px auto 0;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--value) * 1%), var(--white) 0);
  border: 2px solid var(--black);
}

.gauge span {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-display);
  font-size: 44px;
}

.list-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.list-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: var(--line);
  font-weight: 900;
}

.chat-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) 1.1fr;
  gap: 12px;
}

.video-section {
  padding-top: 0;
}

.video-panel {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(10px, 2vw, 22px);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(47, 102, 255, 0.22) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, rgba(47, 102, 255, 0.18) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--mint);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  object-fit: contain;
  background: #000000;
}

.video-frame iframe[src=""] {
  display: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.video-placeholder span {
  font-family: var(--font-display);
  font-size: clamp(44px, 10vw, 150px);
  line-height: 0.9;
  color: var(--black);
}

.video-placeholder p {
  margin: 0;
  padding: 8px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--green);
  font-family: var(--font-ja);
  font-weight: 900;
}

.chat-window,
.quote-block {
  padding: 16px;
}

.chat-window h2 {
  margin: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.9;
}

.chat-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: var(--line);
}

.chat-line b,
.chat-line p {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.chat-line--system {
  color: var(--green);
  background: var(--black);
  padding: 12px;
}

.quote-block {
  display: grid;
  align-content: space-between;
  min-height: 620px;
  background: var(--black);
  color: var(--white);
}

.quote-block p {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.quote-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 12vw, 170px);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cast-card {
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  gap: 10px;
  min-height: 300px;
  padding: 16px;
  transition: transform 180ms ease, background 180ms ease;
}

.cast-card__name {
  display: grid;
  gap: 2px;
}

.cast-card__name small {
  margin-top: 0;
}

.cast-card span {
  align-self: center;
  justify-self: center;
  width: min(180px, 86%);
  aspect-ratio: 1;
  margin: clamp(10px, 1.8vw, 20px) 0;
  border: var(--line);
  border-radius: 50%;
  background: var(--card-color, #33c6e8); /* color-mix非対応ブラウザ用の保険 */
  background: color-mix(in srgb, var(--card-color, #33c6e8) 34%, #ffffff);
}

.cast-card:hover {
  background: var(--green);
}

/* 夜狩うる（id=32）：本人希望で丸アイコンの色を濃いめに（他キャストはパステルのまま） */
.cast-card[data-cast-id="32"] span {
  background: color-mix(in srgb, var(--card-color) 80%, #ffffff);
}

.benefit-section {
  padding-top: clamp(34px, 5vw, 76px);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  position: relative;
  display: grid;
  /* space-between だと子要素数の違い（左3個・右4個）で2枚のカードの行位置がずれるため上詰めに */
  align-content: start;
  min-height: 320px;
  padding: clamp(18px, 3vw, 34px);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.benefit-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 160px;
  aspect-ratio: 1;
  border: var(--line);
  border-radius: 50%;
  background: var(--green);
}

.benefit-card__label {
  width: fit-content;
  padding: 8px 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--green);
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.benefit-card h2 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 18px;
  font-family: var(--font-ja);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}

.benefit-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(36px, 4.8vw, 62px);
  aspect-ratio: 1;
  color: var(--black);
}

.benefit-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.benefit-icon path {
  fill: var(--green);
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.benefit-card p,
.benefit-card li {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-ja);
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.55;
}

.benefit-card p strong {
  color: var(--black);
}

/* 特典内のリンク（BackStageFM→YouTube再生リスト等） */
.benefit-card li a.benefit-link {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.benefit-card li a.benefit-link:hover {
  opacity: 0.75;
}

.benefit-card ul {
  display: grid;
  gap: 12px;
  margin: 12px 0 0; /* リード行（最も多くBPを…）との間隔 */
  padding: 0;
  list-style: none;
}

.benefit-card li {
  padding-left: 22px;
}

.benefit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border: var(--line);
  border-radius: 50%;
  background: var(--green);
}

.benefit-card--winner {
  background: var(--white);
}

.cast-card h3 {
  font-family: var(--font-ja);
  font-size: clamp(22px, 3vw, 34px);
  text-transform: none;
}

.cast-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  overflow: hidden;
}

.step {
  position: relative;
  min-height: 170px;
  padding: 16px;
  border-right: var(--line);
}

.step:last-child {
  border-right: 0;
}

.step::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  height: 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
}

.step.is-done::after,
.step.is-active::after {
  background: var(--green);
}

.step b {
  display: block;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
}

.step span {
  font-size: 12px;
  font-weight: 900;
}

.closing {
  padding: clamp(18px, 3vw, 36px);
}

.closing__poster {
  position: relative;
  min-height: 92svh;
  padding: clamp(18px, 4vw, 48px);
  overflow: hidden;
}

.closing__poster h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(82px, 18vw, 260px);
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.burst-button {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  top: clamp(18px, 5vw, 80px);
  display: grid;
  place-items: center;
  width: clamp(132px, 18vw, 220px);
  aspect-ratio: 1;
  border: 2px solid var(--black);
  background: var(--green);
  font-weight: 900;
  clip-path: polygon(50% 0, 59% 25%, 85% 15%, 75% 41%, 100% 50%, 75% 59%, 85% 85%, 59% 75%, 50% 100%, 41% 75%, 15% 85%, 25% 59%, 0 50%, 25% 41%, 15% 15%, 41% 25%);
  transition: transform 180ms ease;
}

.burst-button:hover {
  transform: rotate(8deg) scale(1.05);
}

.poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.poster-meta span {
  padding: 8px 10px;
  border: var(--line);
  border-radius: 999px;
}

.barcode--wide {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 4vw, 54px);
  width: min(360px, 60vw);
}

.site-footer {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 36px);
  background:
    linear-gradient(rgba(47, 102, 255, 0.18) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(47, 102, 255, 0.14) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--mint);
}

.faq-panel {
  margin: 0 clamp(18px, 3vw, 36px) clamp(60px, 8vw, 120px);
}

.site-footer .faq-panel {
  margin: 0;
}

.faq-panel,
.footer-panel,
.footer-links-panel,
.hashtag-panel {
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(16px, 3vw, 30px);
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) 1fr;
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
  scroll-margin-top: 90px;
}

.footer-panel h2 {
  margin: 0;
  color: var(--black);
  white-space: nowrap;
  font-size: clamp(26px, 3.2vw, 42px);
}

.footer-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

/* 「BackStageとは」の本文上に置く公式ロゴ（2026-07-12 運営指示③） */
.footer-logo {
  width: min(280px, 70%);
  height: auto;
  margin: 2px 0 6px;
}

.footer-copy p {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.footer-copy strong {
  color: var(--black);
  font-weight: 900;
}

.footer-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--green);
  font-weight: 900;
  transition: transform 180ms ease;
}

.footer-download:hover {
  transform: translateY(-4px);
}

.footer-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  border-radius: 10px;
  transition: transform 180ms ease;
}

.store-badge:hover {
  transform: translateY(-3px);
}

.store-badge img {
  width: auto;
  display: block;
}

/* App Storeバッジは余白ほぼ無し／Google Playバッジは規定の余白が内蔵されているため、
   見た目のロゴが同じ大きさに見えるようGoogle側を少し大きめに表示する */
.store-badge--ios img {
  height: 48px;
}

.store-badge--android img {
  height: 62px;
}

.footer-links-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.footer-links-panel a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 78px;
  border-bottom: var(--line);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: clamp(13px, 1.45vw, 18px);
  font-weight: 900;
  line-height: 1.35;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links-panel a:hover {
  color: var(--black);
  transform: translateX(4px);
}

.footer-links-panel .foot-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-links-panel .foot-txt {
  min-width: 0;
}

.foot-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.foot-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foot-ico svg {
  width: 62%;
  height: 62%;
  display: block;
}

.foot-ico--x {
  background: #000000;
  border-color: #000000;
}
.foot-ico--x svg { fill: #ffffff; }

.foot-ico--yt {
  background: #ff0000;
  border-color: #ff0000;
}
.foot-ico--yt svg {
  width: 78%;
  height: 78%;
  fill: #ffffff;
}


.hashtag-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hashtag-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--ink);
}

.hashtag-ico {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #000000;
  flex: 0 0 auto;
}

.hashtag-ico svg {
  width: 60%;
  height: 60%;
  fill: #ffffff;
  display: block;
}

.hashtag-panel a {
  gap: 8px;
}

.hashtag-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #000000;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-ja);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.hashtag-panel a:hover {
  background: #262626;
  transform: translateY(-4px);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: var(--line);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: var(--line);
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white) !important;
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.sticky-cta,
.sticky-cta:link,
.sticky-cta:visited,
.sticky-cta:focus {
  background: var(--white) !important;
  color: var(--black) !important;
}

.sticky-cta:hover {
  transform: translateY(-4px);
  background: var(--green) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% { opacity: 0.25; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes grow {
  to { width: var(--p); }
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .hero__grid,
  .chat-section {
    grid-template-columns: 1fr;
  }

  .hero__meta,
  .hero__title-block,
  .hero-movie,
  .hero__panel,
  .hero__bubble,
  .icon-button {
    grid-column: 1;
    grid-row: auto;
  }

  .icon-button {
    justify-self: start;
  }

  .section-head,
  .dashboard-grid,
  .sticker-grid,
  .cast-grid,
  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card,
  .gauge-card,
  .list-card {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 32px 32px;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(64px, 24vw, 118px);
  }

  .hero h1 span:last-child {
    font-size: 0.56em;
  }

  .section {
    padding: 54px 14px;
  }

  .section-head,
  .dashboard-grid,
  .sticker-grid,
  .stepper,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .cast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cast-card {
    min-height: 0;
  }

  .footer-copy {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    grid-template-columns: 1fr;
  }

  .footer-links-panel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-links-panel a {
    min-height: 66px;
  }

  .hashtag-panel a {
    width: 100%;
  }

  .section-head h2 {
    font-size: clamp(48px, 16vw, 86px);
  }

  .sticker-card,
  .metric-card,
  .gauge-card,
  .list-card,
  .cast-card {
    min-height: auto;
  }

  .step {
    border-right: 0;
    border-bottom: var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .chat-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .quote-block {
    min-height: 420px;
  }

  .closing__poster {
    min-height: 760px;
  }

  .burst-button {
    position: static;
    margin: 24px 0;
  }

  .barcode--wide {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .sticky-cta {
    left: 12px;
    right: 12px;
  }

  .home-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: visible;
  }

  .home-nav__toggle {
    display: grid;
    gap: 5px;
  }

  .home-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    display: none;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 10px;
    border: var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }

  .home-nav.is-open .home-nav__menu {
    display: grid;
    gap: 8px;
  }

  .home-nav__menu a {
    justify-content: center;
    width: min(230px, calc(100vw - 44px));
  }

  .home-nav__brand {
    font-size: 13px;
  }
}

/* ===== ルーキーチャレンジ 追加スタイル ===== */

/* hidden 属性を確実に効かせる（ボタンや画像を隠すため） */
[hidden] {
  display: none !important;
}

/* トップページ：カードの丸アイコンに顔ドアップの画像をはめ込む
   画像は疑似要素に分離し、遅延読み込み完了時にフェードインさせる
   （土台のテーマ色の円は最初から表示されたままなのでチラつかない） */
.cast-card__thumb {
  position: relative;
  overflow: hidden;
}

.cast-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--thumb-img, none);
  background-repeat: no-repeat;
  background-position: var(--thumb-pos, 50% 6%); /* 上（顔）に寄せる。倍率はJSが画像ごとに設定 */
  background-size: var(--thumb-size, cover);
  opacity: 0;
}

.cast-card__thumb.has-img::before {
  animation: thumb-in 0.5s ease-out forwards;
}

@keyframes thumb-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cast-card__thumb.has-img::before {
    animation: none;
    opacity: 1;
  }
}

/* カードの一言（意気込み）は最大2行で省略 */
.cast-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

/* 参加キャストの説明：区切りの良い位置でだけ改行させる（各かたまりは折り返さない） */
.nowrap-chunk {
  white-space: nowrap;
}

/* 開催期間：1行で表示（時刻つき・年は省略。狭い時だけ〜で折り返す） */
.date-range {
  line-height: 1.5;
}

/* スマホ：固定の「アプリDLはこちら！」ボタンが最後の内容と被らないよう余白を確保 */
@media (max-width: 640px) {
  .site-footer {
    padding-bottom: 100px;
  }
}

/* スマホ等タッチ端末：スクロール中に触っても黄色く（ホバー色に）ならないようにする */
@media (hover: none) {
  .cast-card:hover {
    background: var(--white);
  }
}

/* ===== 「話した！」機能 ===== */
.cast-card { position: relative; }

/* カード右上の「話した！」トグル */
.talk-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 9px;
  border: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}
.talk-toggle:hover { transform: translateY(-2px); }
.talk-toggle.is-on {
  background: #ffd23f;
  color: var(--black);
}

/* 話したキャストのカードを光らせる */
.cast-card.is-talked {
  border-color: #ffcf3f;
  box-shadow: 0 0 0 3px #ffd94a, 0 0 18px 3px rgba(255, 200, 40, 0.65);
  animation: talked-glow 1.8s ease-in-out infinite;
}
@keyframes talked-glow {
  0%, 100% { box-shadow: 0 0 0 3px #ffd94a, 0 0 14px 2px rgba(255, 200, 40, 0.5); }
  50% { box-shadow: 0 0 0 3px #ffe071, 0 0 22px 5px rgba(255, 200, 40, 0.85); }
}

/* 進捗メーター行（メーター + ランダムボタン） */
.talk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

/* 進捗メーター（バーゲージ + テキスト） */
.talk-progress {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 16px 9px;
  width: min(320px, 100%);
  border: var(--line);
  border-radius: 22px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.talk-progress__bar {
  display: block;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.talk-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.4s ease;
}

.talk-progress.is-complete {
  background: #ffd23f;
  color: var(--black);
}

.talk-progress.is-complete .talk-progress__fill {
  background: var(--black);
}

/* 🎲 ランダムに会いにいくボタン */
.random-jump {
  padding: 12px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.random-jump:hover {
  transform: translateY(-2px);
  background: var(--green);
}
