body {
	position: relative;
}

.noscroll {
	overflow: hidden;
}

.grid {
	width: 100%;
	max-width: 1440px;
	min-width: 755px;
	margin: 0 auto;
	overflow: hidden;
}

.grid:after {
	content: "";
	display: table;
	clear: both;
}

@media handheld, only screen and (max-width: 767px) {
	.grid {
		width: 100%;
		min-width: 0;
		margin-left: 0px;
		margin-right: 0px;
		padding-left: 20px; /* grid-space to left */
		padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */
	}
}

.grid-container {
	display: block;
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0;
}


.grid-wrap {
	margin: 10px auto 0;
	max-width: 1360px;
	width: 100%;
	padding: 0;
	-webkit-perspective: 1500px;
	perspective: 1500px;
	position: relative;
}

.lightning {
	position: relative;
	-webkit-transition: all 0.5s cubic-bezier(0,0,0.25,1);
	transition: all 0.5s cubic-bezier(0,0,0.25,1);
	-webkit-transform-style: inherit;
	transform-style: inherit; 
}

.view-full .lightning {
	-webkit-transform: translateZ(-1500px);
	transform: translateZ(-1500px);
}

#gallery-container {
	display: block;
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* ローディング画面の背景 */
.grid-wrap .gallery-loading {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  background: #fefefe;
  z-index: 3000;
  
  display: none;
  
}
.grid-wrap .gallery-loading.active {
  display: block;
}

/* アニメーション */
.grid-wrap .gallery-loading .animation {
  position: absolute;
  top: 20%;  /* 50% */
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 2em;
  font-family: YuGothic,"Yu Gothic","Hiragino Sans",ヒラギノ角ゴシック,メイリオ,Meiryo,"ＭＳ Ｐゴシック","MS PGothic",sans-serif !important;
  font-weight: 600;
  font-style: italic;
  text-shadow:
            2px 2px 0px #FFF, -2px -2px 0px #FFF,
           -2px 2px 0px #FFF,  2px -2px 0px #FFF,
            2px 0px 0px #FFF, -2px -0px 0px #FFF,
            0px 2px 0px #FFF,  0px -2px 0px #FFF;
/*
  -webkit-text-stroke: 1px #FFF;
  text-stroke: 1px #FFF;
*/
  -webkit-animation: gallery-loading-animation 1500ms ease-out forwards infinite;
  animation: gallery-loading-animation 1500ms ease-out forwards infinite;
}

/*-----

.grid-wrap .gallery-loading .animation:before {
	content: "\f110";
	font-family: FontAwesome;
  font-size: 2em;
	text-decoration: none;
	color: #333;
}

----*/


@keyframes gallery-loading-animation {
  from,to {
		opacity: 0;
  }
  50% {
		opacity: 1.0;
  }
}


