/* ============================================================================================
	FEATURED STAFF / PATTERN
============================================================================================ */
/* heading */
.hightime-staff-heading {
	position: relative;
	z-index: 1;
	padding: 0 .5em;
	font-size: clamp(40px, 8vw, 90px);
	text-align: right
}
.hightime-page-spa .hightime-staff-heading {
	font-family: var(--wp--preset--font-family--mincho) !important
}
.hightime-staff-heading::before {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	right: -.5em;
	z-index: -1;
	width: 4em;
	height: 1.5em;
	border: 4px solid var(--wp--preset--color--accent);
	border-right: 0;
	transform: translateY(-50%)
}
.hightime-page-spa .hightime-staff-heading::before {
	content: none
}

.hightime-staff-list {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 30px 18px;
	width: 90%;
	margin: 2em auto 0
}
@media screen and (min-width: 680px) {
	.hightime-staff-list {
		grid-template-columns: repeat(2, 1fr)
	}
}
@media screen and (min-width: 1260px) {
	.hightime-staff-list {
		grid-template-columns: repeat(3, 1fr)
	}
}
@media screen and (min-width: 1800px) {
	.hightime-staff-list {
		grid-template-columns: repeat(4, 1fr)
	}
}

/* thumbnail */
.hightime-staff-thumbnail {
	position: relative;
	overflow: hidden;
	cursor: pointer
}
.hightime-page-spa .hightime-staff-item {
	background: rgb(229, 229, 224);
    padding: 3em 1em;
}
.hightime-page-spa .hightime-staff-thumbnail {
	width: 80%;
	max-width: 300px;
	margin: 0 auto
}
.hightime-staff-thumbnail::before {
	content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
	z-index: 1;
    width: 100%;
    height: 100%;
    background: rgb(200,200,200);
}
.observe_is_active .hightime-staff-thumbnail::before {
    animation: var(--reveal-animation);
    transform-origin: center right;
}
@media screen and (min-width: 680px) {
	.hightime-staff-item:nth-of-type(even) .hightime-staff-thumbnail::before {
		animation-delay: .2s
	}
}
@media screen and (min-width: 1260px) {
	.hightime-staff-item:nth-of-type(3n - 1) .hightime-staff-thumbnail::before {
		animation-delay: .1s
	}
	.hightime-staff-item:nth-of-type(3n) .hightime-staff-thumbnail::before {
		animation-delay: .2s
	}
}
@media screen and (min-width: 1800px) {
	.hightime-staff-item:nth-of-type(4n - 2) .hightime-staff-thumbnail::before {
		animation-delay: .1s
	}
	.hightime-staff-item:nth-of-type(4n - 1) .hightime-staff-thumbnail::before {
		animation-delay: .2s
	}
}
.hightime-staff-thumbnail img {
	display: block;
	width: 100%;
	transition: transform .4s ease
}
.hightime-staff-thumbnail:hover img {
	transform: scale(1.03)
}

/* play icon (dynamically added by JS) */
.hightime-staff-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: .8;
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none
}
.hightime-staff-thumbnail:hover .hightime-staff-play-icon {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.1)
}

/* staff name / role */
.hightime-staff-item {
	position: relative
}
.hightime-staff-name-en {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: .6em .2em;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
	font-size: clamp(28px, 4vw, 35px);
	writing-mode: vertical-lr;
	pointer-events: none
}
.hightime-page-spa .hightime-staff-name-en {
	position: static;
	writing-mode: initial;
	background: transparent;
	font: bold clamp(20px, 3vw, 26px) var(--wp--preset--font-family--mincho) !important;
	text-align: center
}
.hightime-staff-name {
	margin-top: .8em !important;
	margin-bottom: 0 !important
}
.hightime-page-spa .hightime-staff-name {
	margin-top: 0 !important;
	text-align: center
}
.hightime-staff-role {
	margin-top: .2em !important;
	opacity: .6
}
.hightime-page-spa .hightime-staff-role {
	text-align: center
}

/* pilates */
.hightime-page-pilates .hightime-staff-name-en {
	background: var(--wp--preset--color--accent)
}

/* ============================================================================================
	MODAL
============================================================================================ */
.hightime-staff-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease
}
.hightime-staff-modal.is-active {
	opacity: 1;
	visibility: visible
}

/* オーバーレイ */
.hightime-staff-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.85)
}

/* コンテンツ */
.hightime-staff-modal-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	transform: scale(.95);
	transition: transform .3s ease
}
.hightime-staff-modal.is-active .hightime-staff-modal-content {
	transform: scale(1)
}

/* ビデオ */
.hightime-staff-modal-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000
}

/* 閉じるボタン */
.hightime-staff-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: none;
	color: white;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s ease
}
.hightime-staff-modal-close:hover {
	opacity: 1
}

/* ============================================================================================
	SPA PAGE
============================================================================================ */
.hightime-page-spa .hightime-staff-thumbnail {
	aspect-ratio: 1;
	border-radius: 50%
}
.hightime-page-spa .hightime-staff-thumbnail img {
	aspect-ratio: 1 !important;
	border-radius: 50%
}
