/* ─── ステージ出演者紹介（stage.html） ───
   2026-09-23追加、2026-09-25にデザイン変更（試作 stage-v2 を取り込み）。
   ページの枠は exhibitors.css（.shops-*／.genre-nav）を共用し、ここには出演者カード（.act）と
   PC用の目次（.act-index）を置く。場所の色印 .prog-place は style.css。
   方針:
   ① 各出演者の見出しは、冊子と同じ赤い帯（#AF2024、冊子の紙面から拾った色）に白抜き
   ② 目玉（.is-feature）は写真を全幅で大きく、それ以外は写真を左に小さく置いて強弱をつける
      （768px未満は、目玉以外も全幅。下の max-width: 767px のブロック参照）
   ③ 写真は切りそろえず元の比率のまま。角は2px以下（丸いアバターも使わない）
   ④ 1100px以上では左に出演順の目次を固定（見ている出演者の印付けは stage.js） */

.stage-page {
  --band: #AF2024;
}

/* 日付ジャンプのチップ。土＝ステージの青、日＝金 */
.stage-page [data-kind="sat"] { --accent: #6FB3CF; --ink: #3E8FB0; }
.stage-page [data-kind="sun"] { --accent: #C9A84C; --ink: #C9A84C; }
html[data-theme="light"] .stage-page [data-kind="sat"] { --ink: #2B6E8C; }
html[data-theme="light"] .stage-page [data-kind="sun"] { --ink: #8C6B22; }

.act-day {
  scroll-margin-top: 72px;
  padding-top: 34px;
}

.act-day-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(22px, 6vw, 28px);
  color: var(--white);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--gold);
}

html[data-theme="light"] .act-day-title { color: var(--cream); }

.act-day-title span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

/* ── 出演者 ── */
.act {
  scroll-margin-top: 72px;
  margin-bottom: 26px;
}

.act.is-feature { margin-bottom: 34px; }

/* ① 赤い帯 */
.act-band {
  background: var(--band);
  color: #FFFFFF;
  padding: 9px 14px 10px;
  border-radius: 2px 2px 0 0;
}

.act-program {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}

.act-name {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(16px, 4.4vw, 19px);
  color: #FFFFFF;
  line-height: 1.5;
  margin-top: 1px;
}

.act.is-feature .act-band { padding: 12px 16px 13px; }
.act.is-feature .act-name { font-size: clamp(19px, 5.4vw, 24px); }

.act-main {
  background: var(--shop-paper);
  border: 1px solid var(--shop-line);
  border-top: none;
  border-radius: 0 0 2px 2px;
}

/* ③ 写真は元の比率のまま */
.act-photo {
  display: block;
  width: 100%;
  height: auto;
  background: color-mix(in srgb, var(--gold) 12%, var(--shop-paper));
}

.act-body { padding: 14px 16px 16px; }

/* ② 目玉以外: 写真を左に小さく、右に場所・時刻。紹介文は下に全幅で。
   .act-body を display: contents にして、中身を .act-main の格子に直接並べる */
.act:not(.is-feature) .act-main {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding: 14px 16px 16px;
}

.act:not(.is-feature) .act-photo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 120px;
  border-radius: 2px;
}

.act:not(.is-feature) .act-body { display: contents; }

.act:not(.is-feature) .act-times,
.act:not(.is-feature) .act-credit { grid-column: 2; }

.act:not(.is-feature) .act-text,
.act:not(.is-feature) .act-members { grid-column: 1 / -1; }

/* 狭い列なので、場所の札と時刻を縦に積む */
.act:not(.is-feature) .act-times li {
  flex-direction: column;
  align-items: flex-start;
}

.act-times {
  list-style: none;
  display: grid;
  gap: 4px;
}

.act-times li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
}

.act-when {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.act-credit {
  font-size: 12px;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-top: 6px;
}

.act-text {
  font-size: 13px;
  color: var(--cream);
  line-height: 1.95;
  letter-spacing: 0.02em;
  margin-top: 12px;
}

/* 盆ジョヴィの2人、Hal & Panda のピアニストなど、ユニットのメンバー紹介 */
.act-members {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--shop-line);
}

