/* ============================================================
   staff.css — スタッフ紹介 (/staff/)
   旧サイトのレイアウト構造を維持し、色を新サイトに合わせて更新
   ============================================================ */

/* ── ページ内余白 ── */
.staff-page .section-in {
	padding: 60px 50px;
}

/* ============================================================
   スタッフ一覧（旧サイト staffInfo 構造を維持）
   ============================================================ */
.staffInfo {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.staffInfo li {
	width: 22%;      /* 4列: 22% × 4 + 4% × 3 = 100% */
	margin: 0 4% 50px 0;
	cursor: pointer;
}

.staffInfo li:nth-child(4n) {
	margin-right: 0;
}

@media (max-width: 480px) {
	.staffInfo li {
		width: 46%;      /* 2列: 46% × 2 + 8% × 1 = 100% */
		max-width: 100%;
		margin: 0 8% 50px 0;
	}

	.staffInfo li:nth-child(2n) {
		margin-right: 0;
	}
}

.staffInfo li img {
	width: 100%;
	max-width: 160px;
	height: auto;
	display: block;
	border-radius: 50%;
	background: var(--bg-light-blue, #d9edf5);
	margin: 0 auto;
}

/* 画像なし時のプレースホルダー */
.staffInfo__no-photo {
	width: 100%;
	max-width: 160px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: var(--bg-light-blue, #d9edf5);
	margin: 0 auto;
}

.staffInfo li > h2 {
	border-top: none;
	padding-top: 20px;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-align: center;
	margin-bottom: 10px;
	color: var(--key-blue, #0077b1); /* 旧: 未指定 → 新サイトブルー */
}

.staffInfo li > .role {
	display: block;
	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
	margin: 0;
	word-break: keep-all;
	overflow-wrap: anywhere;
	color: #222;
}

/* introBox はカード上では非表示（JS でモーダルに転用） */
.staffInfo li .introBox {
	display: none;
}

/* ============================================================
   ライトボックス背景
   ============================================================ */
.bgLightbox {
	position: fixed;
	z-index: 10000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .7);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

/* ============================================================
   body.lightbox 状態
   ============================================================ */
html.staff-lightbox,
body.lightbox {
	overflow: hidden; /* 縦横スクロール両方を body/html レベルで封じる */
}

/* 閉じるボタン（右上 ×） */
body.lightbox .close1 {
	position: fixed;
	width: 40px;
	height: 40px;
	z-index: 10009;
	right: 25px;
	top: 10px;
	cursor: pointer;
}

@media (max-width: 480px) {
	body.lightbox .close1 {
		top: 5px;
		right: 13px;
		width: 24px;
		height: 24px;
	}
}

body.lightbox .close1:before {
	content: "";
	position: fixed;
	top: 30px;
	right: 20px;
	width: 50px;
	height: 2px;
	transform: rotate(45deg);
	background: #fff;
	z-index: 10003;
}

@media (max-width: 480px) {
	body.lightbox .close1:before {
		top: 15px;
		right: 10px;
		width: 30px;
	}
}

body.lightbox .close1:after {
	content: "";
	position: fixed;
	top: 30px;
	right: 20px;
	width: 50px;
	height: 2px;
	transform: rotate(-45deg);
	background: #fff;
	z-index: 10003;
}

@media (max-width: 480px) {
	body.lightbox .close1:after {
		top: 15px;
		right: 10px;
		width: 30px;
	}
}

/* ============================================================
   profileWrap（モーダルスクロール領域）
   ============================================================ */
.profileWrap {
	position: fixed;
	top: 10%;
	left: 0;
	z-index: 10001;
	width: 100%;
	height: 80%;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}

/* 下部の閉じるボタン（×） */
.profileWrap .close2 {
	position: absolute;
	bottom: -50px;
	left: 50%;
	display: block;
	width: 40px;
	height: 40px;
	z-index: 10009;
	margin: 0 0 0 -20px;
	cursor: pointer;
}

.profileWrap .close2:before {
	content: "";
	position: absolute;
	top: 19px;
	left: -5px;
	width: 50px;
	height: 2px;
	transform: rotate(45deg);
	background: #fff;
	z-index: 10003;
}

.profileWrap .close2:after {
	content: "";
	position: absolute;
	top: 19px;
	left: -5px;
	width: 50px;
	height: 2px;
	transform: rotate(-45deg);
	background: #fff;
	z-index: 10003;
}

/* ============================================================
   staffProfile（モーダル内カード）
   ============================================================ */
.staffProfile {
	position: relative;
	top: 0;
	left: 0;
	width: 80%;
	max-width: 850px;
	margin: 60px auto 0;
}

/* ヘッダー部（写真・名前・役職） */
.staffProfile .head {
	background: var(--bg-light-blue, #d9edf5); /* 旧: #eff1f4 → 新サイト薄ブルー */
	padding: 60px 0 30px;
	text-align: center;
}

.staffProfile .head > img {
	position: absolute;
	top: -60px;
	left: 50%;
	margin-left: -60px;
	max-width: 120px;
	border-radius: 50%;
	background: #fff;
}

.staffProfile .head > h2 {
	border-top: none;
	padding-top: 10px;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-align: center;
	margin-bottom: 10px;
	color: var(--key-blue, #0077b1); /* 旧: 未指定 → 新サイトブルー */
}

.staffProfile .head > .role {
	display: block;
	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
	margin: 0;
	word-break: keep-all;
	overflow-wrap: anywhere;
	color: var(--key-grn, #008f72); /* 旧: #415164 → 新サイトグリーン */
}

/* ボディ部（introBox） */
.staffProfile .body {
	position: relative;
	padding: 30px;
	margin: 0 0 80px;
	background: #fff;
}

.staffProfile .body .introBox {
	display: block; /* モーダル内では表示 */
	-webkit-overflow-scrolling: touch;
}

.staffProfile .body .introBox dl:not(:last-child) {
	margin-bottom: 30px;
}

.staffProfile .body .introBox dl dt {
	font-weight: 700;
	color: var(--key-blue, #0077b1); /* 新サイトカラー追加 */
	margin-bottom: 6px;
}

.staffProfile .body .introBox dl dd {
	margin: 0;
	line-height: 1.8;
	color: #333;
}

@media (max-width: 768px) {
	.staff-page .section-in {
		padding: 40px 16px;
	}

	.staffProfile {
		width: 92%;
	}

	.staffProfile .body {
		padding: 20px;
	}
}
