.detail-gallery .btn-plan,
.detail-gallery-2 .btn-plan {
	height: 104px;
}
.detail-gallery .btn-plan > div,
.detail-gallery-2 .btn-plan > div {
	background: #fff;
	width: 100%;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 1;
	padding: 16px 16px;
}
.detail-gallery .btn-plan.static > div,
.detail-gallery-2 .btn-plan.static > div {
	position: relative;
	margin-top: 32px;
}
.detail-gallery .photo-modal,
.detail-gallery-2 .photo-modal {
	display: none;
	background: #fff;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	overflow-y: auto;
	z-index: 1000;
	padding-bottom: 80px;
}
.detail-gallery .photo-modal figure,
.detail-gallery-2 .photo-modal figure {
	line-height: 0;
	margin-bottom: 2px;
}
.detail-gallery .photo-modal figure img,
.detail-gallery-2 .photo-modal figure img {
	width: 100%;
	height: auto;
}
.detail-gallery .photo-modal a,
.detail-gallery-2 .photo-modal a {
	pointer-events: none;
}
.detail-gallery .photo-modal a img,
.detail-gallery-2 .photo-modal a img {
	width: 100%;
	height: auto;
}
.detail-gallery .photo-modal .btn-close,
.detail-gallery-2 .photo-modal .btn-close {
	background: url(/stcontents/img/common/icon-close-3.svg) no-repeat 0 0;
	background-size: contain;
	width: 34px;
	height: 34px;
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 10;
}
@media screen and (max-width: 767px) {
	.detail-gallery main.modal-on {
		-webkit-filter: none !important;
		filter: none !important;
	}
	.detail-gallery .lb-close {
		display: none !important;
	}
}
@media screen and (min-width: 768px) {
	.detail-gallery-2 .pswp__zoom-wrap {
		width: 80vw;
		height: 70vh;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) !important;
	}
	.detail-gallery-2 .pswp__img {
		display: block;
		object-fit: contain;
		width: 100% !important;
		height: 100% !important;
		border: none;
	}
}
.detail-gallery main {
	padding-top: 16px;
	padding-bottom: 8px;
	overflow: hidden;
}
.detail-gallery .title-box {
	position: relative;
}
.detail-gallery .title-box .title-grade {
	width: 100%;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}
.detail-gallery .title-box .icon-question {
	margin: 0 4px;
}
.detail-gallery .sub-header span {
	margin-right: 4px;
}
.detail-gallery .sub-header h1 a {
	color: inherit !important;
}
.detail-gallery .sub-header .address {
	width: 100%;
}
.detail-gallery .photo-gallery {
	overflow: hidden;
}
.detail-gallery .photo-gallery .wrap {
	max-width: none;
	padding-left: 8px;
}
/* .detail-gallery .photo-gallery .grid-wrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr)[5];
        grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 222px;
    grid-gap: 2px;
  } */
.detail-gallery .photo-gallery .grid-wrapper {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-template-columns: repeat(5, 1fr);
	grid-auto-rows: 222px;
	gap: 2px;
}
.detail-gallery .photo-gallery .grid {
	grid-column: span 1;
	grid-row: span 1;
	overflow: hidden;
}
.detail-gallery .photo-gallery .grid:nth-child(24n+1), .detail-gallery .photo-gallery .grid:nth-child(24n+16) {
	grid-column: span 2;
	grid-row: span 2;
}
@media screen and (max-width: 767px) {
	.detail-gallery .photo-gallery .grid:nth-child(24n+1), .detail-gallery .photo-gallery .grid:nth-child(24n+16) {
		grid-column: span 1;
		grid-row: span 1;
	}
	.detail-gallery .photo-gallery .grid:nth-child(12n+1), .detail-gallery .photo-gallery .grid:nth-child(12n+8) {
		grid-column: span 2;
		grid-row: span 2;
	}
}
.detail-gallery .photo-gallery .grid img {
	max-width: none;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}
