@charset "utf-8";

.cont_img {
  background-image: url(../images/cont_img.jpg);
}

/*============================
#works
============================*/

#works {
  overflow: hidden;
  position: relative;
}

#works .scroll-list {
  position: absolute;
  left: -1184px;
  top: 0;
  display: flex;
  transform: rotate(90deg);
}

#works .scroll-list p {
  color: #f3f3f3;
  font-size: 120px;
  padding-right: 60px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  font-family: "Cormorant", serif;
  animation: text-scroll 28s linear infinite;
}

@keyframes text-scroll {
  100% {
    transform: translateX(100%);
  }
}

#works .each {
  width: 47%;
}


#works .passing .passing-bar:before {
  background-color: #fff;
}

#works .passing {
  margin-bottom: 0;
  line-height: 0;
}

#works .each:nth-of-type(n+3) {
  margin-top: 6%;
}

#works .each img {
  width: 100%;
}

#works .each .text {
  background-color: #d9e4ed;
  padding: 10px 20px;
}

#works .each .text dl {
  display: flex;
  margin: 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #9ab6cc;
}

#works .each .text dl:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
}

#works .each .text dl dt {
  width: 100px;
  background-color: #162d41;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  margin-right: 20px;
  text-align: center;
  line-height: 2;
}

#works .each .text dl dd {
  width: 100%;
  flex: 1;
}

@media only screen and (max-width: 1040px) {
  #works .scroll-list {
    left: -1916px;
  }

  #works .each {
    width: 100%;
  }

  #works .each:not(:first-of-type),
  #works .each:nth-of-type(n+3) {
    margin-top: 40px;
  }

  #works .each .text dl:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
  }

  #works .each .text dl dt {
    width: 90px;
    font-size: 14px;
    margin-right: 14px;
  }

  #works .each .text dl dd {
    font-size: 15px;
  }
}
