/* Club 門 店内iPadメニュー（配色B：黒×白＋金の線） */
:root {
  --bg: #050505;
  --text: #ffffff;
  --gold: #b89a62;
  --mute: #7c7c7c;
  --soft: #bbbbbb;
  --line: rgba(255, 255, 255, .15);
  --line-strong: rgba(255, 255, 255, .22);
  --jp: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
  --num: "Cormorant Infant", "Cormorant Garamond", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); overflow: hidden; }
body {
  color: var(--text); font-family: var(--jp); font-weight: 500;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  overscroll-behavior: none; touch-action: manipulation;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
img { display: block; -webkit-user-drag: none; }

/* 1080×810 の画面を、画面サイズに合わせて拡大縮小する */
#stage { position: fixed; inset: 0; overflow: hidden; }
/* 画面の真ん中に置いてから縮尺を掛ける（窓が810pxより低くても上下がずれない） */
#app { position: absolute; left: 50%; top: 50%; width: 1080px; height: 810px; overflow: hidden; background: var(--bg); transform-origin: center; transform: translate(-50%, -50%); }

.screen {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.screen.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
/* 隠れた画面の中身（表示中のページ）が上に残ってタップを奪わないようにする */
.screen:not(.is-active), .screen:not(.is-active) * { pointer-events: none !important; }
.screen-home:not(.is-active) { transform: scale(1.02); }
.screen-sub:not(.is-active) { transform: scale(.985); }

/* ---------- HOME ---------- */
.home-bar { position: absolute; left: 0; top: 0; width: 1080px; height: 84px; border-bottom: 1px solid var(--line); }
.home-logo { position: absolute; left: 36px; top: 13px; width: 110px; }
.clock { position: absolute; right: 36px; top: 26px; font-family: var(--num); font-size: 26px; letter-spacing: .04em; color: var(--text); }

.tiles { position: absolute; left: 38px; top: 124px; display: grid; grid-template-columns: 490px 490px; gap: 24px; }
.tile {
  position: relative; width: 490px; height: 300px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18); background: var(--bg);
  transition: transform .18s var(--ease), border-color .18s;
}
.tile-photo { position: absolute; right: 0; top: 0; bottom: 1px; width: 230px; overflow: hidden; }
/* 拡大中の写真がSafariで枠の外へはみ出して線に見えないよう、必ず枠の中で切り取る */
.tile-photo { clip-path: inset(0); -webkit-mask-image: linear-gradient(#000, #000); }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* 写真の左端を黒で覆う。写真の外側に別の層として置き、写真の端より少し左まで広げて、どんな写真でも端の線が出ないようにする */
.tile-fade {
  position: absolute; top: 0; bottom: 0; right: 0; width: 240px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0, var(--bg) 4px, rgba(5, 5, 5, .7) 10%, rgba(5, 5, 5, .25) 22%, rgba(5, 5, 5, 0) 34%),
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 14%, rgba(5, 5, 5, .82) 30%, rgba(5, 5, 5, .35) 50%, rgba(5, 5, 5, 0) 70%);
}
.tile-slides img { transform-origin: 50% 0; opacity: 0; transition: opacity 1.4s ease, transform 7s linear; transform: scale(1.04); }
.tile-slides img.is-on { opacity: 1; transform: scale(1.12); }
.tile-icon { position: absolute; left: 36px; top: 36px; width: 92px; height: 92px; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
.tile-icon img { width: 66px; height: 66px; object-fit: contain; }
.tile-jp { position: absolute; left: 36px; top: 178px; font-weight: 700; font-size: 40px; letter-spacing: .15em; line-height: 1.3; z-index: 1; }
.tile-en { position: absolute; left: 38px; top: 232px; font-family: var(--en); font-size: 17px; letter-spacing: .3em; color: var(--gold); z-index: 1; }
.tile-arrow {
  position: absolute; right: 0; bottom: 0; width: 72px; height: 64px; z-index: 2;
  background: rgba(5, 5, 5, .9); border-top: 1px solid rgba(255, 255, 255, .25); border-left: 1px solid rgba(255, 255, 255, .25);
  transition: background .18s;
}
.tile-arrow i { position: absolute; left: 18px; top: 35px; width: 35px; height: 1px; background: var(--gold); transition: background .18s, width .3s var(--ease); }
.tile-arrow i::after { content: ""; position: absolute; right: 0; top: 0; width: 12px; height: 1px; background: inherit; transform-origin: right center; transform: rotate(45deg); }
.tile:active { transform: scale(.985); border-color: var(--gold); }
.tile:active .tile-arrow { background: var(--gold); }
.tile:active .tile-arrow i { background: var(--bg); width: 39px; }
.home-note { position: absolute; left: 0; right: 0; top: 772px; text-align: center; font-size: 15px; letter-spacing: .04em; color: var(--mute); }

/* ---------- 下層の枠 ---------- */
.sidebar { position: absolute; left: 0; top: 0; width: 168px; height: 810px; border-right: 1px solid var(--line); }
.side-logo { position: absolute; left: 32px; top: 26px; width: 104px; }
.nav {
  position: absolute; left: 16px; width: 136px; height: 112px; display: flex; flex-direction: column; align-items: center;
  transition: background .25s var(--ease), color .25s;
}
.nav:nth-of-type(1) { top: 120px; } .nav:nth-of-type(2) { top: 244px; } .nav:nth-of-type(3) { top: 368px; }
.nav:nth-of-type(4) { top: 492px; } .nav:nth-of-type(5) { top: 616px; }
.nav img { width: 52px; height: 52px; margin-top: 14px; object-fit: contain; }
.nav span { margin-top: 6px; font-size: 16px; letter-spacing: .1em; }
.nav.is-on, .nav:active { background: var(--gold); color: var(--bg); }
.nav.is-on span { font-weight: 700; }

.main { position: absolute; left: 168px; top: 0; width: 912px; height: 810px; }
.topbar { position: absolute; left: 0; top: 0; width: 912px; height: 96px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; padding: 26px 48px 0; }
.top-jp { font-weight: 700; font-size: 34px; letter-spacing: .12em; transition: opacity .3s; }
.top-en { margin-left: 20px; font-family: var(--en); font-size: 16px; letter-spacing: .3em; color: var(--gold); transition: opacity .3s; }
.top-note { margin-left: auto; font-size: 15px; letter-spacing: .04em; color: var(--mute); font-weight: 400; transition: opacity .3s; }
.topbar.is-swapping .top-jp, .topbar.is-swapping .top-en { opacity: 0; }

.panes { position: absolute; left: 0; top: 96px; width: 912px; height: 714px; overflow: hidden; }
.pane {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(28px);
  transition: opacity .38s var(--ease), transform .38s var(--ease), visibility 0s .38s;
}
.pane.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.pane.is-leaving { transform: translateX(-28px); }

.chips { height: 76px; padding: 18px 48px 0; display: flex; gap: 12px; }
.chip {
  height: 46px; padding: 0 28px; border: 1px solid rgba(255, 255, 255, .18); color: var(--soft);
  font-size: 17px; letter-spacing: .04em; transition: background .25s, color .25s, border-color .25s;
}
.chip.is-on, .chip:active { background: var(--gold); border-color: var(--gold); color: var(--bg); }

.scroll { position: absolute; left: 0; right: 0; bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.has-chips > .scroll { top: 76px; }
.no-chips > .scroll { top: 0; padding-top: 20px; }
.scroll-inner { padding: 8px 48px 64px; }
.has-chips .scroll::before, .scroll-fade { content: ""; }
.pane::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; background: linear-gradient(rgba(5, 5, 5, 0), var(--bg)); }

.tabview { position: relative; }
.tabbody { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.tabbody.is-hidden { display: none; }
.tabbody.is-entering { opacity: 0; transform: translateY(8px); }

/* ---------- 共通の部品 ---------- */
.h2 { font-weight: 700; font-size: 21px; letter-spacing: .1em; color: var(--gold); margin: 26px 0 8px; }
.h2:first-child { margin-top: 0; }
.h2 small { margin-left: 10px; font-family: var(--en); font-weight: 500; font-size: 15px; letter-spacing: .2em; }
.h3 { font-weight: 700; font-size: 18px; letter-spacing: .08em; margin-bottom: 4px; }
.row { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 18px; letter-spacing: .06em; gap: 12px; }
.row .p { white-space: nowrap; }
.num { font-family: var(--num); font-size: 22px; letter-spacing: .02em; }
.yen { font-size: 14px; margin-left: 1px; }
.note { margin-top: 12px; font-size: 14px; line-height: 1.75; letter-spacing: .04em; color: var(--mute); font-weight: 400; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.box h3 { font-weight: 700; font-size: 18px; letter-spacing: .08em; padding: 6px 0 6px; }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.info div { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.info h4 { color: var(--gold); font-weight: 700; font-size: 16px; letter-spacing: .1em; margin-bottom: 6px; }
.info p { font-size: 16px; line-height: 1.8; white-space: pre-line; letter-spacing: .04em; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.mini-chips span { border: 1px solid var(--line-strong); padding: 6px 12px; font-size: 14px; letter-spacing: .04em; color: var(--soft); }
.mini-chips i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.keep { margin-top: 30px; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.keep .en { font-family: var(--en); letter-spacing: .3em; color: var(--gold); font-size: 14px; }
.keep .big { font-family: var(--en); font-size: 34px; letter-spacing: .12em; margin: 2px 0 2px; }

/* ---------- キャスト ---------- */
.cast-grid { display: grid; grid-template-columns: repeat(3, 256px); gap: 30px 24px; }
.cast-card { position: relative; display: block; width: 256px; transition: transform .18s var(--ease); }
.cast-card > span { display: block; }
.badge, .d-badge { white-space: nowrap; }
.cast-card:active { transform: scale(.97); }
.cast-photo { position: relative; width: 256px; height: 384px; overflow: hidden; border: 1px solid var(--line); background: #141414; }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; }
.no-photo img { width: 46%; height: auto; opacity: .55; object-fit: contain; }
.badge { position: absolute; left: 10px; top: 10px; padding: 5px 10px; font-size: 13px; letter-spacing: .06em; background: rgba(5, 5, 5, .75); border: 1px solid var(--gold); color: var(--gold); }
.cast-name { margin-top: 12px; text-align: center; font-size: 20px; letter-spacing: .12em; }
.cast-age { margin-left: 6px; font-family: var(--num); font-size: 17px; color: var(--mute); }

.back { display: inline-flex; align-items: center; gap: 10px; height: 40px; font-size: 15px; letter-spacing: .1em; color: var(--gold); margin-bottom: 8px; }
.back::before { content: ""; width: 9px; height: 9px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.detail { display: grid; grid-template-columns: 400px 1fr; column-gap: 40px; align-items: start; }
.detail-main { position: relative; width: 400px; height: 600px; overflow: hidden; border: 1px solid var(--line); background: #141414; }
.detail-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: opacity .45s ease; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 60px; height: 80px; overflow: hidden; border: 1px solid var(--line); opacity: .55; transition: opacity .25s, border-color .25s; }
.thumbs button.is-on { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.d-badge { display: inline-block; padding: 5px 12px; font-size: 14px; letter-spacing: .06em; border: 1px solid var(--gold); color: var(--gold); margin-bottom: 14px; }
.d-name { font-weight: 700; font-size: 40px; letter-spacing: .14em; line-height: 1.3; }
.d-name small { margin-left: 12px; font-family: var(--num); font-weight: 500; font-size: 22px; letter-spacing: .04em; }
.d-name small span { font-family: var(--jp); font-size: 16px; }
.spec { margin-top: 18px; }
.spec div { display: flex; min-height: 42px; align-items: center; border-bottom: 1px solid var(--line); font-size: 16px; letter-spacing: .06em; }
.spec dt { flex: 0 0 76px; color: var(--gold); font-size: 14px; }
.msg { margin-top: 26px; border-left: 1px solid var(--gold); padding: 2px 0 2px 18px; }
.msg .en, .qa > .en { font-family: var(--en); letter-spacing: .3em; color: var(--gold); font-size: 15px; margin-bottom: 6px; }
.msg p { font-size: 16px; line-height: 1.8; letter-spacing: .04em; white-space: pre-line; }
.qa { margin-top: 26px; }
.qa > .en { font-family: var(--en); letter-spacing: .3em; color: var(--gold); font-size: 15px; margin-bottom: 4px; }
.qa div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-size: 14px; color: var(--gold); letter-spacing: .06em; margin-bottom: 4px; }
.qa dd { font-size: 16px; line-height: 1.7; letter-spacing: .04em; white-space: pre-line; }

/* ---------- スマホ（現場での確認用） ---------- */
body.sp #stage { display: block; }
body.sp #app { left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh; }
body.sp .screen { transform: none; }

body.sp .screen-home { overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.sp .home-bar { position: sticky; top: 0; width: 100%; height: 60px; background: var(--bg); z-index: 2; }
body.sp .home-logo { left: 16px; top: 10px; width: 76px; }
body.sp .clock { right: 16px; top: 16px; font-size: 20px; }
body.sp .tiles { position: static; display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px; }
body.sp .tile { width: 100%; height: 150px; }
body.sp .tile-photo { width: 48%; }
body.sp .tile-fade { width: calc(48% + 10px); }
body.sp .tile-icon { left: 16px; top: 16px; width: 54px; height: 54px; }
body.sp .tile-icon img { width: 38px; height: 38px; }
body.sp .tile-jp { left: 16px; top: auto; bottom: 34px; font-size: 25px; letter-spacing: .1em; }
body.sp .tile-en { left: 17px; top: auto; bottom: 14px; font-size: 12px; }
body.sp .tile-arrow { width: 56px; height: 46px; }
body.sp .tile-arrow i { left: 14px; top: 26px; width: 28px; }
body.sp .home-note { position: static; padding: 4px 16px 28px; font-size: 12px; line-height: 1.7; }

body.sp .sidebar {
  top: auto; bottom: 0; width: 100%; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  border-right: 0; border-top: 1px solid var(--line); display: flex; background: var(--bg); z-index: 3;
}
body.sp .side-logo { display: none; }
body.sp .nav { position: static; flex: 1; width: auto; height: 60px; justify-content: center; }
body.sp .nav img { width: 26px; height: 26px; margin-top: 0; }
body.sp .nav span { margin-top: 3px; font-size: 10px; letter-spacing: .02em; white-space: nowrap; }
body.sp .main { left: 0; width: 100%; height: calc(100% - 60px - env(safe-area-inset-bottom)); }
body.sp .topbar { width: 100%; height: 56px; padding: 15px 16px 0; display: flex; align-items: baseline; white-space: nowrap; }
body.sp .top-jp { font-size: 20px; letter-spacing: .06em; }
body.sp .top-en { margin-left: 8px; font-size: 10px; letter-spacing: .14em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
body.sp .top-note { font-size: 10px; margin-left: auto; padding-left: 8px; flex-shrink: 0; }
body.sp .panes { top: 56px; width: 100%; height: calc(100% - 56px); }
body.sp .chips { height: 58px; padding: 11px 16px 0; overflow-x: auto; scrollbar-width: none; }
body.sp .chips::-webkit-scrollbar { display: none; }
body.sp .chip { height: 36px; padding: 0 16px; font-size: 14px; white-space: nowrap; flex: none; }
body.sp .has-chips > .scroll { top: 58px; }
body.sp .no-chips > .scroll { padding-top: 12px; }
body.sp .scroll-inner { padding: 6px 16px 56px; }

body.sp .cols2, body.sp .grid2, body.sp .info { grid-template-columns: 1fr; column-gap: 0; }
body.sp .cols2 > div + div > .h2:first-child, body.sp .grid2 > .box + .box { margin-top: 26px; }
body.sp .h2 { font-size: 18px; margin: 24px 0 6px; }
body.sp .row { font-size: 15px; min-height: 42px; }
body.sp .num { font-size: 19px; }
body.sp .note { font-size: 12px; }
body.sp .info { gap: 16px; }
body.sp .info p { font-size: 14px; }

body.sp .cast-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
body.sp .cast-card { width: auto; }
body.sp .cast-photo { width: 100%; height: auto; aspect-ratio: 2 / 3; }
body.sp .cast-name { font-size: 16px; margin-top: 8px; }
body.sp .detail { grid-template-columns: 1fr; row-gap: 20px; }
body.sp .detail-main { width: 100%; height: auto; aspect-ratio: 2 / 3; }
body.sp .thumbs button { width: 52px; height: 70px; }
body.sp .d-name { font-size: 30px; }
body.sp .spec div, body.sp .qa dd, body.sp .msg p { font-size: 15px; }
