@charset "UTF-8";
.project-sort {
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  background: #404040;
  padding: 20px 0;
  margin-bottom: 150px;
  font-size: 0.875em;
}
.project-sort a {
  padding: 0 15px;
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.project-sort a:hover {
  color: #EF6A00;
}
.project-sort .active {
  color: #EF6A00;
}
.project-subsort {
  padding: 0 8%;
  font-size: 0.875em;
  font-family: "Fira Sans", "Mukta", serif, "STHeiti Light", "Heiti TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
  margin-top: -80px;
  margin-bottom: 80px;
}
.project-ping {
  padding: 8px 0;
  border: 1px solid #6f6f6f;
  width: 31.3333%;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  -moz-transition: opacity 0.6s, color 0.3s;
  -o-transition: opacity 0.6s, color 0.3s;
  -webkit-transition: opacity 0.6s, color 0.3s;
  transition: opacity 0.6s, color 0.3s;
}
.project-ping.show {
  opacity: 1;
}
.project-ping.show:nth-child(2):before {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-ping.show:nth-child(2):after {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-ping:nth-child(2) {
  border-top: unset;
  border-bottom: unset;
  position: relative;
}
.project-ping:nth-child(2):before {
  content: "";
  width: 140%;
  height: 2px;
  background: #6f6f6f;
  cursor: initial;
  position: absolute;
  top: 50%;
  left: -140%;
  clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -moz-transition: clip-path 0.6s 1.8s;
  -o-transition: clip-path 0.6s 1.8s;
  -webkit-transition: clip-path 0.6s;
  -webkit-transition-delay: 1.8s;
  transition: clip-path 0.6s 1.8s;
}
.project-ping:nth-child(2):after {
  content: "";
  width: 140%;
  height: 2px;
  background: #6f6f6f;
  cursor: initial;
  position: absolute;
  top: 50%;
  right: -140%;
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -moz-transition: clip-path 0.6s 1.8s;
  -o-transition: clip-path 0.6s 1.8s;
  -webkit-transition: clip-path 0.6s;
  -webkit-transition-delay: 1.8s;
  transition: clip-path 0.6s 1.8s;
}
.project-ping:hover {
  color: #EF6A00;
}
.project-ping.active {
  color: #EF6A00;
  background: rgba(64, 64, 64, 0.5);
  -moz-transition: color 0.3s, background 0.3s;
  -o-transition: color 0.3s, background 0.3s;
  -webkit-transition: color 0.3s, background 0.3s;
  transition: color 0.3s, background 0.3s;
}
.project-list {
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 0 8%;
}
.project-item {
  width: 33.3333%;
  padding: 0 1%;
  box-sizing: border-box;
}
.project-item:hover .project-img {
  -webkit-filter: saturate(1);
  filter: saturate(1);
}
.project-item:hover .project-img:after {
  -moz-animation: shadow 1s;
  -webkit-animation: shadow 1s;
  animation: shadow 1s;
}
.project-item:nth-child(4n+1) .project-img {
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
}
.project-item:nth-child(4n+1) .project-img.show {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-item:nth-child(4n+2) .project-img {
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
}
.project-item:nth-child(4n+2) .project-img.show {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-item:nth-child(4n+3) .project-img {
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
}
.project-item:nth-child(4n+3) .project-img.show {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-item:nth-child(4n+4) .project-img {
  clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
}
.project-item:nth-child(4n+4) .project-img.show {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.project-img {
  width: 100%;
  position: relative;
  -webkit-filter: saturate(0.1);
  filter: saturate(0.1);
  -moz-transition: clip-path 0.6s, filter 1s;
  -o-transition: clip-path 0.6s, filter 1s;
  -webkit-transition: clip-path 0.6s, filter 1s;
  transition: clip-path 0.6s, filter 1s;
}
.project-img:after {
  content: "";
  width: 0%;
  height: 100%;
  background: rgba(64, 64, 64, 0.1);
  position: absolute;
  top: 0;
  left: 0;
}
.project-img img {
  width: 100%;
}
.project-content {
  padding: 20px 0px 25px;
  margin-bottom: 50px;
}
.project-name {
  padding: 10px 0 20px;
}
.project-name .en {
  font-size: 0.875em;
}
.project-type {
  color: #EF6A00;
  font-size: 0.875em;
}

@-moz-keyframes shadow {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0%;
    left: 100%;
  }
}
@-webkit-keyframes shadow {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0%;
    left: 100%;
  }
}
@keyframes shadow {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0%;
    left: 100%;
  }
}
@media screen and (max-width: 1100px) {
  .project-subsort {
    padding: 0 5%;
  }
  .project-list {
    padding: 0 5%;
  }
}
@media screen and (max-width: 900px) {
  .project-ping {
    width: calc(98% - 2px);
    margin: 0 auto;
  }
  .project-ping:nth-child(2):before {
    width: 8%;
    left: -8%;
  }
  .project-ping:nth-child(2):after {
    width: 8%;
    right: -8%;
  }
  .project-item {
    width: 50%;
  }
}
@media screen and (max-width: 640px) {
  .main {
    padding-top: 80px;
  }

  .project-sort {
    margin-bottom: 100px;
    -webkit-flex-flow: column;
    flex-flow: column;
    text-align: center;
    padding: 10px 0;
  }
  .project-sort a {
    width: calc(100% - 30px);
  }
  .project-sort a:nth-child(2) {
    padding: 5px 15px;
    margin: 5px 0;
    border-top: 1px solid #545859;
    border-bottom: 1px solid #545859;
  }
  .project-subsort {
    padding: 0 25px;
    margin-top: -50px;
    margin-bottom: 50px;
  }
  .project-ping {
    width: calc(100% - 2px);
  }
  .project-ping:nth-child(2):before {
    width: 27px;
    left: -27px;
  }
  .project-ping:nth-child(2):after {
    width: 27px;
    right: -27px;
  }
  .project-list {
    padding: 0 25px;
  }
  .project-item {
    width: 100%;
    padding: 0;
  }
}
