/* DEMO芸能事務所（見本）
   考え：「照明のキュー」。サイト全体を1つの舞台に見立て、読み進めるとキュー（照明の切り替え）が進む。
   最初の画面は自分で書いた WebGL のシェーダー（ホリゾント幕と3色のゲルの光）。所属の人は顔ではなく「その人のための照明の図」で見せる。
   字組み：見出しは台本のような縦書き（ヒラギノ角ゴの太い W8・W9）、本文は横書き。キューの番号は細長い欧文。
   色：暗転の紺 #15122B・幕の白 #F5F2FF・ゲル3色（マゼンタ #FF3D9A・アンバー #FFB524・シアン #3CC8F5）。
   動き：強めまで使う。ただし「動きを減らす」の設定ならすべて止める。最初の画面の動きには止めるボタンを置く。 */

@property --g1 { syntax: "<color>"; inherits: false; initial-value: #FF3D9A; }
@property --g2 { syntax: "<color>"; inherits: false; initial-value: #3CC8F5; }
@property --sx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --sy { syntax: "<percentage>"; inherits: true; initial-value: 40%; }

:root {
  --dark: #15122B;
  --floor: #1F1A3D;
  --floor-2: #2A2350;
  --cyc: #F5F2FF;
  --cyc-2: #C4BCE3;
  --light: #F5F2FF;
  --ink: #15122B;
  --ink-2: #4A4370;
  --mag: #FF3D9A;
  --amb: #FFB524;
  --cya: #3CC8F5;
  --mag-ink: #C2006B;
  --cya-ink: #00658C;
  --line: rgb(245 242 255 / .18);

  --f-disp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --f-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --f-cue: "Avenir Next Condensed", "Avenir Next", "DIN Condensed", "Arial Narrow", "Hiragino Sans", sans-serif;

  --gut: max(16px, env(safe-area-inset-left));
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 1000px) { :root { --gut: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--dark); scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--dark); color: var(--cyc);
  font-family: var(--f-body); font-weight: 400; font-size: 16px; line-height: 1.85; letter-spacing: .04em;
  overflow-wrap: anywhere; line-break: strict; text-spacing-trim: space-first; hanging-punctuation: allow-end;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, table, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { font-family: var(--f-disp); font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: balance; }
p, li, dd, td { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--amb); outline-offset: 3px; border-radius: 2px; }
.lit :focus-visible { outline-color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 300; background: var(--amb); color: var(--ink); padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.skip:focus { top: 12px; }
.demo { display: inline-block; margin-right: .35em; padding: 0 .3em; border: 1px solid currentColor; border-radius: 2px; font-family: var(--f-cue); font-size: .62em; font-weight: 600; letter-spacing: .08em; line-height: 1.5; vertical-align: .18em; }
.cue { font-family: var(--f-cue); font-weight: 700; font-stretch: condensed; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* 読み進めるとキューが進む：画面の奥の光（固定の1枚だけが変わる） */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(60vmax 50vmax at 100% 0%, color-mix(in srgb, var(--g1) 22%, transparent), transparent 70%),
  radial-gradient(60vmax 50vmax at 0% 100%, color-mix(in srgb, var(--g2) 18%, transparent), transparent 70%), var(--dark); }

/* ---------- 見本の帯 ---------- */
.demo-band { position: relative; z-index: 60; padding: 6px var(--gut); background: var(--amb); color: var(--ink); font-size: 12.5px; line-height: 1.6; text-align: center; font-weight: 600; letter-spacing: .04em; }

/* ---------- ヘッダー：照明のバトン（吊りもの）。項目の上に灯体があり、今いるページの灯体が点く ---------- */
.hd { position: sticky; top: 0; z-index: 50; view-transition-name: hd; background: rgb(21 18 43 / .9); }
@supports (backdrop-filter: blur(8px)) { .hd { background: rgb(21 18 43 / .72); backdrop-filter: blur(14px) saturate(1.3); } }
.hd__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 20px; min-height: 72px; }
.batten { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgb(245 242 255 / .35) 12%, rgb(245 242 255 / .35) 88%, transparent); }
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; margin-right: auto; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo b { font-family: var(--f-disp); font-weight: 800; font-size: 17px; letter-spacing: .06em; white-space: nowrap; }
.logo small { display: block; font-size: 11px; color: var(--cyc-2); letter-spacing: .12em; font-weight: 400; }
.gnav { display: none; align-items: stretch; gap: 2px; }
.gnav a { position: relative; display: inline-flex; align-items: center; min-height: 72px; padding: 0 16px; text-decoration: none; font-size: 14.5px; font-weight: 600; letter-spacing: .08em; }
.gnav a::before { content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 8px; translate: -50% 0; border-radius: 0 0 7px 7px; background: #4A4370; transition: background .3s, box-shadow .3s; }
.gnav a::after { content: ""; position: absolute; top: 8px; left: 50%; width: 120px; height: 72px; translate: -50% 0; background: radial-gradient(60px 64px at 50% 0, var(--c, var(--amb)), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; mix-blend-mode: screen; }
.gnav a:hover::before, .gnav a[aria-current="page"]::before { background: var(--c, var(--amb)); box-shadow: 0 0 14px var(--c, var(--amb)); }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { opacity: .28; }
.gnav a:nth-child(1) { --c: var(--mag); } .gnav a:nth-child(2) { --c: var(--amb); } .gnav a:nth-child(3) { --c: var(--cya); } .gnav a:nth-child(4) { --c: #FFFFFF; }
.btn-call { display: none; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 2px; background: var(--amb); color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 14.5px; }
.hd__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid rgb(245 242 255 / .4); border-radius: 2px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.hd__menu svg { width: 18px; height: 18px; }
@media (min-width: 1000px) { .gnav { display: flex; } .btn-call { display: inline-flex; } .hd__menu { display: none; } }

.menu { margin: 0; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 20px var(--gut) 40px; border: 0; background: var(--dark); color: var(--cyc); overflow-y: auto; }
.menu::backdrop { background: rgb(0 0 0 / .6); }
.menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.menu__close { min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid rgb(245 242 255 / .4); border-radius: 2px; background: transparent; cursor: pointer; font-weight: 600; }
.menu ol { display: grid; gap: 4px; counter-reset: q; }
.menu li a { display: grid; grid-template-columns: 3.2em 1fr; align-items: center; min-height: 64px; text-decoration: none; font-family: var(--f-disp); font-weight: 800; font-size: 26px; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.menu li a .cue { font-size: 15px; color: var(--amb); }
@media (prefers-reduced-motion: no-preference) {
  .menu { transition: clip-path .5s var(--ease), display .5s allow-discrete, overlay .5s allow-discrete; clip-path: inset(0 0 0 0); }
  @starting-style { .menu:popover-open { clip-path: inset(0 0 100% 0); } }
}

/* ---------- 共通の箱と見出し ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec { position: relative; padding: 96px 0; }
.lit { background: var(--light); color: var(--ink); }
.lit .sub, .lit .sub-c { color: var(--ink-2); }
.sub { color: var(--cyc-2); }

/* 縦書きの見出し（台本の表紙のように）。キューの番号を頭に置く */
.vhead { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vhead .cue { font-size: 15px; color: var(--amb); padding: 2px 8px; border: 1px solid currentColor; }
.lit .vhead .cue { color: var(--mag-ink); }
.vhead h2 { writing-mode: vertical-rl; text-orientation: mixed; font-weight: 900; font-size: clamp(44px, 7vw, 96px); line-height: 1.05; letter-spacing: .08em; }
.split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 900px) { .split { gap: 72px; } }
.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.9; font-weight: 600; max-width: 30em; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 2px; text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 15px; border: 2px solid currentColor; background: transparent; cursor: pointer; transition: background .25s, color .25s, translate .25s var(--ease); }
.btn svg { width: 16px; height: 16px; }
.btn--amb { background: var(--amb); border-color: var(--amb); color: var(--ink); }
.btn:hover { translate: 0 -2px; }
.btn--amb:hover { background: #FFC851; }
.btn--line:hover { background: var(--cyc); color: var(--ink); }
.lit .btn--line:hover { background: var(--ink); color: var(--cyc); }

/* ---------- 最初の画面 ---------- */
.hero { position: relative; min-height: min(100svh, 940px); overflow: clip; isolation: isolate; background: #0E0B22; }
.hero canvas, .hero .hero__still { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero canvas { opacity: 0; transition: opacity 1.4s ease; }
.hero.is-gl canvas { opacity: 1; }
.hero__still { background:
  radial-gradient(42% 22% at 30% 88%, rgb(255 61 154 / .55), transparent 70%),
  radial-gradient(36% 20% at 52% 92%, rgb(255 181 36 / .5), transparent 70%),
  conic-gradient(from 168deg at 22% -8%, transparent 0deg, rgb(255 61 154 / .32) 8deg, transparent 18deg),
  conic-gradient(from 178deg at 46% -8%, transparent 0deg, rgb(255 181 36 / .3) 7deg, transparent 16deg),
  linear-gradient(#0E0B22 40%, #1F1A3D); }
.hero__in { position: relative; max-width: var(--max); min-height: inherit; margin: 0 auto; padding: 40px var(--gut) 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: 24px; }
.hero__title { grid-column: 2; grid-row: 1; writing-mode: vertical-rl; text-orientation: mixed; font-weight: 900; font-size: clamp(54px, 11vw, 148px); line-height: 1.02; letter-spacing: .06em; color: #FFFFFF; align-self: start; view-transition-name: hero-title; }
.hero__title span { display: block; }
.hero__title span + span { margin-right: .22em; padding-top: 1.1em; }
.hero__foot { grid-column: 1 / -1; grid-row: 2; display: grid; gap: 18px; max-width: 34em; padding: 20px 22px; background: rgb(14 11 34 / .86); border-left: 3px solid var(--amb); }
@supports (backdrop-filter: blur(6px)) { .hero__foot { background: rgb(14 11 34 / .72); backdrop-filter: blur(10px); } }
.hero__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 700; letter-spacing: .1em; font-size: 14px; }
.hero__kind .cue { color: var(--amb); font-size: 16px; }
.hero__foot p { color: var(--cyc); font-size: 15.5px; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.motion { position: absolute; right: var(--gut); bottom: 24px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgb(245 242 255 / .5); border-radius: 2px; background: rgb(14 11 34 / .8); cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.motion svg { width: 14px; height: 14px; }
.motion[hidden] { display: none; }
@media (max-width: 999px) { .motion { top: 16px; bottom: auto; left: var(--gut); right: auto; } .hero__in { padding-top: 76px; } }
@media (min-width: 1000px) {
  .hero__in { padding: 56px var(--gut) 56px; }
  .hero__foot { grid-column: 1; align-self: end; }
  .hero__title { grid-row: 1 / span 2; align-self: center; }
}

/* ---------- 所属の照明の図（顔の代わり） ---------- */
.pt { position: relative; display: block; aspect-ratio: 3 / 4; background: #0E0B22; overflow: hidden; }
.pt svg { width: 100%; height: 100%; }
.pt .bm { mix-blend-mode: screen; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 260px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 8px var(--gut) 24px; margin: 0 calc(-1 * var(--gut)); scrollbar-color: var(--amb) transparent; }
.strip > li { scroll-snap-align: center; }
.card { display: grid; gap: 12px; text-decoration: none; }
.card__name { font-family: var(--f-disp); font-weight: 800; font-size: 19px; letter-spacing: .06em; line-height: 1.4; }
.card__kind { font-size: 13.5px; color: var(--cyc-2); }
.card:hover .pt, .card:focus-visible .pt { outline: 2px solid var(--amb); outline-offset: 4px; }
.strip-note { font-size: 13px; color: var(--cyc-2); margin-top: 4px; }

/* ---------- 舞台の平面図（所属のページ） ---------- */
.stage { position: relative; display: none; aspect-ratio: 16 / 8; margin: 0 0 56px; background: #0E0B22; overflow: hidden; isolation: isolate; }
.stage__floor { position: absolute; inset: 14% 0 0; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); background:
  repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(245 242 255 / .06) calc(10% - 1px) 10%),
  linear-gradient(#211B45, #2D255A); }
.stage__center { position: absolute; left: 50%; top: 14%; bottom: 0; width: 2px; translate: -1px 0; background: repeating-linear-gradient(rgb(245 242 255 / .35) 0 10px, transparent 10px 20px); }
.stage__label { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; font-size: 12px; letter-spacing: .3em; color: var(--cyc-2); }
.stage__curtain { position: absolute; left: 0; right: 0; top: 0; height: 14%; background: repeating-linear-gradient(90deg, #3A1430 0 18px, #4A1A3D 18px 36px); box-shadow: 0 8px 20px rgb(0 0 0 / .5); }
.stage__spot { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(16% 24% at var(--sx) var(--sy), rgb(255 230 180 / .55), rgb(255 181 36 / .12) 55%, transparent 75%); transition: --sx .7s var(--ease), --sy .7s var(--ease); }
.mark { position: absolute; z-index: 3; display: grid; justify-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 6px; text-decoration: none; translate: -50% -30%; }
.mark i { position: relative; width: 30px; height: 30px; }
.mark i::before, .mark i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 7px; translate: -50% -50%; background: var(--c); border-radius: 1px; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.mark i::after { rotate: 90deg; }
.mark span { font-size: 13.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; padding: 2px 8px; background: rgb(14 11 34 / .85); }
.mark:hover span, .mark:focus-visible span { background: var(--amb); color: var(--ink); }
.m1 { left: 22%; top: 46%; --c: var(--amb); } .m2 { left: 50%; top: 36%; --c: var(--mag); } .m3 { left: 78%; top: 46%; --c: var(--cya); }
.m4 { left: 32%; top: 76%; --c: var(--mag); } .m5 { left: 50%; top: 64%; --c: var(--cya); } .m6 { left: 68%; top: 76%; --c: var(--amb); }
@media (min-width: 760px) { .stage { display: block; } }

.roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 760px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; } }

/* ---------- 香盤表（所属 × 分野。列の見出しは縦書き） ---------- */
.kouban { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.kouban caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: 13px; color: var(--cyc-2); }
.kouban th, .kouban td { border: 1px solid var(--line); }
.kouban thead th { writing-mode: vertical-rl; text-orientation: mixed; height: 7.4em; padding: 10px 0; font-weight: 700; letter-spacing: .12em; font-size: 13.5px; vertical-align: top; text-align: start; }
.kouban thead th:first-child { writing-mode: horizontal-tb; width: 40%; vertical-align: bottom; padding: 10px 8px; font-size: 13px; color: var(--cyc-2); }
.kouban tbody th { text-align: left; padding: 10px 8px; font-weight: 700; font-size: 14px; line-height: 1.5; }
.kouban tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
.kouban td { text-align: center; padding: 0; }
.kouban td b { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--amb)); box-shadow: 0 0 10px var(--c, var(--amb)); }
.kouban tr:nth-child(3n+1) { --c: var(--mag); } .kouban tr:nth-child(3n+2) { --c: var(--amb); } .kouban tr:nth-child(3n) { --c: var(--cya); }
.kouban tbody tr:hover { background: rgb(245 242 255 / .05); }
@media (min-width: 760px) { .kouban thead th:first-child { width: 26%; } .kouban { font-size: 15px; } }

/* ---------- キューシート（企画の進め方。順番があるのでキューの番号をつける） ---------- */
.cuesheet { width: 100%; border-collapse: collapse; }
.cuesheet caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: 13px; }
.cuesheet thead th { text-align: left; font-size: 13px; letter-spacing: .12em; padding: 0 12px 10px; border-bottom: 2px solid currentColor; }
.cuesheet tbody tr { border-bottom: 1px solid rgb(21 18 43 / .18); }
.cuesheet tbody th { width: 4.5em; padding: 22px 12px; vertical-align: top; text-align: left; }
.cuesheet tbody th .cue { font-size: 28px; line-height: 1; color: var(--mag-ink); }
.cuesheet td { padding: 22px 12px; vertical-align: top; }
.cuesheet td:nth-child(2) { width: 30%; font-weight: 700; }
.cuesheet td p + p { margin-top: .4em; }
.cuesheet td small { display: block; color: var(--ink-2); font-size: 13.5px; font-weight: 400; }
@media (max-width: 699px) {
  .cuesheet thead { display: none; }
  .cuesheet tbody tr { display: grid; grid-template-columns: 4em 1fr; padding: 18px 0; }
  .cuesheet tbody th { grid-row: span 2; padding: 0 8px 0 0; width: auto; }
  .cuesheet td { padding: 0 4px; width: auto !important; }
  .cuesheet td:nth-child(2) { margin-bottom: 6px; }
}

/* ---------- 演目の札 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 16px; border: 1px solid currentColor; font-weight: 700; letter-spacing: .06em; font-size: 15px; }

/* ---------- できること（4つの灯体） ---------- */
.rig { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rig > div { position: relative; display: grid; gap: 10px; padding: 32px 24px 28px; background: var(--dark); overflow: hidden; }
.rig > div::before { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 10px; border-radius: 0 0 20px 20px; background: var(--c); box-shadow: 0 0 22px var(--c); }
.rig > div::after { content: ""; position: absolute; left: -40px; top: 0; width: 180px; height: 220px; background: radial-gradient(50% 100% at 50% 0, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); pointer-events: none; }
.rig h3 { position: relative; z-index: 1; font-weight: 800; font-size: 22px; letter-spacing: .06em; margin-top: 12px; }
.rig p { position: relative; z-index: 1; color: var(--cyc-2); font-size: 15px; }
.rig > div:nth-child(4n+1) { --c: var(--mag); } .rig > div:nth-child(4n+2) { --c: var(--amb); } .rig > div:nth-child(4n+3) { --c: var(--cya); } .rig > div:nth-child(4n+4) { --c: #FFFFFF; }
@media (min-width: 760px) { .rig { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rig--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 中のページの頭 ---------- */
.ph { position: relative; padding: 56px 0 64px; overflow: clip; border-bottom: 1px solid var(--line); }
.ph::before { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 140%; background: conic-gradient(from 200deg at 70% 0%, transparent, color-mix(in srgb, var(--pc, var(--mag)) 26%, transparent) 10deg, transparent 26deg); pointer-events: none; }
.ph__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.crumb { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 13px; color: var(--cyc-2); }
.crumb li { display: inline-flex; align-items: center; min-height: 44px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.crumb li + li::before { content: "／"; margin-right: 12px; opacity: .5; }
.ph h1 { writing-mode: vertical-rl; text-orientation: mixed; font-weight: 900; font-size: clamp(48px, 9vw, 120px); line-height: 1.04; letter-spacing: .06em; view-transition-name: ph-title; }
.ph__lead { margin-top: 20px; max-width: 30em; font-size: 16.5px; }
.ph__text { display: grid; align-content: space-between; gap: 24px; min-height: 100%; }
.ph__text .cue { display: inline-block; color: var(--amb); border: 1px solid currentColor; padding: 2px 8px; font-size: 15px; }

/* ---------- 所属の1人のページ ---------- */
.profile { display: grid; gap: 32px; padding: 48px 0 24px; }
.profile__pt { max-width: 440px; }
.profile__name { writing-mode: vertical-rl; text-orientation: mixed; font-weight: 900; font-size: clamp(40px, 8vw, 92px); line-height: 1.1; letter-spacing: .08em; }
.profile__name .demo { writing-mode: horizontal-tb; font-size: 16px; margin: 0 0 .6em; }
.profile__head { display: flex; gap: 24px; align-items: flex-start; }
.profile__yomi { writing-mode: vertical-rl; font-size: 15px; letter-spacing: .3em; color: var(--cyc-2); }
.facts { display: grid; grid-template-columns: 6em 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--cyc-2); font-size: 14px; }
.gels { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gels i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.pager a { display: grid; gap: 2px; min-height: 64px; align-content: center; padding: 10px 16px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager a small { font-weight: 400; color: var(--cyc-2); font-size: 12.5px; }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--amb); }
@media (min-width: 900px) { .profile { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }

/* ---------- 会社・オーディション ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 16px 12px 16px 0; border-bottom: 1px solid currentColor; border-bottom-color: rgb(21 18 43 / .18); }
.table th { width: 30%; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 3.4em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgb(21 18 43 / .18); counter-increment: s; }
.steps li::before { content: "Q" counter(s); font-family: var(--f-cue); font-weight: 700; font-stretch: condensed; font-size: 26px; line-height: 1.2; color: var(--mag-ink); }
.steps h3 { font-weight: 800; font-size: 18px; letter-spacing: .06em; }
.steps p { color: var(--ink-2); font-size: 15px; }
.points { display: grid; gap: 20px; }
.points li { padding-left: 20px; border-left: 3px solid var(--mag-ink); }
.points b { display: block; font-family: var(--f-disp); font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.points span { color: var(--ink-2); font-size: 15px; }
.two { display: grid; gap: 48px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 72px; } }
.quote { font-size: 18px; line-height: 2.05; font-weight: 600; letter-spacing: .05em; max-width: 30em; }
.sign { margin-top: 18px; font-weight: 700; }
.notice { padding: 16px 20px; border: 1px solid currentColor; font-size: 14.5px; }

/* ---------- お問合せ（短い文つき） ---------- */
.form { display: grid; gap: 26px; max-width: 42em; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; letter-spacing: .06em; font-size: 15px; padding: 0; }
.opt-tag { margin-left: 8px; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.req { margin-left: 8px; font-weight: 700; font-size: 12.5px; color: var(--mag-ink); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #6E668F; border-radius: 2px; background: #FFFFFF; color: var(--ink); font-size: 16px; }
.field textarea { min-height: 9em; resize: vertical; line-height: 1.7; }
.field select { appearance: none; padding-right: 40px; }
.selwrap { position: relative; }
.selwrap svg { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; pointer-events: none; color: var(--ink); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 2px solid #6E668F; border-radius: 2px; background: #FFFFFF; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--mag-ink); }
.opt:has(input:checked) { border-color: var(--ink); background: #FFF3D6; }
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.hint, .count { font-size: 13.5px; color: var(--ink-2); }
.count[data-over="true"] { color: var(--mag-ink); font-weight: 700; }
.err { font-size: 13.5px; color: var(--mag-ink); font-weight: 700; }
.err:empty { display: none; }
.result { padding: 18px 20px; border: 2px solid var(--ink); background: #FFF3D6; font-weight: 600; }
.result:empty { display: none; }
.lit .btn--amb { border-color: var(--ink); }

/* ---------- フッター：入場券と半券 ---------- */
.ft { position: relative; padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); }
.ticket { position: relative; display: grid; background: var(--light); color: var(--ink); max-width: var(--max); margin: 0 auto; }
.ticket__main { display: grid; gap: 28px; padding: 32px 24px; }
.ticket__name { font-family: var(--f-disp); font-weight: 900; font-size: clamp(30px, 5vw, 56px); line-height: 1.15; letter-spacing: .04em; }
.ticket__row { display: grid; gap: 24px; }
.ticket dl { display: grid; grid-template-columns: 5em 1fr; gap: 6px 14px; font-size: 14.5px; }
.ticket dt { color: var(--ink-2); }
.ticket nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ticket nav a { display: flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; letter-spacing: .06em; font-size: 14.5px; border-bottom: 1px solid rgb(21 18 43 / .14); }
.ticket nav a:hover { text-decoration: underline; }
.ticket__stub { position: relative; display: grid; gap: 14px; align-content: center; padding: 32px 24px; border-top: 2px dashed rgb(21 18 43 / .45); }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--dark); }
.ticket__stub::before { left: -12px; } .ticket__stub::after { right: -12px; }
.ticket__stub .cue { font-size: 44px; line-height: 1; color: var(--mag-ink); }
.ticket__stub p { font-weight: 700; }
.ticket__fine { max-width: var(--max); margin: 18px auto 0; padding: 0 var(--gut); display: grid; gap: 4px; font-size: 12.5px; color: var(--cyc-2); }
.ft__wrap { padding: 0 var(--gut); }
@media (min-width: 900px) {
  .ticket { grid-template-columns: minmax(0, 1fr) 300px; }
  .ticket__main { padding: 48px; }
  .ticket__row { grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .ticket__stub { border-top: 0; border-left: 2px dashed rgb(21 18 43 / .45); padding: 40px 32px; }
  .ticket__stub::before, .ticket__stub::after { left: -13px; right: auto; }
  .ticket__stub::before { top: -12px; } .ticket__stub::after { top: auto; bottom: -12px; }
}

/* ======================================================================
   動き（強め）。「動きを減らす」にしていないときだけ
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* ページの移り：幕が下から上がるように新しいページが現れる。ヘッダーは残る。所属の人の図は形を保ったまま移る */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: house-down .45s ease both; }
  ::view-transition-new(root) { animation: curtain-up .7s var(--ease) both; }
  ::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease); }
  @keyframes house-down { to { opacity: .2; filter: brightness(.4); } }
  @keyframes curtain-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

  @supports (animation-timeline: scroll()) {
    /* 読み進めるとキューが進み、奥の光の色が変わる */
    .ambient { animation: cues linear both; animation-timeline: scroll(root block); }
    @keyframes cues {
      0% { --g1: #FF3D9A; --g2: #3CC8F5; }
      35% { --g1: #FFB524; --g2: #FF3D9A; }
      70% { --g1: #3CC8F5; --g2: #FFB524; }
      100% { --g1: #FF3D9A; --g2: #FFB524; }
    }
  }
  @supports (animation-timeline: view()) {
    /* 最初の画面の縦書きの題：画面から出ていくときに、字の間が開いて暗転する */
    .hero__title { animation: title-out linear both; animation-timeline: view(); animation-range: exit 0% exit 80%; }
    @keyframes title-out { to { letter-spacing: .5em; opacity: 0; filter: blur(6px); } }
    /* 縦書きの見出し：上から下へ、筆で書くように現れる */
    .vhead h2 { animation: brush linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes brush { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
    /* 照明の図の列：真ん中に来た図だけが明るく、大きくなる */
    .strip .pt { animation: focus-card linear both; animation-timeline: view(inline); }
    @keyframes focus-card { 0%, 100% { scale: .9; filter: brightness(.55); } 50% { scale: 1; filter: brightness(1); } }
    /* キューシート：画面の真ん中を通る行が点く */
    .cuesheet tbody tr { animation: cue-row linear both; animation-timeline: view(); animation-range: cover 25% cover 75%; }
    @keyframes cue-row { 0%, 100% { background: transparent; } 40%, 60% { background: #FFE7B0; } }
    /* 舞台の平面図：見えてくるときに客席の側から舞台を見下ろす角度に倒れる */
    .stage { animation: stage-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes stage-in { from { transform: perspective(1200px) rotateX(38deg) scale(.92); filter: brightness(.3); } to { transform: none; filter: none; } }
    /* ヘッダー：読み進めると、バトンの線が光る */
    .batten { animation: batten linear both; animation-timeline: scroll(root block); animation-range: 0 400px; }
    @keyframes batten { to { background: linear-gradient(90deg, transparent, var(--mag) 15%, var(--amb) 50%, var(--cya) 85%, transparent); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 細部 ---------- */
.acts-gap { margin-top: 28px; }
.cuewrap { margin: 28px 0 32px; }
.split .lead + .strip { margin-top: 28px; }
.h-small { font-family: var(--f-disp); font-weight: 800; font-size: 18px; letter-spacing: .06em; margin: 36px 0 12px; }
.h-big { font-family: var(--f-disp); font-weight: 900; font-size: clamp(24px, 3vw, 34px); letter-spacing: .06em; margin-bottom: 20px; }
.worklist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.worklist li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.worklist li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 3px; background: var(--amb); }
.profile__words { margin: 24px 0 28px; }
.crumb--top { padding-top: 8px; }
.sec--profile { padding-top: 24px; }
.g-mag { --c: #FF3D9A; } .g-amb { --c: #FFB524; } .g-cya { --c: #3CC8F5; } .g-wht { --c: #FFF4E0; }
.rig--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .rig--2 { grid-template-columns: repeat(2, 1fr); } }
.lit--2 { padding-top: 0; }
.table--wide { max-width: 48em; }
.tags { margin-top: 24px; }
.strip { margin-top: 24px; }
.vt-asanagi { view-transition-name: pt-asanagi; } .vt-hino { view-transition-name: pt-hino; } .vt-yuzuki { view-transition-name: pt-yuzuki; }
.vt-hari { view-transition-name: pt-hari; } .vt-chikage { view-transition-name: pt-chikage; } .vt-kanade { view-transition-name: pt-kanade; }
.lit .sub { color: var(--ink-2); }
.lit .table th { color: var(--ink-2); }

.hd__menu { white-space: nowrap; flex: none; }
@media (max-width: 479px) { .logo small { display: none; } .logo b { font-size: 16px; } }
.split .lead + .rig, .split .lead + .sub { margin-top: 28px; }
.lit { color-scheme: light; }
