/*======================================

	林建設工業
	お知らせCSS

=======================================*/

/* 共通 */
span.icon_cat1,
span.icon_cat2,
span.icon_cat3{
	font-size: 80%;
	width: 95px;
	display: block;
	padding: 3px 0;
	margin-left: 150px;
	text-align: center;
	color: #fff;
}
span.icon_cat1{
	background-color: #0a8d00;
}
span.icon_cat2{
	background-color: #eb6120;
}
span.icon_cat3{
	background-color: #38a1db;
}




/*======================================
	お知らせ 一覧
=======================================*/

#category_list{
	margin-bottom: 50px;
}
#category_list li{
	float: left;
	width: 23%;
	max-width: 253px;
	text-align: center;
}
#category_list li:not(:last-child){
	margin-right: 2.66%;
}
#category_list li a{
	color: #abaaaa;
	font-size: 130%;
	/* font-family: 'Noto Sans JP', sans-serif;
	font-weight: 700; */
	/* font-weight: bold; */
	display: block;
	text-decoration: none;
	border-bottom: solid 4px #abaaaa;
	padding-bottom: 3px;
}
#category_list li.active a{
	color: #0a8d00;
	border-bottom: solid 4px #0a8d00;
	font-weight: normal;
}
#category_list li a:hover{
	color: #0a8d00;
	border-bottom: solid 4px #0a8d00;
}

/* 一覧 */
#search_result ul.list{
	margin-bottom: 60px;
}
#search_result ul.list > li:not(:last-child){
	margin-bottom: 30px;
}
#search_result .info{
	position: relative;
	float: left;
}
#search_result .date{
	position: absolute;
	top: 1px;
}

#search_result .title{
	padding-left: 265px;
}
#search_result .title a{
	margin-right: 10px;
}

.icon_new img{
	line-height: 1;
	vertical-align: -0.2em;
}

/* ページ分け */
.page_link{
	position: relative;
}

.page_link ul{
	text-align: center;
	padding-top: 8px;
}
.page_link ul li{
	display: inline-block;
	font-size: 105%;
	margin-right: 10px;
}
.page_link ul li:last-child{
	margin-right: 0;
}
.page_link li .now{
	color: #fff;
	padding: 6px 11px;
	background: #0a8d00;
}
.page_link li a{
	color: #b5b5b6;
	padding: 6px 11px;
	background: #ebf5e7;
	text-decoration: none;
}
.page_link li a:hover{
	color: #fff;
	background: #0a8d00;
}


.prev{
	position: absolute;
	top: 0;
	left: 0;
	text-align: right;
	max-width: 140px;
	width: 100%;
}
.next{
	position: absolute;
	top: 0;
	right: 0;
	text-align: left;
	max-width: 140px;
	width: 100%;
}
.prev a,
.next a{
	max-width: 140px;
	width: 100%;
	display: block;
	color: #0a8d00;
	text-decoration: none;
	background-color: #fff;
	font-size: 110%;
	display: inline-block;
	padding: 5px 0;
	background-repeat: no-repeat;
	border: solid 2px #0a8d00;
}
.prev a{
	background-image: url(../img/news/prev_g.png);
	background-position: top 9px left 10px;
	padding-right: 30px;
}
.next a{
	background-image: url(../img/news/next_g.png);
	background-position: top 9px right 10px;
	padding-left: 30px;
}

.prev a:hover{
	color: #fff;
	background: #0a8d00;
	background-image: url(../img/news/prev_w.png);
	background-position: top 9px left 10px;
	background-repeat: no-repeat;
}
.next a:hover{
	color: #fff;
	background: #0a8d00;
	background-image: url(../img/news/next_w.png);
	background-position: top 9px right 10px;
	background-repeat: no-repeat;
}

.btn_off{
	display: none;
}


@media screen and (max-width:700px){
	#search_result ul.list > li{
		margin-bottom: 20px;
	}
	#search_result .info{
		float: none;
		margin-bottom: 10px;
	}
	#search_result .title{
		padding-left: 0;
	}
	#news_list .date {
		line-height: 1;
		top: 6px;
	}
	#news_list .category > span {
		padding: 2px 0;
		font-size: 90%;
	}
	
	.prev,
	.next{
		width: 21.2%;
	}
}

@media screen and (max-width:600px){
	#category_list li a{
		font-size: 110%;
	}
	
	.page_link ul{
		margin: 30px 0;
		padding-top: 0;
	}
	.prev, .next {
		width: 100%;
		position: relative;
		margin: 0 auto;
	}
}

@media screen and (max-width:500px){
	#category_list li a{
		font-size: 110%;
	}
	#category_list li {
		width: 48%;
		margin-right: 4%;
		margin-bottom: 30px;
	}
	#category_list li:nth-child(even) {
		margin-right: 0;
	}
}

@media screen and (max-width:400px){
	.page_link ul{
		margin: 30px 0 0 0;
	}
	.page_link ul li {
		margin-bottom: 30px;
	}
}



