@charset "UTF-8";

/* 記事一覧各アイテム */
.articles-list_item{
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 0 40px;
	margin: 20px 0;
	padding: 20px 0;
	border-bottom: 1px solid #eee;
}

/* 記事一覧サムネ */
.articles-list_item figure{
	position: relative;
	width: 320px;
}

.articles-list_item figure img{
	width: 100%;
	aspect-ratio: 320/180;
	object-fit: scale-down;
}

@media all and (max-width:860px){
	.articles-list_item{
		grid-template-columns: repeat(2, 1fr);
	}

	.articles-list_item figure{
		width: 100%;
	}
}

@media all and (max-width:640px){
	.articles-list_item{
		grid-template-columns: 1fr;
	}
}

/* サムネ右の情報 */
.articles-list_info_head{
	display: flex;
	justify-content: space-between;
}

/* カテゴリ */
.articles-list_info_head .articles-list_categories{
	display: flex;
}

.articles-list_categories .category1, 
.articles-list_categories .category2{ 
	display: inline-flex;
	margin-right: 1em;
	padding: 0 1em;
	border-radius: 5px;
	align-items: center;
}

.articles-list_categories .category1{
	border: 1px solid #379b06;
	color: #379b06;
}

.articles-list_categories .category2{
	border: 1px solid #ec600c;
	color: #ec600c;
}

/* 記事一覧タイトル */
.articles-list_title{
	margin-top: 20px;
	font-size: 1.1375em;
	font-weight: bold;
}

@media all and (max-width:860px){
	.articles-list_info_head{
		display: flex;
		justify-content: space-evenly;
		flex-direction: column;
	}

	.articles-list_categories{
		margin-top: 10px;
	}

	.articles-list_categories .category1{
		margin-right: 2%;
	}

	.articles-list_categories .category2{
		margin-right: 0;
	}

	.articles-list_title{
		line-height: 1.2;
	}
}


/* ----------------------------------------
 記事各ページ
-------------------------------------------------- */
.article_inner{
	padding: 0 20px;
	max-width: 1020px;
	margin: 0 auto;
}

.article_inner p{
	margin-top: 20px;
}

.article_inner figure{
	text-align: center;
}

.article-info{
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	margin-bottom: 25px;
}

.article-info_categories{
	display: flex;
	justify-content: space-evenly;
}

.article-info_category1,
.article-info_category2{
	display: inline-flex;
	align-items: center;
	margin-right: 1em;
	padding: 0 1em;
	border-radius: 5px;
}

.article-info_category1{
	border: 1px solid #379b06;
	color: #379b06;
}

.article-info_category2{
	border: 1px solid #ec600c;
	color: #ec600c;
}

.article-title{
	margin-bottom: 20px;
	font-size: 1.125em;
	font-weight: bold;
	line-height: 1.4;
}

@media all and (max-width: 525px) {
	.article-info{
		display: flex;
		justify-content: flex-start;
		flex-direction: column;
		margin-bottom: 25px;
	}

	.article-info_categories{
		display: flex;
		justify-content: flex-start;
		margin-top: 10px;
	}

	.article-info_category1{
		margin-right: 2%;
	}

	.article-info_category2{
		margin-right: 0;
	}

	.article-title{
		font-size: 1.875em;
		line-height: 1.2;
	}
}

.article_body h2{
	position: relative;
	margin: 50px 0 20px;
	padding-bottom: 0.5em;
	font-size: 1.875em;
	line-height: 1.4;
}

.article_body h2::before{
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	background: #64c830;
	width: 100%;
	max-width: 3.2em;
	height: 3px;
	z-index: 1;
}

.article_body h2::after{
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	background: #97999b;
	width: 100%;
	height: 3px;
	z-index: 0;
}


.article_body h3{
	margin: 50px 0 20px;
	font-size: 1.625em;
	line-height: 1.4;
}

/* .article_body h4{
	margin: 50px 0 20px;
	font-size: 1.625em;
	color: #379b06;
	line-height: 1.4;
} */

.article_body h2 + h3,
.article_body h2 + h4,
.article_body h3 + h4,
.article_body h3 + h5,
.article_body h4 + h5{
	margin-top: 0;
}

/* 記事内画像 */
.article_body figure{
	text-align: center;
}

.article_body figure img{
	display: block;
	aspect-ratio: 480/360;
	object-fit: cover;
	width: 100%;
	max-width: auto;
}

.article_body .closing{
	display: flex;
	justify-content: space-between
}

.article_body .closing .closing_left-column{
	width: calc(42% - 10px);
}

.article_body .closing .closing_right-column{
	width: calc(58% - 10px);
}

@media all and (max-width:768px){
	.article_body .closing{
		flex-direction: column;
		justify-content: space-evenly;
	}

	.article_body .closing .closing_left-column{
		width: 100%;
	}

	.article_body .closing .closing_right-column{
		width: 100%;
	}
}