/* ============================================================
   湘南辻堂院 スタッフ紹介ページ専用スタイル
   Figma: 260526スタッフ追加 (node 550-190)
   フォント: Shippori Mincho(氏名) / Marcellus(英語) / デバイスゴシック(本文)
   ============================================================ */

.ts-staff {
	--ts-staff-text: #2d2d2d;
	--ts-staff-blue: #5da4d6;
	/* AUNレビュー: 色味を減らすため緑をブランド水色 #5da4d6 に集約 */
	--ts-staff-green: #5da4d6;
	--ts-staff-muted: #8a93a0;
	--ts-staff-bg-blue: #f1f6ff;
	--ts-staff-border: #dbe4ef;
	--ts-staff-font-mincho: 'Shippori Mincho', 'Yu Mincho', '游明朝', serif;
	--ts-staff-font-en: 'Marcellus', serif;
}

/* ---------- セクション見出し（英語＋日本語・中央） ---------- */
.ts-staff-section {
	margin-bottom: 64px;
}

.ts-staff-section__head {
	text-align: center;
	margin-bottom: 40px;
}

.ts-staff-section__en {
	display: block;
	font-family: var(--ts-staff-font-en);
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 0.06em;
	color: var(--ts-staff-green);
	line-height: 1.3;
}

.ts-staff .ts-staff-section__ja {
	display: block;
	font-family: var(--ts-staff-font-mincho);
	font-size: 32px;
	font-weight: 600;
	color: var(--ts-staff-text);
	line-height: 1.6;
	margin: 0;
}

/* ---------- スタッフカード ---------- */
.ts-staff-card {
	background: #fff;
	border: 1px solid var(--ts-staff-border);
	border-radius: 8px;
	padding: 40px;
	margin-bottom: 30px;
}

.ts-staff-card:last-child {
	margin-bottom: 0;
}

.ts-staff-card__main {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.ts-staff-card__photo {
	flex: 0 0 280px;
	width: 280px;
}

.ts-staff-card__photo img {
	display: block;
	width: 280px;
	height: 360px;
	object-fit: cover;
	border-radius: 8px;
}

.ts-staff-card__body {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* 見出し部 */
.ts-staff .ts-staff-card__role {
	font-size: 18px;
	font-weight: 700;
	color: var(--ts-staff-green);
	line-height: 1.5;
}

.ts-staff .ts-staff-card__kana {
	font-family: var(--ts-staff-font-mincho);
	font-size: 13px;
	color: var(--ts-staff-muted);
	line-height: 1.5;
	margin: 4px 0 0;
}

.ts-staff-card__name {
	font-family: var(--ts-staff-font-mincho);
	font-size: 39px;
	font-weight: 600;
	color: var(--ts-staff-text);
	line-height: 1.1;
	margin: 2px 0 0;
}

/* 得意な領域 */
.ts-staff .ts-staff-card__field-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ts-staff-muted);
	line-height: 1.4;
	margin: 0 0 10px;
}

.ts-staff-card__tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.ts-staff-card__tags li {
	background: var(--ts-staff-bg-blue);
	color: var(--ts-staff-blue);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	padding: 6px 14px;
	border-radius: 100px;
}

/* 資格の箇条書き（特徴リスト） */
.ts-staff-card__quals {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ts-staff-card__quals li {
	position: relative;
	padding-left: 18px;
	font-size: 16px;
	color: var(--ts-staff-text);
	line-height: 1.7;
}

.ts-staff-card__quals li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ts-staff-green);
}

/* 挨拶文 */
.ts-staff .ts-staff-card__greeting {
	font-size: 16px;
	color: var(--ts-staff-text);
	line-height: 1.7;
	margin: 30px 0 0;
}

.ts-staff .ts-staff-card__greeting-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--ts-staff-text);
	line-height: 1.6;
	margin: 30px 0 5px;
}

.ts-staff .ts-staff-card__greeting-title + .ts-staff-card__greeting {
	margin-top: 0;
}

/* ---------- プロフィール表（トグル開閉） ---------- */
.ts-staff-card__profile {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
	margin-top: 0;
}

.ts-staff-card.is-open .ts-staff-card__profile {
	grid-template-rows: 1fr;
	margin-top: 30px;
}

.ts-staff-card__profile-inner {
	overflow: hidden;
	min-height: 0;
}

.ts-staff-table {
	margin: 0;
	border-top: 1px solid var(--ts-staff-border);
}

.ts-staff-table__row {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid var(--ts-staff-border);
}

.ts-staff-table__row dt {
	flex: 0 0 150px;
	width: 150px;
	background: var(--ts-staff-bg-blue);
	color: var(--ts-staff-green);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	padding: 13px 16px;
	margin: 0;
}

.ts-staff-table__row dd {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 13px 16px;
	font-size: 15px;
	color: var(--ts-staff-text);
	background: #fff;
	line-height: 1.667;
}

