@import url("https://fonts.googleapis.com/css?family=EB+Garamond");
@import url("https://fonts.googleapis.com/earlyaccess/cwtexming.css");
/*set layout */
body {
  font-family: "EB Garamond", "cwTeXMing", serif;
  line-height: 1.5;
  letter-spacing: 0.5px;
  color: #666;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: #666;
}
a:hover {
  color: #000;
}

.en {
  font-family: "EB Garamond", "Times New Roman", Times, serif;
}

.en2 {
  font-family: "EB Garamond", "Times New Roman", Times, serif;
}

.header {
  position: fixed;
  width: 100%;
  box-sizing: border-box;
  background: #FFF;
  padding: 43px 40px;
  line-height: 30px;
  z-index: 10;
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -moz-transition: -moz-transform 1s;
  -o-transition: -o-transform 1s;
  -webkit-transition: -webkit-transform 1s;
  transition: transform 1s;
}
.header.hidden-header {
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
}

.logo {
  position: relative;
  margin: auto;
  width: 160px;
  color: #000;
  text-align: center;
  font-size: 1.25em;
}
.logo img {
  position: relative;
  width: 144px;
  margin: auto;
}

.alt-logo {
  position: absolute;
  top: 0;
  left: 0;
}

.nav-left, .nav-right {
  position: absolute;
  bottom: 38px;
}
.nav-left {
  right: 50%;
  margin-right: 120px;
}
.nav-right {
  left: 50%;
  margin-left: 120px;
}
.nav li {
  float: left;
  margin: 0 1.5vw;
  text-align: center;
  font-size: 0.875em;
}
.nav .tw {
  color: #777;
}
.nav .en {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  opacity: 0;
  font-weight: 600;
  letter-spacing: 4px;
  padding-left: 4px;
  font-size: 0.75rem;
}
.nav a {
  position: relative;
  display: block;
}
.nav a:after {
  position: absolute;
  content: "";
  height: 2px;
  width: 0px;
  background: #000;
  left: 50%;
  margin-left: -20px;
  bottom: -5px;
  -moz-transition: width 0.3s;
  -o-transition: width 0.3s;
  -webkit-transition: width 0.3s;
  transition: width 0.3s;
}
.nav a:hover:after {
  width: 40px;
}
.nav a:hover .tw {
  opacity: 0;
}
.nav a:hover .en {
  opacity: 1;
}
.nav a.active:after {
  width: 40px;
}

.wrapper {
  overflow: hidden;
}

.main {
  padding-top: 170px;
}

.inner {
  padding: 0 100px;
  max-width: 1200px;
  margin: auto;
}

.title {
  position: relative;
  font-family: "EB Garamond", "Times New Roman", Times, serif;
  color: #000;
  font-weight: normal;
  font-size: 1.75em;
  text-align: center;
}

.sub-title {
  position: relative;
  color: #000;
  font-weight: normal;
  margin-bottom: 20px;
}

.section {
  margin: 150px 0;
}

.follow a {
  display: block;
  margin: auto;
  text-align: center;
  width: 140px;
  color: #000;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.follow.show a {
  opacity: 1;
}
.follow-icon {
  width: 140px;
  height: 140px;
  line-height: 140px;
  border: #cfbda8 solid 1px;
  border-radius: 50%;
  margin: 20px 0;
  font-size: 1.25em;
}
.follow-info {
  font-size: 0.875em;
}
.follow-circle {
  width: 8px;
  height: 8px;
  border: #cfbda8 solid 1px;
  border-radius: 50%;
  margin: 20px auto;
}
.follow-line:before {
  content: "";
  width: 1px;
  height: 100px;
  background: #cfbda8;
  margin: 0 auto;
  display: block;
}
.follow-line:after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border: #cfbda8 solid 1px;
  border-radius: 50%;
  margin: 0 auto;
}

.bottom {
  overflow: hidden;
}
.bottom-img {
  width: 25%;
  float: left;
  opacity: 0;
  -moz-transition: opacity 0.6s, margin 0.6s;
  -o-transition: opacity 0.6s, margin 0.6s;
  -webkit-transition: opacity 0.6s, margin 0.6s;
  transition: opacity 0.6s, margin 0.6s;
}
.show .bottom-img {
  opacity: 1;
}
.show .bottom-img:nth-child(even) {
  margin-top: 5%;
}
.bottom-img img {
  width: 100%;
}

.footer {
  font-size: 0.75em;
  padding: 40px 0;
  margin: 100px 0 50px;
}
.footer .tw {
  font-family: "EB Garamond", "cwTeXMing", serif;
}
.footer-line {
  height: 1px;
  background: #ccc;
  margin: 20px 0;
}
.footer-social {
  float: right;
  border-left: #ccc solid 1px;
  font-size: 14px;
}
.footer-social a {
  margin-left: 30px;
}

