@charset "utf-8";

/*-------------------- sub_mv --------------------*/
.sub_mv {
	background-image: url(../img/sub/bg_mv_photogallery.jpg);
}

/*-------------------- content --------------------*/
.photogallery_search{
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 30px;
}
.photogallery_search .btn_common{
	width: 22.6%;
	font-weight: bold;
	font-size: 1.8rem;
	border: 1px solid #00b5f0;
	background-color: #ffffff;
	color: #000000;
	padding-top: 13px;
	padding-bottom: 13px;
	margin: 0 3.2% 20px 0;
}
.photogallery_search .btn_common:nth-of-type(4n){
	margin-right: 0;
}
.photogallery_search .btn_common.on,.photogallery_search .btn_common:hover{
	background-color: #00b5f0;
	color: #ffffff;
}

.photogallery_list {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: -16px;
}

.photogallery_list>li {
	width: 32.4%;
	margin-right: 1.4%;
	margin-bottom: 16px;
	padding: 20px 15px;
	background-color: #f2f3fa;
	border: 1px solid transparent;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	cursor: pointer;
}

.photogallery_list>li:nth-of-type(3n) {
	margin-right: 0;
}

.photogallery_list>li:hover {
	border-color: #233f9a;
}

.photogallery_img_wrap {
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	position: relative;
	border-radius: 10px;
	background-color: #ffffff;
}

.photogallery_img_wrap img {
	display: block;
}

.photogallery_img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
}

.photogallery_content {
	font-weight: bold;
	font-size: 1.6rem;
	width: 100%;
	max-width: 310px;
	margin: 0 auto;
	padding-top: 16px;
}

.photogallery_object {
	color: #233f9a;
	margin-bottom: 10px;
}

/*-------------------- popup --------------------*/
.popup {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 1000;
}

.popup .main {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	max-height: 90%;
	background-color: #f2f3fa;
	padding: 50px 110px 90px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

}

.popup_inner {
	height: 100%;
	overflow-y: scroll;
}

.btn_close {
	width: 49px;
	height: 49px;
	position: absolute;
	top: 18px;
	right: 18px;
}

.btn_close img {
	display: block;
}

.popup_cate_wrap {
	width: 100%;
	display: flex;
	padding: 0 25px;
	justify-content: space-between;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.popup_cate {
	width: 48%;
	display: flex;
	font-weight: bold;
	justify-content: space-between;
	align-items: start;
}

.popup_cate_tit {
	width: 120px;
	color: #ffffff;
	background-color: #233f9a;
	font-size: 1.6rem;
	text-align: center;
	padding: 5px 0;
}

.popup_cate_txt {
	font-size: 2rem;
	width: calc(100% - 145px);
	padding-top: 2px;
}

.popup_img {
	width: 100%;
	position: relative;
	padding: 0 25px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin: 40px auto 65px auto;
}

.popup_img img {
	display: block;
}

.popup_img img.photogallery_popup_img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
}

.popup_foot {
	display: flex;
	justify-content: space-between;
	position: relative;
}

.popup_logo {
	display: block;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	position: absolute;
}

.btn_popup {
	display: block;
	width: 35%;
	max-width: 320px;
	background-color: #ffffff;
	border: 3px solid #00b5f0;
	border-radius: 30px;
	color: #000000;
	text-align: center;
	font-size: 1.6rem;
	line-height: 1.25;
	padding: 6px 10px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.btn_popup:hover {
	background-color: #00b5f0;
	color: #ffffff;
}

@media only screen and (max-width: 1200px) {
	/*-------------------- popup --------------------*/

	.popup .main {
		padding: 50px 60px;

	}
}

@media only screen and (max-width: 1024px) {

	/*-------------------- content --------------------*/


	.photogallery_search .btn_common{
		width: 24%;
		margin-right: 1.33%;
	}
	.photogallery_list>li {
		width: 33%;
		margin-right: 0.5%;
	}

	/*-------------------- popup --------------------*/

	.popup .main {
		padding: 50px 40px;
	}

	.btn_close {
		width: 40px;
		height: 40px;
		top: 12px;
		right: 12px;
	}

	.popup_cate_wrap {
		padding: 0;
	}

	.popup_img {
		padding: 0;
	}

}


@media only screen and (max-width: 768px) {

	/*-------------------- content --------------------*/

	.photogallery_search{
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		margin-bottom: 30px;
	}
	.photogallery_search .btn_common{
		width: 32%;
		margin-right: 2%;
	}
	.photogallery_search .btn_common:nth-of-type(4n){
		margin-right: 2%;
	}
	.photogallery_search .btn_common:nth-of-type(3n){
		margin-right: 0;
	}
	
	.photogallery_list>li {
		width: 48%;
		margin-right: 4%;
	}

	.photogallery_list>li:nth-of-type(3n) {
		margin-right: 4%;
	}

	.photogallery_list>li:nth-of-type(2n) {
		margin-right: 0;
	}

	/*-------------------- popup --------------------*/

	.popup .main {
		padding: 40px 30px;

	}

	.popup_cate_wrap {
		display: block;
	}

	.popup_cate {
		width: 100%;
		margin-bottom: 20px;
	}

	.popup_cate:last-of-type {
		margin-bottom: 0;
	}

	.popup_cate_txt {
		font-size: 1.8rem;
	}

	.popup_img {
		margin: 30px auto;
	}

	.popup_foot {
		display: block;
	}

	.popup_logo {
		top: auto;
		bottom: auto;
		left: auto;
		right: auto;
		position: static;
	}

	.btn_popup {
		width: 100%;
		margin: 20px auto 0 auto;
	}

}

@media only screen and (max-width: 480px) {

	/*-------------------- content --------------------*/

	.photogallery_search{
		margin-bottom: 20px;
	}
	.photogallery_search .btn_common{
		width: 48%;
		font-size: 1.6rem;
		padding-top: 10px;
		padding-bottom: 10px;
		margin: 0 4% 15px 0;
	}
	.photogallery_search .btn_common:nth-of-type(3n){
		margin-right: 4%;
	}
	.photogallery_search .btn_common:nth-of-type(2n){
		margin-right: 0;
	}
	.photogallery_list>li {
		width: 100%;
		margin-right: 0;
		margin-bottom: 16px;
		padding: 20px 15px;
	}

	.photogallery_list>li:nth-of-type(3n) {
		margin-right: 0;
	}
	.photogallery_content {
		font-size: 1.4rem;
	}

	/*-------------------- popup --------------------*/

	.popup .main {
		padding: 40px 20px;

	}

	.btn_close {
		width: 24px;
		height: 24px;
	}

	.popup_cate_tit {
		width: 90px;
		font-size: 1.4rem;
	}

	.popup_cate_txt {
		font-size: 1.6rem;
		width: calc(100% - 105px);
	}


	.btn_popup {
		font-size: 1.4rem;
		border-width: 2px;
	}
}