.project {
  position: relative;
}
.project:after {
  content: "";
  width: 1px;
  height: calc(100% + 100px);
  background: #ccc;
  position: absolute;
  top: -100px;
  left: 29%;
}
.project-wrap {
  display: -ms-flexbox;
  display: flex;
  padding: 0 15%;
  position: relative;
}
.project-sort {
  width: 20%;
  font-size: 0.875em;
}
.project-type {
  position: relative;
  opacity: 0;
  -moz-transform: translateX(-30px);
  -ms-transform: translateX(-30px);
  -webkit-transform: translateX(-30px);
  transform: translateX(-30px);
}
.project-type.show {
  opacity: 1;
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
.project-type:nth-child(1) {
  -moz-transition: all 0.8s;
  -o-transition: all 0.8s;
  -webkit-transition: all 0.8s;
  transition: all 0.8s;
}
.project-type:nth-child(2) {
  margin: 10px 0;
  -moz-transition: all 0.8s 0.3s;
  -o-transition: all 0.8s 0.3s;
  -webkit-transition: all 0.8s;
  -webkit-transition-delay: 0.3s;
  transition: all 0.8s 0.3s;
}
.project-type:last-child {
  -moz-transition: all 0.8s 0.6s;
  -o-transition: all 0.8s 0.6s;
  -webkit-transition: all 0.8s;
  -webkit-transition-delay: 0.6s;
  transition: all 0.8s 0.6s;
}
.project-type a, .project-type p {
  cursor: pointer;
  color: #9e9e9f;
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.project-type a:hover, .project-type p:hover {
  color: #272f37;
}
.project-type.active:before {
  content: "";
  width: calc(100% + 12px);
  height: 1px;
  background: #9e9e9f;
  position: absolute;
  left: calc(-100% - 17px);
  top: 50%;
}
.project-type.active a {
  color: #272f37;
  padding: 2px 5px 0;
  border: 1px solid #9e9e9f;
  margin-left: -5px;
  display: inline-block;
}
.project-type.active p {
  color: #272f37;
}
.project-content {
  width: 80%;
}
.project-item {
  padding: 50px 0;
  position: relative;
  -moz-transition: all 0.6s;
  -o-transition: all 0.6s;
  -webkit-transition: all 0.6s;
  transition: all 0.6s;
}
.project-item:after {
  content: "";
  width: 130%;
  height: 1px;
  background: #ccc;
  position: absolute;
  bottom: 0;
  left: 0;
}
.project-item:nth-child(1) {
  padding-top: 0;
}
.project-item:last-child {
  padding-bottom: 0;
}
.project-item:last-child:after {
  display: none;
}
.project-item a {
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
.project-item a:hover .project-img img {
  -webkit-filter: none;
  filter: none;
}
.project-img {
  width: 40%;
  margin-left: 15%;
  position: relative;
}
.project-img img {
  width: 100%;
  -webkit-filter: grayscale(1) contrast(0.5) brightness(1.5);
  filter: grayscale(1) contrast(0.5) brightness(1.5);
  -moz-transition: filter 0.8s;
  -o-transition: filter 0.8s;
  -webkit-transition: filter 0.8s;
  transition: filter 0.8s;
}
.project-text {
  margin-left: 10%;
  width: 35%;
}
.project-text p {
  font-size: 0.75rem;
  color: #9e9e9f;
  padding-bottom: 8px;
}
.project-name {
  position: relative;
  padding-left: 15px;
}
.show .project-name:before {
  height: 70%;
}
.project-name:before {
  content: "";
  width: 1px;
  height: 0%;
  background: #ccc;
  position: absolute;
  top: 11%;
  left: 0;
  -moz-transition: height 0.6s 0.4s;
  -o-transition: height 0.6s 0.4s;
  -webkit-transition: height 0.6s;
  -webkit-transition-delay: 0.4s;
  transition: height 0.6s 0.4s;
}
.project-name .tw {
  font-size: 0.9375em;
  color: #272f37;
}
.project-name .en {
  font-size: 0.8125rem;
  padding-left: 5px;
}

@media screen and (max-width: 1100px) {
  .project:after {
    display: none;
  }
  .project-wrap {
    padding: 0;
    display: block;
  }
  .project-sort {
    padding: 0 10% 100px;
    width: 100%;
  }
  .project-type.active:before {
    width: 100%;
    left: -10%;
    z-index: -1;
  }
  .project-type.active a {
    background: #f6f6f6;
  }
  .project-content {
    width: 100%;
  }
  .project-item {
    padding: 50px 10%;
  }
  .project-img {
    margin-left: unset;
    width: 45%;
  }
  .project-text {
    width: 45%;
  }
}
@media screen and (max-width: 640px) {
  .project-sort {
    padding: 0 40px 60px;
    font-size: 0.8125rem;
  }
  .project-type.active:before {
    left: -40px;
  }
  .project-item {
    padding: 35px 40px;
  }
  .project-item a {
    display: block;
  }
  .project-img {
    width: 100%;
  }
  .project-text {
    width: 100%;
    margin-left: unset;
    padding-top: 30px;
  }
}
