/* ミセカンで足したページ（キャスト一覧・プロフィール・出勤表）と、トップ・店舗ページの出勤の帯の見出し・入口。
   tokyo-escort.com の repo には無いファイル（写し直しで消えない）。色は今のサイトの --main-color。
   ヘッダーは画面の上に固定（m.css の #header は sticky）なので、固定する見出しはその下（--te-header は cast.js が測る）。 */
:root{
	--te-header:58px;
	--te-line:#e3e3e3;
}

.te-title{
	font-size:1.4rem;
	font-weight:bold;
	line-height:1.4;
	margin:18px 0 10px;
}

.te-title span{
	font-size:0.95rem;
	font-weight:500;
	margin-left:8px;
	color:#555;
}

.te-empty{
	padding:24px 0;
	color:#666;
	text-align:center;
}

.te-btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:6px;
	min-height:44px;
	padding:8px 18px;
	border-radius:22px;
	background:var(--main-color);
	color:#fff;
	font-weight:bold;
	text-decoration:none;
}

.te-btn span{
	font-weight:500;
	font-size:0.85rem;
	opacity:0.9;
}

.te-btn-sub{
	background:#fff;
	color:var(--main-color);
	border:1px solid var(--main-color);
}

/* 店舗ページ: キャスト一覧・出勤表への入口。スクロールしてもヘッダーの下に残す（ユーザー 2026-11-26「在籍と出勤のボタンは固定化してほしい」） */
.te-store-links{
	position:sticky;
	top:var(--te-header);
	z-index:3;
	display:flex;
	flex-wrap:wrap;
	gap:10px;
	margin:12px 0 4px;
	padding:8px 0;
	background:#fff;
}

/* 文字はグレーの地に直に置かず、白い箱に入れる（ユーザー 2026-11-26「背景がグレーのところに直接文字を書かないで」） */
.te-panel{
	margin-top:20px;
	background:#fff;
	border-radius:8px;
	padding:14px 16px;
}

/* トップ: 本日の出勤の帯の見出し */
.te-band-head{
	display:flex;
	align-items:baseline;
	justify-content:space-between;
	margin-bottom:8px;
}

.te-band-head h2{
	font-size:1.15rem;
	font-weight:bold;
}

.te-band-head a{
	color:var(--main-color);
	font-weight:bold;
}

.te-band-head a::after{
	content:" \203A";
}

/* キャスト一覧: 店の名前と人数の行は、ヘッダーの下に固定 */
.te-sticky-head{
	position:sticky;
	top:var(--te-header);
	z-index:2;
	display:flex;
	flex-wrap:wrap;
	align-items:baseline;
	gap:4px 12px;
	background:#fff;
	/* 下に潜ったカードの影（.te-cast-card a の box-shadow、約 4px）が左右の端からはみ出して見えないよう、本文の幅より 8px ずつ
	   広げる（ユーザー 2026-11-26「固定ヘッダーの左右の影が気になる」。本文の左右には 10px の余白がある） */
	margin:0 -8px;
	padding:8px 20px;
	border-bottom:1px solid var(--te-line);
}

.te-sticky-head .te-title{
	margin:0;
	font-size:1.2rem;
}

.te-count{
	font-weight:bold;
	color:var(--main-color);
}

.te-head-links{
	margin-left:auto;
	display:flex;
	gap:14px;
}

.te-head-links a{
	color:var(--main-color);
	font-weight:bold;
}

/* キャストのカード */
.te-cast-grid{
	display:grid;
	grid-template-columns:repeat(3, 1fr);
	gap:14px;
	margin:14px 0 24px;
}

@media (max-width:600px){
	.te-cast-grid{
		grid-template-columns:repeat(2, 1fr);
		gap:10px;
	}
}

.te-cast-card a{
	display:block;
	background:#fff;
	border-radius:8px;
	overflow:hidden;
	box-shadow:0 1px 4px rgba(0, 0, 0, 0.12);
	color:inherit;
	text-decoration:none;
	height:100%;
}

.te-cast-photo{
	position:relative;
	aspect-ratio:3 / 4;
	background:#e9e9e9;
}

.te-cast-photo img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}

.te-badge{
	position:absolute;
	left:6px;
	top:6px;
	background:var(--main-color);
	color:#fff;
	font-size:0.75rem;
	font-weight:bold;
	padding:2px 8px;
	border-radius:10px;
}

.te-cast-body{
	padding:8px 10px 10px;
}

.te-cast-name strong{
	font-weight:bold;
}