.lightning figure {
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.lightning figure {
	display: inline-block;
}
.lightning figure.show {
	display: inline-block;
}

.navigation-ajax.pagination { display:none; }
.navigation-ajax.pagination.show { display:block; }

.lightning figure.active {
	opacity: 0;
}

.lightning .placeholder {
	pointer-events: none;
	position: absolute;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transition: all 0.5s ease-out;
	transition: all 0.5s ease-out;
}

.placeholder > div {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.placeholder .front img {
	width: 100%;
	height: 100%;
}

.placeholder .back {
	background: white;
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.view-full .placeholder {
	-webkit-transition: all 0.5s 0.1s cubic-bezier(0,0,0.25,1);
	transition: all 0.5s 0.1s cubic-bezier(0,0,0.25,1);
}

.vertical .view-full .placeholder {
	-webkit-transform: translateZ(1500px) rotateX(-179.9deg);
	transform: translateZ(1500px) rotateX(-179.9deg); /* FF, Chrome, can we agree on one direction, pleeease? */
}

.horizontal .view-full .placeholder {
	-webkit-transform: translateZ(1500px) rotateY(-179.9deg);
	transform: translateZ(1500px) rotateY(-179.9deg);
}

.lightning figure img {
	display: block;
	width: 100%;
	height: auto; 
}

.content,
.loading {
	position: fixed;
	top: 0px;   /* 0 */
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none; /* Careful, does not work in IE < 11 http://caniuse.com/#search=pointer-events */
}

.content {
	overflow-y: scroll;
	height: 0; /* What seems to be the problem, officer? Well, we have a second scroll bar in Chrome! */
	background: #fff;
	visibility: hidden;
	z-index: 10400;
	-webkit-overflow-scrolling: touch;
}

.loading {
	opacity: 0;
	z-index: 1;
	background: transparent url(preloader.gif) no-repeat center center;
	-webkit-transform: scale(0.5);
	transform: scale(0.5);
	-webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
	transition: opacity 0.5s, transform 0.5s;
}

.loading.show {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

.content.show {
	height: auto;
	pointer-events: auto;
	visibility: visible;
}

.content > div {
	z-index: 10;
	position: absolute;
	top: 0;
	width: 100%;
	overflow: hidden;
	height: 0;
	opacity: 0;
	background: #fff;
}

.content > div.show {
	height: auto;
	opacity: 1;	
	-webkit-transition: opacity 0.6s;
	transition: opacity 0.6s;
}

.icon:before {
	font-family: 'fontawesome';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.close-content {
	position: fixed;
	z-index: 99999;
	top: 0px;   /* 0 */
	right: 10px;
	font-size: 1.6em;
	color: #aaa;
	cursor: pointer;
	pointer-events: none;
	padding: 1em;
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.close-content:hover {
	color: #999;
}

.content > div.show ~ .close-content {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-content {
	margin-bottom: 10em;
}


/* Dummy content */

.dummy-img,
div.show p,
.dummy-content,
.dummy-title
{
	max-width: 650px;  /* 600px */
	width: 100%;
	opacity: 0;
	-webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
	transition: opacity 0.5s, transform 0.5s;
}

.vertical .dummy-img,
.vertical .dummy-content,,
.vertical div.show p,
.vertical .dummy-title {
	-webkit-transform: translateY(100px);
	transform: translateY(100px);
}

.horizontal .dummy-img,
.horizontal .dummy-content,
.horizontal div.show p,
.horizontal .dummy-title {
	-webkit-transform: translateX(-100px);
	transform: translateX(-100px);
}

.content > div.show .dummy-img,
.content > div.show p,
.content > div.show .dummy-content,
.content > div.show .dummy-title {
	opacity: 1;
}

.vertical .content > div.show .dummy-img,
.vertical .content > div.show p,
.vertical .content > div.show .dummy-content,
.vertical .content > div.show .dummy-title {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

.horizontal .content > div.show .dummy-img,
.horizontal .content > div.show p,
.horizontal .content > div.show .dummy-content,
.horizontal .content > div.show .dummy-title {
	-webkit-transform: translateX(0);
	transform: translateX(0);
}

div.show p:nth-child(2) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

div.show p:nth-child(3) {
	-webkit-transition-delay: 0.2s;
	transition-delay: 0.2s;
}

.dummy-img {
	height: auto;
	margin: 30px auto 15px;
}

.dummy-img img {
	width: 100%;
}

div.show p {
	text-align: left;
	margin: 0 auto;
	padding: 20px 0 10px;
	color: #404040;
	font-size: 1em; 
}

div.show .dummy-content {
	text-align: left;
	margin: 0 auto;
	padding: 20px 0 10px;
	color: #404040;
	font-size: 1em; 
}

div.show p:last-child {
	padding-bottom: 100px;
}

h2.dummy-title,
h3.dummy-title,
h4.dummy-title {
	border-top: initial;
}

.dummy-title {
	text-align: left;
	margin: 0 auto;
	padding: 10px 0 20px;
	color: #404040;
	font-size: 2em; 
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
	border-bottom: 1px solid #666;
}

@media screen and (max-width: 480px) {
	.lightbox-content {
		padding: 10px 10px 0px;
	}
	.dummy-title {
		padding: 10px 10px 20px;
	}
	div.show .dummy-content {
		padding: 10px 10px 20px;
	}
}

/* Simple fallback */
/* if any of these are not supported, a simple fallback will be shown */
.no-pointerevents .content,
.no-csstransforms3d .content,
.no-csstransitions .content,
.no-pointerevents .content > div,
.no-csstransforms3d .content > div,
.no-csstransitions .content > div,
.no-pointerevents .close-content,
.no-csstransforms3d .close-content,
.no-csstransitions .close-content {
	opacity: 1;
	visibility: visible;
	display: none;
	height: auto;
}

.no-pointerevents .show .close-content,
.no-csstransforms3d .show .close-content,
.no-csstransition .show .close-content,
.no-pointerevents div.show,
.no-csstransforms3d div.show,
.no-csstransitions div.show,
.no-csstransitions .dummy-img,
.no-csstransitions .dummy-text,
.no-csstransforms3d .dummy-img,
.no-csstransforms3d .dummy-text, 
.no-pointerevents .dummy-img,
.no-pointerevents .dummy-text {
	display: block !important;
	opacity: 1;
}

.gallery-image {
	width: 24%;
	margin: 0 0.5% 12px;
}

@media screen and (max-width: 1100px) {
	.gallery-image {
		width: 32%;
		margin: 0 0.66666% 10px;
	}
}

@media handheld, only screen and (max-width: 767px) {
	.gallery-image {
		width: 48%;
		margin: 0 1% 10px;
	}
	.dummy-img {
		margin: 50px auto 15px;
	}
	.close-content {
		padding: 0.25em 0.2em;	
	}
}

@media screen and (max-width: 480px) {
	.gallery-image { 
		width: 96%;
		margin: 0 2% 15px;
	}

}

/* LightBoxタイプの場合、これ重要(400未満にすること) */
#wpfront-scroll-top-container { z-index:399; }

@media (min-width: 992px) {
  .header_scrolled .site-header {
    z-index: 10000; /* 1000 */
  }
}
.site-header {
  z-index: 10000; /* 1000 */
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 330; /* 1030 */
}

.fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 330; /* 1030 */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 320; /* 1020 */
  }
}

.global-nav-list>li>.sub-menu {
  z-index: 350;  /* 1500 */
}