.act-member {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* 顔写真は丸く切らず、四角いまま小さく */
.act-member img {
  flex: none;
  width: 72px;
  height: auto;
  border-radius: 2px;
}

.act-member-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.6;
}

.act-member-text {
  font-size: 12px;
  color: var(--cream-dim);
  line-height: 1.85;
  margin-top: 2px;
}

/* スマホ（768px未満）は、目玉以外も写真を全幅にする（2026-10-04）。
   横長の集合写真が多く、左に幅120pxで置くと高さが50pxほどになって顔が見えなかったため。
   目玉との差は、赤い帯と名前の大きさで残す。
   縦長の顔写真（.has-portrait。講演会の講師）は全幅だと大きすぎるので、左に置いたまま少し大きくする */
@media (max-width: 767px) {
  .act:not(.is-feature):not(.has-portrait) .act-main {
    display: block;
    padding: 0;
  }

  .act:not(.is-feature):not(.has-portrait) .act-photo {
    width: 100%;
    border-radius: 0;
  }

  .act:not(.is-feature):not(.has-portrait) .act-body { display: block; }

  .act:not(.is-feature):not(.has-portrait) .act-times li {
    flex-direction: row;
    align-items: center;
  }

  .act.has-portrait .act-main { grid-template-columns: 140px minmax(0, 1fr); }
  .act.has-portrait .act-photo { width: 140px; }

  .act-member img { width: 96px; }
}

/* ④ 出演順の目次。スマホ・タブレットでは出さない（上の日付ボタンで足りる） */
.act-index { display: none; }

@media (min-width: 768px) {
  .act:not(.is-feature) .act-main {
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 20px;
    padding: 18px 20px 20px;
  }

  .act:not(.is-feature) .act-photo {
    width: 200px;
    grid-row: 1 / span 4;
  }

  /* 幅があるときは紹介文も写真の右へ */
  .act:not(.is-feature) .act-text,
  .act:not(.is-feature) .act-members { grid-column: 2; }

  .act.is-feature .act-body { padding: 20px 24px 22px; }
}

@media (min-width: 1100px) {
  /* 左に目次（固定）、右に本文。本文の幅は読みやすさを保てる 870px まで */
  .stage-page .shops-main {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 264px minmax(0, 870px);
    justify-content: center;
    column-gap: 56px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .stage-page .shops-main > * { grid-column: 2; }

  .act-index {
    display: block;
    grid-column: 1 !important;
    grid-row: 1 / span 7;
    align-self: start;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px 18px 14px;
    background: var(--shop-paper);
    border: 1px solid var(--shop-line);
    border-top: 4px solid var(--band);
    border-radius: 2px;
  }

  /* 目次と役割が重なる日付ボタンは隠す */
  .stage-page .genre-nav { display: none; }

  .act-index-day {
    font-family: 'Shippori Mincho', serif;
    font-size: 15px;
    font-weight: 800;
    margin: 4px 0 6px;
  }

  .act-index-day + .act-index-list + .act-index-day { margin-top: 18px; }

  .act-index-day a { color: var(--cream); text-decoration: none; }

  .act-index-list { list-style: none; }

  .act-index-list a {
    display: grid;
    grid-template-columns: 3.2em 1fr;
    gap: 6px;
    padding: 6px 8px;
    margin: 0 -8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--cream);
    text-decoration: none;
    border-left: 3px solid transparent;
  }

  .act-index-list a:hover { background: color-mix(in srgb, var(--cream) 6%, transparent); }

  .act-index-list a[aria-current="true"] {
    border-left-color: var(--band);
    background: color-mix(in srgb, var(--band) 8%, transparent);
    font-weight: 700;
  }

  .act-index-time {
    font-weight: 700;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
  }

  /* 飛んだ先が画面の一番上にくっつかないように */
  .act,
  .act-day { scroll-margin-top: 24px; }
}
