@charset "UTF-8";
@charset "UTF-8";

/*.opening-overlay {
    position: relative;
    opacity: 0
}

.opening-overlay p {
    position: fixed;
    width: 300px;
    height: 100px;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -150px;  
    font-size: 1.7rem;
    font-weight: 400;
    text-align: center;
}*/

.works_index {
    position: relative;
    width: 100%;
    top: 58px;
    padding-bottom: 0px;
}

.works_box {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 0.4%;
}

.works_thumbnail {
    position: absolute;
    top: 50%;
	left: 50%;
	width: 100%;
	height: auto;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.works_box .caption {
    width: 50%;
    padding-left: 30px;
    font-size: 2rem;
    letter-spacing: 0.05em;
}
.works_box .caption2 {
    width: 50%;
    right: 20px;
    text-align: right;
    padding-right: 20px;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}
.works_box .mask {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;

    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    opacity: 0;
}
.works_box:hover .mask {
    opacity: 1;
}
.works_box img {
    width: 100%;
    display: block;
    transition-duration: 0.5s;  
}
.works_box:hover img {
    transform: scale(1.05);  
    transition-duration: 0.5s; 
}



.shutter {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 9999;
  -webkit-animation: byeShutter 2.8s forwards;
          animation: byeShutter 2.8s forwards;
}
.shutter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: -moz-linear-gradient(top, #dcdcdc, #fff);
  background: -webkit-linear-gradient(top, #dcdcdc, #fff);
  background: linear-gradient(to bottom, #dcdcdc, #fff);
  width: 0;
  height: 2px;
  -webkit-animation: shutterOpen 2.8s forwards;
          animation: shutterOpen 2.8s forwards;
}

.works_index {
  -webkit-animation: works_indexScale 2.8s forwards;
          animation: works_indexScale 2.8s forwards;
}

@-webkit-keyframes byeShutter {
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
    z-index: -1;
  }
}

@keyframes byeShutter {
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
    z-index: -1;
  }
}
@-webkit-keyframes shutterOpen {
  0% {
    width: 0;
    height: 2px;
  }
  50% {
    width: 100%;
    height: 2px;
  }
  90% {
    width: 100%;
    height: 100%;
  }
  100% {
    width: 100%;
    height: 100%;
  }
}
@keyframes shutterOpen {
  0% {
    width: 0;
    height: 2px;
  }
  50% {
    width: 100%;
    height: 2px;
  }
  90% {
    width: 100%;
    height: 100%;
  }
  100% {
    width: 100%;
    height: 100%;
  }
}

@media screen and (min-width: 1450px) {
    .works_index {
        top: 66px;
        float: right;
    }
    .works_box {
        position: relative;
        width: 100%;
        height: 600px;
        overflow: hidden;
        margin-bottom: 0.4%;
    }
    .works_box .caption {
        width: 50%;
        padding-left: 30px;
        font-size: 2.3rem;
        letter-spacing: 0.05em;
    }
    .works_box .caption2 {
        width: 50%;
        padding-right: 30px;
        text-align: right;
        font-size: 1.6rem;
        letter-spacing: 0.05em;
    }    

    .shutter {
      position: fixed;
      top: 66px;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #fff;
      z-index: 9999;
      -webkit-animation: byeShutter 2.8s forwards;
              animation: byeShutter 2.8s forwards;
    }
}

@media screen and (max-width: 1024px) {
/*    .opening-overlay p {
        position: fixed;
        width: 300px;
        height: 100px;
        top: 50%;
        left: 50%;
        margin: -30px 0 0 -150px;  
        font-size: 1.4rem;
        font-weight: 400;
        text-align: center;
    }*/
    .works_index {
        position: relative;
        width: 100%;
        top: 50px;
        padding: 0;
    }
    .works_box {
        position: relative;
        width: 100%;
        max-height: 250px;
        overflow: hidden;
  	    margin-bottom: 0.5%;
    }
    .works_box .caption {
        width: 100%;
        padding-left: 15px;
        font-size: 1.3rem;
        letter-spacing: 0.05em;
    }

    .works_box .caption2 {
        width: 100%;
        padding-right: 15px;
        text-align: right;
        font-size: 1.0rem;
        letter-spacing: 0.05em;
        display: none;
    }  

    .works_box .mask {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        color: #fff;
        display: flex;
        justify-content: center; 
        align-items: center;

        background-color: rgba(0,0,0,0);
        -webkit-transition: all 0.2s ease;
        transition: all 0.2s ease;
        opacity: 1;
    }
    .shutter {
      position: fixed;
      top: 50px;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #fff;
      z-index: 9999;
      -webkit-animation: byeShutter 2.8s forwards;
              animation: byeShutter 2.8s forwards;
    }

}

