@charset "utf-8";

/*
 * Staff directory
 * Uses the fighter directory's portrait, vertical-name and SNS interaction.
 */

body.cave-staff-index-page ol#staff_list {
	--cave-instructor-name-rail: 96px;
	--cave-instructor-social-size: 36.4px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(34px, 3.5vw, 48px) clamp(30px, 3vw, 44px);
	align-items: start;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

body.cave-staff-index-page ol#staff_list > li {
	min-width: 0;
	min-height: 0;
	overflow: visible;
	border: 0;
	background: transparent;
}

body.cave-staff-index-page ol#staff_list .cave-instructor-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--cave-instructor-name-rail);
	isolation: isolate;
	width: 100%;
	min-height: 0;
	margin: 0;
	border: 0;
	background: transparent;
}

body.cave-staff-index-page ol#staff_list .image {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	max-width: none;
	height: clamp(285px, 24vw, 320px);
	margin: 0;
	overflow: hidden;
	background: #eef0f1;
}

body.cave-staff-index-page ol#staff_list .image > a {
	display: block;
	width: 100%;
	height: 100%;
}

body.cave-staff-index-page ol#staff_list .image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center top;
	backface-visibility: hidden;
	filter: none;
	transform: scale(1.002);
	transition: transform 700ms cubic-bezier(0.2, 0.68, 0.2, 1);
}

body.cave-staff-index-page ol#staff_list .cave-instructor-card:hover .image img,
body.cave-staff-index-page ol#staff_list .cave-instructor-card:focus-within .image img {
	transform: scale(1.045);
}

body.cave-staff-index-page ol#staff_list .info,
body.cave-staff-index-page ol#staff_list .has_post_thumbnail .info {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	width: auto;
	min-width: 0;
	padding: 0 4px;
	background: #fff;
	color: #111;
	line-height: 1;
}

body.cave-staff-index-page ol#staff_list .info .staff_name {
	order: 1;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0;
	line-height: 1;
}

body.cave-staff-index-page ol#staff_list .info .staff_name::before,
body.cave-staff-index-page ol#staff_list .info .staff_name::after {
	display: none;
	content: none;
}

body.cave-staff-index-page ol#staff_list .info .staff_name > a {
	display: block;
	margin: 0;
	color: #111;
	font-family: "Noto Serif JP", "Yu Mincho", YuMincho, serif;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.14;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-orientation: mixed;
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform: translateY(-3px);
}

body.cave-staff-index-page ol#staff_list .info .staff_name > a:hover {
	color: #007dac;
}

body.cave-staff-index-page ol#staff_list .cave-name-quote {
	position: relative;
	display: inline-block;
	margin-inline: 0;
	line-height: 1;
	transform: translateY(0.18em);
}

body.cave-staff-index-page ol#staff_list .cave-name-quote--open {
	transform: translateY(0.28em);
}

body.cave-staff-index-page ol#staff_list .instructor-position {
	order: 2;
	display: block;
	color: #253238;
	font-family: "Noto Serif JP", "Yu Mincho", YuMincho, serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.18em;
	text-orientation: mixed;
	writing-mode: vertical-rl;
}

body.cave-staff-index-page ol#staff_list .social-icons {
	position: absolute;
	z-index: 3;
	right: var(--cave-instructor-name-rail);
	bottom: 0;
	width: var(--cave-instructor-social-size);
	height: var(--cave-instructor-social-size);
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

body.cave-staff-index-page ol#staff_list .social-icons > :is(a, button) {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	width: var(--cave-instructor-social-size);
	height: var(--cave-instructor-social-size);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #0d1012;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
	color: #fff;
	cursor: pointer;
	font-size: 15.4px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 240ms ease, visibility 180ms ease;
}

body.cave-staff-index-page ol#staff_list .social-icons > a {
	z-index: 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(0);
}

body.cave-staff-index-page ol#staff_list .social-icons > .cave-staff-share {
	z-index: 2;
}

body.cave-staff-index-page ol#staff_list .social-icons:is(:hover, :focus-within, .is-open) > a {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

body.cave-staff-index-page ol#staff_list .social-icons:is(:hover, :focus-within, .is-open) > a:nth-of-type(1) {
	transform: translateX(-36.4px);
}

body.cave-staff-index-page ol#staff_list .social-icons:is(:hover, :focus-within, .is-open) > a:nth-of-type(2) {
	transform: translateX(-72.8px);
}

body.cave-staff-index-page ol#staff_list .social-icons:is(:hover, :focus-within, .is-open) > a:nth-of-type(3) {
	transform: translateX(-109.2px);
}

body.cave-staff-index-page ol#staff_list .social-icons > :is(a, button):hover,
body.cave-staff-index-page ol#staff_list .social-icons > :is(a, button):focus-visible {
	background: #007dac;
	color: #fff;
}

body.cave-staff-index-page ol#staff_list .info .staff_name > a:focus-visible,
body.cave-staff-index-page ol#staff_list .image > a:focus-visible,
body.cave-staff-index-page ol#staff_list .social-icons > :is(a, button):focus-visible {
	outline: 3px solid #00a9e8;
	outline-offset: 3px;
}

@media only screen and (max-width: 700px) {
	body.cave-staff-index-page ol#staff_list {
		--cave-instructor-name-rail: clamp(62px, 16vw, 68px);
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
		width: calc(100% - 16px);
		margin-inline: auto;
	}

	body.cave-staff-index-page ol#staff_list .image {
		height: min(78vw, 320px);
	}

	body.cave-staff-index-page ol#staff_list .info,
	body.cave-staff-index-page ol#staff_list .has_post_thumbnail .info {
		justify-content: flex-end;
	}

	body.cave-staff-index-page ol#staff_list .info .staff_name > a {
		font-size: clamp(24px, 7vw, 27px);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.cave-staff-index-page ol#staff_list .image img,
	body.cave-staff-index-page ol#staff_list .social-icons > :is(a, button) {
		transition: none;
	}
}
