@charset "utf-8";

/* STYLE archive */
.style_archive {
	width: 100%;
	max-width: 77%;
	margin: 0 auto;
	padding: 3% 0 7%;
}

.style_archive_header {
	margin: 0 0 3.5%;
	text-align: center;
}

.style_archive_header h1 {
	margin: 0;
	font-family: "EB Garamond", serif;
	font-size: 2.0vw;
	font-weight: 500;
	letter-spacing: 0.2em;
}

.style_archive_header p {
	margin: 1.2% 0 0;
	color: #316a73;
	font-family: "EB Garamond", serif;
	font-size: 1.2vw;
	letter-spacing: 0.12em;
}

.style_filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 0 6%;
}

.style_filter a {
	margin: 0;
	padding: 0 1.8%;
	border-right: 1px solid #ddd;
	color: #777;
	font-family: "EB Garamond", serif;
	font-size: 1.2vw;
	letter-spacing: 0.08em;
	line-height: 1.2;
	transition: color 0.3s;
}

.style_filter a:first-child {
	border-left: 1px solid #ddd;
}

.style_filter a:hover,
.style_filter a.is-current {
	color: #316a73;
}

.style_grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 2.8vw;
	row-gap: 4vw;
}

.style_results {
	position: relative;
}

.style_results.is-loading {
	pointer-events: none;
}

.style_card {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition: opacity 0.34s ease, transform 0.42s ease;
}

.style_card.is-leaving {
	opacity: 0;
	transform: translateY(16px) scale(0.97);
}

.style_card.is-entering {
	opacity: 0;
	transform: translateY(22px) scale(0.97);
}

.style_results.is-loading::after {
	position: absolute;
	top: 0;
	left: 50%;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	border: 2px solid rgba(49, 106, 115, 0.2);
	border-top-color: #316a73;
	border-radius: 50%;
	content: "";
	animation: style-loading 0.7s linear infinite;
}

@keyframes style-loading {
	to {
		transform: rotate(360deg);
	}
}

.style_card { margin: 0; }

.style_card_link {
	position: relative;
	display: block;
	overflow: hidden;
	background: #f5f5f5;
}

.style_card_image {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.style_card_image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
}

.style_card_noimage {
	position: absolute;
	top: 50%;
	left: 50%;
	color: #aaa;
	font-size: 0.9vw;
	transform: translate(-50%, -50%);
}

.style_card_overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8%;
	background: rgba(26, 57, 61, 0.72);
	color: #fff;
	text-align: center;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.style_card_overlay h2 {
	margin: 0;
	color: #fff;
	font-size: 1.15vw;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1.6;
	line-break: strict;
	overflow-wrap: normal;
	text-wrap: balance;
	word-break: keep-all;
}

.style_card_overlay p {
	display: inline-block;
	margin: 7% 0 0;
	padding: 0.3em 0.9em;
	background: rgba(255, 255, 255, 0.94);
	color: #316a73;
	font-family: "EB Garamond", serif;
	font-size: 0.95vw;
	letter-spacing: 0.1em;
	line-height: 1.2;
}

.style_card_link:hover .style_card_image img {
	transform: scale(1.035);
}

.style_card_link:hover .style_card_overlay,
.style_card_link:focus-visible .style_card_overlay {
	opacity: 1;
}

.style_empty {
	padding: 5% 0;
	font-size: 0.95vw;
	text-align: center;
}

/*-----------------------------------------------
Responsive
------------------------------------------------*/
@media screen and (max-width: 1280px) {
	/* STYLE archive */
	.style_archive {
		max-width: 85%;
	}
	.style_archive_header h1 {
		font-size: 2.3vw;
	}
	.style_archive_header p {
		font-size: 1.5vw;
	}
	.style_filter a {
		font-size: 1.5vw;
	}
	.style_card_overlay h2 {
		font-size: 1.45vw;
	}
	.style_card_overlay p {
		font-size: 1.25vw;
	}
}


@media screen and (max-width: 1024px) {
	/* STYLE archive */
	.style_archive {
		max-width: 85%;
		padding: 5% 0 9%;
	}
	.style_archive_header h1 {
		font-size: 2.6vw;
	}
	.style_archive_header p,
	.style_filter a {
		font-size: 1.8vw;
	}
	.style_grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 3vw;
		row-gap: 5vw;
	}
	.style_card_overlay h2 {
		font-size: 1.8vw;
	}
	.style_card_overlay p {
		font-size: 1.6vw;
	}
	.style_card_noimage,
	.style_empty {
		font-size: 1.4vw;
	}
}


@media screen and (max-width: 768px) {
	/* STYLE archive */
	.style_archive {
		max-width: 90%;
	}
	.style_archive_header h1 {
		font-size: 3.0vw;
	}
	.style_archive_header p,
	.style_filter a {
		font-size: 2.2vw;
	}
	.style_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 4vw;
		row-gap: 6vw;
	}
	.style_card_overlay h2 {
		font-size: 2.2vw;
	}
	.style_card_overlay p {
		font-size: 2.0vw;
	}
	.style_card_noimage,
	.style_empty {
		font-size: 1.8vw;
	}
}


@media screen and (max-width: 640px) {
	/* STYLE archive */
	.style_archive_header h1 {
		font-size: 3.5vw;
	}
	.style_archive_header p,
	.style_filter a {
		font-size: 2.7vw;
	}
	.style_card_overlay h2 {
		font-size: 2.7vw;
	}
	.style_card_overlay p {
		font-size: 2.5vw;
	}
	.style_card_noimage,
	.style_empty {
		font-size: 2.3vw;
	}
}

@media screen and (max-width: 480px) {
	/* STYLE archive */
	.style_archive {
		padding: 8% 0 12%;
	}
	.style_archive_header {
		margin-bottom: 7%;
	}
	.style_archive_header h1 {
		font-size: 4.3vw;
	}
	.style_archive_header p {
		margin-top: 2%;
		font-size: 3.5vw;
	}
	.style_filter {
		gap: 3.5vw 0;
		margin-bottom: 7%;
	}
	.style_filter a {
		padding: 0 2.5%;
		font-size: 3.5vw;
	}
	.style_grid {
		column-gap: 4.5vw;
		row-gap: 7vw;
	}
	.style_card_overlay {
		justify-content: flex-end;
		padding: 8% 6%;
		background: linear-gradient(to top, rgba(26, 57, 61, 0.82), rgba(26, 57, 61, 0) 62%);
		opacity: 1;
	}
	.style_card_overlay h2 {
		font-size: 3.3vw;
	}
	.style_card_overlay p {
		margin: 2% 0 0;
		padding: 0.2em 0.8em;
		font-size: 3.1vw;
	}
	.style_card_noimage,
	.style_empty {
		font-size: 3.1vw;
	}
}

@media screen and (max-width: 390px) {
	.style_grid {
		grid-template-columns: 1fr;
		row-gap: 10vw;
	}
	.style_card_overlay h2 {
		font-size: 3.9vw;
	}
	.style_card_overlay p {
		margin: 3% 0 0;
		font-size: 3.8vw;
	}
	.style_card_noimage,
	.style_empty {
		font-size: 3.7vw;
	}
}
