@charset "utf-8";
.gallery__container {
	display: flex;
	flex-wrap: wrap;
	width: calc(100% + 2%);
}

.gallery__content {
	width: 31.3%;
	margin: 0 2% 2% 0;
}

.gallery__content:not(.activeImage) {
	display: none;
}

.gallery__content__thumb {
	width: 100%;
}

.gallery__content__thumb.show {
	aspect-ratio: 1/1;
}

.gallery__content__thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.gallery__content__thumb a img {
	max-width: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .3s linear;
}

.gallery__categories__dl dd {
	display: flex;
	flex-wrap: wrap;
}

.gallery__categories__dl .f_btn {
	cursor: pointer;
	color: #3A526D;
	border: 1px solid #3A526D;
	border-radius: 30px;
	background: transparent;
	transition: all .2s linear;
	margin: 0 10px 10px 0;
	display: inline-block;
}

.gallery__categories__dl .f_btn.active {
	color: #fff;
	background: #3A526D;
}
.remodal{
	position: relative;
}
.gallery__next{
    font-size: 22px;
    box-sizing: border-box;
    padding: 0 0 1px 0;
    position: absolute;
    right: -60px;
    top: 50%;
    height: 52px;
    width: 52px;
    border: solid 2px #BBAF0D;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #BBAF0D;
		border-radius: 50px;
}
.gallery__prev{
    font-size: 22px;
    box-sizing: border-box;
    padding: 0 0 1px 0;
    position: absolute;
    left: -60px;
    top: 50%;
    height: 52px;
    width: 52px;
    border: solid 2px #BBAF0D;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #BBAF0D;
		border-radius: 50px;
}
.gallery__categories{
	background: #F6F6F6;
	position: relative;
	margin: 0 0 40px 0;
}
.gallery__categories__title{
	font-size: 20px;
	color:#3A526D;
	padding: 25px 50px;
	margin: 0;
}
#gallery-search{
	display: none;
}
.gallery__categories label{
	background: #3A526D;
	border: solid 1px  #3A526D;
	width: 40px;
	height: 40px;
	font-size: 30px;
	position: absolute;
	top:25px;
	right: 50px;
	border-radius: 40px;
  line-height: 0;
  padding: 0 0 1px 0;
  box-sizing: border-box;
}
.gallery__categories label::after{
	content: "+";
	font-size: 30px;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
    padding: 0 0 1px 0;
}
#gallery-search:checked + label{
	background: #fff;
}
#gallery-search:checked + label::after{
	color: #3A526D;
		content: "ー";
		font-size: 26px;
}
.gallery__categories__dl{
	height: 0;
	pointer-events: none;
	opacity: 0;
	transition: all 0.2s ease-out;
	padding: 0  50px 0;
}
#gallery-search:checked ~ .gallery__categories__dl{
	height: auto;
	pointer-events: auto;
	opacity: 1;
	padding: 0  50px 25px;
}
.gallery__categories__dl dd {
	padding: 10px 0 0 0;
}
.gallery__categories__dl dd .f_btn{
	min-width: 110px;
	padding: 5px 20px;
	text-align: center;
}
.remodal{
	padding: 0;
}
.gallery__content__image img{
	width: 100%;
}
.gallery__content__textbox{
	padding: 20px 30px;

}
.gallery__content__flex{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.gallery__content__flex__category{
	display: flex;
	justify-content: flex-start;
	align-items: center;
}
.gallery__content__flex__category span{
	cursor: pointer;
	color: #3A526D;
	border: 1px solid #3A526D;
	border-radius: 30px;
	background: transparent;
	transition: all .2s linear;
	margin: 0 10px 0 0;
	min-width: 110px;
		min-width: 110px;
	padding: 5px 20px;
	font-size: 11px;
	text-align: center;
}
.gallery__content__flex__btn{
    width: 220px;
    height: 33px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
    font-size: 12px;
    box-sizing: border-box;
    box-shadow: 0 5px 5px rgb(0 0 0 / 16%);
    background: rgb(187, 175, 13);
    border: 1px solid rgb(187, 175, 13);
    color: rgb(255, 255, 255);
}
.gallery__content__flex__btn a{
	color:#FFF;
}
.gallery__content__flex__btn:hover{
	background: #fff;
	color: rgb(187, 175, 13);
}
.gallery__content__flex__btn:hover a{
	color: rgb(187, 175, 13);
}
.gallery__content__text{
	font-size: 12px;
	padding: 10px 0;
	text-align: left;
}
.remodal-wrapper:last-child .gallery__next{
	display: none;
}
	.gallery__content__thumb a{
		position: relative;
	}
	.gallery__content__thumb a:hover{
		position: relative;
		opacity: 1;
	}
	.gallery__content__thumb a:after{
		position: absolute;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.5);
		transition: 0.5s;
		top: 0;
		right: 0;
		z-index: 1;
		content: "";
		opacity: 0;
		pointer-events: none;
	}
	.gallery__content__thumb a:hover:after{
		opacity: 1;
	}
	.gallery__content__thumb a::before{
		opacity: 0;
		position: absolute;
		content: "詳細を見る";
		padding: 15px 0;
    width: 180px;
		border-radius: 60px;
		pointer-events: none;
		border: solid 1px #fff;
		font-size: 20px;
		text-align: center;
		color: #fff;
		top:50%;
		font-weight: bold;
		transition: 0.5s;
		z-index: 3;
		right: 50%;
		transform: translate(50% , -50%);
		-webkit-transform: translate(50% , -50%);
		-ms-transform: translate(50% , -50%);
	}
	.gallery__content__thumb a:hover::before{
		opacity: 1;
	}
@media screen and (max-width: 900px) {

	.gallery__next{
			right: 5px;
	    top: 40%;
			font-size: 12px;
	    height: 23px;
	    width: 23px;
	    border: solid 2px #fff;
	    background: #fff;
	    display: flex;
	    justify-content: center;
	    align-items: center;
	    color: #BBAF0D;
			border-radius: 50px;
	}
	.gallery__prev{
	    left: 5px;
	    top: 40%;
			font-size: 12px;
	    height: 23px;
	    width: 23px;
	    border: solid 2px #fff;
	    background: #fff;
	    display: flex;
	    justify-content: center;
	    align-items: center;
	    color: #BBAF0D;
			border-radius: 50px;
	}
}
@media screen and (max-width: 769px) {
	.gallery__categories__title{
		padding: 20px 20px;
		font-size: 16px;
	}
	.gallery__categories label {
    width: 30px;
    height: 30px;
		top:20px;
		right: 20px;
	}
	.gallery__categories label::after{
		font-size: 22px;
	}
	#gallery-search:checked + label::after{
			font-size: 18px;
	}
#gallery-search:checked ~ .gallery__categories__dl {
	padding: 0 20px 10px;
}
	.gallery__categories__dl dd {
		justify-content:space-between;
	}
	.gallery__categories__dl dd .f_btn{
			width: calc(50% - 5px);
		box-sizing: border-box;
		margin: 0 0 5px 0;
	}
	.gallery__content__flex__btn{
		margin-top: 10px;
	}
	.gallery__content__flex{
		display: block;
	}
	.gallery__content__thumb a::before{
		font-size: 14px;
		width: 90px;
		padding: 5px 0;
	}
}
