.whole-cards {
	aspect-ratio: 1710 / 1170;
	position: relative;
}

.whole-cards-nav {
	position: relative;
	margin: 0;
	padding: 0;
	display: flex;
	overflow: hidden;
}

.whole-cards-nav li {
	margin: 0;
	padding: 0;
	list-style-type: none;
	width: 25%;
}

.whole-cards-nav li a {
	position: relative;
	display: block;
	height: 42px;
	line-height: normal;
	font-size: 30px;
	text-transform: lowercase;
	color: #ffffff;
	text-align: center;
	z-index: 1;
}

.whole-cards-nav li a:after {
	display: block;
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--red);
	transform: skewX(-45deg);
	border-left: 3px solid #ffffff;
	box-sizing: border-box;
	z-index: -1;
}

.whole-cards-nav a.active:after {
	border-bottom: 7px solid #ffffff;
}

.whole-cards-nav li:first-of-type a:after {
	width: 110%;
	left: auto;
	right: 0;
}

.whole-cards-nav li:last-of-type a:after {
	width: 110%;
}

.whole-card {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: calc(100% - 41px);
}

.whole-card-text {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0,0,0,0.8);
	color: #ffffff;
	padding: 50px 110px;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

.whole-card-text .sec-title {
	font-weight: 500;
}

.whole-card-text-inner {
	width: 64.8%; /* 965 */
}

.whole-card-text-inner p:last-of-type {
	margin-bottom: 0;
}

.whole-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

@media screen and (max-width: 1480px)
{
	.content.content-padded.content-cards {
		padding: 0;
	}
}

@media screen and (max-width: 1290px)
{
	.whole-cards-nav li a {
		font-size: 21px;
		line-height: 32px;
	}
}

@media screen and (max-width: 980px)
{
	.whole-cards {
		aspect-ratio: auto;
	}

	.whole-cards-nav {
		flex-wrap: wrap;
		background-color: #343434;
	}

	.whole-cards-nav li {
		width: 100%;
		margin-bottom: 4px;
		height: 30px;
	}

	.whole-cards-nav li a {
		height: 30px;
		line-height: 26px;
		width: 80%;
		max-width: 245px;
		display: inline-block;
		background-color: var(--red);
		padding-left: 30px;
		text-align: left;
		transition: width 0.3s ease, max-width 0.3s ease;
		box-sizing: border-box;
	}

	.whole-cards-nav li a.active {
		padding-right: 50px;
		max-width: 295px;
	}

	.whole-cards-nav li a:after {
		display: none;
	}

	.whole-card {
		position: static;
	}

	.whole-card-text {
		position: static;
		background-color: #343434;
		padding: 50px 40px;
	}
}

@media screen and (max-width: 800px)
{
	.whole-card-text {
		display: block;
	}

	.whole-card-text-inner {
		width: 100%;
	}

	.whole-card-text-button {
		margin-top: 2em;
	}
}
