/* news一覧ページ
---------------------------*/
.post-type-archive-news {
	.news--txt {
		overflow: hidden;
		display: -webkit-box;
		line-clamp: 1;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
	}

	@media (max-width: 767px) {
		.news--txt {
			font-size: .875rem;
			line-clamp: 2;
			-webkit-line-clamp: 2;
		}
	}
}

/* news タイトル
---------------------------*/

.news-post__wrapper {
	position: relative;
	padding: 2rem 0;

	&:before {
		content: '';
		display: block;
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 1px;
		background: var(--gray-100);
	}

	&:after {
		content: '';
		display: block;
		position: absolute;
		left: 0;
		bottom: 0;
		width: 40px;
		height: 1px;
		background: var(--green);
	}
}

/* news 詳細ページ
---------------------------*/
.news-post {
	h2 {
		font-size: 1.25rem;
		font-weight: 700;
		line-height: 1.5;
		margin-bottom: 1.2em;
		padding-left: 15px;
		position: relative;

		&:before {
			content: '';
			display: block;
			position: absolute;
			top: 0;
			left: 0;
			bottom: 0;
			width: 3px;
			height: 30px;
			background: var(--green);
		}
	}

	h3 {
		font-size: 1.25rem;
		font-weight: 400;
		line-height: 1.5;
		margin-bottom: .8em;
	}

	ul {
		list-style: disc;
		padding-left: 1.2em;
		margin: 1.5rem 0;
	}

	ol {
		list-style: decimal;
		padding-left: 1.2em;
		margin: 1.5rem 0;
	}

	li {
		&::marker {
			color: var(--green);
			font-size: large;
		}

		&:not(:first-child) {
			margin-top: 8px;
		}
	}

	a {
		color: var(--green);
		text-decoration: underline;
	}

	p {
		strong {
			color: var(--green);
		}
	}

	.wp-block-quote {
		padding: 24px;
		background: var(--green-light);
	}

	.sns-box {
		a {
			transform: .3s;

			&:hover {
				filter: brightness(110%);
			}
		}
	}

	@media (max-width: 767px) {
		h2 {
			font-size: 1.125rem;
		}

		h3 {
			font-size: 1rem;
		}

		p,
		li {
			font-size: .875rem;
		}

		.sns-box {
			img {
				width: 83px;
				height: auto;
			}
		}

		.news-post__arrow {
			width: 18px;
			height: 18px;
		}
	}
}

.pagination__prev,
.pagination__next {
	display: flex;
	align-items: center;

	a {
		color: var(--black);
		text-decoration: none;

		&:hover {
			color: var(--green);
			text-decoration: underline;
		}
	}

	@media (max-width: 767px) {
		a {
			font-size: .875rem;

			img {
				width: 18px;
				height: 18px;
			}
		}
	}
}