@import url("https://fonts.googleapis.com/css?family=DM+Sans&display=swap");
@import url("https://fonts.googleapis.com/css?family=Playfair+Display&display=swap");
@import url("https://fonts.googleapis.com/css?family=Open+Sans&display=swap");
.ms {
  width: 50px;
  height: 50px;
  position: absolute;
  border-radius: 50%;
  background-color: #c1b067;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  -moz-transform: scale(0.5);
  -ms-transform: scale(0.5);
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  -moz-transition: opacity 0.2s, -moz-transform 0.2s;
  -o-transition: opacity 0.2s, -o-transform 0.2s;
  -webkit-transition: opacity 0.2s, -webkit-transform 0.2s;
  transition: opacity 0.2s, transform 0.2s;
}

.contact {
  padding-top: 180px;
  padding-bottom: 100px;
}
.contact-inner {
  width: 80%;
  max-width: 1100px;
  margin: auto;
}
.contact-icon {
  width: 30px;
  position: relative;
  left: 80px;
  padding-bottom: 50px;
}
.contact-icon img {
  width: 100%;
}
.contact-box {
  display: flex;
  align-items: center;
}
.contact-map {
  width: 80%;
  height: 500px;
}
.contact-map #map {
  height: 500px;
}
.contact-text {
  width: 50%;
  padding-left: 10%;
  box-sizing: border-box;
}
.contact-title {
  position: relative;
  font-size: 26px;
  letter-spacing: 0.1em;
}
.contact-title:after {
  content: "";
  height: 50px;
  width: 1px;
  background-color: #c1b067;
  display: block;
  margin: 20px 0;
}
.contact-content li {
  padding-left: 40px;
  position: relative;
}
.contact-content span {
  position: absolute;
  left: 0;
}
.contact-content a {
  color: #292b33;
}
.contact-content a:hover {
  color: #ccc;
}

.middle {
  height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
}
.middle-title {
  position: absolute;
  bottom: 100px;
  left: 50%;
  font-size: 25px;
  color: #eee;
  letter-spacing: 0.2em;
  line-height: 1.8em;
  text-align: center;
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
.middle-line {
  height: 120px;
  width: 1px;
  background-color: #c1b067;
  position: absolute;
  left: 50%;
  bottom: -60px;
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 5;
}

.consult {
  padding: 100px 0;
}
.consult-inner {
  width: 80%;
  max-width: 1000px;
  margin: auto;
}
.consult-mtext {
  position: relative;
  font-size: 35px;
  color: #d0d0d0;
  letter-spacing: 0.2em;
  text-align: center;
}
.consult-mtext:after {
  content: "";
  height: 50px;
  width: 1px;
  background-color: #c1b067;
  display: block;
  margin: 20px auto;
}
.consult-box {
  display: flex;
  align-items: center;
  margin: 50px 0;
}
.consult-data {
  width: 300px;
}
.consult-en {
  font-size: 26px;
}
.consult-tw {
  color: #c1b067;
}
.consult-list {
  width: 100%;
  border-left: 1px solid #c1b067;
  box-sizing: border-box;
  padding-left: 10px;
}
.consult-list li {
  margin: 15px;
}
.consult-half {
  display: flex;
  margin: 15px;
}
.consult-half li {
  margin: unset;
}
.consult-h2 {
  width: 50%;
}
.consult-change {
  margin: 0 15px;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.consult-send {
  margin: 0 15px 0 90%;
  position: relative;
}
.consult-send a {
  padding: 10px;
}
.consult-send:hover .ms {
  opacity: 1;
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -webkit-transform: scale(1);
  transform: scale(1);
}
.consult .code {
  padding-left: 95px;
}

label {
  float: left;
  width: 75px;
  padding: 5px 0 5px 20px;
}

input, textarea, select {
  border: none;
  background-color: #f3f3f3;
  width: calc(100% - 95px);
  box-sizing: border-box;
  resize: none;
  padding: 0 10px;
}

input, select {
  height: 30px;
}

textarea {
  height: 60px;
  font-family: "DM Sans", "Microsoft JhengHei", Helvetica, Arial, sans-serif;
}

.contact-title:after {
  -moz-transform: scaleY(0);
  -ms-transform: scaleY(0);
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -moz-transition: -moz-transform 0.8s;
  -o-transition: -o-transform 0.8s;
  -webkit-transition: -webkit-transform 0.8s;
  transition: transform 0.8s;
  -moz-transform-origin: top center;
  -ms-transform-origin: top center;
  -webkit-transform-origin: top center;
  transform-origin: top center;
}
.contact-title.show:after {
  -moz-transform: scaleY(1);
  -ms-transform: scaleY(1);
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}

.middle-line {
  -moz-transform: scaleY(0);
  -ms-transform: scaleY(0);
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -moz-transition: -moz-transform 0.8s;
  -o-transition: -o-transform 0.8s;
  -webkit-transition: -webkit-transform 0.8s;
  transition: transform 0.8s;
  -moz-transform-origin: top center;
  -ms-transform-origin: top center;
  -webkit-transform-origin: top center;
  transform-origin: top center;
}
.middle-line.show {
  -moz-transform: scaleY(1);
  -ms-transform: scaleY(1);
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}

@media screen and (max-width: 1100px) {
  .contact-map {
    width: 60%;
  }

  .consult-box {
    display: block;
  }
  .consult-data {
    padding-bottom: 10px;
  }
  .consult-send .ms {
    display: none;
  }
}
@media screen and (max-width: 860px) {
  .contact-box {
    display: block;
  }
  .contact-map {
    width: 100%;
  }
  .contact-text {
    padding-top: 50px;
    padding-left: 0;
    width: 100%;
  }
  .contact-icon {
    display: none;
  }

  .consult-list {
    padding: 0;
  }
  .consult-list li {
    margin-right: 0;
  }
  .consult-half {
    display: block;
    margin: 0;
  }
  .consult-half li {
    margin: 15px;
    margin-right: 0;
  }
  .consult-h2 {
    width: unset;
  }
  .consult .code {
    padding-left: 75px;
  }

  input, textarea, select {
    width: calc(100% - 75px);
  }

  label {
    padding: 5px 0;
  }

  .middle {
    background-attachment: unset;
  }
}
@media screen and (max-width: 640px) {
  .contact {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .consult {
    padding-top: 80px;
    padding-bottom: 50px;
  }
  .consult-send {
    margin-left: calc(50% - 20px);
  }
  .consult .code {
    padding-left: 0;
  }

  .middle {
    height: 400px;
  }
}
@media screen and (max-width: 460px) {
  .contact-map {
    height: 300px;
  }
  .contact-map #map {
    height: 300px;
  }

  .consult-inner {
    width: 90%;
  }
  .consult-mtext {
    font-size: 30px;
    letter-spacing: 0.1em;
  }

  .middle {
    height: 300px;
  }
}
