/* 店舗トップ専用。予約バー・ヘッダー画像・キャスト詳細の共有スタイルは維持する。 */
.shop-top-body { background: #f4f4f4; }
.shop-top {
  --space-section: 40px;
  --space-card: 16px;
  --space-inner: 20px;
  --text-heading: 20px;
  --text-body: 14px;
  --text-note: 12px;
  width: min(100%, 480px); background: #fff; box-shadow: none;
  color: var(--ink); font-size: var(--text-body);
}
.shop-hero { position: relative; display: grid; isolation: isolate; }
.shop-hero > .hdimg { grid-area: 1 / 1; min-width: 0; }
.shop-hero .shop-summary { position: relative; grid-area: 1 / 1; align-self: end; z-index: 2; min-width: 0; padding: 12px 16px; color: #fff; text-align: left; }
.shop-hero .shop-summary::before { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: calc(100% + 12px); min-height: 96px; background: linear-gradient(to bottom, rgba(20,10,20,0), rgba(20,10,20,.72)); pointer-events: none; }
.shop-hero .shop-summary h1 { margin: 0; color: #fff; font-size: 26px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.shop-hero .shop-summary-meta { margin: 4px 0 0; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.shop-hero .shop-summary-hours { overflow-wrap: anywhere; }
.shop-hero .shop-summary-areas { margin: 3px 0 0; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.shop-tabs { position: sticky; top: 0; z-index: 21; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--theme); border-block: 1px solid var(--theme); }
.shop-tabs [role="tab"] { position: relative; min-width: 0; min-height: 56px; padding: 12px 4px; border: 0; background: none; color: rgba(255,255,255,.88); font: inherit; font-weight: 600; cursor: pointer; }
.shop-tabs [role="tab"][aria-selected="true"] { color: #fff; font-weight: 800; }
.shop-tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; right: 16px; bottom: -1px; left: 16px; height: 3px; border-radius: 3px 3px 0 0; background: #fff; }
.shop-content { padding: var(--space-section) var(--space-inner) var(--space-inner); }
.shop-panel { min-width: 0; scroll-margin-top: 72px; }
.shop-section { min-width: 0; margin: 0 0 var(--space-section); padding: 0; }
.shop-section-heading { display: flex; justify-content: space-between; align-items: end; gap: var(--space-card); margin-bottom: var(--space-inner); }
.shop-section-heading h2 { min-width: 0; margin: 0; font-size: var(--text-heading); font-weight: 700; line-height: 1.5; letter-spacing: .02em; }
.shop-section-heading h2 small { display: block; margin-bottom: 4px; color: var(--mist); font-size: var(--text-note); font-weight: 600; letter-spacing: .14em; }
.shop-heading-meta { flex: none; display: flex; flex-direction: column; text-align: right; font-size: var(--text-note); line-height: 1.7; font-variant-numeric: tabular-nums; }
.shop-heading-meta > span { color: var(--theme-deep); font-weight: 700; }
.shop-heading-meta small, .shop-heading-note { color: var(--mist); font-size: var(--text-note); }
.shop-heading-note { flex: none; }
.shop-rail { display: flex; gap: 14px; margin: 0 calc(-1 * var(--space-inner)); padding: 0 var(--space-inner) var(--space-card); overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-inner); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
.shop-rail > li { flex: 0 0 43%; min-width: 0; scroll-snap-align: start; }
/* Restore the pre-redesign card dimensions (51e38780 / production 88175cb7). */
.shop-top .grid { gap: 22px 14px; }
.shop-top .grid > li { min-width: 0; }
.shop-top .girl .ph { aspect-ratio: 3 / 4; border-radius: 10px; background: #eee; }
.shop-top .girl .ph img { aspect-ratio: 3 / 4; }
.shop-top .girl .tm { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.72) 45%, rgba(0,0,0,.82)); color: #fff; font-size: 12px; }
.shop-top .girl .shift-time, .shop-top .girl .tm.now .shift-time { padding: 0; border-radius: 0; background: none; color: #fff; font-size: 12px; font-weight: 700; }
.shop-top .girl .room { padding: 2px 6px; border: 1px solid #fff; border-radius: 5px; background: var(--theme); color: var(--theme-text); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-top .girl .nm { margin-top: 8px; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cast-age { font-size: 12px; font-weight: 400; white-space: nowrap; }
.shop-top .girl .tags { position: absolute; top: 6px; right: 6px; left: 6px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0; }
.shop-top .girl .tag { padding: 2px 5px; font-size: 11px; background: rgba(0,0,0,.8); color: #fff; }
.shop-top .cast-attendance-badge { font-size: 10px; line-height: 17px; }
.shop-top .girl .cast-ended-status { position: absolute; inset: auto 0 0; margin: 0; padding: 32px 10px 8px; background: linear-gradient(transparent,rgba(0,0,0,.82)); color: #fff; }
.shop-top .girl .cast-next-shift { color: #fff; }
/* 部屋・「次回〜」がないカードも、その段の高さを取る（中身は見せない）。時間・「本日の受付終了」の位置を有無で動かさない（2026-11-05） */
.shop-top .girl :is(.room, .cast-next-shift).is-empty { visibility: hidden; }
.shop-top .cast-unscheduled { font-size: 11px; white-space: normal; }
.shop-top .divider h2 { padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; }
.shop-top .empty { margin: 0; padding: var(--space-inner); border: 1px solid var(--line); border-radius: 8px; background: #fafafa; color: var(--mist); font-size: var(--text-body); text-align: left; }
.shop-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--theme-deep); font-size: var(--text-body); text-underline-offset: 4px; }
/* 出勤タブの日付タブ（営業日から7日分）。「本日M/D(曜)」が1行で収まる同じ幅で横スライド。 */
.shop-top .days { margin: 0 calc(-1 * var(--space-inner)) var(--space-inner); padding: 0 var(--space-inner) 4px; }
.shop-top .day { box-sizing: border-box; flex: 0 0 112px; width: 112px; min-width: 112px; height: 52px; padding: 0 10px; border-radius: 10px; }
.shop-top .day .w { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.shop-top .day .n { font-size: 11px; font-weight: 700; color: var(--ink); }
.shop-top .day.sun .w { color: #b93062; }
.shop-top .day.sat .w { color: #3567b8; }
.shop-top .day[aria-selected="true"] .w, .shop-top .day[aria-selected="true"] .n { color: var(--theme-text); }
/* 今日のタブだけ：日付タブのすぐ下に更新時刻（明日以降のパネルには無い）。 */
.shop-top .shop-sync { margin: -8px 0 14px; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; }
/* 今日：受付中の下に、線で区切って「本日の受付終了　○名」と全員。 */
.shop-ended { margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--line); }
.shop-ended-heading { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.shop-top .girl .tm.next { z-index: 2; }
/* 在籍：名前で探す・全員／新人 */
.shop-roster-banner { margin: 0 0 var(--space-section); }
.roster-tools { display: flex; gap: 8px; align-items: center; margin: 0 0 var(--space-inner); }
.roster-search { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.roster-filter { display: inline-flex; flex: none; border: 1px solid var(--theme); border-radius: 10px; overflow: hidden; }
.roster-filter button { min-height: 46px; padding: 0 14px; border: 0; background: #fff; color: var(--theme-deep); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.roster-filter button[aria-pressed="true"] { background: var(--theme); color: var(--theme-text); }
.shop-top [data-shop-panel="cast"] .grid > li[hidden] { display: none; }
.shop-top [data-roster-empty] { margin-top: var(--space-inner); color: var(--ink); font-weight: 700; }
.shop-top .all { margin: 0 0 var(--space-section); padding: 12px; border: 1px solid var(--line); background: #fff; font-size: var(--text-body); }
.shop-top .rows li, .shop-top .place p { font-size: var(--text-body); }
.shop-top .rows li { gap: var(--space-card); }
.shop-top .rows b { flex: none; }
.shop-top .sub h3, .shop-top .note { font-size: var(--text-note); }
.shop-top .place b { font-size: var(--text-body); }
.shop-copy { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.shop-top .notice-wrap { margin: 0 0 var(--space-section); }
.shop-top .notice { margin: 0; padding-right: 44px; background: #fafafa; }
.shop-top .notice-x { top: 0; right: 0; width: 44px; }
.shop-top .mail { margin: 0 0 var(--space-inner); padding: 0; font-size: var(--text-note); }
.shop-top .mail a { display: inline-flex; align-items: center; min-height: 44px; }
.shop-footer { padding-top: var(--space-inner); border-top: 1px solid var(--line); }
.shop-top .ft { margin: 0; font-size: var(--text-note); }
.shop-top .girl .shift-dot, .shop-top .girl .tm.now .shift-dot { width: 8px; height: 8px; color: #6fe08d; flex: none; }
/* Depth prototype: only the two-column attendance/roster lists, never the pickup rail. */
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid {
  position: relative; isolation: isolate;
}
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--space-inner)); z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--theme-tint) 30%, white) 0%, color-mix(in srgb, var(--theme-tint) 65%, white) 100%);
  pointer-events: none;
}
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid .girl .ph {
  box-shadow: 0 1px 1px rgba(60,30,50,0.12), 0 6px 12px -2px rgba(60,30,50,0.27), 0 18px 30px -10px rgba(60,30,50,0.45);
}
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid .girl .ph::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(0,0,0,0.2);
  pointer-events: none;
}
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid .girl :is(.nm, .shift-time, .room) { white-space: nowrap; }
/* Keep the existing overlay geometry and room label; shade the photo beneath it. */
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid .girl .ph:has(> .tm)::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: linear-gradient(to top, rgba(20,12,18,0.82) 0%, rgba(20,12,18,0.45) 26%, rgba(20,12,18,0) 50%);
  pointer-events: none;
}
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid .girl .tm { z-index: 2; background: none; }
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid .girl .tags { z-index: 2; }
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid .girl .shift-time { text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
.shop-top :is([data-shop-today], [data-shop-panel="cast"]) .grid .girl .tm.now .shift-dot {
  border-radius: 50%; box-shadow: 0 0 0 3px rgba(91,210,122,0.28), 0 0 8px rgba(91,210,122,0.8);
}
/* 新人バッジは店のページの全カードで同じ金（おすすめ3名・出勤・受付終了・在籍。2026-11-05）。キャストのページは online-cast.css に同じ値。 */
.shop-top .girl [data-attendance-badge="new"] {
  background: linear-gradient(135deg, #F6E7B0 0%, #C9A24A 45%, #8C6A22 55%, #E9D08A 100%);
  color: #3B2A08; font-weight: 900; letter-spacing: 0.12em; border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.3);
}
/* Shop top only: one full-width phone action, with the existing shop theme. */
.shop-top .shop-phone-bar {
  grid-template-columns: minmax(0, 1fr); background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(60,30,50,0.08); box-shadow: 0 -6px 18px rgba(60,30,50,0.08);
}
.shop-top .shop-phone-bar .call {
  width: 100%; height: 56px; border-radius: 28px;
  background: linear-gradient(180deg, var(--theme) 0%, color-mix(in srgb, var(--theme) 92%, black) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.15), 0 6px 14px -4px color-mix(in srgb, var(--theme) 55%, transparent);
}
.shop-top .shop-phone-bar.shop-phone-demo .call { font-size: clamp(10px, 3vw, 12px); gap: 4px; line-height: 1.4; white-space: nowrap; }
.shop-top .shop-phone-bar.shop-phone-demo .call .i { width: 16px; height: 16px; }
/* The photo overlay stays bottom-left on desktop; existing card widths and tabs are unchanged. */
@media (min-width: 760px) {
  .shop-top { --space-section: 48px; --space-card: 24px; }
  .shop-tabs [role="tab"] { min-height: 60px; }
  .shop-top .sub { max-width: 720px; }
}
@media (prefers-reduced-motion: reduce) { .shop-top *, .shop-rail { scroll-behavior: auto !important; transition: none !important; } }

/* Scenario mail landing: the LP question sheet in this shop's theme, above the phone bar. */
.shop-top-body .lp-profile-sheet { --profile-accent: var(--theme) !important; bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