.detail-gallery .lightbox,
.detail-gallery .lightboxOverlay {
	width: 100% !important;
	height: auto !important;
}
.detail-gallery .lightboxOverlay {
	height: 100% !important;
}
.detail-gallery .lb-outerContainer {
	overflow: auto;
}
.detail-gallery .lb-outerContainer,
.detail-gallery .lb-container {
	width: 100% !important;
	height: auto !important;
	border: none;
	border-radius: 0;
}
.detail-gallery .lb-image {
	width: 100% !important;
	height: 100% !important;
	-o-object-fit: cover;
	object-fit: cover;
	border: none;
	border-radius: 0;
}
.detail-gallery .lb-nav {
	width: 96%;
	position: fixed;
	left: 2%;
	height: calc(100% - 200px);
	top: 100px;
}
.detail-gallery .lb-nav a.lb-prev {
	background-image: url(/stcontents/img/common/icon-arrow-left-white.svg);
	background-position: left 20px top 50%;
	background-size: 16px;
	width: 20%;
	left: 0;
	height: 100%;
	-webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
	filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}
.detail-gallery .lb-nav a.lb-prev:hover {
	background-image: url(/stcontents/img/common/left_Hover-2.svg);
	background-size: 16px;
}
.detail-gallery .lb-nav a.lb-next {
	background-image: url(/stcontents/img/common/icon-arrow-right-white.svg);
	background-position: right 20px top 50%;
	background-size: 16px;
	width: 20%;
	right: 0;
	height: 100%;
	-webkit-filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
	filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}
.detail-gallery .lb-nav a.lb-next:hover {
	background-image: url(/stcontents/img/common/right_Hover-2.svg);
	background-size: 16px;
}
.detail-gallery .lb-dataContainer {
	width: 100% !important;
	position: absolute;
	bottom: 26px;
	left: 0;
}
.detail-gallery .lb-data .lb-details {
	margin-top: 0;
}
.detail-gallery .lb-data .lb-number {
	display: inline-block !important;
}
.detail-gallery .lb-close {
	top: 24px;
	right: 16px;
}
@media (max-width: 1140px) {
	.detail-gallery .photo-gallery .grid-wrapper {
		grid-auto-rows: 19vw;
	}
}
@media (min-width: 768px) {
	.detail-gallery main {
		padding-top: 0;
		padding-bottom: 160px;
	}
	.detail-gallery .title-box .icon-question {
		margin: 0 8px;
	}
	.detail-gallery .sub-header .title-grade {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-webkit-align-items: center;
		-ms-flex-align: center;
		align-items: center;
	}
	.detail-gallery .sub-header span {
		margin-right: 8px;
	}
	.detail-gallery .sub-header h1 {
		text-decoration: underline;
		text-underline-position: under;
		text-decoration-thickness: 2px;
	}
	.detail-gallery .sub-header h1:hover {
		text-decoration: none;
	}
	.detail-gallery .sub-header .address {
		padding-top: 15px;
	}
	.detail-gallery .lightbox,
	.detail-gallery .lightboxOverlay {
		height: 100% !important;
		top: 0 !important;
		left: 0 !important;
		-webkit-transform: none !important;
		transform: none !important;
	}
	.detail-gallery .lb-outerContainer {
		overflow: auto;
	}
	.detail-gallery .lb-outerContainer,
	.detail-gallery .lb-container {
		width: auto !important;
		height: 100% !important;
		border: none;
		border-radius: 0;
	}
	.detail-gallery .lb-close {
		top: 30px;
		right: 48px;
	}
}
@media (max-width: 767px) {
	.detail-gallery .sub-header span + span {
		margin-left: -4px;
	}
	/* .detail-gallery .photo-gallery .grid-wrapper {
      display: -ms-grid;
      display: grid;
      -ms-grid-columns: (1fr)[3];
          grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: calc(33.3vw - 22px);
      grid-gap: 2px;
    } */
	.detail-gallery .photo-gallery .grid-wrapper {
		display: -ms-grid;
		display: grid;
		-ms-grid-columns: 1fr 1fr 1fr;
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: calc(33.3vw - 22px);
		gap: 2px;
	}
	.detail-gallery .lb-close {
		background: url(/stcontents/img/common/icon-close-2.svg) no-repeat 0 0;
		background-size: contain;
	}
	.detail-gallery .lb-image {
		width: 100% !important;
		height: auto !important;
		border: none;
	}
	.detail-gallery .lightboxOverlay {
		background: #fff;
	}
	.detail-gallery .lb-dataContainer {
		bottom: -40px;
	}
	.detail-gallery .lb-nav {
		width: 100%;
		height: 100%;
		position: absolute;
		left: 0;
		top: 0;
	}
	.detail-gallery .lb-nav a {
		background: none !important;
		width: 50% !important;
	}
	.detail-gallery .lb-data .lb-number {
		display: inline-block !important;
		color: #fff;
	}
}
@media (max-width: 1024px) and (orientation: landscape) {
	.detail-gallery .lightbox, .detail-gallery .detail-gallery .lightboxOverlay {
		height: 100% !important;
	}
	.detail-gallery .lb-close {
		background: url(/stcontents/img/common/icon-close-2.svg) no-repeat 0 0;
		background-size: contain;
	}
	.detail-gallery .lb-outerContainer {
		background-color: #fff;
	}
	.detail-gallery .lb-data .lb-number {
		position: absolute;
		bottom: 12px;
		background: rgba(255, 255, 255, 0.25);
	}
	.detail-gallery .lb-dataContainer {
		bottom: 12px;
	}
	.detail-gallery .lb-image {
		width: auto !important;
		height: 100vh !important;
		-o-object-fit: inherit;
		object-fit: inherit;
		margin: 0 auto;
	}
}
@media (max-width: 767px) {
	.detail-gallery .pswp__bg {
		background-color: #fff !important;
	}
	.detail-gallery .pswp img {
		max-width: 100% !important;
		margin: 0;
		border: none;
		-webkit-box-shadow: none;
		box-shadow: none;
		border-radius: 0;
	}
	.detail-gallery .pswp__ui .pswp__button--arrow--left,
	.detail-gallery .pswp__ui .pswp__button--arrow--right {
		display: none;
	}
}
/*
    通常タイル表示
  */