.te-cast-name span,
.te-cast-size{
	font-size:0.85rem;
	color:#555;
}

.te-cast-time{
	margin-top:4px;
	font-weight:bold;
	color:var(--main-color);
}

/* プロフィール */
.te-profile{
	padding-top:14px;
}

.te-profile-top{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:20px;
}

@media (max-width:600px){
	.te-profile-top{
		grid-template-columns:1fr;
	}
}

.te-profile-main{
	aspect-ratio:3 / 4;
	background:#e9e9e9;
	border-radius:8px;
	overflow:hidden;
}

.te-profile-main img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}

.te-profile-thumbs{
	display:grid;
	grid-template-columns:repeat(5, 1fr);
	gap:6px;
	margin-top:8px;
}

.te-thumb{
	padding:0;
	border:2px solid transparent;
	border-radius:4px;
	overflow:hidden;
	aspect-ratio:3 / 4;
	background:#e9e9e9;
	cursor:pointer;
}

.te-thumb.is-active{
	border-color:var(--main-color);
}

.te-thumb img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}

.te-profile-name{
	font-size:1.6rem;
	font-weight:bold;
	line-height:1.3;
}

.te-profile-name span{
	font-size:1rem;
	font-weight:500;
	margin-left:10px;
	color:#555;
}

.te-profile-store a{
	color:var(--main-color);
	font-weight:bold;
}

.te-profile-size{
	margin-top:6px;
	font-size:1.05rem;
}

.te-profile-fields{
	margin-top:12px;
	border-top:1px solid var(--te-line);
}

.te-profile-fields div{
	display:flex;
	gap:10px;
	padding:6px 0;
	border-bottom:1px solid var(--te-line);
}

.te-profile-fields dt{
	flex:0 0 7em;
	color:#666;
}

.te-profile-info{
	align-self:start;
	background:#fff;
	border-radius:8px;
	padding:14px 16px;
}

.te-profile-schedule{
	margin-top:16px;
}

.te-profile-schedule h2,
.te-profile-text h2{
	font-size:1.05rem;
	font-weight:bold;
	border-left:4px solid var(--main-color);
	padding-left:8px;
	margin-bottom:8px;
}

.te-profile-schedule ul{
	border-top:1px solid var(--te-line);
}

.te-profile-schedule li{
	display:flex;
	justify-content:space-between;
	padding:6px 2px;
	border-bottom:1px solid var(--te-line);
}

.te-profile-schedule li.is-today{
	font-weight:bold;
	color:var(--main-color);
}

.te-profile-text{
	margin-top:20px;
	background:#fff;
	border-radius:8px;
	padding:14px 16px;
}

.te-profile-links{
	display:flex;
	flex-wrap:wrap;
	gap:10px;
	margin:20px 0;
}

/* プロフィールの下の固定の枠の名前（スマホだけ。PC は枠を固定しないので出さない） */
.te-bar-name{
	display:none;
}

@media (max-width:768px){
	.te-profile-bar .te-bar-name{
		display:flex;
		align-items:baseline;
		gap:8px;
		width:100%;
		order:0;
		padding:2px 4px 4px;
		font-size:0.95rem;
	}

	.te-bar-name span{
		font-size:0.8rem;
		color:#555;
	}

	/* 固定の枠に隠れないように、ページの下に枠の高さの余白 */
	.te-cast-page,
	.te-profile,
	.te-schedule{
		padding-bottom:120px;
	}
}

/* 出勤表（店ごと）: 店の名前と日付のタブは、キャスト一覧の固定の行（.te-sticky-head）の中に入れて一緒に固定 */
.te-sticky-head .te-day-tabs{
	flex:0 0 100%;
	display:flex;
	gap:6px;
	overflow-x:auto;
	padding-top:4px;
}

.te-day-tab{
	flex:0 0 auto;
	min-height:36px;
	padding:4px 12px;
	border:1px solid var(--te-line);
	border-radius:18px;
	background:#fff;
	font-weight:bold;
	cursor:pointer;
}

.te-day-tab.is-active{
	background:var(--main-color);
	border-color:var(--main-color);
	color:#fff;
}

.te-day-panel{
	display:none;
}

.te-day-panel.is-active{
	display:block;
}

.te-day-count{
	display:inline-block;
	margin-top:12px;
	padding:2px 12px;
	border-radius:14px;
	background:#fff;
	font-weight:bold;
	color:var(--main-color);
}

.te-day-panel .te-empty{
	margin-top:12px;
	border-radius:8px;
	background:#fff;
}
