@charset "utf-8";

:root {
	--bg-top: #f3f7ff;
	--bg-bottom: #e3f0ff;
	--text-strong: #1f2538;
	--text-muted: #5a6175;
	--card-radius: 28px;
	--card-shadow: 0 20px 60px rgba(25, 43, 65, 0.12);
	--grid-gap: clamp(22px, 4vw, 36px);
	--main-color: #e198a6;
	--sub-color: #394868;
	--accent-color: #86c0ff;
}

.wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 64px) clamp(96px, 10vw, 140px);
}

.grid {
	display: grid;
	gap: var(--grid-gap);
}

@media (min-width: 640px) {
	.grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 980px) {
	.grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.member-card {
	--accent: #e198a6;
	--accent-soft: rgba(225, 152, 166, 0.45);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(20px, 3vw, 28px);
	padding: clamp(28px, 4vw, 36px) clamp(20px, 4vw, 32px) clamp(32px, 5vw, 40px);
	background: #fff;
	border-radius: var(--card-radius);
	box-shadow: var(--card-shadow);
	transition: transform 0.4s ease;
	padding-top: 15px;
	cursor: pointer;
	text-decoration: none;
	position: relative;
	outline: none;
}

.member-card:hover {
	transform: translateY(-6px);
}

.member-card__visual {
	position: relative;
	width: 100%;
	min-height: clamp(260px, 34vw, 320px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
	/* border-radius: clamp(18px, 3vw, 24px); */
	margin: 0;
}

/* .member-card__visual::after {
	content: "";
	position: absolute;
	width: 100%;
	bottom: 0px;
	height: 1px;
	border-image: linear-gradient(to right, transparent, #e9e9e9 30%, #e9e9e9 70%, transparent) 1;
	border-width: 1px;
	border-style: solid;
	z-index: 1;
} */

.member-card__visual svg {
	position: absolute;
	width: clamp(220px, 88%, 320px);
	height: auto;
	z-index: 0;
	top: 10%;
	display: block;
	pointer-events: none;
	/* filter: drop-shadow(0 18px 38px rgba(25, 43, 65, 0.15)); */
}

.member-card__visual svg stop {
	transition: stop-color 0.5s ease, stop-opacity 0.5s ease;
}

.member-card__visual img {
	position: relative;
	z-index: 1;
	width: auto;
	max-width: clamp(220px, 70%, 280px);
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transform: translateY(0%);
	border-radius: 20%;
}

.member-card__info {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	text-align: center;
}

.member-card__name {
	margin: 0;
	font-size: clamp(1.15rem, 2.8vw, 1.35rem);
	font-weight: 700;
	line-height: 1.4;
}

.member-card__name span {
	display: block;
	font-size: 0.9em;
	color: var(--text-muted);
}

.member-card__role {
	display: block;
	width: 100%;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #fff;
	background: var(--accent);
	letter-spacing: 0.04em;
	text-transform: capitalize;
	text-align: center;
}

.profile-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 4vw, 48px);
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.profile-modal.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.profile-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 24, 40, 0.48);
	backdrop-filter: blur(6px);
}

.profile-modal__dialog {
	position: relative;
	width: min(960px, 96vw);
	/* height: min(90%, 90vh); */
	max-height: 90vh;
	background: #fff;
	border-radius: 32px;
	box-shadow: 0 28px 60px rgba(15, 24, 40, 0.25);
	padding: clamp(18px, 3vw, 36px);
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 3vw, 28px);
}

.profile-modal__close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 10px 24px rgba(25, 43, 65, 0.18);
	color: var(--text-strong);
	font-size: 24px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease;
	z-index: 2;
}

.profile-modal__close:hover,
.profile-modal__close:focus-visible {
	transform: scale(1.08);
}

.profile-modal__body {
	display: grid;
	/* grid-template-columns: repeat(2, minmax(0, 1fr)); */
	grid-template-columns: 33% 1fr;
	gap: clamp(24px, 4vw, 40px);
	align-items: stretch;
}

.profile-modal__column--media {
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 3vw, 24px);
	/* gap: clamp(24px, 4.5vw, 36px); */
	/* justify-content: space-between; */
	align-items: center;
}

.profile-modal__visual {
	position: relative;
	width: 100%;
	/* aspect-ratio: 3 / 4; */
	border-radius: 28px;
	overflow: visible;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
}

.profile-modal__blob {
	position: absolute;
	width: 75%;
	height: 75%;
}

.profile-modal__blob path {
	transition: d 0.4s ease;
}

.profile-modal__image {
	position: relative;
	width: 90%;
	height: auto;
	max-height: 100%;
	z-index: 1;
	object-fit: cover;
	border-radius: 50%;
	transform: translateY(2%);
}

.profile-modal__sns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
}

.modal-sns {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* gap: 8px; */
	padding: 12px 16px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease;
	/* transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 12px 20px rgba(25, 43, 65, 0.18); */
}

.modal-sns svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.modal-sns:hover,
.modal-sns:focus-visible {
	transform: translateY(-3px);
	/* box-shadow: 0 18px 26px rgba(25, 43, 65, 0.22); */
}

.modal-sns[data-brand="facebook"] {
	background: #1877f2;
}

.modal-sns[data-brand="x"] {
	background: #000;
}

.modal-sns[data-brand="instagram"] {
	background: linear-gradient(45deg, #f58529 0%, #dd2a7b 50%, #8134af 75%, #515bd4 100%);
}

.modal-sns[data-brand="youtube"] {
	background: #ff0000;
}

.profile-modal__column--content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.profile-modal__info {
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 3vw, 24px);
}

.profile-modal__fullname {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(9px, 1.5vw, 12px);
}

.profile-modal__name {
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.2rem);
	font-weight: 700;
}
.profile-modal__name.en {
	font-size: clamp(1.0rem, 1.5vw, 1.6rem);
}

.profile-modal__alias {
	margin: 0;
	color: var(--text-muted);
	font-size: 1rem;
}

.profile-modal__role {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* align-self: flex-start; */
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 600;
	color: #fff;
	background: var(--accent-color);
	letter-spacing: 0.04em;
	text-transform: capitalize;
}

.profile-modal__bio {
	margin: 0;
	line-height: 1.8;
	color: var(--text-muted);
	white-space: pre-line;
	overflow-y: scroll;
	min-height: 70vh;
	max-height: 70vh;
	padding-right: 20px;
}

@media (max-width: 1366px) {
	.profile-modal__body {
		grid-template-columns: 1fr;
		padding-right: 0px;
		overflow-y: scroll;
	}
	
	.profile-modal__column--media {
		order: -1;
		width: 80%;
		margin: 0 auto;
	}
	
	.profile-modal__sns {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.profile-modal__bio {
		overflow-y: initial;
		padding-right: 0px;
		min-height: initial;
		max-height: initial;
	}
}

@media (max-width: 620px) {
	.profile-modal__dialog {
		padding: clamp(20px, 4vw, 28px);
		border-radius: 26px;
	}
	
	.profile-modal__body {
		padding-right: 0px;
		overflow-y: scroll;
	}

	.profile-modal__column--media {
		order: -1;
		width: 80%;
		margin: 0 auto;
	}

	.profile-modal__close {
		top: 12px;
		right: 12px;
	}

	.profile-modal__sns {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	
	.profile-modal__bio {
		overflow-y: initial;
		padding-right: 0px;
		min-height: initial;
		max-height: initial;
	}

}