@charset "utf-8";
@import url(cmn.css);
@import url(base.css);

.page {
  background: url("../images/works-images/page-bg.jpg") 50% 50% no-repeat;
  margin-bottom: 0;
}
.page {
  margin-bottom: 80px;
}

/* ==========================================================================
	CONTENTS
	========================================================================== */

/*WORKS*/

.works li {
  margin-bottom: 50px;
}
.works li img {
  display: block;
  margin-bottom: 15px;
}
.works .box {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}
.works .box:before {
  content:"";
  display: block;
  padding-top: 66.6666%; /* 高さを幅の75%に固定 */
}
.works .box .inner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
.works .box .inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  font-family: 'object-fit: cover;';
}


#gallery_slider {
  width: 100%;
  margin: 0 auto 20px;
}
.slide-item img {
  width: auto !important;
  max-height: 50vh;
}
#thumbnail-list {
  margin: 0 auto 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.thumbnail-item {
  margin-bottom: 10px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  position: relative;
  cursor: pointer;
  text-align: center;
  width: 15.8%;
  margin-right: 1%;
}
.thumbnail-item:nth-child(6n) {
  margin-right: 0;
}
.thumbnail-item:after {
  content: '';
  background-color: rgba(255, 255, 255, 0.7);
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  -webkit-transition: .3s opacity linear;
  transition: .3s opacity linear;
}
.thumbnail-item.thumbnail-current:after {
  opacity: 0;
}
.thumbnail-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    margin: 0 0 10px;
}
@media only screen and (max-width: 990px) {
.thumbnail-item img {
      height: 90px;
      object-fit: cover;
  }
}
@media only screen and (max-width: 640px) {
  #gallery_slider {
    margin: 0 auto 50px;
  }
}

#gallery_slider {
  opacity: 0;
  -webkit-transition: opacity .3s linear;
  transition: opacity .3s linear;
}
#gallery_slider.slick-initialized {
  opacity: 1;
}
#gallery_slider li.slide-item span {
  text-align: center;
  display: block;
  margin: 10px 0;
}
@media only screen and (max-width: 640px) {
  .slide-item img {
    max-height: 100%;
  }
  .thumbnail-item {
    width: 32.3%;
    margin-right: 1%;
  }
  .thumbnail-item:nth-child(3n) {
    margin-right: 0;
  }
}

.flexBox {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: start;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.flexBox.vertical {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.flexBox.reversal {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
}

.flexBox.flexBetween {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.flexBox.blocks_2 > * {
  width: calc((100% - 2%) / 2);
  margin-left: 0;
  margin-right: 2%;
  margin-bottom: 2%;
}
.flexBox.blocks_2 > *:nth-child(2n) {
  margin-right: 0;
}

.flexBox.blocks_3 > * {
  width: calc((100% - 4%) / 3);
  margin-right: 2%;
}
.flexBox.blocks_3 > *:nth-child(3n) {
  margin-right: 0;
}

.flexBox.blocks_4 > * {
  width: calc((100% - 6%) / 4);
  margin-right: 2%;
}
.flexBox.blocks_4 > *:nth-child(4n) {
  margin-right: 0;
}

.flexBox.blocks_5 > * {
  width: calc((100% - 8%) / 5);
  margin-right: 2%;
}
.flexBox.blocks_5 > *:nth-child(5n) {
  margin-right: 0;
}

.flexBox.blocks_6 > * {
  width: calc((100% - 10%) / 6);
  margin-right: 2%;
}
.flexBox.blocks_6 > *:nth-child(6n) {
  margin-right: 0;
}

.flexBox.blocks_7 > * {
  width: calc((100% - 12%) / 7);
  margin-right: 2%;
}
.flexBox.blocks_7 > *:nth-child(7n) {
  margin-right: 0;
}

.flexBox.blocks_8 > * {
  width: calc((100% - 14%) / 8);
  margin-right: 2%;
}
.flexBox.blocks_8 > *:nth-child(8n) {
  margin-right: 0;
}

@media screen and (max-width: 640px) {
  .flexBox:not(.sp_2) > * {
    width: 100%;
    display: block;
  }
  .flexBox:not(.sp_2) > *:not(ul) {
    margin: 5px auto;
  }

  .flexBox.sp_2 > * {
    width: calc(100% / 2);
  }
}


/* ==========================================================================
	PC 1025px -
	========================================================================== */

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


}
@media screen and (max-width: 1200px){/*1200以下*/

}


/* ==========================================================================
	TABLET - 1024px
	========================================================================== */

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

.page {
  margin-bottom: 60px;
}

.slick-dots {
	display: none!important;
}
}

/* ==========================================================================
	SP - 640px
	========================================================================== */

@media screen and (max-width: 640px) {

.page {
  margin-bottom: 40px;
}
.slick-dots {
	display: block!important;
}

#thumbnail-list {
	display: none;
}

}