.detail-gallery-2 main {
	padding-top: 16px;
	padding-bottom: 8px;
	overflow: hidden;
}
.detail-gallery-2 .title-box {
	position: relative;
}
.detail-gallery-2 .title-box .title-grade {
	width: 100%;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}
.detail-gallery-2 .title-box .icon-question {
	margin: 0 4px;
}
.detail-gallery-2 .sub-header span {
	margin-right: 4px;
}
.detail-gallery-2 .sub-header h1 a {
	color: inherit !important;
}
.detail-gallery-2 .sub-header .address {
	width: 100%;
}
.detail-gallery-2 .photo-gallery {
	overflow: hidden;
}
.detail-gallery-2 .photo-gallery .wrap {
	max-width: none;
	padding-left: 16px;
}
/* .detail-gallery-2 .photo-gallery .grid-wrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr)[5];
        grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: calc(33.3vw - 22px);
    grid-gap: 2px;
  } */
.detail-gallery-2 .photo-gallery .grid-wrapper {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-template-columns: repeat(5, 1fr);
	grid-auto-rows: calc(33.3vw - 22px);
	gap: 2px;
}
.detail-gallery-2 .photo-gallery .grid-wrapper .grid {
	grid-column: span 1;
	grid-row: span 1;
	overflow: hidden;
}
.detail-gallery-2 .photo-gallery .grid-wrapper .grid:nth-child(24n+1), .detail-gallery-2 .photo-gallery .grid-wrapper .grid:nth-child(24n+16) {
	grid-column: span 2;
	grid-row: span 2;
}
@media screen and (max-width: 767px) {
	.detail-gallery-2 .photo-gallery .grid-wrapper .grid:nth-child(24n+1), .detail-gallery-2 .photo-gallery .grid-wrapper .grid:nth-child(24n+16) {
		grid-column: span 1;
		grid-row: span 1;
	}
	.detail-gallery-2 .photo-gallery .grid-wrapper .grid:nth-child(12n+1), .detail-gallery-2 .photo-gallery .grid-wrapper .grid:nth-child(12n+8) {
		grid-column: span 2;
		grid-row: span 2;
	}
}
.detail-gallery-2 .photo-gallery .grid-wrapper .grid img {
	max-width: none;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}
