/*===news埋め込み部分用==============================*/
.news{
	width: 100%;
	margin: 0 ;
	padding: 50px 0;
	background: #f6f9f4;
}
.news .inner{
	width: calc(100% - 30px);
	max-width: 1366px;
	margin: auto;
}

#newsWrap ul#newsList{
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	flex-wrap: wrap;
	width: 100%;
}
#newsWrap ul#newsList a{
	display: inline-block;
	width: calc(100% / 4 - 10px);
	margin: 5px;
	color: #4d4d4d;
	background:#fff;
	font-size:1rem;
	padding: 15px;
	border-radius: 10px;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
	
}
#newsWrap ul#newsList li{
	list-style-type: none;
}

/*サムネイル*/
.thumbNailWrap{
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	min-height: 0%;
}
.thumbNailWrap img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition-duration: 0.5s;
}

#newsWrap ul#newsList a:hover .thumbNailWrap img{
	transform: scale(1.2);
	transition-duration: 0.5s;
}

/*日付*/
#newsWrap ul#newsList li .up_ymd{
	display: block;
	font-weight: 500;
	color: #03ac74;
	margin-top: 0.5rem;
}

#newsWrap ul#newsList li .title{
	display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	width: 90%;
	max-width: 20em;
}
@media (max-width: 960px){
	#newsWrap{
		height: 270px;
		overflow: scroll;
		/* スクロールバー非表示Edge*/
		-ms-overflow-style: none;
		/* スクロールバー非表示Firefox*/
		scrollbar-width: none;
	}
	 /* スクロールバー非表示Google Chrome、Safari*/
	#newsWrap::-webkit-scrollbar{
		display: none;
	}
	
	#newsWrap ul#newsList{
		max-width: 700px;
		margin: auto;
	}
	#newsWrap ul#newsList a{
		width: calc(100% / 2 - 10px);
		max-width: 350px;
	}
	.news-detail #newsWrap{
		height: auto;
	}
}

@media (max-width: 750px){
	#newsWrap ul#newsList{
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	#newsWrap ul#newsList a{
		width: calc(100%  - 20px);
		max-width: 350px;
	}
}
@media (max-width: 450px){
	#newsWrap ul#newsList a{
		width: 90%;
	}
}

/*===news-detail.php用==============================*/
.news-detail .flex{
	display: flex;
	justify-content: space-between;
	padding: 0 15px;
}
.news-detail .flex #main{
	width: calc(100% - 270px);
}
.news-detail .flex #main img{
	max-width: 100%;
}
.news-detail .flex #side{
	width: 220px;
}

/*main*/
.news-detail .flex #main #up_ymd{
	font-size: 0.8em;
	font-weight: 500;
	letter-spacing: 0.05em;
	margin-bottom: 20px;
	color: #03ac74;
}
.news-detail .flex #main #up_ymd::before{
	font-family: "Font Awesome 6 Free";
	content: '\f017';
	font-weight: 900;
	padding-right: 0.5em;
}

.news-detail .flex #main .stitle{
	font-size: 1.5rem;
	margin-bottom: 30px;
}
.news-detail .flex #main .stitle::first-letter{
	color: #03ac74;
}

.news-detail .pages{
	display: flex;
	justify-content: space-around;
	margin-top: 30px;
}
.news-detail .pages .page_next{
	width: 45%;
}
.news-detail .pages .page_prev{
	width: 45%;
}
.news-detail .pages .page_next a{
	display: block;
	width: 100%;
	border: 1px solid #ddd;
	color: #03ac74 ;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	padding: 15px;
	transition: 0.4s;
}
.news-detail .pages .page_prev a{
	display: block;
	width: 100%;
	border: 1px solid #ddd;
	color: #03ac74 ;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	padding: 15px;
	transition: 0.4s;
}
.news-detail .pages .page_prev a{
	text-align: right;
}
.news-detail .pages .page_next a:hover{
	background-color: #f7f7f7;
}
.news-detail .pages .page_prev a:hover{
	background-color: #f7f7f7;
}

/*side*/
.news-detail .flex #side h3{
	font-size: 1.1rem;
	font-weight: 500;
	margin-bottom: 10px;
}
.news-detail .flex #side h3::before{
	font-family: "Font Awesome 6 Free";
	content: '\f0ca';
	font-weight: 900;
	padding-right: 0.5em;
	color: #03ac74;
}

.news-detail .flex #side ul li a{
	display: block;
	width: 100%;
	border: 1px solid #ddd;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: #03ac74;
	padding: 15px;
	margin-bottom: 7px;
	transition: 0.4s;
}
.news-detail .flex #side ul li a::before{
	font-family: "Font Awesome 6 Free";
	content: '\f017';
	font-weight: 900;
	padding-right: 0.5em;
}
.news-detail .flex #side ul li a:hover{
	background-color: #f7f7f7;
}

@media (max-width: 960px){
	.news-detail .pages{
		display: block;
		margin-top: 30px;
	}
	.news-detail .pages .page_next{
		width: 100%;
	}
	.news-detail .pages .page_prev{
		width: 100%;
	}
	.news-detail .pages .page_next.next{
		margin-bottom: 7px;
	}
	.news-detail .pages .page_prev.next{
		margin-bottom: 7px;
	}
}
@media (max-width: 750px){
	.news-detail .flex{
		display: block;
	}
	.news-detail .flex #main{
		width: 100%;
		margin-bottom: 40px;
	}
	.news-detail .flex #side{
		width: 100%;
	}
}


/*一覧ページ*/
.news-detail .flex #main ul.list li{
	border-bottom: 1px solid #ddd;
	list-style-type:none;
	padding: 8px 0;
	color: #3f3f3f ;
	transition: .5s;
}
.news-detail .flex #main ul.list li:first-child{
	border-top: 1px solid #ddd;
}
.news-detail .flex #main ul.list li span{
	display: block;
}
.news-detail .flex #main ul.list li .up_ymd{
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	color: #03ac74;
}
.news-detail .flex #main ul.list li .title{
	font-weight: 500;
	color: #03ac74;
}

.news-detail .flex #main ul.list li a .comment{
	font-size: 0.9rem;
	color: #3f3f3f;
}
.news-detail .flex #main ul.list li:hover{
	opacity: 0.5;
}

