@charset "utf-8";
/* 持ち込み_白老緑丘保育園 お知らせ・ブログ */

.post_page{
	margin-top: 60px;
}

/* 日付（緑）と種類（緑の札） */
.post_meta{
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	line-height: 1.5;
}

.post_date{
	font-family: Arial, "Noto Sans JP", sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: #709e18;
}

.post_category{
	padding: 1px 14px;
	font-size: 12px;
	color: #ffffff;
	background-color: #709e18;
}

.post_category:empty{
	display: none;
}



/* ------ お知らせの一覧（写真のカードが3つずつ並ぶ） ------ */
.post_box_title{
	padding-bottom: 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.06em;
	color: #312b17;
	border-bottom: 2px solid #bab7b5;
}

.news_cards{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 56px 60px;
	margin-top: 60px;
}

.news_card a{
	display: block;
}

.news_card a:hover{
	opacity: 0.75;
}

.news_card_img{
	aspect-ratio: 360 / 240;
	overflow: hidden;
	background-color: #f2f9e6;
}

.news_card_img img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news_card .post_meta{
	margin-top: 22px;
}

.news_card_title{
	margin-top: 12px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}



/* ------ ブログの一覧（左に本文、右に横の欄） ------ */
.post_layout{
	display: flex;
	align-items: flex-start;
	gap: 100px;
}

.post_main{
	flex: 1;
	min-width: 0;
}

.post_heading{
	margin-bottom: 40px;
	padding-bottom: 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
	color: #312b17;
	border-bottom: 2px solid #bab7b5;
}

.post_row{
	display: flex;
	align-items: flex-start;
	gap: 22px;
}

.post_row + .post_row{
	margin-top: 70px;
}

.post_img{
	flex: 0 0 302px;
	aspect-ratio: 302 / 202;
	overflow: hidden;
	background-color: #f2f9e6;
}

.post_img img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post_body{
	flex: 1;
	min-width: 0;
}

.post_title{
	margin-top: 8px;
	padding-bottom: 14px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.06em;
	border-bottom: 2px solid #bab7b5;
}

.post_title a:hover{
	color: #709e18;
}

.post_excerpt{
	margin-top: 16px;
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
	font-size: 14px;
	line-height: 1.75;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	overflow: hidden;
}



/* ------ ページ送り（緑の丸） ------ */
.pagination{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	margin-top: 76px;
}

.pagination a,
.pagination span{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	font-family: Arial, "Noto Sans JP", sans-serif;
	font-size: 20px;
	line-height: 1;
	color: #709e18;
	border: 1px solid #709e18;
	border-radius: 50%;
}

.pagination .current a,
.pagination .current span,
.pagination a:hover{
	color: #ffffff;
	background-color: #709e18;
}

/* 前・次は三角 */
.pagination .prev a,
.pagination .next a{
	font-size: 0;
}

.pagination .prev a::before,
.pagination .next a::before{
	content: "";
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
}

.pagination .prev a::before{
	margin-right: 3px;
	border-right: 10px solid currentColor;
}

.pagination .next a::before{
	margin-left: 3px;
	border-left: 10px solid currentColor;
}



/* ------ 記事 ------ */
.post_page_narrow{
	max-width: 1260px;
}

.article .post_meta{
	gap: 6px 18px;
}

.article .post_date{
	font-size: 22px;
}

.article_title{
	margin-top: 12px;
	padding-bottom: 14px;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.06em;
	color: #312b17;
	border-bottom: 2px solid #4a442d;
}