.floatingbtn {
  position: fixed;
  right: 35px;
  bottom: 30px;
  z-index: 8;
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.floatingbtn-icon {
  position: relative;
  width: 30px;
  height: 30px;
  line-height: 27px;
  border-radius: 50%;
  background: #FFF;
  text-align: center;
  box-shadow: 0 0 5px #999;
  margin-top: 10px;
  cursor: pointer;
}
.floatingbtn-icon:hover i {
  color: #cfbda8;
}
.floatingbtn-icon:hover .floatingbtn-text {
  opacity: 1;
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
  -moz-transition-delay: 0.3s, 0s;
  -o-transition-delay: 0.3s, 0s;
  -webkit-transition-delay: 0.3s, 0s;
  transition-delay: 0.3s, 0s;
}
.floatingbtn i {
  font-size: 18px;
}
.floatingbtn-text {
  position: absolute;
  top: 5px;
  right: 40px;
  font-size: 0.75em;
  white-space: nowrap;
  line-height: 20px;
  background: #FFF;
  box-shadow: 0 0 5px #999;
  padding: 0 5px;
  border-radius: 2px;
  opacity: 0;
  z-index: -1;
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -moz-transition: opacity 0.6s, -moz-transform 0.6s 0.2s;
  -o-transition: opacity 0.6s, -o-transform 0.6s 0.2s;
  -webkit-transition: opacity 0.6s, -webkit-transform 0.6s;
  -webkit-transition-delay: 0s, 0.2s;
  transition: opacity 0.6s, transform 0.6s 0.2s;
}

.servicebox {
  position: fixed;
  right: 100px;
  bottom: 30px;
  background: #FFF;
  box-shadow: 0 0 5px #999;
  z-index: 7;
  -moz-transform: translateY(100%) translateY(30px);
  -ms-transform: translateY(100%) translateY(30px);
  -webkit-transform: translateY(100%) translateY(30px);
  transform: translateY(100%) translateY(30px);
  -moz-transition: -moz-transform 1s;
  -o-transition: -o-transform 1s;
  -webkit-transition: -webkit-transform 1s;
  transition: transform 1s;
}
.servicebox.show-box {
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -webkit-transform: translateY(0px);
  transform: translateY(0px);
}
.servicebox-title {
  padding: 5px;
  color: #000;
  line-height: 30px;
  background: #f7f4f0;
}
.servicebox-close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

@media screen and (max-width: 1100px) {
  /* set tablet */
  .show-nav {
    overflow: hidden;
  }

  .header {
    padding: 15px 20px 10px 20px;
  }

  .logo {
    width: 138.66667px;
  }
  .logo img {
    height: 50px;
    width: 138.66667px;
  }

  .alt-logo {
    font-size: 1em;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(247, 244, 240, 0.97);
    line-height: 50px;
    overflow: hidden;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -moz-transition: height 1s;
    -o-transition: height 1s;
    -webkit-transition: height 1s;
    transition: height 1s;
  }
  .show-nav .nav {
    height: calc(100vh - 50px);
  }
  .nav-inner {
    padding: 20px;
    width: 100%;
    height: 60%;
  }
  .nav-left, .nav-right {
    position: static;
    margin: 0;
  }
  .nav li {
    float: none;
  }
  .nav a {
    color: #000;
  }
  .nav a:after {
    bottom: 10px;
  }

  .hamburger {
    position: absolute;
    top: 25px;
    right: 20px;
    cursor: pointer;
  }
  .hamburger-bar {
    width: 30px;
    height: 1px;
    background: #000;
    margin: 7px 0;
    -moz-transition: -moz-transform 0.3s;
    -o-transition: -o-transform 0.3s;
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
  }
  .show-nav .hamburger-bar:nth-child(1) {
    -moz-transform: translateY(8px) rotate(45deg);
    -ms-transform: translateY(8px) rotate(45deg);
    -webkit-transform: translateY(8px) rotate(45deg);
    transform: translateY(8px) rotate(45deg);
  }
  .show-nav .hamburger-bar:nth-child(2) {
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
  }
  .show-nav .hamburger-bar:nth-child(3) {
    -moz-transform: translateY(-8px) rotate(-45deg);
    -ms-transform: translateY(-8px) rotate(-45deg);
    -webkit-transform: translateY(-8px) rotate(-45deg);
    transform: translateY(-8px) rotate(-45deg);
  }

  .main {
    padding-top: 75px;
  }

  .section {
    margin: 80px 0;
  }

  .inner {
    padding: 0px 20px;
  }

  .title {
    font-size: 1.5em;
  }

  .footer {
    text-align: center;
    margin: 50px 20px;
    border: #ddd solid 1px;
  }

  .footer-social {
    float: none;
    text-align: center;
    border-left: none;
    margin-bottom: 40px;
  }
  .footer-social a {
    margin: 0 5px;
  }
  .footer-social i {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    border: #ccc solid 1px;
  }

  .footer-line {
    display: none;
  }

  .floatingbtn {
    right: 10px;
    bottom: 20px;
  }

  .servicebox {
    right: 50px;
    bottom: 20px;
  }

  .bottom-img {
    width: 50%;
  }
  .show .bottom-img:nth-child(even) {
    margin-top: 0%;
  }
  .bottom-img:nth-child(1), .bottom-img:nth-child(4) {
    display: none;
  }
}
@media screen and (max-width: 640px) {
  /* set mobile */
  .servicebox {
    right: 10px;
    bottom: 20px;
    z-index: 9;
  }

  .follow, .bottom {
    display: none;
  }
}
