@charset "utf-8";
/* CSS Document */
@media all and (-ms-high-contrast:none){
	*::-ms-backdrop, #gallery_wrap {
		margin-left:-1px;
		padding-right: 1px;
	}
}
#gallery{
	width: 100%;
	max-width: 768px;
	position: absolute;
	top: 10vh;
}
#gallery_wrap{
	min-height: 100vh;
	padding: 0 2%;
	background-color:rgba(255,255,255,0.70);	
	padding-bottom: 150px;
	padding-top: 50px;
}
#gallery_wrap .caution{
	text-align: center;
	font-size: 14px;
	margin: 5px 0;
	color:red;
}
#gallery_wrap .cate_list{
	text-align: center;
	margin-bottom: 30px;
}
#gallery_wrap .cate_list li{
	display: inline-block;
	min-width: 50%;
	padding: 10px;
	box-sizing: border-box;
}
#gallery_wrap .cate_list li a{
	display: block;
	color: #fff;
	background-color: #4fb889;
	border-radius: 5px;
	padding: 5px;
}
#gallery_wrap .cate{
	margin-bottom: 50px;
}
#gallery_wrap .cate h3 {
	background:#4fb889;
	color:#fff;
	padding:10px;
	margin-bottom: 5px;
}
#gallery_wrap .cate .cate_txt {
	padding:3px 3%;
	margin-bottom: 5px;
}
#gallery_wrap .box_wrap{
	display:-webkit-box;
    display:-moz-box;
    display:-ms-box;
    display:-webkit-flexbox;
    display:-moz-flexbox;
    display:-ms-flexbox;
    display:-webkit-flex;
    display:-moz-flex;
    display:-ms-flex;
    display:flex;
    -webkit-box-lines:multiple;
    -moz-box-lines:multiple;
    -webkit-flex-wrap:wrap;
    -moz-flex-wrap:wrap;
    -ms-flex-wrap:wrap;
    flex-wrap:wrap;
}
#gallery_wrap .box{
	width:44%;
	margin:2%;
	margin-bottom: 20px;
	padding:1%;
}
#gallery_wrap .box .box_photo{
	width: 100%;
	height: auto;
}
#gallery_wrap .box figure{
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	z-index: 0;
}
#gallery_wrap .box figure img{
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	z-index: 0;
}
#gallery_wrap .box h4{
	width:96%;
	padding:5px 2%;
	color:#2b160a;
	border-bottom: 1px solid #2b160a;
	font-weight: normal;
	font-size: 16px;
}
#gallery_wrap .box>a{
	text-decoration: none;
	color:#fff;
}
#gallery_wrap .box p{
	width:94%;
	padding:10px 3%;
}
#gallery_wrap .box .modal-content{
	background-image: url(../images/gallery_bg.jpg);
	background-position: center center;
	background-repeat: repeat;
	background-size: 50% auto;
}
#gallery_wrap .box .modal_title{
	border-bottom: none;
	background-color: #4fb889;
	color: #fff;
}
#gallery_wrap .box .modal-content p:last-of-type{
	background-color: #fff;
}
#gallery_wrap .box .modal_gallery{
	color: #4fb889;
}
#gallery_wrap .box .modal_txt{
	background-color: #fff;
}
#gallery_wrap .box .modal_photo{
	margin: 5% 0;
	background-color: none;
}
#gallery_wrap .box .modal_photo img{
	width:auto;
	height: auto;
	max-width: 100%;
	max-height: 500px;
}
.cate .retop {
	text-align: center;
}
.cate .retop a {
	color:#2b160a;
}
@media screen and (orientation: landscape){
   /* 横向きの場合のスタイル */
}
@media screen and (max-width:320px) {
}
@media screen and (min-width: 700px){
}
/*ここからスマートフォン用（480px以下）環境の設定s
---------------------------------------------------------------------------*/
/*表示を切り替えるウィンドウサイズの指定*/
@media screen and (max-width: 481px){

}