/* 略歴の年・内容 */
.ts-staff-history {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ts-staff-history__row {
	display: flex;
	gap: 14px;
}

.ts-staff-history__year {
	flex: 0 0 auto;
	min-width: 64px;
	font-weight: 700;
}

.ts-staff-history__desc {
	flex: 1 1 0;
	min-width: 0;
}

/* 表セル内の学術活動など（リッチ本文） */
.ts-staff-table__rich h6 {
	font-size: 15px;
	font-weight: 700;
	color: var(--ts-staff-green);
	margin: 14px 0 6px;
}

.ts-staff .ts-staff-table__rich p {
	margin: 0 0 6px;
}

.ts-staff .ts-staff-table__rich-lead {
	font-weight: 700;
}

/* ---------- 本文中の ul / ol（Figma node 560-300・湘南辻堂のみ） ----------
   テーマ共通の交互色ドット/番号入り色丸を、Figma準拠の
   「緑ドット(ul)・緑番号(ol)」へ上書き。cancel付きリストは対象外。 */
.main_content .ts-staff ul:not(.cancel),
.main_content .ts-staff ol:not(.cancel) {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.main_content .ts-staff ol:not(.cancel) {
	counter-reset: ts-staff-ol;
}

.main_content .ts-staff ul:not(.cancel) > li,
.main_content .ts-staff ol:not(.cancel) > li {
	position: relative;
	padding-left: 1.6em;
	margin-bottom: 4px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ts-staff-text);
}

.main_content .ts-staff ol:not(.cancel) > li {
	padding-left: 2.2em;
}

/* ul: 8px 緑ドット */
.main_content .ts-staff ul:not(.cancel) > li::before,
.main_content .ts-staff ul:not(.cancel) > li:nth-child(odd)::before,
.main_content .ts-staff ul:not(.cancel) > li:nth-child(even)::before {
	content: '';
	position: absolute;
	left: 0.2em;
	top: 0.62em;
	width: 8px;
	height: 8px;
	background-color: var(--ts-staff-green);
	border-radius: 50%;
}

/* ol: 緑の番号「1.」（丸背景なし） */
.main_content .ts-staff ol:not(.cancel) > li::before,
.main_content .ts-staff ol:not(.cancel) > li:nth-child(odd)::before,
.main_content .ts-staff ol:not(.cancel) > li:nth-child(even)::before {
	counter-increment: ts-staff-ol;
	content: counter(ts-staff-ol) '.';
	position: absolute;
	left: 0;
	top: 0;
	width: auto;
	height: auto;
	background: none;
	border-radius: 0;
	color: var(--ts-staff-green);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.7;
	text-align: left;
}

/* ---------- 開閉ボタン ---------- */
.ts-staff-card__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 30px;
}

.ts-staff-card__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--ts-staff-green);
	border-radius: 100px;
	color: var(--ts-staff-green);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
	padding: 5px 10px 5px 32px;
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.ts-staff-card__toggle:hover {
	background: var(--ts-staff-green);
	color: #fff;
}

.ts-staff-card__toggle-label-close {
	display: none;
}

.ts-staff-card.is-open .ts-staff-card__toggle-label-open {
	display: none;
}

.ts-staff-card.is-open .ts-staff-card__toggle-label-close {
	display: inline;
}

.ts-staff-card__toggle-icon {
	position: relative;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: var(--ts-staff-green);
	flex: 0 0 auto;
	transition: transform 0.3s ease;
}

.ts-staff-card__toggle-icon::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 44%;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #fff;
	border-top: 1.5px solid #fff;
	transform: translate(-50%, -50%) rotate(45deg);
}

.ts-staff-card.is-open .ts-staff-card__toggle-icon {
	transform: rotate(90deg);
}

.ts-staff-card__toggle:hover .ts-staff-card__toggle-icon {
	background: #fff;
}

.ts-staff-card__toggle:hover .ts-staff-card__toggle-icon::before {
	border-color: var(--ts-staff-green);
}

/* ---------- 皮膚科専門医セクション（淡色カード・アウトラインタグ） ---------- */
.ts-staff-section--alt .ts-staff-card {
	background: rgba(244, 250, 218, 0.4);
}

.ts-staff-section--alt .ts-staff-card__tags li {
	background: #fff;
	border: 1px solid var(--ts-staff-blue);
}

/* ---------- 看護師・スタッフ（写真無しカード） ---------- */
.ts-staff-card--simple .ts-staff-card__main {
	display: block;
}

.ts-staff-card--simple .ts-staff-card__profile {
	grid-template-rows: 1fr;
	margin-top: 30px;
}

/* ---------- レスポンシブ ---------- */
@media screen and (max-width: 999px) {
	.ts-staff-section {
		margin-bottom: 48px;
	}

	.ts-staff-section__en {
		font-size: 20px;
	}

	.ts-staff-section__ja {
		font-size: 26px;
	}

	.ts-staff-card {
		padding: 24px;
	}

	.ts-staff-card__main {
		flex-direction: column;
		gap: 20px;
	}

	.ts-staff-card__photo {
		flex: 0 0 auto;
		width: 100%;
		max-width: 280px;
		margin: 0 auto;
	}

	.ts-staff-card__photo img {
		width: 100%;
		height: auto;
		aspect-ratio: 280 / 360;
	}

	.ts-staff-card__name {
		font-size: 30px;
	}

	.ts-staff-table__row {
		flex-direction: column;
	}

	.ts-staff-table__row dt {
		flex: 0 0 auto;
		width: 100%;
	}

	.ts-staff-history__row {
		flex-direction: column;
		gap: 0;
	}
}
