/** VARIABLES
===================================*/
/** RESET AND LAYOUT
===================================*/
.bx-wrapper {
  position: relative;
  *zoom: 1;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
}
.bx-wrapper img {
  /*max-width: 100%;*/
	width: 100%;
	height: auto;
  display: block;
}
.bxslider {
  margin: 0;
  padding: 0;
  /*fix flickering when used background-image instead of <img> (on Chrome)*/
  -webkit-perspective: 1000;
}
ul.bxslider {
  list-style: none;
}
.bx-viewport {
  /* fix other elements on the page moving (in Chrome) */
  -webkit-transform: translateZ(0);
}

/** THEME
===================================*/
.bx-wrapper {
	
}

/* LOADER */
.bx-wrapper .bx-loading {
  min-height: 50px;
  background: url('../../index/css/images/bx_loader.gif') center center no-repeat #ffffff;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2000;
}

/* PAGER */
.bx-wrapper .bx-pager {
	width: 100%;
	margin-top: 10px;
}

.bx-wrapper .bx-pager-item {
	width: 20%;
	padding: 0 5px;
	box-sizing: border-box;
}

.bx-wrapper .bx-pager-item {
  display: inline-block;
  vertical-align: bottom;
  *zoom: 1;
  *display: inline;
}

.bx-wrapper .bx-pager-item:nth-of-type(n + 6){
	margin-top: 10px;
}


/* 
	メインスライダー部分
*/
#top_contents .bx-wrapper {

}



/* 
	ギャラリー　スライダー部分
*/

#gallery .bx-wrapper {
	/*padding: 0 15px;
	margin-top: 18px;*/
}

#gallery .bx-wrapper .bx-prev {
  left: 12.5px;
	width: 25px;
	height: 25px;
	background: rgba(255,255,255,0.50);
	z-index: 90;
}

#gallery .bx-wrapper .bx-prev:hover {
  opacity: 0.7;
}
#gallery .bx-wrapper .bx-next {
  right: 12.5px;
	width: 25px;
	height: 25px;
	background: rgba(255,255,255,0.50);
	z-index: 91;
}
#gallery .bx-wrapper .bx-next:hover {
	opacity: 0.7;
}
#gallery .bx-wrapper .bx-controls-direction a {
  position: absolute;
  top: 50%;
  outline: 0;
  width: 25px;
  height: 25px;
	margin-top: -12.5px;
	line-height: 25px;
	text-align: center;
	color: #FFF;
	font-size: 1.8rem;
	font-weight: bold;
	transition: opacity 0.3s;
}
#gallery .bx-wrapper .bx-controls-direction a.disabled {
  display: none;
}

/*　カスタムサムネイル*/
.custom-thumb,
.custom-thumb02{
	display: flex;
	flex-wrap: wrap;
}

.custom-thumb a,
.custom-thumb02 a{
	width: calc(20% - 2%);
	height: auto;
	margin-left: 2.5%;
	margin-top: 2.5%;
}

.custom-thumb a:nth-child(5n+1),
.custom-thumb02 a:nth-child(5n+1){
	margin-left: 0;
}

.custom-thumb a img,
.custom-thumb02 a img{
	width: 100%;
}


@media only screen and (min-width: 1040px) {
	
	#gallery .bx-wrapper {
		/*padding: 18px 0 0 0;
		margin-top: 0;*/
		display: flex;
		justify-content: space-between;
	}
	
	#gallery .bx-viewport {
		/*width: 520px !important;*/
	}


	#gallery .bx-wrapper .bx-pager {
		/*width: 520px;*/
		margin-top: 0;
	}
	
	#gallery .bx-wrapper .bx-pager-item{
		width: 25%;
		padding: 0 3px;
	}
	
	#gallery .bx-wrapper .bx-pager-item:nth-of-type(n + 5){
		margin-top: 6px;
	}
	
	
	#gallery .bx-wrapper .bx-prev {
  	left: 0;
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}
	
	#gallery .bx-wrapper .bx-next {
  	left: 484px;
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}

	#gallery .bx-wrapper .bx-controls-direction a {
 		top: 50%;
  	width: 36px;
  	height: 36px;
		line-height: 36px;
		font-size: 2.4rem;
		margin-top: -18px;
	}
	
	/*　カスタムサムネイル*/
	.custom-thumb,
	.custom-thumb02{
		/*width: 520px;*/
	}

	.custom-thumb a,
	.custom-thumb02 a{
		width: calc(20% - 2%);
		height: auto;
		margin-left: 2.5%;
		margin-top: 2.5%;
	}

	.custom-thumb a:nth-child(5n + 1),
	.custom-thumb02 a:nth-child(5n + 1){
		margin-left: 0;
	}

	.custom-thumb a img,
	.custom-thumb02 a img{
		width: 100%;
	}

	
}
