/* 推しPASSオンラインの店舗ページ v3。色は推しPASSのピンク（店ごとに --theme の組を差し替えられる）。
   横長のヘッダー画像（2:1）→ 出勤予定の帯と7日分の日付タブ → 写真の一覧。状態チップは名前の下、出勤札は写真の左上に1つ。 */
:root {
  --ink: #21161b; --paper: #f8f6f5; --mist: #6b6066; --line: #e9e2e5;
  --hand: "Zen Kurenaido", "Hiragino Mincho ProN", serif;
  --sans: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --col: 480px;
  --theme: #b65588; --theme-text: #ffffff; --theme-tint: #fef2f8; --theme-soft: #a84f7d; --theme-deep: #a84f7d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--theme-tint) center / cover no-repeat; filter: blur(40px) saturate(.8) brightness(.55); transform: scale(1.2); }
.page { position: relative; width: min(100%, var(--col)); margin: 0 auto; min-height: 100vh; background: var(--paper); padding-bottom: calc(80px + env(safe-area-inset-bottom)); box-shadow: 0 0 80px rgba(0,0,0,.35); }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s20 { width: 20px; height: 20px; }
:focus-visible { outline: 2px solid var(--theme-deep); outline-offset: 2px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; container-type: inline-size; }
.portal { display: flex; align-items: center; height: 44px; padding: 0 12px; background: #fcebf3; border-bottom: 1px solid #fff; }
.portal-brand { position: relative; display: block; width: 96px; height: 44px; overflow: hidden; flex: none; }
.portal-brand img { position: absolute; top: 50%; left: 0; width: 90px; height: 60px; transform: translateY(-50%); object-fit: contain; }
.portal [data-slot="member-menu"] { margin-left: auto; min-height: 44px; }
.hd { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 20px;
  background: var(--paper); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hd .shop { flex: 1; min-width: 0; max-height: 40px; font-size: clamp(12px, calc((100cqw - 76px) / var(--shop-units, 1)), 16px); font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hd h1.shop { margin: 0; }
.hd h1.shop a { color: inherit; text-decoration: none; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 12px; }

/* 横長のヘッダー（2:1）。焼き込んだ画像・店舗版の画像、または背景に店名を文字で重ねたもの */
.hdimg { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--theme-tint); container-type: inline-size; }
.hdimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 店舗版だけ元の比率。旧画像は実寸が判明するまでは height:auto。 */
.hdimg.custom { aspect-ratio: auto; }
.hdimg.custom .hdframe { width: 100%; max-width: var(--header-max, 100%); margin-inline: auto; aspect-ratio: var(--header-ratio, auto); container-type: inline-size; }
.hdimg.custom img { height: auto; aspect-ratio: var(--header-ratio, auto); min-height: 25cqw; max-height: 100cqw; object-position: center; }
@media (max-width: 430px) { .hdimg.custom .hdframe { max-width: none; } }
.hdimg .hdtext { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 12%; text-align: center; color: var(--hd-title); }
.hdimg .hdtext::before { content: ""; position: absolute; inset: 22% 18%; z-index: -1; border-radius: 999px; background: var(--hd-glow); opacity: .55; filter: blur(22px); }
.hdimg.composed .hdtext { z-index: 1; isolation: isolate; }
.hdimg.serif .hdtext { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif; }
.hdimg .hdtext small { max-width: 100%; font-size: 10px; letter-spacing: .4em; color: var(--hd-accent); overflow-wrap: anywhere; }
.hdimg .hdtext b { max-width: 100%; font-size: clamp(14px, calc(76cqw / var(--title-units, 1)), 30px); font-weight: 600; letter-spacing: .06em; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hdimg .hdtext i { display: block; width: 44px; height: 1px; margin-top: 6px; background: var(--hd-accent); }

/* 一覧 */
.list { padding: 20px 20px 8px; }
.band { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 10px 16px; border-radius: 10px; border: 2px solid #fff;
  background: var(--theme); color: var(--theme-text); box-shadow: 0 0 0 1px var(--theme-soft), 0 4px 12px color-mix(in srgb, var(--theme) 25%, transparent); }
.band b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; letter-spacing: .04em; }
.band span { font-size: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; margin: 0; padding: 0; list-style: none; }
.girl { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.girl .ph { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: #eee; }
.girl .ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .4s ease; }
.cast-attendance-badge { position:absolute; top:6px; left:6px; z-index:2; font-size:10px; font-weight:800; line-height:17px; padding:0 5px; border:1px solid #fff; border-radius:4px; background:var(--theme); color:var(--theme-text); }
.girl:active .ph img { transform: scale(.985); }
.girl .tm { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-rows: 16px 22px; align-items: start; justify-items: start; gap: 3px; padding: 26px 10px 8px; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0; font-variant-numeric: tabular-nums;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.55)); }
.girl .tm.now { background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.55)); }
.girl .shift-time { display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px; font-size: 11px; line-height: 16px; white-space: nowrap; }
.shift-dot { display: block; flex: none; width: 7px; height: 7px; }
.girl .tm.now .shift-dot { color: currentColor; }
.girl .tm .room { grid-row: 2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.girl .nm { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; }
.cast-unscheduled { display: block; margin-top: 4px; color: var(--mist); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.divider { grid-column: 1 / -1; margin: 6px 0 -6px; font-size: 12px; color: var(--mist); }
.divider h2 { margin: 0; font-size: 13px; font-weight: 600; }
.cast-ended-status { display: block; margin-top: 6px; line-height: 1.5; }
.cast-ended-badge { display: inline-block; padding: 2px 7px; border: 1px solid #fff; border-radius: 5px; background: var(--theme-tint); color: var(--theme-deep); font-size: 11px; font-weight: 600; }
.cast-next-shift { display: block; margin-top: 4px; color: var(--mist); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* 前回ご案内した女性（来店した人だけ） */
.notice-wrap { position: relative; padding: 16px 20px 0; }
.notice { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 40px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.notice img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.notice .t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; }
.notice .t small { display: block; font-size: 11px; color: var(--mist); }
.notice .t b { font-weight: 700; }
.notice-x { position: absolute; top: 17px; right: 21px; bottom: 1px; display: grid; place-items: center; width: 40px; border: 0; background: none; color: var(--mist); cursor: pointer; }
.notice-x .i { width: 16px; height: 16px; }

/* 日付タブ（今日から7日分。横にスクロール） */
.days { display: flex; gap: 6px; margin: -4px -20px 16px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 66px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.day .w { font-size: 10px; color: var(--mist); line-height: 1.2; }
.day .d { font-size: 19px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.day .n { font-size: 10px; color: var(--mist); line-height: 1.2; }
.day.sun .w { color: #b93062; }
.day.sat .w { color: #3567b8; }
.day[aria-selected="true"] { background: var(--theme); border-color: var(--theme); color: var(--theme-text); box-shadow: 0 3px 10px color-mix(in srgb, var(--theme) 30%, transparent); }
.day[aria-selected="true"] .w, .day[aria-selected="true"] .n { color: var(--theme-text); }

/* 名前の下のチップ（文字だけ） */
.ci { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid #fff; border-radius: 6px; background: var(--theme); color: var(--theme-text); font-size: 11px; font-weight: 600; text-shadow: none; }
.tag.hot { background: var(--theme); }

/* 新人バナー（新人が2人以上のときだけ。2人固定。背景はヘッダーと同じ） */
.grid li.wide { grid-column: 1 / -1; }
.nf { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; aspect-ratio: 16 / 9; max-height: 220px; width: 100%; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--theme-tint) center / cover no-repeat; isolation: isolate; }
.nf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--veil, rgba(255,250,246,.78)); }
.nf .lead { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.nf .en { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; font-size: 10px; letter-spacing: .32em; color: var(--theme-deep); }
.nf .jp { margin-top: 2px; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; font-weight: 600; font-size: clamp(20px, 6vw, 24px); letter-spacing: .06em; color: var(--theme-deep); line-height: 1.25; }
.nf .nsub { margin-top: 6px; font-size: 11px; color: var(--mist); }
.nf.dark { color: var(--ink); }
.nf.dark .en { color: var(--theme-deep); }
.nf.dark .jp { color: var(--theme-deep); }
.nf.dark .nsub { color: var(--mist); }
/* The caption grows from 1.7 to 4.2 lines; offset its extra half-height so photos stay in place. */
.nf .faces { display: flex; flex: none; gap: 8px; font-size: 11px; transform: translateY(1.25em); }
.nf .face { width: clamp(54px, 18vw, 72px); text-align: center; }
.nf .face img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%; border-radius: 8px; border: 2px solid #fff; background: #fff; box-shadow: 0 2px 8px rgba(80,30,50,.15); }
.nf .face b { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; }
.nf .face .cast-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; height: 2.8em; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; overflow: hidden; word-break: auto-phrase; text-wrap: pretty; }
.nf .face .cast-age { display: block; height: 1.4em; line-height: 1.4; font-size: inherit; font-weight: inherit; }
.empty { margin: 8px 0; padding: 18px; border-radius: 10px; background: var(--theme-tint); color: var(--theme-deep); font-size: 14px; }
.all { display: flex; align-items: center; justify-content: center; height: 50px; margin: 26px 0 0; border: 2px solid #fff; border-radius: 999px;
  background: var(--theme-tint); color: var(--theme-deep); font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 0 0 1.5px var(--theme-soft); }

/* メールの入口（目立たせない） */
.mail { margin: 34px 20px 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--mist); }
.mail a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; margin-left: 4px; }
.ft { margin: 28px 20px 0; font-size: 11px; color: var(--mist); }

/* 下部バー */
.bar { position: fixed; left: 50%; bottom: 0; z-index: 20; width: min(100%, var(--col)); transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr 1.7fr; align-items: center; gap: 4px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.bar.no-call { grid-template-columns: 1fr 1fr; }
.bar-contact { display: contents; }
.bar [data-slot="booking"]:empty { display: none; }
.bar.demo-booking:not(.single) { grid-template-columns: 48px 40px minmax(0, 1fr); gap: 6px; }
.bar.demo-booking:not(.single) > a { font-size: 10px; white-space: nowrap; }
.bar.demo-booking .bar-contact { display: grid; min-width: 0; grid-template-columns: 1fr; gap: 8px; }
.bar.demo-booking.has-phone .bar-contact { grid-template-columns: 1fr 1fr; }
.bar.single.demo-booking.has-phone .bar-contact { grid-template-columns: 3fr 2fr; }
.bar.demo-booking .call { font-size: clamp(10px, 3vw, 12px); gap: 4px; text-align: center; line-height: 1.4; white-space: nowrap; }
.bar.demo-booking:not(.single) .call .i { width: 16px; height: 16px; }
.bar .booking-soon { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; min-height: 52px; border: 1px solid #fff; border-radius: 999px; background: var(--theme-tint); color: var(--theme-deep); font: inherit; font-size: clamp(11px, 3.3vw, 13px); line-height: 1.4; white-space: nowrap; }
.bar .booking-soon small { font-size: 10px; }
.bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--mist); text-decoration: none; min-height: 44px; justify-content: center; }
.bar a.on { color: var(--theme-deep); font-weight: 700; }
.bar .call, .sheet-call { flex-direction: row; justify-content: center; gap: 8px; height: 52px; border-radius: 999px; border: 2px solid #fff; color: var(--theme-text); font-size: 15px; font-weight: 800; text-decoration: none;
  background: var(--theme);
  box-shadow: 0 0 0 1.5px var(--theme-soft), 0 6px 16px color-mix(in srgb, var(--theme) 30%, transparent); text-shadow: none; }

/* メニュー */
.menu { position: fixed; inset: 0; z-index: 40; background: rgba(20,12,16,.5); }
.menu nav { position: absolute; top: 0; right: max(0px, calc((100vw - var(--col)) / 2)); bottom: 0; width: min(84%, 360px); padding: 8px 8px 24px 28px; background: var(--paper); display: flex; flex-direction: column; overflow: auto; }
.menu .top { display: flex; justify-content: flex-end; height: 56px; align-items: center; }
.menu a { display: block; padding: 14px 0; font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu a small { display: block; font-size: 12px; font-weight: 400; color: var(--mist); }
.menu .lang { margin-top: auto; font-size: 13px; color: var(--mist); }

/* 料金・アクセス */
.sub { padding: 24px 20px; }
.sub h2 { margin: 0 0 18px; font-size: 24px; }
.sub h3 { margin: 22px 0 6px; font-size: 13px; font-weight: 700; color: var(--mist); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.rows b { font-variant-numeric: tabular-nums; }
.note { margin: 14px 0 0; font-size: 12px; color: var(--mist); }
.place { padding: 4px 0 14px; }
.place b { display: block; font-size: 17px; }
.place p { margin: 2px 0 8px; font-size: 14px; color: var(--mist); }
.place a { color: var(--theme-deep); font-weight: 700; font-size: 14px; }

/* 女の子を押したときの大きい写真 */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; padding: 16px; background: rgba(20,12,16,.55); }
.sheet-box { width: min(100%, 420px); max-height: 92vh; overflow: auto; padding: 16px; border-radius: 24px; background: #fff; }
.sheet-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%; border-radius: 18px; }
.sheet-name { margin: 12px 0 0; font-size: 22px; font-weight: 800; }
.sheet-time { margin: 2px 0 12px; color: var(--mist); }
.sheet-time:has(.room) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.room { display: inline-flex; align-items: center; flex: none; padding: 2px 6px; border: 1px solid #fff; border-radius: 5px; background: var(--theme); color: var(--theme-text); font-size: 10px; font-weight: 500; line-height: 1.4; text-shadow: none; white-space: nowrap; }
.tm .shift-time { white-space: nowrap; }
.sheet-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.sheet-photos .sheet-photo { min-width: 0; height: auto; }
.sheet-call { display: flex; align-items: center; }
.bar .cast-call, .sheet-call.cast-call { container-type: inline-size; padding: 0 10px; text-shadow: none; }
.cast-call .i { flex: none; }
.cast-call-label { display: flex; flex-direction: column; align-items: center; min-width: 0; line-height: 1.3; }
.cast-call-name { font-size: clamp(10px, calc((100cqw - 40px) / var(--call-name-units, 12)), 13px); white-space: nowrap; }
.cast-call-action { font-size: 16px; font-weight: 800; white-space: nowrap; }
.sheet-more { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--theme-deep); font-size: 14px; font-weight: 700; text-decoration: none; }
.sheet-close { display: block; width: 100%; min-height: 46px; margin-top: 8px; border: 0; background: none; color: var(--mist); font: inherit; cursor: pointer; }

/* キャストページ */
.bar.single { grid-template-columns: 1fr; }
.cp { padding: 20px 20px 8px; }
.cp-photo { overflow: hidden; border-radius: 14px; background: #eee; }
.cp-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%; }
.cp-name { margin: 14px 0 0; font-size: 26px; font-weight: 800; line-height: 1.3; }
.cp .tags { margin-top: 6px; }
.cp .tag { font-size: 12px; }
.cp-shifts { margin-top: 26px; }
.cp-shifts h2 { margin: 0 0 8px; font-size: 18px; }
.cp-rows { margin: 0; padding: 0; list-style: none; }
.cp-rows li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cp-rows .d { min-width: 7em; color: var(--mist); font-size: 14px; }
.cp-rows b { font-variant-numeric: tabular-nums; }
.cp-rows small { color: var(--mist); font-size: 12px; }
.cp-rows li.ended b { color: var(--mist); font-weight: 400; }
.cp .all { margin-top: 28px; }
@media (min-width: 760px) { .sheet { place-items: center; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Theme text uses opaque surfaces, including labels over photos. Logo/header artwork keep their own colors. */
.girl .shift-time { padding-inline: 3px; border-radius: 3px; background: #21161b; color: #fff; }
.girl .tm.now .shift-time { background: var(--theme); color: var(--theme-text); }
.nf .lead, .nf .face b { background: var(--theme-tint); color: var(--ink); border-radius: 4px; }

/* Enlarged cast card: keep the requested photo overlay and name/age below it. */
.sheet-media, .shop-sheet-media { position: relative; overflow: hidden; border-radius: 18px; }
.sheet-media .sheet-time, .shop-sheet-media .shop-sheet-time { position: absolute; inset: auto 0 0; margin: 0; padding: 32px 12px 10px; background: linear-gradient(transparent,rgba(0,0,0,.72) 45%,rgba(0,0,0,.82)); color: #fff; font-size: 12px; }
.sheet-media .room, .shop-sheet-media .room { background: var(--theme); color: var(--theme-text); }
.sheet-shift-time { display: inline-flex; align-items: center; gap: 6px; }
.sheet-shift-time .shift-dot { width: 8px; height: 8px; color: #6fe08d; flex: none; }
.sheet-name .cast-age, .shop-sheet-name .cast-age { font-size: 14px; font-weight: 400; }

.sheet-media .cast-ended-status, .shop-sheet-media .cast-ended-status { position: absolute; inset: auto 0 0; margin: 0; padding: 32px 12px 10px; background: linear-gradient(transparent,rgba(0,0,0,.82)); color: #fff; }
.sheet-media .cast-next-shift, .shop-sheet-media .cast-next-shift { color: #fff; }
