@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@200..900&display=swap");
.main {
  margin-top: 20vh;
}

.title {
  padding-left: 0;
  margin-bottom: 60px;
}
.title:before {
  content: none;
}
.title-tw {
  font-weight: normal;
  opacity: 1;
}

.select {
  text-align: center;
}
.select li {
  display: inline-block;
  position: relative;
  overflow: hidden;
  margin: 0 15px;
  padding: 0 15px;
  white-space: nowrap;
}
.select li:before {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 0;
  width: calc(100% - 10px);
  height: 8px;
  background-color: #dcdcdc;
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -moz-transform-origin: left 50%;
  -ms-transform-origin: left 50%;
  -webkit-transform-origin: left 50%;
  transform-origin: left 50%;
  -moz-transition: -moz-transform 0.5s;
  -o-transition: -o-transform 0.5s;
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
  opacity: 0.2;
  z-index: 0;
}
.select li:hover:before {
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}
.select li:hover .en {
  -moz-transform: translate(0, 30px);
  -ms-transform: translate(0, 30px);
  -webkit-transform: translate(0, 30px);
  transform: translate(0, 30px);
  -moz-transition: -moz-transform 0.5s;
  -o-transition: -o-transform 0.5s;
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}
.select li:hover .tw {
  -moz-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  -moz-transition: -moz-transform 0.3s;
  -o-transition: -o-transform 0.3s;
  -webkit-transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
}
.select .en {
  display: inline-block;
  font-size: 15px;
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
  -moz-transition: -moz-transform 0.3s;
  -o-transition: -o-transform 0.3s;
  -webkit-transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
}
.select .tw {
  position: absolute;
  top: 0;
  left: 50%;
  -moz-transform: translate(-50%, 30px);
  -ms-transform: translate(-50%, 30px);
  -webkit-transform: translate(-50%, 30px);
  transform: translate(-50%, 30px);
  -moz-transition: -moz-transform 0.5s;
  -o-transition: -o-transform 0.5s;
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}
.select .on:before {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 0;
  width: calc(100% - 10px);
  height: 8px;
  background-color: #dcdcdc;
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  opacity: 0.2;
  z-index: 0;
}

