@charset "utf-8";

.gjs-dashed .modal {
	opacity: 1 !important;
	position: relative;
	display: block;
}

.gjs-dashed .menuMain {
	grid-template-columns: repeat(1, 1fr) !important;
}

.gjs-dashed .intModal01 {
	transform: translate(0, 0%) !important;
}

.gjs-dashed .modal-dialog-centered {
	min-height: auto !important;
}

.gjs-dashed .inModalImgBox {
	width: 100%;
	margin: 0 auto 0 auto;
	max-width: 400px;
}

.contents01 {
	z-index: auto;
}

/* カテゴリ */

.gallery-cate-box section {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, 1fr);
}

.firstBox:first-child {
	display: flex;
}

.firstBox {
	display: none;
}

.gallery-btn {
	width: 100%;
	height: 60px;
	padding: 9px 15px 10px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(14px, 13.515px + 0.129vw, 16px);
	font-weight: 300;
	letter-spacing: 0.05em;
	color: var(--base-body-color);
	border: 1px solid var(--bg-primary);
	transition: all .3s;
}

.gallery-btn:hover {
	color: var(--white);
	background: var(--bg-primary);
}

.galleryCateBox .is-active {
	background: var(--bg-primary);
	color: var(--white);
	transition: all .3s;
}

.gallery-box {
	margin: 40px 0 0 0;
}

/* メイン */

.gallery-box section {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.gallery-detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
}

.inSliderBox {
	max-width: 600px;
	width: 100%;
	margin: 0 auto;
}

.gallery-detail-right {
	width: 100%;
	margin: 30px auto 0;
}

.gallery-img {
	aspect-ratio: 4/5;
	overflow: hidden;
}

.gallery-img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: all .3s;
}

.modal-inner .gallery-img img {
	object-fit: contain;
	background: var(--bg-secondary);
}

.gallery-main-img {
	cursor: pointer;
}

.gallery-main-img:hover img {
	transform: scale(1.1);
}

img+.noImg {
	display: none;
}

.modal {
	background: #00000060;
}

.modal-wrapper {
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: 10px;
	left: 10px;
	overflow-y: auto;
	max-width: 800px;
	margin: auto;
	background: var(--white);
}

.modal-wrapper::-webkit-scrollbar {
	width: 10px;
	/* 横幅 */
}

.modal-wrapper::-webkit-scrollbar-thumb {
	background: var(--bg-primary);
	/* ハンドルの色 */
}

.modal-wrapper::-webkit-scrollbar-track {
	background: var(--bg-primary);
	/* 背景色 */
}

.modal-box {
	position: relative !important;
	width: 100%;
	max-width: 800px;
	padding: 25px 10px;
}

.modalCloseBtn {
	/* position: fixed; */
	/* top: 3%; */
	/* right: 5%; */
	/* z-index: 1; */
	/* aspect-ratio: 1/1; */
	/* width: 45px; */
	/* background: url(/system_panel/uploads/images/modaal_close.svg)no-repeat center /contain; */
	/* cursor: pointer; */
	/* transition: all .3s; */
}

.modalCloseBtn:hover {
	/* transform: scale(1.1); */
}

.modal-inner {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
	max-width: 740px;
	margin: 0 auto;
}

.gallery-detail-main-img {
	width: 100%;
}

.gallery-detail-title {
	padding: 0 0 6px 0;
	border-bottom: 1px solid;
}

.gallery-detail-content {
	line-height: 2em;
	margin: 10px 0 0;
}

.gallery-detail-comment-title {
	padding: 0 0 5px 0;
	margin: 0 0 5px 0;
	border-bottom: 1px solid;
}


.gallery-detail-pdf {
	width: 100%;
	max-width: 150px;
	height: 40px;
	margin: 20px auto 0;
	padding: 5px 15px 5px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0.05em;
	color: var(--base-font-color);
	border: 1px solid var(--bg-primary);
	background: #fff !important;
	border-radius: 33px;
	transition: all .3s;
}

.gallery-detail-pdf:hover {
	background: var(--bg-primary) !important;
	color: #fff;
}

.gallery-detail-pdf::after {
	display: none;
}

.gallery-detail-img-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.gallery-detail-youtube {
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.gallery-detail-youtube iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.closeBtn {
	max-width: 150px;
	width: 100%;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	position: relative;
	border: 1px solid;
	border-radius: 33px;
	transition: all .5s;
	cursor: pointer;
	margin: 20px auto 0;
}

.closeBtn {
	border-color: var(--bg-primary);
	color: var(--base-body-color);
}

.closeBtn:hover {
	background-color: var(--bg-primary);
	color: #fff;
}

.carousel-inner {
    width: 100%;
    padding-top: 114.59%;
    position: relative;
    background-color: #fff;
}

.carousel-item>img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    margin: auto;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/*  ページャー */

.webgene-pagination {
	width: 100%;
	grid-column: 1/3;
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:768px) {

	.gallery-cate-box section {
		gap: 10px;
		grid-template-columns: repeat(4, 1fr);
	}

	.gallery-box {
		margin: 60px 0 0 0;
	}

	.gallery-box section {
		grid-template-columns: repeat(4, 1fr);
	}

	.modal-box {
		padding: 45px 10px;
	}

	.modal-wrapper {
		top: 25px;
		right: 25px;
		bottom: 25px;
		left: 25px;
	}

	.modal-inner {
		gap: 25px;
	}

	.gallery-detail-img-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.modalCloseBtn {
		/* width: 50px; */
		/* top: 4%; */
	}

	/*  ページャー */

	.webgene-pagination {
		grid-column: 1/5;
	}


}

/* min-width: 768px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:992px) {

	.modalCloseBtn {
		/* right: calc((100vw - 800px) / 2 + 20px); */
	}

}

/* min-width: 992px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:1024px) {

	.gallery-cate-box section {
		gap: 15px 25px;
	}

	.gallery-box section {
		gap: 25px;
	}

	.gallery-box {
		margin: 80px 0 0 0;
	}

	.gallery-detail-row {
		align-items: flex-start;
		justify-content: space-between;
		flex-direction: row;
	}

	.inSliderBox {
		width: 45%;
		margin: 0;
	}

	.gallery-detail-right {
		width: 50%;
		margin: 0;
	}

}

/* min-width: 1024px ここまで */

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
@media screen and (min-width:1800px) {

	/*.modalCloseBtn {
        top: 38px;
    }*/

}

/* min-width: 1800px ここまで */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */