@import url(https://fonts.googleapis.com/earlyaccess/cwtexyen.css);
@import url("https://fonts.googleapis.com/css?family=Montserrat");
@import url("https://fonts.googleapis.com/css?family=Playfair+Display");
@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond&family=Nanum+Gothic&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200&display=swap");
.bg {
  position: absolute;
  right: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.bg .pic {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  background-size: cover;
  background-position: center;
}

.top {
  position: relative;
  height: 100vh;
}

.top-slogan {
  position: sticky;
  top: calc(100vh - 100px);
  color: #fff;
  font-size: 26px;
  text-shadow: black 0 0 0.5em;
  line-height: 1.5em;
  text-align: center;
  z-index: 2;
  -moz-transition: -moz-transform 0.6s;
  -o-transition: -o-transform 0.6s;
  -webkit-transition: -webkit-transform 0.6s;
  transition: transform 0.6s;
}
.top-slogan.show {
  -moz-transform: translateY(-75px);
  -ms-transform: translateY(-75px);
  -webkit-transform: translateY(-75px);
  transform: translateY(-75px);
}

.select {
  padding: 200px 0 100px;
}
.select ul {
  margin: auto;
  overflow: hidden;
  position: relative;
  width: fit-content;
}
.select li {
  display: inline-block;
  float: left;
  height: 20px;
  overflow: hidden;
  padding: 5px 20px;
  position: relative;
  text-align: center;
}
.select li:hover .tw {
  opacity: 1;
}
.select li:hover .en {
  opacity: 0;
}
.select li:nth-child(1):before {
  left: -10px;
}
.select li:nth-child(3):after {
  right: -10px;
}
.select li:before, .select li:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 13px;
  background: #a99166;
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.select li:before {
  left: -3px;
}
.select li:after {
  right: -3px;
}
.select span {
  display: block;
}
.select .en {
  opacity: 1;
}
.select .tw {
  opacity: 0;
  -moz-transform: translateY(-20px);
  -ms-transform: translateY(-20px);
  -webkit-transform: translateY(-20px);
  transform: translateY(-20px);
}

.active:before {
  content: "";
  position: absolute;
  width: calc(100% - 40px);
  height: 1px;
  background: #666;
  top: calc(100% - 1px);
  left: 20px;
}

.project {
  width: 50%;
  margin: auto auto 100px;
}
.project-in {
  position: relative;
  width: 100%;
  margin-top: 60px;
}
.project-in a {
  display: flex;
}
.project-in:first-child {
  margin-top: unset;
}
.project-in:nth-child(odd) a {
  flex-flow: row;
}
.project-in:nth-child(odd) .project-info {
  margin: auto 15px auto auto;
}
.project-in:nth-child(odd) .view-in {
  padding: 0 0 0 15px;
}
.project-in:nth-child(odd) .rect {
  left: -12%;
}
.project-in:nth-child(even) a {
  flex-flow: row-reverse;
}
.project-in:nth-child(even) .project-info {
  margin: auto auto auto 15px;
}
.project-in:nth-child(even) .name {
  text-align: right;
}
.project-in:nth-child(even) .view {
  flex-flow: row-reverse;
}
.project-in:nth-child(even) .view-in {
  padding: 0 15px 0 0;
}
.project-in:nth-child(even) .rect {
  right: -12%;
}
.project-in:hover .project-img img {
  -moz-transform: scale(1.05, 1.05);
  -ms-transform: scale(1.05, 1.05);
  -webkit-transform: scale(1.05, 1.05);
  transform: scale(1.05, 1.05);
}
.project-in:hover .project-info .name {
  color: #fff;
}
.project-in:hover .project-info .line {
  width: 25%;
  background: #a99166;
}
.project-in:hover .project-info .view-in {
  letter-spacing: 5px;
  color: #a99166;
}
.project-in:hover .project-info .rect {
  background: #554323;
}
.project-in:hover:nth-child(odd) .rect {
  left: calc(12% + 10px);
}
.project-in:hover:nth-child(even) .rect {
  right: calc(12% + 10px);
}
.project-img {
  position: relative;
  width: 45%;
  opacity: 0;
  overflow: hidden;
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -webkit-transform: translateY(30px);
  transform: translateY(30px);
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.project-img img {
  width: 100%;
  -webkit-filter: saturate(0.5);
  filter: saturate(0.5);
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.project-img:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(25, 25, 25, 0.9);
  z-index: 1;
  -moz-transform: scale(1, 1);
  -ms-transform: scale(1, 1);
  -webkit-transform: scale(1, 1);
  transform: scale(1, 1);
  -moz-transform-origin: center right;
  -ms-transform-origin: center right;
  -webkit-transform-origin: center right;
  transform-origin: center right;
  -moz-transition: -moz-transform 0.6s ease-in-out;
  -o-transition: -o-transform 0.6s ease-in-out;
  -webkit-transition: -webkit-transform 0.6s ease-in-out;
  transition: transform 0.6s ease-in-out;
}
.project-img.show {
  opacity: 1;
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.project-img.show:before {
  -moz-transform: scale(0, 1);
  -ms-transform: scale(0, 1);
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
}
.project-info {
  position: relative;
  width: 20%;
  max-width: 250px;
  height: fit-content;
  padding: 60px 30px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  border: solid 1px #666;
  box-shadow: inset 0 0 6px 2px #333;
  opacity: 0;
  z-index: 1;
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -webkit-transform: translateY(30px);
  transform: translateY(30px);
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.project-info.show {
  opacity: 1;
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.project-info.show .line {
  opacity: 1;
  -moz-transform: scale(1, 1);
  -ms-transform: scale(1, 1);
  -webkit-transform: scale(1, 1);
  transform: scale(1, 1);
}
.project-info .award {
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-bottom: 15px;
}
.project-info .award img {
  width: 25px;
  margin-bottom: 2px;
  margin-right: 2px;
}
.project-info .name {
  position: relative;
  color: #a99166;
  font-size: 20px;
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.project-info .name .en {
  font-size: 16px;
}
.project-info .view {
  position: relative;
  display: flex;
  width: 100%;
  padding: 20px 0 0;
}
.project-info .line {
  display: block;
  width: 100%;
  height: 1px;
  background: #aaa;
  opacity: 0;
  -moz-transform-origin: center right 50%;
  -ms-transform-origin: center right 50%;
  -webkit-transform-origin: center right 50%;
  transform-origin: center right 50%;
  -moz-transform: scale(0, 1);
  -ms-transform: scale(0, 1);
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.project-info .view-in {
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.project-info .rect {
  position: absolute;
  width: calc(100% - 12%);
  height: 5px;
  bottom: 10%;
  background: #888;
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.project-type {
  margin: auto 0;
  writing-mode: vertical-lr;
  opacity: 0;
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.project-type.show {
  opacity: 1;
}

@media screen and (max-width: 1200px) {
  .project {
    width: 70%;
  }
}
@media screen and (max-width: 800px) {
  .select {
    padding: 100px 0 50px;
  }

  .project {
    width: calc(100% - 60px);
  }
}
@media screen and (min-width: 640px) {
  .project-type2 {
    display: none;
  }
}
@media screen and (max-width: 640px) {
  .project {
    width: 70%;
  }
  .project-in:nth-child(odd) a {
    flex-flow: column;
  }
  .project-in:nth-child(odd) .project-info {
    margin: 30px 0 0 0;
  }
  .project-in:nth-child(odd) .rect {
    left: unset;
  }
  .project-in:nth-child(even) a {
    flex-flow: column;
  }
  .project-in:nth-child(even) .project-info {
    margin: 30px 0 0 0;
  }
  .project-in:nth-child(even) .rect {
    right: unset;
  }
  .project-in:hover:nth-child(odd) .rect {
    left: unset;
  }
  .project-in:hover:nth-child(even) .rect {
    right: unset;
  }
  .project-img {
    width: 100%;
  }
  .project-info {
    width: calc(100% - 60px);
    max-width: unset;
    padding: 20px 30px;
  }
  .project-info .rect {
    width: calc(100% - 60px);
    bottom: -3px;
  }
  .project-type {
    display: none;
  }
  .project-type2 {
    width: 100%;
    color: #ccc;
    text-align: end;
    opacity: 0;
    -moz-transition: all 0.6s ease-in-out;
    -o-transition: all 0.6s ease-in-out;
    -webkit-transition: all 0.6s ease-in-out;
    transition: all 0.6s ease-in-out;
  }
  .project-type2.show {
    opacity: 1;
  }
}
@media screen and (max-width: 400px) {
  .select ul {
    display: flex;
    flex-flow: column;
  }
  .select li {
    margin: 5px 0;
  }
  .select li:nth-child(1):before {
    left: 1px;
  }
  .select li:before {
    left: 1px;
  }
  .select li:after {
    right: 1px;
  }
  .select li:nth-child(3):after {
    right: 1px;
  }
}
