@charset "UTF-8";

/*==================================================
News
==================================================*/
.news-list {
	padding: 0 40px 120px;
}

.news-list__inner {
	width: min(1100px, 100%);
	margin: 0 auto;
}


/*==================================================
News Item
==================================================*/
.news-list__item {
	border-bottom: 1px solid #ddd;
}

.news-list__item:first-child {
	border-top: 1px solid #ddd;
}

.news-list__item a {
	position: relative;
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) 50px;
	align-items: center;
	gap: 30px;
	padding: 32px 10px;
	color: #222;
	text-decoration: none;
}


/* Date
==================================================*/
.news-list__item time {
	color: #777;
}


/* Title
==================================================*/
.news-list__item h2 {
	font-weight: 600;
	line-height: 1.7;
}


/* Arrow
==================================================*/
.news-list__arrow {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	color: #222849;
	font-size: 1.4rem;
	transition: transform .3s ease;
}


/* Hover
==================================================*/
@media (hover: hover) {

	.news-list__item a:hover .news-list__arrow {
		transform: translateX(6px);
	}

}


/*==================================================
Empty
==================================================*/
.news-list__empty {
	padding: 60px 0;
	color: #777;
	font-size: 1.5rem;
	text-align: center;
}


/*==================================================
Pagination
==================================================*/
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: -50px auto 120px;
}

.pagination__item,
.pagination__prev,
.pagination__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background-color: #fff;
	color: #222849;
	font-size: 1.4rem;
	transition:
		background-color .3s ease,
		border-color .3s ease,
		color .3s ease;
}

.pagination__item.is-current {
	border-color: #222849;
	background-color: #222849;
	color: #fff;
}

.pagination__prev,
.pagination__next {
	font-size: 1.2rem;
}


/* Pagination Hover
==================================================*/
@media (hover: hover) {

	.pagination__item:not(.is-current):hover,
	.pagination__prev:hover,
	.pagination__next:hover {
		border-color: #222849;
		background-color: #222849;
		color: #fff;
	}

}


/*==================================================
News Detail
==================================================*/
.news-detail {
	padding: 0 40px 120px;
}

.news-detail__inner {
	width: min(900px, 100%);
	margin: 0 auto;
}


/*==================================================
News Detail Header
==================================================*/
.news-detail__header {
	padding-bottom: 40px;
	border-bottom: 1px solid #ddd;
}

.news-detail__date {
	display: block;
	margin-bottom: 15px;
	color: #777;
}

.news-detail__title {
	color: #222849;
	font-size: 2rem;
	font-weight: 600;
}


/*==================================================
News Detail Content
==================================================*/
.news-detail__content {
	padding: 50px 0 70px;
	line-height: 2;
}

.news-detail__content > *:first-child {
	margin-top: 0;
}

.news-detail__content > *:last-child {
	margin-bottom: 0;
}


/* Paragraph
==================================================*/
.news-detail__content p {
	margin-bottom: 2em;
}


/* Heading
==================================================*/
.news-detail__content h2 {
	margin: 3em 0 1em;
	padding-bottom: .6em;
	border-bottom: 1px solid #ddd;
	color: #222849;
	font-size: 2.4rem;
	font-weight: 600;
	line-height: 1.5;
}

.news-detail__content h3 {
	margin: 2.5em 0 1em;
	color: #222849;
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.5;
}

.news-detail__content h4 {
	margin: 2em 0 1em;
	color: #222849;
	font-size: 1.7rem;
	font-weight: 600;
	line-height: 1.5;
}


/* Link
==================================================*/
.news-detail__content a {
	color: #222849;
	text-decoration: underline;
	text-underline-offset: 4px;
}


/* List
==================================================*/
.news-detail__content ul,
.news-detail__content ol {
	margin-bottom: 2em;
	padding-left: 1.5em;
}

.news-detail__content li {
	margin-bottom: .5em;
}


/* Image
==================================================*/
.news-detail__content img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 40px auto;
}

.news-detail__content figure {
	max-width: 100%;
	margin: 40px 0;
}

.news-detail__content figure img {
	margin: 0;
}

.news-detail__content figcaption {
	margin-top: 10px;
	color: #777;
	font-size: 1.3rem;
	line-height: 1.6;
}


/*==================================================
Back
==================================================*/
.news-detail__back {
	display: flex;
	justify-content: center;
	padding-top: 40px;
	border-top: 1px solid #ddd;
}

.news-detail__back a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #222849;
}

.news-detail__back i {
	transition: transform .3s ease;
}

@media (hover: hover) {

	.news-detail__back a:hover i {
		transform: translateX(-6px);
	}

}


/*==================================================
Responsive
==================================================*/
@media screen and (max-width: 900px) {

	/* News
	==================================================*/
	.news-list {
		padding: 0 20px 80px;
	}

	.news-list__item a {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 20px;
		padding: 25px 5px;
	}

	.news-list__item time {
		grid-column: 1;
		grid-row: 1;
		font-size: 1.2rem;
	}

	.news-list__item h2 {
		grid-column: 1;
		grid-row: 2;
	}

	.news-list__arrow {
		grid-column: 2;
		grid-row: 1 / 3;
		width: auto;
		height: auto;
		font-size: 1.2rem;
	}


	/* Pagination
	==================================================*/
	.pagination {
		gap: 8px;
		margin: -30px auto 80px;
	}

	.pagination__item,
	.pagination__prev,
	.pagination__next {
		width: 44px;
		height: 44px;
		font-size: 1.3rem;
	}


	/* News Detail
	==================================================*/
	.news-detail {
		padding: 0 20px 80px;
	}

	.news-detail__header {
		padding-bottom: 30px;
	}

	.news-detail__date {
		margin-bottom: 10px;
	}

	.news-detail__title {
		font-size: 1.8rem;
	}

	.news-detail__content {
		padding: 40px 0 50px;
		line-height: 1.9;
	}

	.news-detail__content h2 {
		font-size: 2rem;
	}

	.news-detail__content h3 {
		font-size: 1.8rem;
	}

	.news-detail__content h4 {
		font-size: 1.6rem;
	}

	.news-detail__content img,
	.news-detail__content figure {
		margin-top: 30px;
		margin-bottom: 30px;
	}

	.news-detail__back {
		padding-top: 30px;
	}

}