@charset "UTF-8";
/* CSS Document */
/*******************************************
ギャラリー
*******************************************/
#coverRayer {
	width: 100vw;
	height: 100vh;
	position:fixed;
	top:0;
	left:0;
	background-color:#fff;
	opacity:0;
	cursor:pointer;
	z-index:11000;
}
.gallery_cont {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto 0;
	padding: 0 20px;
	box-sizing: border-box;
	position: relative;
}

.gallery_cont ul {
	margin: 0;
	padding: 0;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
}
.gallery_cont ul li {
	background-color: #fff;
	position: relative;
	cursor: pointer;
}

.gallery_cont ul li img {
	max-width: 100%;
}
.gallery_cont ul li img:hover {
	opacity: 0.6;
	transition-property: opacity;
	transition-duration: 0.3s;
	transition-delay: 0s;
	transition-timing-function: ease;
}

.photo {
	max-width: 95vmin;
	max-height: 95vmin;
	padding: 12px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	z-index: 12000;
	display: none;
	background-color: #fff;
	box-sizing: border-box;
	border-radius: 10px;
}
.photo.v {
	max-width: none;
}
.photo img.selectedPh {
	display: block;
	max-width: calc(95vmin - 24px);
	max-height: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	margin-top: auto;
	margin-bottom: auto;
}
.photo.v img.selectedPh {
	max-width: none;
	max-height: calc(90vmin - 24px);
	width: auto;
}
.prevBtn {
	height: auto;
	position: absolute;
	transform: translateY(-50%);
	cursor: pointer;
}
.nextBtn {
	height: auto;
	position: absolute;
	transform: translateY(-50%) rotate(180deg);
	cursor: pointer;
}
.close {
	height: auto;
	position: absolute;
	cursor: pointer;
}

.gallery_wrap {
	margin-top: 30px;
}
.gallery_ttl {
	text-align: center;
	margin-bottom: 0.5em;
}
.gallery_note {
	text-align: center;
	color: #003399;
	font-weight: bold;
	margin-bottom: 1em;
}
.gallery_note span {
	display: inline-block;
	vertical-align: middle;
}
.gallery_note span::before {
	content: '';
	display: inline-block;
	aspect-ratio: 120 / 86;
	height: 2.6em;
	vertical-align: middle;
	background-image: url("/img/common/ic_touch.svg");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: auto 100%;
	margin-right: 0.5em;
}


/********************************
PC
********************************/
@media screen and (min-width: 768px) {
.gallery_cont ul {
}
.gallery_cont ul li {
	width: 20%;
}
.prevBtn {
	width: 50px;
	left: -10px;
	top: 50%;
}
.nextBtn {
	width: 50px;
	right: -10px;
	top: 50%;
}
.close {
	width: 40px;
	right: -10px;
	top: -10px;
}

.gallery_ttl {
	font-size: 2.4rem;
}
.gallery_note {
	font-size: 1.8rem;
}
}

@media screen  and (max-width: 979px) and (min-width: 768px) {
.gallery_cont ul li {
	width: 25%;
}
}


/********************************
SP
********************************/
@media screen and (max-width: 767px) {
.gallery_cont ul li {
	width: 33%;
}
.gallery_cont ul {
}
.photo.v img.selectedPh {
	width: auto !important;
	max-width: none;
	height: 100%;
}
.prevBtn {
	width: 40px;
	left: -5px;
	top: 50%;
}
.nextBtn {
	width: 40px;
	right: -5px;
	top: 50%;
}
.close {
	width: 30px;
	right: -5px;
	top: -5px;
}

.gallery_ttl {
	font-size: 1.9rem;
}
.gallery_note {
	font-size: 1.4rem;
}
}

/* キャプション追加 */
.photo {
  flex-direction: column;
  align-items: center;
}
.caption {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 10px;
  color: #333;
}
@media screen and (min-width: 768px) {
  .caption {
    font-size: 1.4rem;
  }
}