/**
 * #総合トップ（edance-hub）
 */

.theme-edance-hub {
	.p-header__logo {
		width: 288px;
		height: 100px;
		background-color: transparent;
		border-radius: 0;

		a {
			justify-content: flex-start;
			padding: 13px 18px;
		}

		img {
			width: 237px;
			height: 72px;
			object-fit: contain;
		}

		@media (max-width: 768px) {
			width: auto;
			height: auto;
			background-color: transparent;

			a {
				padding: 13px 15px;
			}

			img {
				width: 162px;
				height: 49px;
			}
		}
	}

	.p-megamenu__header-logo {
		top: 0;
		left: 0;
		width: auto;
		height: auto;
		padding: 13px 18px;
		background-color: transparent;
		border-radius: 0;

		img {
			width: 237px;
			height: 72px;
			object-fit: contain;
		}

		@media (max-width: 768px) {
			padding: 13px 15px;

			img {
				width: 162px;
				height: 49px;
			}
		}
	}

	.p-header__academy {
		color: var(--white);
		font-family: var(--ff-en);
		font-size: 20px;
		font-weight: 700;
		line-height: 1;
	}

	.p-header__brand {
		@media (max-width: 1024px) {
			display: none;
		}
	}

	.p-header__menu-btn,
	.p-megamenu__close {
		background-color: transparent;
		background-image: linear-gradient(83deg, #00f5ff 5.4%, #bf00ff 94.5%);
	}

	.p-megamenu__en,
	.p-footer__en {
		color: transparent;
		background-image: linear-gradient(75deg, #00f5ff 5.4%, #bf00ff 94.5%);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}

	.p-megamenu__caret,
	.p-footer__links a span {
		color: var(--neon-cyan, #00f5ff);
	}

	.p-megamenu__nav {
		overflow: visible;
	}

	.p-megamenu__toggle {
		position: relative;
		z-index: 2;
	}

	.p-front .c-sec-head__en {
		border-bottom: 0;
		padding-bottom: 10px;
		background-image: var(--neon-grd);
		background-size: 100% 10px;
		background-position: left bottom;
		background-repeat: no-repeat;

		@media (max-width: 768px) {
			padding-bottom: 5px;
			background-size: 100% 5px;
		}
	}

	.p-front-bg {
		opacity: 1;
		background-color: #070018;

		&::before,
		&::after {
			content: none;
		}
	}

	.p-front-bg__mesh {
		position: absolute;
		inset: -15%;
		overflow: hidden;
		background-color: #070018;
	}

	.p-front-bg__blob {
		position: absolute;
		border-radius: 50%;
		filter: blur(48px);
		will-change: transform;
	}

	.p-front-bg__blob--cyan {
		top: -10%;
		left: -22%;
		width: 70%;
		height: 110%;
		background: radial-gradient(circle, #3ad4ff 0%, #0077ee 42%, rgb(0 70 200 / 0) 72%);
		animation: p-front-bg-cyan 26s ease-in-out infinite;
	}

	.p-front-bg__blob--magenta {
		top: -22%;
		right: -8%;
		width: 68%;
		height: 78%;
		background: radial-gradient(circle, #ff2bd6 0%, #a000ff 46%, rgb(80 0 160 / 0) 74%);
		animation: p-front-bg-magenta 32s ease-in-out infinite;
	}

	.p-front-bg__blob--void {
		right: 2%;
		bottom: -8%;
		width: 58%;
		height: 72%;
		background: radial-gradient(circle, #000 0%, #000 28%, rgb(0 0 0 / 0) 68%);
		animation: p-front-bg-void 22s ease-in-out infinite;
	}
}

@keyframes p-front-bg-cyan {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	40% {
		transform: translate3d(10%, -8%, 0) scale(1.08);
	}

	70% {
		transform: translate3d(4%, 12%, 0) scale(0.94);
	}

	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes p-front-bg-magenta {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	35% {
		transform: translate3d(-14%, 10%, 0) scale(1.12);
	}

	68% {
		transform: translate3d(-4%, -6%, 0) scale(0.92);
	}

	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes p-front-bg-void {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}

	45% {
		transform: translate3d(-16%, -12%, 0) scale(1.16);
	}

	75% {
		transform: translate3d(6%, -4%, 0) scale(0.9);
	}

	100% {
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.theme-edance-hub .p-front-bg__blob {
		animation: none;
	}
}

.p-front--hub {
	.p-campus-link {
		padding: 60px 84px 0;

		@media (max-width: 768px) {
			padding: 20px 20px 0;
		}
	}

	.p-panels {
		display: flex;
		flex-direction: column;
		gap: 50px;
		padding-top: 100px;

		@media (max-width: 768px) {
			gap: 20px;
			padding-top: 60px;
		}

		.p-panels__row {
			padding-block: 0;
		}

		.p-panels__about {
			aspect-ratio: 1340 / 500;

			@media (max-width: 768px) {
				aspect-ratio: 1;
			}
		}

		.p-panels__about .p-panels__caption--left,
		.p-panels__about .p-panels__caption--right {
			@media (max-width: 768px) {
				left: 50%;
				right: auto;
				transform: translateX(-50%);
				align-items: center;
				width: max-content;
				max-width: calc(100% - 40px);
			}
		}

		.p-panels__about .p-panels__ja {
			@media (max-width: 768px) {
				width: fit-content;
				max-width: 100%;
			}
		}

		.p-panels__about .p-panels__ja .c-mark__text {
			@media (max-width: 768px) {
				display: inline-block;
				width: auto;
			}
		}
	}

	.p-facility {
		padding-top: 100px;
	}
}

.p-campus-cta--hub {
	max-width: 1274px;
	margin-inline: auto;
	width: 100%;
}

.p-campus-cta__item--togei {
	background-color: #c30013;

	.p-campus-cta__photo {
		width: 50%;
		object-position: 82% 58%;
	}

	.p-campus-cta__arrow {
		background-color: #c30013;
	}
}

.p-fv--hub {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	height: 840px;
	min-height: 840px;
	padding: 0;
	overflow: hidden;

	.p-fv__bg {
		opacity: 0;
		transition: opacity 1s ease;

		&.is-shown {
			opacity: 1;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.p-fv__bg {
			opacity: 1;
			transition: none;
		}
	}

	.p-fv__bg img {
		position: absolute;
		left: 9.86%;
		top: -21.9%;
		width: 96.74%;
		height: 110.71%;
		max-width: none;
		object-fit: cover;
		object-position: center 40%;
	}

	.p-fv__bg::after {
		background: linear-gradient(80.59deg, rgb(10 10 10 / 0.9) 30.6%, rgb(10 10 10 / 0.6) 41.7%, rgb(10 10 10 / 0) 60.3%);
	}

	.p-fv__copy {
		position: relative;
		z-index: 1;
		order: 1;
		align-items: flex-start;
		width: min(800px, calc(100% - 100px));
		margin: 130px 0 0 50px;
		padding: 0;
		gap: 10px;
	}

	.p-fv__catch {
		display: block;
		width: clamp(300px, calc(800 / 1440 * 100vw), 1200px);
		height: auto;

	}

	.p-fv__lead {
		/* white-space: nowrap; */
		margin: 0 0 30px 10px;
		color: var(--white);
		font-size: 26px;
		font-weight: 900;
		line-height: 1.4;
		letter-spacing: 0.04em;
		font-feature-settings: "palt" 1;
		text-shadow:
			0 0 8px rgb(255 255 255 / 0.9),
			0 0 20px rgb(0 245 255 / 0.45),
			0 0 36px rgb(191 0 255 / 0.25);
		br {
			display: none;
		}

	}

	.p-entrance__label {
		display: none;
	}

	.p-news-bar {
		position: relative;
		z-index: 1;
		order: 2;
		width: min(900px, calc(100% - 100px));
		margin: 34px auto 0;
	}

	.p-entrance {
		order: 3;
		margin-top: auto;
	}

	@media (max-width: 768px) {
		height: auto;
		min-height: 0;
		padding: 0 0 20px;

		.p-fv__bg img {
			left: -20%;
			top: -8%;
			width: 140%;
			height: 70%;
			object-position: 70% 30%;
		}

		.p-fv__bg::after {
			background: linear-gradient(180deg, rgb(10 10 10 / 0.75) 0%, rgb(10 10 10 / 0.2) 28%, rgb(10 10 10 / 0) 48%);
		}

		.p-fv__copy {
			align-items: flex-start;
			width: calc(100% - 36px);
			margin: 85px 0 0 18px;
			text-align: left;
		}

		.p-fv__lead {
			/* margin-bottom: 0; */
			font-size: 18px;
			line-height: 1.4;
			text-shadow:
				0 0 6px rgb(255 255 255 / 0.85),
				0 0 14px rgb(0 245 255 / 0.35);
			br {
				display: block;
			}
		}

		.p-entrance__label {
			position: relative;
			z-index: 1;
			display: flex;
			order: 2;
			align-items: center;
			gap: 10px;
			margin: 10px 18px 0;
			color: var(--white);
			font-family: var(--ff-en);
			font-size: 14px;
			font-weight: 700;
			letter-spacing: 0.04em;

			&::after {
				content: "";
				flex: 1;
				max-width: 50px;
				height: 1px;
				background: var(--white);
			}
		}

		.p-entrance {
			order: 3;
			margin-top: 10px;
		}

		.p-news-bar {
			order: 4;
			width: calc(100% - 40px);
			margin: 30px auto 0;
		}
	}
}

.p-entrance {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;

	@media (max-width: 768px) {
		grid-template-columns: 1fr;
	}
}

.p-entrance__item {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 380px;
	padding: 24px;
	overflow: hidden;
	color: var(--white);
	text-decoration: none;
	background-color: #0a0a0a;

	&:hover {
		opacity: 1;
		color: var(--white);
	}

	@media (max-width: 768px) {
		min-height: 189px;
		padding: 10px 20px 15px;
	}
}

.p-entrance__photo {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.p-entrance__item--prolab .p-entrance__photo,
.p-entrance__item--open .p-entrance__photo {
	inset: 0;
	width: 100%;
	height: 100%;
	object-position: left top;
}

.p-entrance__item:hover .p-entrance__photo {
	transform: scale(1.03);
}

.p-entrance__item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgb(10 10 10) 0%, rgb(10 10 10 / 0.92) 28%, rgb(10 10 10 / 0.45) 52%, rgb(10 10 10 / 0.08) 72%, transparent 88%),
		linear-gradient(55.5deg, rgb(10 10 10) 14%, rgb(10 10 10 / 0.75) 36%, rgb(10 10 10 / 0.18) 58%, transparent 91%);
	pointer-events: none;
}

.p-entrance__item--open::before {
	background:
		linear-gradient(90deg, rgb(10 10 10) 0%, rgb(10 10 10 / 0.95) 32%, rgb(10 10 10 / 0.5) 55%, rgb(10 10 10 / 0.1) 74%, transparent 90%),
		linear-gradient(55.5deg, rgb(10 10 10) 11%, rgb(10 10 10 / 0.85) 41%, rgb(10 10 10 / 0.3) 59%, transparent 94%);
}

.p-entrance__item::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	box-shadow: inset 0 0 0 0 var(--entrance-border, transparent);
	transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-entrance__item--prolab {
	--entrance-border: var(--prolab-gold, #e8c547);
}

.p-entrance__item--open {
	--entrance-border: var(--openclass, #a8479e);
}

.p-entrance__item:hover::after {
	box-shadow: inset 0 0 0 5px var(--entrance-border, transparent);
}

.p-entrance__head,
.p-entrance__body,
.p-entrance__cta {
	position: relative;
	z-index: 2;
}

.p-entrance__head {
	display: flex;
	align-items: flex-end;
	gap: 20px;
}

.p-entrance__num {
	font-family: var(--ff-en);
	font-size: 96px;
	font-style: italic;
	font-weight: 900;
	line-height: 0.75;
	letter-spacing: -0.02em;
	font-stretch: condensed;
	font-variation-settings: "wdth" 75;
}

.p-entrance__item--prolab .p-entrance__num,
.p-entrance__item--prolab .p-entrance__title {
	color: var(--prolab-gold, #e8c547);
}

.p-entrance__item--open .p-entrance__num,
.p-entrance__item--open .p-entrance__title {
	color: var(--openclass, #a8479e);
}

.p-entrance__tag {
	display: inline-flex;
	align-items: center;
	margin-bottom: 6px;
	padding: 4px 12px;
	border: 1px solid var(--white);
	border-radius: 5px;
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
	white-space: nowrap;
}

.p-entrance__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	overflow: hidden;
}

.p-entrance__catch {
	display: block;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
	font-feature-settings: "palt" 1;
}

.p-entrance__title {
	display: block;
	font-family: var(--ff-en);
	font-size: clamp(40px, calc(72 / 1440 * 100vw), 72px);
	font-style: italic;
	font-weight: 900;
	line-height: 0.8;
	letter-spacing: -0.02em;
	font-stretch: condensed;
	font-variation-settings: "wdth" 75;
}

.p-entrance__desc {
	display: block;
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
	font-feature-settings: "palt" 1;
}

.p-entrance__item--open .p-entrance__desc {
	font-weight: 500;
}

.p-entrance__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 24px 31px;
	border-radius: 999px;
	font-size: clamp(20px, calc(24 / 1440 * 100vw), 30px);
	font-weight: 700;
	line-height: 30px;
}

.p-entrance__item--prolab .p-entrance__cta {
	background-color: var(--prolab-gold, #e8c547);
	color: #111;
}

.p-entrance__item--open .p-entrance__cta {
	background-color: var(--openclass, #a8479e);
	color: var(--white);
}

.p-entrance__cta .c-arrow {
	--arrow-size: 28px;
}

.p-panels__caption--right {
	left: auto;
	right: 50px;
	transform: none;
	align-items: flex-end;

	@media (max-width: 768px) {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
		align-items: center;
	}
}

.p-news-tabs {
	position: relative;
	isolation: isolate;
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 559px;
	margin: 0 auto;
	padding: 4px 5px;
	border-radius: 999px;
	background-color: var(--white);
}

.p-news-tabs__slider {
	position: absolute;
	top: 4px;
	left: 0;
	z-index: 0;
	height: calc(100% - 8px);
	border-radius: 999px;
	background-color: #111;
	pointer-events: none;
}

.p-news-tabs.is-ready .p-news-tabs__slider,
.p-news .p-hub-instructor__tabs.is-ready .p-news-tabs__slider {
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		background-color 0.45s ease;
}

.p-news .p-hub-instructor__tabs {
	position: relative;
	isolation: isolate;
	max-width: 100%;
}

.p-news .p-hub-instructor__tabs .p-news-tabs__slider {
	background-image: linear-gradient(79deg, #00f5ff 5.4%, #bf00ff 94.5%);
}

.p-news .p-hub-instructor__tabs[data-news="pro-lab"] .p-news-tabs__slider {
	background-color: #e8c547;
	background-image: none;
}

.p-news .p-hub-instructor__tabs[data-news="open-class"] .p-news-tabs__slider {
	background-color: #a8479e;
	background-image: none;
}

.p-news .p-hub-instructor__tab {
	position: relative;
	z-index: 1;
	transition: color 0.25s ease;
}

.p-news .p-hub-instructor__tab.is-active,
.p-news .p-hub-instructor__tab.is-active[data-tab="all"],
.p-news .p-hub-instructor__tab.is-active[data-tab="pro-lab"],
.p-news .p-hub-instructor__tab.is-active[data-tab="open-class"] {
	background-color: transparent;
	background-image: none;
}

.p-news-tabs__btn {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 111px;
	padding: 10px 30px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #666;
	cursor: pointer;
	text-decoration: none;
	opacity: 1;
	transition: color 0.25s ease;

	&:hover {
		opacity: 1;
		background-color: transparent;
		color: #111;
	}

	&.is-active {
		opacity: 1;
		background-color: transparent;
		color: var(--white);
	}
}

.p-news-tabs__en {
	font-family: var(--ff-en);
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.p-news-tabs__ja {
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.c-card[hidden] {
	display: none !important;
}

.c-card__brand {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	padding: 4px 14px;
	border-radius: 4px;
	background-color: rgb(17 17 17 / 0.85);
	color: var(--white);
	font-size: 12px;
	font-weight: 700;
}

.c-card__brand--hub {
	background-color: var(--white);
	color: var(--text);
}

.c-card__brand--pro-lab {
	background-color: var(--prolab-gold, #e8c547);
	color: #111;
}

.c-card__brand--open-class {
	background-color: var(--openclass, #a8479e);
}

.p-news-archive .p-news-tabs--archive {
	margin-bottom: 40px;
}

@media (max-width: 768px) {
	.p-news-tabs {
		justify-content: center;
		width: 100%;
		max-width: 334px;
		padding: 4px 5px;
		overflow: hidden;
		flex-wrap: nowrap;
	}

	.p-news-tabs__btn {
		flex: 0 0 auto;
		min-width: 0;
		padding: 5px 10px;
		gap: 2px;
	}

	.p-news-tabs__en {
		font-size: 16px;
	}

	.p-news-tabs__ja {
		white-space: nowrap;
		text-align: center;
		font-size: 10px;
	}

	.p-entrance__item--prolab .p-entrance__photo,
	.p-entrance__item--open .p-entrance__photo {
		inset: auto;
		top: 0;
		right: 0;
		width: 80%;
		height: 90%;
		object-position: -50% top;
	}

	.p-entrance__num {
		font-size: 40px;
		line-height: 40px;
	}

	.p-entrance__tag {
		margin-bottom: 0;
		font-size: 14px;
		line-height: 22px;
	}

	.p-entrance__head {
		gap: 10px;
	}

	.p-entrance__body {
		gap: 5px;
	}

	.p-entrance__catch {
		font-size: 16px;
	}

	.p-entrance__title {
		font-size: 30px;
	}

	.p-entrance__desc {
		font-size: 14px;
		line-height: 24px;
	}

	.p-entrance__item::before {
		background:
			linear-gradient(180deg, transparent 8%, rgb(10 10 10 / 0.55) 42%, rgb(10 10 10 / 0.95) 72%),
			linear-gradient(90deg, rgb(10 10 10) 0%, rgb(10 10 10 / 0.92) 42%, rgb(10 10 10 / 0.45) 66%, rgb(10 10 10 / 0.08) 84%, transparent 96%),
			linear-gradient(55.5deg, rgb(10 10 10) 22%, rgb(10 10 10 / 0.75) 48%, rgb(10 10 10 / 0.18) 70%, transparent 96%);
	}

	.p-entrance__item--open::before {
		background:
			linear-gradient(180deg, transparent 8%, rgb(10 10 10 / 0.55) 42%, rgb(10 10 10 / 0.95) 72%),
			linear-gradient(90deg, rgb(10 10 10) 0%, rgb(10 10 10 / 0.95) 46%, rgb(10 10 10 / 0.5) 68%, rgb(10 10 10 / 0.1) 86%, transparent 98%),
			linear-gradient(55.5deg, rgb(10 10 10) 20%, rgb(10 10 10 / 0.85) 52%, rgb(10 10 10 / 0.3) 72%, transparent 97%);
	}

	.p-entrance__cta {
		padding: 3px 15px;
		font-size: 16px;
		line-height: 30px;
	}

	.p-entrance__cta .c-arrow {
		--arrow-size: 20px;
	}

	.p-entrance__item:hover::after {
		box-shadow: inset 0 0 0 3px var(--entrance-border, transparent);
	}
}