.detail-gallery-2 .lb-close {
	background-image: url(/stcontents/img/common/icon-close-2.svg);
	background-size: contain;
	top: 24px;
	right: 16px;
}
.detail-gallery-2 .lb-dataContainer {
	display: block !important;
	opacity: 1 !important;
}
.detail-gallery-2 .pswp__ui .pswp__top-bar {
	z-index: 10;
}
.detail-gallery-2 .pswp__ui .pswp__button--arrow--left {
	background-image: url(/stcontents/img/common/icon-arrow-left-black.svg);
	background-position: left 4vw top 50%;
	background-size: 16px;
	width: 20%;
	left: 0;
	height: calc(100% - 200px);
	-webkit-filter: none;
	filter: none;
}
.detail-gallery-2 .pswp__ui .pswp__button--arrow--left:hover {
	opacity: 0.4 !important;
	background-size: 16px;
}
.detail-gallery-2 .pswp__ui .pswp__button--arrow--right {
	background-image: url(/stcontents/img/common/icon-arrow-right-black.svg);
	background-position: right 4vw top 50%;
	background-size: 16px;
	width: 20%;
	right: 0;
	height: calc(100% - 200px);
	-webkit-filter: none;
	filter: none;
}
.detail-gallery-2 .pswp__ui .pswp__button--arrow--right:hover {
	opacity: 0.4 !important;
	background-size: 16px;
}
@media (min-width: 768px) {
	.detail-gallery-2 main {
		padding-top: 0;
		padding-bottom: 160px;
	}
	.detail-gallery-2 .title-box .icon-question {
		margin: 0 8px;
	}
	.detail-gallery-2 .sub-header .title-grade {
		display: -webkit-box;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-webkit-align-items: center;
		-ms-flex-align: center;
		align-items: center;
	}
	.detail-gallery-2 .sub-header span {
		margin-right: 8px;
	}
	.detail-gallery-2 .sub-header h1 {
		text-decoration: underline;
		text-underline-position: under;
		text-decoration-thickness: 2px;
	}
	.detail-gallery-2 .sub-header h1:hover {
		text-decoration: none;
	}
	.detail-gallery-2 .sub-header .address {
		padding-top: 15px;
	}
}
@media (min-width: 1024px) {
	.detail-gallery-2 .photo-gallery .wrap {
		padding-left: 16px;
	}
	/* .detail-gallery-2 .photo-gallery .grid-wrapper {
      display: -ms-grid;
      display: grid;
      -ms-grid-columns: (1fr)[5];
          grid-template-columns: repeat(5, 1fr);
      grid-auto-rows: 222px;
      grid-gap: 2px;
    } */
	.detail-gallery-2 .photo-gallery .grid-wrapper {
		display: -ms-grid;
		display: grid;
		-ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
		grid-template-columns: repeat(5, 1fr);
		grid-auto-rows: 222px;
		gap: 2px;
	}
	.detail-gallery-2 .lb-close {
		top: 30px;
		right: 48px;
	}
	.detail-gallery-2 .lb-outerContainer {
		margin-top: 24px;
	}
}
@media (max-width: 767px) {
	.detail-gallery-2 .sub-header span + span {
		margin-left: -4px;
	}
	.detail-gallery-2 .pswp__bg {
		background-color: #fff !important;
	}
	.detail-gallery-2 .pswp img {
		max-width: 100% !important;
		margin: 0;
		border: none;
		-webkit-box-shadow: none;
		box-shadow: none;
		border-radius: 0;
	}
	.detail-gallery-2 .pswp__ui .pswp__button--arrow--left,
	.detail-gallery-2 .pswp__ui .pswp__button--arrow--right {
		display: none;
	}
}
@media screen and (max-width: 1280px) {
	.detail-gallery .photo-gallery .grid-wrapper,
	.detail-gallery-2 .photo-gallery .grid-wrapper {
		grid-auto-rows: 18vw;
	}
}
@media screen and (max-width: 767px) {
	/* .detail-gallery .photo-gallery .grid-wrapper,
    .detail-gallery-2 .photo-gallery .grid-wrapper {
      -ms-grid-columns: (1fr)[3] !important;
          grid-template-columns: repeat(3, 1fr) !important;
      grid-auto-rows: 30vw;
    } */
	.detail-gallery .photo-gallery .grid-wrapper,
	.detail-gallery-2 .photo-gallery .grid-wrapper {
		-ms-grid-columns: 1fr 1fr 1fr !important;
		grid-template-columns: repeat(3, 1fr) !important;
		grid-auto-rows: 30vw;
	}
}
.detail-gallery .photo-gallery.zoom-photo .grid-wrapper .grid img,
.detail-gallery-2 .photo-gallery.zoom-photo .grid-wrapper .grid img {
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
	-webkit-transform-origin: center;
	transform-origin: center;
}