/*======================================
	お知らせ 詳細
=======================================*/
.content_wrap{
	position: relative;
}
#news_wrap{
	max-width: 800px;
	width: calc(100% - 250px);
}

#news_wrap > .btn_wrap{
	margin-top: 40px;
	margin-bottom: 100px;
}

h3.news_title{
	font-size: 150%;
	font-weight: bold;
	background: #e6e6e6;
	padding: 5px 15px;
	border-top: solid 1px #231815;
	border-bottom: solid 1px #231815;
	margin-bottom: 40px;
}

#news_info{
	margin-bottom: 25px;
}
#news_info .info{
	position: relative;
}
#news_info .date{
	position: absolute;
	top: 4px;
}


#news_detail .detail .news_title{
	position: relative;
}
#news_detail .detail .icon_new{
	vertical-align: 0.25em;
	line-height: 1;
	margin-right: 10px;
}

#news_detail .detail .txt{
	margin-bottom: 50px;
}

.link_wrap{
	margin-bottom: 60px;
}
.link_wrap ul li{
	padding-left: 30px;
	margin-bottom: 7px;
}
.link_wrap ul li:last-child{
	margin-bottom: 0;
}
img.link_outside {
	padding-top: 2px;
	padding-left: 3px;
}

/* 画像リスト */
.image_list li {
	float: left;
	width: 46%;
	text-align: left;
	margin-left: 2%;
	margin-right: 2%;
	margin-bottom: 45px;
}
.image_list li.large {
	max-width: 75%;
	width: 100%;
	margin-left: 12.5%;
	margin-right: 12.5%;
	text-align: center;
}
.image_list li .caption{
	margin-top: 10px;
}

/* サイドナビ */
.nav_detail{
	padding: 15px;
}
#news_detail #side_nav ul{
}
#news_detail #side_nav ul li{
	position: relative;
	font-size: 86%;
	padding: 15px 0;
	margin-bottom: 0;
	border-bottom: dotted 1px #000;
}
#news_detail #side_nav ul li.ichiran{
	padding-left: 15px;
	border-bottom: none;
}
#news_detail #side_nav ul li.ichiran::before {
	content: url(../img/common/mk_nav.png);
	position: absolute;
	top: 16px;
	left: 0;
}
#news_detail #side_nav .nav_date{
	left: 0;
	margin-bottom: 3px;
}
#news_detail #side_nav span.icon_cat1,
#news_detail #side_nav span.icon_cat2,
#news_detail #side_nav span.icon_cat3{
	background: 0;
	width: 55px;
	padding: 0;
	margin: 0 !important;
}
#news_detail #side_nav .title a{
	margin-right: 5px;
}

#news_detail #side_nav .nav_date{
	float: left;
	margin-right: 5px;
}
#news_detail #side_nav .nav_category{
	float: left;
}

#news_detail #side_nav span.icon_cat1::before{
	content: '';
	background: url(../img/news/icon_1.png);
	width: 55px;
	height: 18px;
	display: block;
}
#news_detail #side_nav span.icon_cat2::before{
	content: '';
	background: url(../img/news/icon_2.png);
	width: 55px;
	height: 18px;
	display: block;
}
#news_detail #side_nav span.icon_cat3::before{
	content: '';
	background: url(../img/news/icon_3.png);
	width: 55px;
	height: 18px;
	display: block;
}




@media screen and (max-width:800px) {
	.nav_detail{
		padding: 15px 0;
	}
	
	#news_detail #side_nav ul li.ichiran::before {
		top: 16px;
	}
	
#news_wrap{
	max-width: 100% !important;
	width: 100% !important;
}
#side_nav{
	display: block;
}
#news_detail #side_nav ul {
	background: none;
	padding: 0 20px;
}
#news_detail #side_nav ul li {
	font-size: 100%;
	padding: 15px 0;
	margin-top: 0;
	margin-bottom: 0;
}
#news_detail #side_nav .nav_date {
	padding-top: 0;
	margin-right: 10px;
}
#news_detail #side_nav .nav_category {
	padding-top: 2px;
}
#news_detail #side_nav span.icon_cat1,
#news_detail #side_nav span.icon_cat2,
#news_detail #side_nav span.icon_cat3{
	float: left;
	font-size: 90%;
}
.nav_detail > ul > li{
	padding-left: 15px;
	padding-right: 15px;
	padding-bottom: 15px;
	margin-top: 15px;
}

.nav_title {
	padding-bottom: 0px;
	padding-left: 20px;
	border-bottom: none;
}
}



@media screen and (max-width:400px) {
	#news_detail .detail{
		margin-bottom: 50px;
	}
	.image_list li {
		float: none;
		max-width: 400px;
		width: 100%;
		text-align: left !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 20px;
	}
	.image_list li.large{
		max-width: 400px;
		width: 100%;
	}
}
