@charset "UTF-8";
/* NewsBox調整 */

.txtBox .comment h1,
.txtBox .comment h2,
.txtBox .comment h3,
.txtBox .comment h4,
.txtBox .comment h5,
.txtBox .comment h6,
.txtBox .comment h7 {
	font-size: 100%!important;
	text-align: left;
	padding: 0;
	margin: 0;
}

.NewsBoxDate {
	color: #999999;
}

/* 一覧（カード形式）*/
#NewsBox_index .newsBoxContents a {
	width: calc(1200px / 5 - 20px);
	margin: 0 10px 20px 10px;
	background-color: #ffffff;
}

#NewsBox_index .newsBoxContents {
	display: flex;
	flex-flow: wrap;
}

#NewsBox_index .newsBoxContents a  {
	box-shadow: 0px 5px 10px 5px rgba(0, 0, 0, 0.6);
}

#NewsBox_index .newsBoxContents a .main_photoBox {
	width: 100%;
	height: calc(1200px / 5);
	overflow: hidden;
	background-color: #444444;
}

#NewsBox_index .newsBoxContents a .main_photoBox .main_photo {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: 0.2s;
}

#NewsBox_index .newsBoxContents a:hover .main_photoBox .main_photo {
	opacity: 0.7;
	transform: scale(1.1);
	transition: 0.2s;
}

#NewsBox_index .newsBoxContents a .txtBox {
	background-color: #ffffff;
}
#NewsBox_index .newsBoxContents a .txtBox .title {
	overflow: hidden;
	border: #444444 solid;
	border-width: 10px 0;
	background-color: #444444;
	color: #ffffff;
	padding: 0 20px;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	max-height: 4.8em;
	line-height: 1.3em;
}
#NewsBox_index .newsBoxContents a .txtBox .comment {
	padding: 10px 20px;
	line-height: 1.5em;
}

/*ディテールページ*/
h2.DetailTitle {
	text-align: left!important;
	padding: 10px!important;
}

#NewsBox_Detail .photo_box {
	text-align: center;
	padding: 10px 0;
}

#NewsBox_Detail .photo_box img {
	max-width: 100%;
	max-height: 400px;
}

.DetailList {
	width: 20%;
	display: inline-block;
}

.DetailList_sp {
	display: none;
}

.DetailList .ListBox {
	width: 100%;
	margin: 0 auto 10px auto;
	line-height: 1.3em;
	font-size: 90%;
	vertical-align: top;background-color: #ffffff;
}

.DetailList .ListBox a {
	text-decoration: none;
}

.DetailList a .sideBox {
	width: 100%;
	height: 150px;
	margin: 0 auto 5px auto;
	display: inline-block;
	border: #cccccc solid;
	border-width: 1px;
	overflow: hidden;
	background-color: #000000;
}

.DetailList a .sideBox img {
	width: 100%;
	margin: 0 auto 10px auto;
}

.DetailList a:hover .sideBox img {
	opacity: 0.6;
}

.DetailList a .sideListtxt {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 10px 5px 10px;
	text-align: center;
}

#DetailBox {
	width: calc(80% - 50px);
	display: inline-block;
	vertical-align: top;
	margin: 0 0 0 50px;
}

#DetailBox h2.DetailTitle {
	color: #ffffff!important;
	text-align: center;
}

#NewsBox_Detail .btnBox {
	margin: 10px auto 0 auto;
	border: #000000 solid;
	border-width: 1px 0 0 0;
}

/*SP個数を隠す*/
.count_sp {display: none;}

#DetailBox .Main_photo {
	display: inline-block;
	margin: 20px auto 30px auto;
}

#DetailBox .Main_photo .chMain_photo {
	text-align: center;
	height: 400px;
	width: 100%;
	box-shadow: 0px 5px 15px 5px rgba(0, 0, 0, 0.6);
	overflow: hidden;
	background-color: #ffffff;
}

#DetailBox .Main_photo .chMain_photo img {
	position: relative;
	display: inline-block;
	max-width: 100%;
	max-height: 100%;
}

#DetailBox .Sub_photo {
	display: inline-block;
	width: calc(100% / 5 - 10px);
	height: 98px;
	background-color: #000000;
	overflow: hidden;
	position: relative;
	text-align: left;
	margin: 0 5px;
}

#DetailBox .Sub_photo a {
	width: 100%;
	position: absolute;
	display: inline-block;
	top: 50%;
	transform: translateY(-50%);
}

#DetailBox .Sub_photo a img {
	width: 100%;
}

#DetailBox .Sub_photo a:hover img {
	opacity: 0.6;
	transform: scale(1.1);
}

#DetailBox .comment_box {
	margin: 20px auto 30px auto;
	background-color: #ffffff;
	padding: 0;
}

/* ------------------------------------------------------ */
@media only screen and (max-width : 1250px) {
/* ------------------------------------------------------ */
#NewsBox_index .newsBoxContents a {
    width: calc(100% / 5 - 20px);
}

#NewsBox_index .newsBoxContents a .main_photoBox  {
	height: calc(100vw / 5 - 50px);
}
	
#DetailBox .Main_photo .chMain_photo {
	text-align: center;
	height: calc(100vw * 0.4);
	width: 100%;
	background-color: #cccccc;
}

#DetailBox .Sub_photo {
	height: calc(100vw * 0.08);
}

.DetailList a .sideBox {
	height: calc(100vw * 0.1);	
}

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 820px) {
/* ------------------------------------------------------ */
/*SP個数を入れ替える*/
.count_sp {display: inline;}
.count_pc {display: none;}

#NewsBox_index .newsBoxContents a {
    width: calc(100% / 2 - 20px);
}

	#NewsBox_index .newsBoxContents a .main_photoBox  {
		height: calc(100vw / 3);
	}

}

/* ------------------------------------------------------ */
@media only screen and (max-width : 500px) {
/* ------------------------------------------------------ */
/*SP個数を入れ替える*/
.count_sp {display: inline;}
.count_pc {display: none;}


	
#DetailBox .Main_photo .chMain_photo {
	text-align: center;
	height: calc(100vw * 0.8);
	width: 100%;
	background-color: #cccccc;
}

.DetailList_pc {
	display: none;
}

.DetailList_sp {
	display: inline-block;
	margin: 20px auto 0 auto;
}

.DetailList {
	width: 100%;
	}

#DetailBox {
	width: 100%;
	margin: 0;
}

#DetailBox .ListBox {
	width: calc(20% - 10px);
	display: inline-block;
	margin: 0 5px;
}

.DetailList a .sideBox {
	margin: 0;
	height: calc(100vw / 5 - 20px);
}

#DetailBox .Sub_photo {
	width: calc(100% / 3 - 10px);
	height: calc(100vw * 0.2);
}

#NewsBox_index .newsBoxContents a .txtBox {
	font-size: 80%;
}
	
#NewsBox_index .newsBoxContents a .txtBox .comment {
	padding: 10px;
}

}