.article_body{
	margin-top: 30px;
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
	font-size: 15px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.article_body > * + *{
	margin-top: 1.4em;
}

.article_body img{
	display: block;
	height: auto;
	margin: 0 auto;
}

.article_body .news_img{
	text-align: center;
}

.article_body h2,
.article_body h3{
	font-family: "Noto Sans JP", sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.5;
	color: #312b17;
}

.article_body ul{
	padding-left: 1.4em;
	list-style: disc;
}

.article_body ol{
	padding-left: 1.4em;
	list-style: decimal;
}

.article_body a{
	color: #709e18;
	text-decoration: underline;
}

/* お知らせの記事は、写真を真ん中に（PC の完成イメージ） */
.post_page_narrow .article_body{
	margin-top: 46px;
}

.post_page_narrow .article_body .news_img img{
	max-width: 750px;
}

/* 前後の記事（緑の線の箱と、まん中の緑の一覧へ） */
.pager{
	display: flex;
	justify-content: center;
	gap: 44px;
	margin-top: 70px;
}

.pager li{
	width: 180px;
}

.pager .prev{
	order: 1;
}

.pager .pager_list{
	order: 2;
}

.pager .next{
	order: 3;
}

.pager_btn{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 24px;
	font-family: "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #709e18;
	background-color: #ffffff;
	border: 1px solid #709e18;
}

.pager_btn_list{
	color: #ffffff;
	background-color: #709e18;
}

.pager_btn:hover{
	opacity: 0.75;
}

.pager_prev::before,
.pager_next::after{
	content: "";
	position: absolute;
	top: 50%;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	transform: translateY(-50%);
}

.pager_prev::before{
	left: 16px;
	border-right: 8px solid #709e18;
}

.pager_next::after{
	right: 16px;
	border-left: 8px solid #709e18;
}



/* ------ 横の欄（薄い黄緑の角丸の箱） ------ */
.side{
	flex: 0 0 300px;
}

.side_box{
	padding: 24px 16px 18px;
	background-color: #f2f9e6;
	border-radius: 16px;
}

.side_box + .side_box{
	margin-top: 30px;
}

.side_title{
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	color: #312b17;
}

/* カテゴリー（白・緑・橙・青緑の順にくり返す） */
.side_categories{
	margin-top: 18px;
}

.side_categories li + li{
	margin-top: 22px;
}

.side_categories a{
	position: relative;
	display: block;
	padding: 12px 40px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	color: #312b17;
	background-color: #f5f4f2;
}

.side_categories a::after{
	content: "＞";
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
}

.side_categories li:nth-of-type(4n + 2) a{
	color: #ffffff;
	background-color: #709e18;
}

.side_categories li:nth-of-type(4n + 3) a{
	color: #ffffff;
	background-color: #ff9a2d;
}

.side_categories li:nth-of-type(4n) a{
	color: #ffffff;
	background-color: #33aaa9;
}

.side_categories a:hover{
	opacity: 0.8;
}

/* 新着の記事（白い角丸の箱） */
.side_recent{
	margin-top: 18px;
}

.side_recent_item + .side_recent_item{
	margin-top: 20px;
}

.side_recent_item a{
	display: block;
	padding: 14px 18px;
	line-height: 1.6;
	background-color: #ffffff;
	border-radius: 12px;
}

.side_recent_item a:hover{
	opacity: 0.75;
}

.side_date{
	display: block;
	font-size: 13px;
	color: #709e18;
}

.side_post{
	display: block;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 月別アーカイブ */
.side_year{
	margin-top: 18px;
}

.side_year_label{
	padding: 0 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: #4a442d;
}

.side_months{
	margin-top: 8px;
}

.side_months li + li{
	margin-top: 12px;
}

.side_months a{
	position: relative;
	display: block;
	padding: 9px 36px 9px 18px;
	font-size: 15px;
	line-height: 1.4;
	background-color: #ffffff;
}

.side_months a::after{
	content: "＞";
	position: absolute;
	top: 50%;
	right: 14px;
	font-size: 13px;
	transform: translateY(-50%);
}

.side_months a:hover{
	color: #709e18;
}






/* ------ スマホ・タブレット ------ */
@media screen and (max-width: 1000px){

	.post_page{
		margin-top: 36px;
	}

	.post_date{
		font-size: 14px;
	}

	.post_category{
		font-size: 11px;
	}

	.post_box_title,
	.post_heading{
		font-size: 18px;
	}

	.news_cards{
		grid-template-columns: repeat(2, 1fr);
		gap: 30px 16px;
		margin-top: 30px;
	}

	.news_card .post_meta{
		gap: 4px 8px;
		margin-top: 12px;
	}

	.news_card_title{
		margin-top: 6px;
		font-size: 14px;
	}

	.post_layout{
		flex-direction: column;
		align-items: stretch;
		gap: 60px;
	}

	.post_row{
		flex-direction: column;
		gap: 14px;
	}

	.post_row + .post_row{
		margin-top: 44px;
	}

	.post_img{
		flex: none;
		width: 100%;
	}

	.post_title{
		font-size: 17px;
	}

	.pagination{
		gap: 12px;
		margin-top: 48px;
	}

	.pagination a,
	.pagination span{
		width: 38px;
		height: 38px;
		font-size: 16px;
	}

	.article .post_date{
		font-size: 17px;
	}

	.article_title{
		font-size: 19px;
	}

	.article_body{
		margin-top: 24px;
	}

	.post_page_narrow .article_body{
		margin-top: 30px;
	}

	.pager{
		gap: 10px;
		margin-top: 48px;
	}

	.pager li{
		flex: 1;
		width: auto;
		max-width: 150px;
	}

	.pager_btn{
		height: 46px;
		padding: 0 14px;
		font-size: 13px;
	}

	.pager_prev::before{
		left: 8px;
	}

	.pager_next::after{
		right: 8px;
	}

	.side{
		flex: none;
	}
}