.project-inner {
  width: 80%;
  max-width: 1200px;
  margin: auto;
}
.project-box {
  display: flex;
  margin: 8vw 0;
}
.project-box a:hover .title-big {
  color: #666;
}
.project-pic {
  position: relative;
  width: 60%;
  overflow: hidden;
}
.project-pic img {
  width: 100%;
  position: relative;
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  -moz-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  -o-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.project-concept {
  width: 40%;
}
.project-text {
  position: relative;
  top: 20%;
  width: 70%;
  box-sizing: border-box;
  border: 1px solid #666;
  padding: 80px 50px;
  -moz-transition: all 0.5s;
  -o-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}
.project-name {
  font-size: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}
.project-name span {
  display: inline-block;
}
.project-name .en {
  font-size: 14px;
}
.project .title-big {
  margin-bottom: 20px;
  color: #666;
  position: absolute;
  top: -30px;
  text-align: left;
  width: 220px;
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}
.project-view {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #bdbdbd;
}
.project-line {
  width: 80%;
  height: 10px;
  background: #666;
  position: absolute;
  top: 170px;
  -moz-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  -o-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project a:nth-child(odd) .title-big {
  left: 250px;
}
.project a:nth-child(odd) .project-text {
  margin-left: 30%;
}
.project a:nth-child(odd) .project-line {
  right: 40%;
}
.project a:nth-child(odd) .project-view:before {
  content: "";
  display: inline-block;
  background-color: #666;
  padding-left: 20%;
  padding-top: 1px;
  margin-right: 20px;
  position: relative;
  top: -10px;
  -moz-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  -o-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.project a:nth-child(odd):hover .project-line {
  right: 60%;
  background-color: #999;
}
.project a:nth-child(odd):hover .project-pic img {
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
.project a:nth-child(odd):hover .project-view {
  color: #fff;
}
.project a:nth-child(odd):hover .project-view:before {
  padding-left: calc(100% - 60px);
}

.project a:nth-child(even) .project-box {
  flex-direction: row-reverse;
}
.project a:nth-child(even) .title-big {
  right: 250px;
}
.project a:nth-child(even) .project-text {
  text-align: right;
  margin-right: 30%;
}
.project a:nth-child(even) .project-line {
  left: 40%;
}
.project a:nth-child(even) .project-view:after {
  content: "";
  display: inline-block;
  background-color: #666;
  padding-left: 30px;
  padding-top: 1px;
  margin-left: 20px;
  position: relative;
  top: -10px;
  -moz-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  -o-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.project a:nth-child(even):hover .project-line {
  left: 60%;
  background-color: #999;
}
.project a:nth-child(even):hover .project-pic img {
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
.project a:nth-child(even):hover .project-view {
  color: #fff;
}
.project a:nth-child(even):hover .project-view:after {
  padding-left: calc(100% - 60px);
}

.project-box .move1 {
  opacity: 0;
  -moz-transform: translateY(-80px);
  -ms-transform: translateY(-80px);
  -webkit-transform: translateY(-80px);
  transform: translateY(-80px);
  -moz-transition: opacity 0.6s, -moz-transform 0.6s;
  -o-transition: opacity 0.6s, -o-transform 0.6s;
  -webkit-transition: opacity 0.6s, -webkit-transform 0.6s;
  transition: opacity 0.6s, transform 0.6s;
}
.project-box .move2 {
  opacity: 0;
  -moz-transform: translateY(80px);
  -ms-transform: translateY(80px);
  -webkit-transform: translateY(80px);
  transform: translateY(80px);
  -moz-transition: opacity 0.8s, -moz-transform 1s;
  -o-transition: opacity 0.8s, -o-transform 1s;
  -webkit-transition: opacity 0.8s, -webkit-transform 1s;
  transition: opacity 0.8s, transform 1s;
}
.project-box .project-name span {
  display: inline-block;
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  -moz-transition: -moz-transform 0.8s;
  -o-transition: -o-transform 0.8s;
  -webkit-transition: -webkit-transform 0.8s;
  transition: transform 0.8s;
  -moz-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}
.project-box.show .move1 {
  opacity: 1;
  -moz-transform: translate(0px, 0px);
  -ms-transform: translate(0px, 0px);
  -webkit-transform: translate(0px, 0px);
  transform: translate(0px, 0px);
}
.project-box.show .move2 {
  opacity: 1;
  -moz-transform: translate(0px, 0px);
  -ms-transform: translate(0px, 0px);
  -webkit-transform: translate(0px, 0px);
  transform: translate(0px, 0px);
}
.project-box.show .project-name span {
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -webkit-transform: translateY(0px);
  transform: translateY(0px);
}

@media screen and (max-width: 1200px) {
  .project-text {
    padding: 50px 30px;
  }

  .project-line {
    top: 130px;
  }
}
@media screen and (max-width: 1100px) {
  .main {
    margin-top: 130px;
  }

  .select {
    margin-bottom: 60px;
  }
  .select li {
    margin-left: 0;
  }
  .select li:nth-child(2) {
    margin-right: 0;
  }
  .select li:before {
    background-color: #dcdcdc;
    opacity: 0.7;
  }
  .select .on:before {
    background-color: #dcdcdc;
    opacity: 0.7;
  }

  .project-inner {
    width: 90%;
  }
  .project-text {
    width: 80%;
    border: 1px solid #bbb;
  }
  .project-view {
    color: #000;
  }
  .project-line {
    background: #bbb;
  }

  .project a:nth-child(odd) .project-text {
    margin-left: 20%;
  }
  .project a:nth-child(odd) .project-line {
    right: 80px;
  }
  .project a:nth-child(odd) .project-view:before {
    background-color: #bbb;
    padding-left: 20%;
    margin-right: 20px;
    top: -10px;
  }
  .project a:nth-child(odd):hover .project-line {
    right: 130px;
  }
  .project a:nth-child(odd):hover .project-view {
    color: #000;
  }
  .project a:nth-child(odd):hover .project-view:before {
    padding-left: calc(100% - 80px);
  }

  .project a:nth-child(even) .project-text {
    margin-right: 20%;
  }
  .project a:nth-child(even) .project-line {
    left: 80px;
  }
  .project a:nth-child(even) .project-view:after {
    background-color: #bbb;
    padding-left: 30px;
    margin-left: 20px;
    top: -10px;
  }
  .project a:nth-child(even):hover .project-line {
    left: 130px;
  }
  .project a:nth-child(even):hover .project-pic img {
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
  .project a:nth-child(even):hover .project-view {
    color: #000;
  }
  .project a:nth-child(even):hover .project-view:after {
    padding-left: calc(100% - 80px);
  }
}
@media screen and (max-width: 860px) {
  .select {
    left: 30px;
  }

  .project-box {
    display: block;
    margin-top: 0;
    margin-bottom: 100px;
  }
  .project-pic {
    width: 80%;
    margin: auto;
  }
  .project-concept {
    width: 80%;
    margin: auto;
  }
  .project-text {
    width: 100%;
    border: unset;
    padding: 10px 0 0;
  }
  .project-name {
    margin-bottom: 15px;
  }
  .project-line {
    position: relative;
    height: 5px;
    width: 120%;
  }

  .project a:nth-child(even) .project-text {
    margin: auto;
  }
  .project a:nth-child(even) .project-line {
    top: 10px;
    left: unset;
  }
  .project a:nth-child(even):hover .project-line {
    left: unset;
  }

  .project a:nth-child(odd) .project-text {
    margin: auto;
  }
  .project a:nth-child(odd) .project-line {
    top: 10px;
    left: -20%;
    right: unset;
  }
  .project a:nth-child(odd):hover .project-line {
    left: -20%;
    right: unset;
  }

  .project-box .move1 {
    -moz-transform: translateY(-50px);
    -ms-transform: translateY(-50px);
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
  }
  .project-box .move2 {
    opacity: 0;
    -moz-transform: translateY(50px);
    -ms-transform: translateY(50px);
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
  }
}
@media screen and (max-width: 640px) {
  .project-box {
    margin-bottom: 50px;
  }
  .project-pic {
    width: 100%;
  }
  .project-concept {
    width: 100%;
  }
  .project-text {
    padding-top: 20px;
  }
  .project-in {
    text-align: center;
  }
  .project-name {
    margin-bottom: 10px;
  }
  .project-line {
    display: none;
  }

  .project a:nth-child(odd) .project-view {
    text-align: right;
  }
  .project a:nth-child(odd) .project-view:before {
    padding-left: calc(100% - 53px);
    top: 0;
  }
  .project a:nth-child(odd):hover .project-view:before {
    padding-left: calc(100% - 53px);
    top: 0;
  }

  .project a:nth-child(even) .project-view {
    text-align: left;
  }
  .project a:nth-child(even) .project-view:after {
    top: 0;
    padding-left: calc(100% - 53px);
  }
  .project a:nth-child(even):hover .project-view:after {
    top: 0;
    padding-left: calc(100% - 53px);
  }
}
