@charset "utf-8";
/* ===============================================
   Team ページ
   =============================================== */
/* --- 一覧セクション --- */
.team-section {
	padding: 72px 80px;
}
.team-section .team-section__title {
	margin: 0 0 40px;
	padding: 0;
	border: 0;
	background: none;
	font-size: var(--fs-section-title);
	font-weight: var(--fw-section-title);
	line-height: var(--lh-section-title);
	color: #222;
}

/* --- カード一覧 --- */
.team-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.team-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	background: var(--white);
	overflow: hidden;
}

/* 写真 */
.team-card__photo {
	margin: 0;
}
.team-card__photo img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: center top;
}
/* 写真が未登録のとき */
.team-card__photo--empty {
	height: 200px;
	background: #ededed;
}

/* 本文 */
.team-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 16px 18px 18px;
}
.team-card .team-card__name {
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	background: none;
	font-size: var(--fs-card-head);
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}
.team-card .team-card__role {
	margin: 0 0 14px;
	padding: 4px 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.5;
	color: var(--blue);
}

/* 一言 */
body .team-card p.team-card__summary {
	margin: 0 0 16px;
	font-size: var(--fs-card);
	line-height: 1.7;
	color: #666;
}

/* View Bio ボタン */
.team-card .team-card__btn {
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 8px 0;
	border: 1.5px solid var(--blue);
	border-radius: 3px;
	background: transparent;
	color: var(--blue);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.team-card .team-card__btn:hover,
.team-card .team-card__btn:focus {
	background: var(--blue);
	color: var(--white);
}

/* ===============================================
   モーダル（View Bio）
   =============================================== */
.team-modal {
	width: 836px;
	max-width: calc(100vw - 40px);
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--white);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
	overflow: hidden;
}
.team-modal::backdrop {
	background: rgba(0, 0, 0, .68);
}
html:has( dialog.team-modal[open] ),
html:has( dialog.team-modal[open] ) body,
body.is-team-modal-open {
	overflow: hidden;
}

/* 上部の帯 */
.team-modal__header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 8px 14px;
	background: var(--blue);
}
.team-modal .team-modal__close {
	padding: 2px 8px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: rgba(255, 255, 255, .8);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.team-modal .team-modal__close:hover,
.team-modal .team-modal__close:focus {
	background: rgba(255, 255, 255, .15);
	color: var(--white);
}

/* 本文 */
.team-modal__body {
	display: flex;
	max-height: calc(92vh - 46px);
}
.team-modal__left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 0 0 280px;
	border-right: 1px solid #e4e4e4;
}
.team-modal__photo {
	margin: 0;
}
.team-modal__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center top;
}
.team-modal__info {
	padding: 16px 18px 20px;
	border-top: 1px solid #eee;
	background: #fafafa;
}
.team-modal .team-modal__name {
	margin: 0 0 5px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}
.team-modal .team-modal__role {
	margin: 0;
	padding: 4px 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--blue);
}

/* SNS */
.team-modal__social {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}
.team-modal__social a {
	display: inline-flex;
	border: 1px solid #ddd;
	color: #666;
	transition: color .2s, border-color .2s;
}
.team-modal__social a:hover,
.team-modal__social a:focus-visible {
	border-color: var(--blue);
	color: var(--blue);
}
.team-modal__social svg {
	display: block;
}

.team-modal__content {
	flex: 1 1 auto;
	padding: 28px 34px;
	overflow-y: auto;
}
/* 段落の間：Lightning のブロック間の打ち消しより強くする */
body .team-modal .team-modal__content p {
	margin: 0 0 20px;
	font-size: var(--fs-text);
	line-height: var(--lh-text);
	color: #444;
}
body .team-modal .team-modal__content p:last-child {
	margin-bottom: 0;
}

/* ===============================================
   Join Our Team
   =============================================== */
.team-join {
	padding: 64px var(--content-gutter);
	background: var(--gold);
	text-align: center;
}
.team-join .team-join__title {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: none;
	font-size: var(--fs-section-title);
	font-weight: var(--fw-section-title);
	line-height: var(--lh-section-title);
	color: var(--blue);
}
.team-join p.team-join__body {
	max-width: 520px;
	margin: 0 auto;
	font-size: var(--fs-text);
	line-height: var(--lh-text);
	color: rgba(255, 255, 255, .9);
}
.team-join p.team-join__btn {
	margin: 40px 0 0;
}
/* ボタン */
.team-join .team-join__btn a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 32px;
	border-radius: 3px;
	background: var(--blue);
	color: var(--white);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	text-decoration: none;
	transition: background-color .2s;
}
.team-join .team-join__btn a:hover {
	background: var(--blue-hover);
	color: var(--white);
	text-decoration: none;
}

/* ===============================================
   レスポンシブ
   =============================================== */

/* タブレット */
@media (max-width: 991.98px) {
	.team-section {
		padding: 56px 0;
	}
	.team-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
	.team-modal__body {
		flex-direction: column;
		max-height: calc(92vh - 46px);
		overflow-y: auto;
	}
	.team-modal__left {
		flex: 0 0 auto;
		border-right: 0;
		border-bottom: 1px solid #e4e4e4;
	}
	.team-modal__photo img {
		aspect-ratio: 16 / 9;
	}
	.team-modal__content {
		padding: 24px;
		overflow: visible;
	}
	.team-join {
		padding-top: 48px;
		padding-bottom: 48px;
	}
}

/* スマホ */
@media (max-width: 767.98px) {
	.team-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.team-card__photo img,
	.team-card__photo--empty {
		height: 300px;
	}
	body .team-card p.team-card__summary {
		margin-bottom: 24px;
	}
	.team-card__body {
		padding: 12px 12px 14px;
	}
	.team-modal {
		max-width: calc(100vw - 24px);
	}
}
/* モーダルは左からスライドイン（PC・SP） */
.team-modal[open] {
	animation: team-modal-in .35s ease-out;
}
@keyframes team-modal-in {
	from {
		transform: translateX(-100vw);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

/* ===============================================
   PC
   =============================================== */
@media (min-width: 992px) {
	body .site-body-container {
		max-width: var(--page-width);
		padding-left: 80px;
		padding-right: 80px;
	}
	.team-section {
		padding-left: 0;
		padding-right: 0;
	}
	.team-join {
		padding-left: calc(80px + var(--page-side));
		padding-right: calc(80px + var(--page-side));
	}
}

/* SP：見出し */
@media (max-width: 767.98px) {
	.team-section .team-section__title {
		font-size: 32px;
	}
	.team-join .team-join__title {
		font-size: 32px;
	}
}

/* SP：ページの上下の余白 48px */
@media (max-width: 767.98px) {
	.team-section {
		padding-top: 48px;
		padding-bottom: 48px;
	}
}
