/*
 * トップページ下部の最新記事（WAOHS-85）
 */

.top-latest {
	margin: 100px 0;
}
.top-latest + .top-latest {
	margin-top: 0;
}

.top-latest-sub {
	font-size: 0.75em;
}

.top-latest-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 24px;
	margin: 24px 0;
	padding: 0;
	list-style: none;
}
.top-latest-item {
	margin: 0;
	padding: 0;
}
.top-latest-item a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #333;
	text-decoration: none;
}
.top-latest-item a:hover {
	color: #333;
	text-decoration: none;
}

.top-latest-thumb {
	position: relative;
	margin: 0 0 8px;
	overflow: hidden;
	background: #f2f2f2;
	border-radius: 10px;
	aspect-ratio: 1200 / 660;
}
.top-latest-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}
.top-latest-item a:hover .top-latest-thumb img {
	transform: scale(1.07);
}

.top-latest-title {
	margin: 0 0;
	font-size: 15px;
	line-height: 1.6;
	/* 長いタイトルは3行で切る */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-weight: bold;
}
.top-latest-date {
	align-items: center;
	display: inline-flex;
  	margin: 10px 0 0;
	font-size: 12px;
	&::before {
		background-image: url('../images/clock.png');
		background-position: center;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		content: '';
		display: inline-block;
		height: 13px;
		vertical-align: middle;
		margin-right: 5px;
		width: 13px;
	}
}

.top-latest-more a {
	max-width: 220px;
}

/* --- スマホ：2列 --- */
@media screen and (max-width: 767px) {
	.top-latest {
		margin: 60px 0;
	}
	.top-latest-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
	}
	.top-latest-title {
		font-size: 14px;
	}
	.top-latest-thumb {
		border-radius: 6px;
	}

}
