/*==============
index
==============*/
body.home,
body.blog {
	background-color: var(--color_site_bg);
}

.index_page {
	overflow: hidden;
}

.index_page > .inner {
	padding-top: 42px;
	padding-bottom: 86px;
}

.top_hero {
	display: grid;
	gap: 28px;
	margin-bottom: 64px;
}

.top_hero_text {
	display: grid;
	align-content: center;
	min-height: 180px;
	font-weight: 700;
	line-height: 1.55;
}

.top_hero_text > * + * {
	margin-top: 1em;
}

.top_hero_image {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 220px;
	margin: 0;
	overflow: hidden;
	color: #fff;
}

.top_hero_image_item {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.top_image_placeholder {
	font-size: 16px;
}

.top_latest {
	margin-bottom: 78px;
}

.top_section_title {
	margin: 0 0 28px;
	font-size: 28px;
	line-height: 1.4;
	text-align: center;
}

.latest_posts {
	display: grid;
	gap: 34px;
}

.latest_post {
	min-width: 0;
}

.latest_post_card {
	display: grid;
	gap: 12px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(32, 32, 36, 0.12);
}

.latest_post_card:hover {
	color: inherit;
	opacity: 0.82;
}

.latest_post_thumb {
	display: block;
	background: #d9d9d9;
}

.latest_post_thumb::before {
	padding-top: 75%;
}

.latest_post_date {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 3px 8px;
	color: var(--color_text);
	font-size: 12px;
	line-height: 1.4;
	background: #fff;
}

.latest_post_title {
	display: block;
	margin: 0;
	padding: 0 16px;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.latest_post_excerpt {
	display: -webkit-box;
	max-height: calc(1.5em * 2);
	margin: 0 16px 18px;
	overflow: hidden;
	font-weight: 400;
	line-height: 1.5;
	font-size: 16px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.more_button_wrap {
	margin-top: 36px;
	text-align: center;
}

.more_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 190px;
	min-height: 40px;
	padding: 8px 28px;
	border-radius: 999px;
	color: var(--color_text);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	background: #d9d9d9;
}

.more_button:hover {
	color: var(--color_text);
	background: #c9c9c9;
}

.top_category_list {
	display: grid;
	gap: 28px;
}

.top_category_item {
	display: grid;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.top_category_item:hover {
	color: inherit;
	opacity: 0.82;
}

.top_category_image {
	display: block;
	position: relative;
	overflow: hidden;
}

.top_category_image::before {
	content: "";
	display: block;
	padding-top: 50%;
}

.top_category_image_item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.top_category_title {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 700;
	text-align: center;
}

@media (min-width: 641px) {
	.index_page > .inner {
		padding-top: 52px;
		padding-bottom: 116px;
	}

	.top_hero {
		grid-template-columns: minmax(0, 1fr) 42%;
		align-items: center;
		gap: 44px;
		margin-bottom: 76px;
	}

	.top_hero_image {
		min-height: 300px;
	}

	.latest_posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
		row-gap: 40px;
	}

	.top_category_list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}
}

@media (min-width: 1040px) {
	.index_page > .inner {
		min-height: 1348px;
		padding-top: 70px;
		padding-bottom: 120px;
	}

	.top_hero {
		grid-template-columns: minmax(0, 1fr) 310px;
		gap: 96px;
		margin-bottom: 66px;
	}

	.top_hero_text {
		min-height: 310px;
		padding-left: 0;
	}

	.top_hero_image {
		min-height: 310px;
	}

	.top_latest {
		margin-bottom: 78px;
	}

	.top_section_title {
		margin-bottom: 28px;
	}

	.latest_posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 32px;
		row-gap: 40px;
	}

	.latest_post_thumb {
		margin-bottom: 0;
	}

	.more_button_wrap {
		margin-top: 44px;
	}

	.top_category_list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 48px;
	}
}
