@charset "UTF-8";
/* CSS Document (新着情報CMS) */

/*===index.php(メイン)用==============================*/

/*#newsWrap(おもてページ)の指定*/
.news .flex{
	display: flex;
	justify-content: space-between;
}
.news .flex .text{
	width: 300px;
}
.news .flex #newsWrap{
	width: calc(100% - 320px);
}

#newsWrap{
    max-width: 1200px;
    width: 70%;
}
#newsWrap ul#newsList{
	overflow-y: scroll;
	max-height: 350px;
	width: 100%;
	padding-right: 3px;
}
#newsWrap ul#newsList li{
	list-style-type: none;
	border-top: 1px solid #d5d5d5;
}
#newsWrap ul#newsList li:last-child{
	border-bottom: 1px solid #d5d5d5;
}
#newsWrap ul#newsList li a{
	display: flex;
	justify-content: flex-start;
    gap:10px;
	align-items: center;
	padding: 10px 0;
}

ul#newsList li a .thumbNailWrap{
	display: block;
	width: 140px;
	position: relative;
	overflow: hidden;
	min-height: 0%;
	z-index: 1;
}
ul#newsList li a .thumbNailWrap::before{
	content: '';
	display: block;
	padding-top: 80%;
}
ul#newsList li a .thumbNailWrap img{
	display: block;
	object-fit: cover;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	transition: all 0.4s ease;
}

#newsWrap ul#newsList li a .info{
	width: calc(100% - 160px);
}
#newsWrap ul#newsList li a .up_ymd{
	display: block;
	letter-spacing: 0.08em;
	color: #27b283;
	font-weight: 900;
	font-size: 1rem;
}
#newsWrap ul#newsList li a .title{
    font-size: 1rem;
	letter-spacing: 0.1em;
}

#newsWrap ul#newsList li a:hover{
	background-color: #f5f5f5;
}
#newsWrap ul#newsList li a:hover .thumbNailWrap img{
	transform: scale(1.04);
}

@media (max-width: 750px){
    #newsWrap{
        width: 100%;
    }
	.news .flex{
		display: block;
	}
	.news .flex .text{
		width: 100%;
	}
	.news .flex #newsWrap{
		width: 96%;
		margin: 0 auto;
	}
	ul#newsList li a .thumbNailWrap{
		width: 120px;
	}
	#newsWrap ul#newsList li a .info{
		width: calc(100% - 140px);
	}
}
@media (max-width: 750px) {
  #newsWrap ul#newsList li a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .thumbNailWrap {
    width: 100px;
    min-width: 100px;
  }

  .textWrap {
    display: flex;
    flex-direction: column; /* ← 縦に並べる */
    width: calc(100% - 110px);
  }

  .textWrap .up_ymd {
    font-size: 0.85rem;
    color: #27b283;
    font-weight: bold;
  }

  .textWrap .title {
    font-size: 1rem;
    line-height: 1.4;
  }
}


/*スクロールバー*/
#newsWrap ul#newsList::-webkit-scrollbar{
    overflow: hidden;
    width: 5px;
	border-radius: 500px;
    background: #eee;
}
#newsWrap ul#newsList::-webkit-scrollbar-button {
    display: none;
}
#newsWrap ul#newsList::-webkit-scrollbar-thumb, #newsWrap ul#newsList::-webkit-scrollbar-corner {
    background: #777;
	border-radius: 500px;
}


/*===news-detail(詳細ページ)用==============================*/
/*.news-detail .flex{
	display: flex;
	justify-content: space-between;
}
.news-detail .flex #main{
	width: calc(100% - 270px);
}
.news-detail .flex #side{
	width: 220px;
}*/

.news-detail .flex #main{
	max-width: 960px;
	margin: 0 auto;
}

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

#main > #newsWrap{
    width: 100%;
    max-width: inherit;
}
#main > #newsWrap ul#newsList{
    max-height: inherit;
    overflow-y:auto;
}

.news-detail .pages{
	display: flex;
	justify-content: space-around;
	margin-top: 30px;
}
.news-detail .pages > div{
	width: 45%;
}
.news-detail .pages .page_next{
}
.news-detail .pages .page_prev{
}
.news-detail .pages a{
	display: block;
	width: 100%;
	border: 1px solid #ddd;
	font-size: 0.9rem;
	font-weight: 500;
	padding: 15px;
	transition: 0.4s;
}
.news-detail .pages .page_prev a{
	text-align: right;
}
.news-detail .pages 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: var(--main_color);
}
.news-detail .flex #side ul{

}
.news-detail .flex #side ul li a{
	display: block;
	width: 100%;
	border: 1px solid #ddd;
	color: var(--main_color);
	padding: 15px;
	margin-bottom: 7px;
	font-size: 0.9rem;
	transition: 0.4s;
	letter-spacing: 0.08em;
}
.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: 40px;
	}
	.news-detail .pages > div{
		width: 100%;
	}
	.news-detail .pages .page_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 li{
	border-bottom: 1px solid #ddd;
	list-style-type:none;
	padding: 8px 0;
}
.news-detail .flex #main li a{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.news-detail .flex #main li a .thumbNailWrap{
	width: 140px;
}
.news-detail .flex #main li a .info{
	width: calc(100% - 180px);
}
.news-detail .flex #main li .up_ymd{
	margin-bottom: 3px;
	color: #27b283;
	font-weight: 900;
	font-size: 0.9rem;
}
.news-detail .flex #main li .up_ymd::before{
	display: inline-block;
	font-family: "Font Awesome 6 Free";
	content: '\f017';
	font-weight: 900;
	padding-right: 0.5em;
	font-size: 0.7rem;
	transform: translateY(-1px);
}
.news-detail .flex #main li:first-child{
	border-top: 1px solid #ddd;
}
.news-detail .flex #main li span{
	display: block;
}

.news-detail .flex #main li a:hover .thumbNailWrap img{
	transform: scale(1.1);
}



/*アーカイブのスクロール指定*/
.news-detail #side ul{
	overflow-y: scroll;
	max-height: 300px;
	padding-right: 10px;
}
/*スクロールバー*/
.news-detail #side ul::-webkit-scrollbar{
    overflow: hidden;
    width: 1px;
    background: #fafafa;
}
.news-detail #side ul::-webkit-scrollbar-button {
    display: none;
}
.news-detail #side ul::-webkit-scrollbar-thumb, .news-detail #side ul::-webkit-scrollbar-corner {
    background: #333;
}
.news-detail #side ul::-webkit-scrollbar-thumb, .news-detail #side ul::-webkit-scrollbar-corner {
    background: #333;
}





.news-detail .btn01{
	margin-top: 40px;
}



/*ページャー*/
.pager{
	text-align: right;
	margin: 10px 0;
}
.pager a{
	border: 1px solid #999;
    border-radius: 5px 5px 5px 5px;
    color: #333;
    font-size: 12px;
    padding: 3px 7px 2px;
    text-decoration: none;
    margin: 0 1px;
}
.pager a.current{
	background-color: #999;
    color: #fff;
}
.pager a:hover{
    background:#444;
    color: #fff;
}