/* ====================================================================================================================
 * RESETS
 * ====================================================================================================================*/
.flex-container a:hover,
.flex-slider a:hover,
.flex-container a:focus,
.flex-slider a:focus {
  outline: none;
}
.slides,
.slides > li,
.flex-control-nav,
.flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.flex-pauseplay span {
  text-transform: capitalize;
}
/* ====================================================================================================================
 * BASE STYLES
 * ====================================================================================================================*/
.flexslider {
  margin: 0;
  padding: 0;
}
.flexslider .slides > li {
  display: none;
  -webkit-backface-visibility: hidden;
}
.flexslider .slides img {
  width: 100%;
  display: block;
}


.slides:after {
  content: "";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
html[xmlns] .flexslider .slides {
  display: block;
}
* html .flexslider .slides {
  height: 1%;
}
.no-js .flexslider .slides > li:first-child {
  display: block;
}
/* ====================================================================================================================
 * DEFAULT THEME
 * ====================================================================================================================*/
.flexslider {
	width:94%;
	max-width:980px;
	margin: 0 auto;
	position: relative;
	zoom: 1;
}
.flexslider .slides {
  zoom: 1;
}

.flexslider .slides img {
  height: auto;
}
.flex-viewport {
  max-height: 2000px;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.loading .flex-viewport {
  max-height: 300px;
}
.carousel li {
  margin-right: 5px;
}

/* Direction Nav */
.flex-direction-nav {
  height: 0;
  display: none\9;
}
.flex-direction-nav a {
  text-decoration: none;
  display: block;
  width:40px;
  height:80px;
  
  background-image:url(../img/top/controls.png);
	-webkit-background-size:90px 170px;
	-moz-background-size:90px 170px;
	-ms-background-size:90px 170px;
	-o-background-size:90px 170px;
	background-size:90px 170px;
	
  margin: -40px 0 0;
  position: absolute;
  top: 50%;
  z-index: 10;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.8);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
@media screen and (max-width: 640px) {
	.flex-direction-nav a {
  width:20px;
  height:40px;
  
  background-image:url(../img/top/controls_sp.png);
	-webkit-background-size:45px 85px;
	-moz-background-size:45px 85px;
	-ms-background-size:45px 85px;
	-o-background-size:45px 85px;
	background-size:45px 85px;
	
  margin: -20px 0 0;
}
}

.flex-direction-nav .flex-prev {left:-50px;}
.flex-direction-nav .flex-next {right:-50px;}
.flex-direction-nav a.flex-prev {background-image:url(../img/top/controls.png);}
.flex-direction-nav a.flex-next {background-position:-50px 0;}
.flexslider:hover .flex-prev {opacity:1; left:10px;}
.flexslider:hover .flex-next {opacity:1; right:10px;}
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity:0.7;}
.flex-direction-nav a:before {font-size:40px; display:inline-block; content:'';}
@media screen and (max-width: 640px) {
.flex-direction-nav .flex-prev {left:-25px; }
.flex-direction-nav .flex-next {right:-25px;}
.flex-direction-nav a.flex-prev {background-image:url(../img/top/controls_sp.png);}
.flex-direction-nav a.flex-next {background-position:-25px 0;}
}


.flex-direction-nav .flex-disabled {
  opacity: 0!important;
  filter: alpha(opacity=0);
  cursor: default;
}

/* Pause/Play */
.flex-pauseplay a {
  display: block;
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: 5px;
  left: 10px;
  opacity: 0.8;
  z-index: 10;
  overflow: hidden;
  cursor: pointer;
  color: #000;
}
.flex-pauseplay a:before {
  font-size: 20px;
  display: inline-block;
}
.flex-pauseplay a:hover {
  opacity: 1;
}


/* Control Nav */
.flex-control-nav {
  width: 100%;
  position: absolute;
  text-align: center;
}
.flex-control-nav li {
  margin: 0 6px;
  display: inline-block;
  zoom: 1;
  *display: inline;
}
.flex-control-paging li a {
  width: 12px;
  height: 12px;
  display: block;
  background: #999;
  background: rgba(204,204,204,0.5);
  cursor: pointer;
  text-indent: -9999px;
  -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  margin:15px 0 0 0;
}
.flex-control-paging li a:hover {
  background: rgba(254,250,81,0.7);
  background: #FDD748\9;
}
.flex-control-paging li a.flex-active {
  background: rgba(254,250,81,0.9);
  background: #FDD748\9;
  cursor: default;
}
.flex-control-thumbs {
  margin: 5px 0 0;
  position: static;
  overflow: hidden;
}
.flex-control-thumbs li {
  width: 25%;
  float: left;
  margin: 0;
}
.flex-control-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
  cursor: pointer;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.flex-control-thumbs img:hover {
  opacity: 1;
}
.flex-control-thumbs .flex-active {
  opacity: 1;
  cursor: default;
}
