@import url("https://fonts.googleapis.com/css?family=Noto+Serif+TC");

* {
  position: relative;
  box-sizing: border-box;
}

/* fix scroll laggy */
html {
  scroll-behavior: auto !important;
}

:root {
  font-size: 16px;
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  :root {
    font-size: 12px;
  }
}

body {
  width: 100vw;
  overflow-x: hidden !important;
  color: #3e3a39;
  /* font-family: "microsoft jhenghei"; */
  font-family: "Noto Serif TC", sans-serif !important;
  letter-spacing: 0.2rem;
  max-width: 100% !important;
  background-color: #fff;
}

img {
  width: 100%;
}

a,
a:hover {
  text-decoration: none;
}

#goTop {
  position: fixed;
  right: 2vw;
  bottom: 5vh;
  z-index: 5;
  padding: 8px 14px;
  border-radius: 50%;
  background-color: #d27a15;
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.5s;
}

#goTop:hover {
  background-color: #eeede8;
  color: #d27a15;
}

@media (max-width: 768px) {
  #goTop {
    right: 3vw;
    bottom: 80px;
  }
}

/* 圖說文字 */
.img_info_wrap {
  position: relative;
}

.img_info {
  position: absolute;
  right: 0px;
  bottom: 5px;
  font-size: 0.8rem;
  letter-spacing: 0.1rem;
  padding: 5px 10px;
  color: #eee;
  background-color: #000000ac;
  z-index: 10;
  display: none;
}

/* nav & banner */
.nav {
  width: 100%;
  height: 50px;
  position: fixed;
  line-height: 50px;
  text-align: center;
  z-index: 5000;
  display: block;
  background-color: transparent;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  display: none;
}

.nav .container {
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.nav div.logo {
  text-align: left;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
}

.nav div.logo img {
  height: 30px;
}

.nav div.logo a {
  color: #fff;
  padding: 0;
  margin: 0;
}

.affix {
  display: flex;
  padding: 0;
  background-color: #d27a15;
}

.nav .nav_btn {
  display: flex;
}

.nav_btn a {
  margin-right: 25px;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  color: #fff;
  transition: 0.5s;
}

.nav_btn a svg {
  margin-right: 5px;
}

.nav_btn a:hover {
  color: #3e3a39;
}

.banner {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url(../images/banner03.jpg);
  background-position: 10% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blur {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 500px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.5);
}

.banner h1 {
  width: 80%;
  margin: 30px auto;
  font-weight: bold;
  font-size: 2.4rem;
  letter-spacing: 0.5rem;
  line-height: 1.8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

@media (max-width: 768px) {
  .nav {
    height: 50px;
    line-height: 50px;
  }

  .nav .container {
    justify-content: center;
  }

  .nav div.logo {
    text-align: center;
  }

  .nav div.logo img {
    height: 30px;
    width: auto;
  }

  .nav .nav_btn {
    display: none;
  }

  .banner,
  .blur {
    height: 400px;
  }

  .banner h1 {
    width: 95%;
    font-size: 1.7rem;
    letter-spacing: 0.2rem;
  }

  .banner h1 span {
    margin-top: 0px;
    line-height: 50px;
  }
}

@media (max-width: 400px) {
  .nav {
    height: 50px;
    line-height: 50px;
  }

  .banner h1 {
    font-size: 1.5rem;
  }
}
/* nav & banner end */

/* m_contactBox & copyright */
.m_contactBox {
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.3);
  z-index: 999;
  position: fixed;
  z-index: 999;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: #d27a15;
  display: flex;
}

.m_contactBox a {
  width: calc(100% / 2);
  display: inline-block;
  letter-spacing: 0.1rem;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  color: #fff;
}

.m_contactBox a + a {
  border-left: 1px solid #eee;
}

.copyright {
  width: 100%;
  padding: 3rem 0 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
}

.copyright br {
  display: none;
}

.copyright a {
  font-size: 1rem;
  color: #f2d462;
}

@media (max-width: 768px) {
  .copyright {
    padding: 0px;
  }
}
/* m_contactBox & copyright end */

/* form */
#contact-form {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

section.form h3 {
  margin-bottom: 60px;
}

#contact-form .img {
  width: 40%;
}

#contact-form .input_wrap {
  width: 55%;
}

.form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1rem;
}

.form-group label {
  width: 100px;
  font-weight: bold;
  margin-bottom: 0;
  font-size: 1.1rem;
}

#contact-form .form-control,
#contact-form select {
  display: block;
  width: 80%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#contact-form select {
  padding: 0.375rem 0.6rem !important;
  color: #495057;
  letter-spacing: ;
}

#contact-form input::placeholder {
  color: #495057;
  letter-spacing: 0.1rem;
}

option:not(:first-of-type) {
  color: #000;
}

#city_selector {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 80%;
}

#city_selector select {
  width: 48%;
}

.agree_personal_information_div {
  margin-top: 40px;
  text-align: center;
}

.agree_personal_information_div label {
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.1rem;
}

input[name="senddata"] {
  margin-top: 10px;
  padding: 10px 0;
  letter-spacing: 0.1rem;
  width: 100%;
}

@media (max-width: 768px) {
  #contact-form .img {
    display: none;
  }

  #contact-form .input_wrap {
    width: 100%;
  }

  .form-group {
    margin-bottom: 30px;
  }
  #contact-form .form-control,
  #contact-form select {
    height: 45px;
  }
  input[name="senddata"] {
    padding: 15px 0;
  }
}
/* form end */

/* footer */
footer {
  padding: 60px 0;
  width: 100%;
  background-color: #0e191e;
  color: #eee;
}

footer .info_wrap {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

footer .logo {
  width: 40%;
}

footer .info {
  margin-left: 60px;
}

footer .info .contact {
  display: flex;
  margin: 20px 0 40px;
  justify-content: flex-start;
  align-items: center;
  font-size: 1.2rem;
}

footer .info .contact div {
  margin-right: 50px;
  display: flex;
  flex-direction: column;
}

footer .info .contact div a {
  color: #f59019;
  transition: 0.5s;
}

footer .info .contact div a:hover {
  color: #d93700;
}

footer .info .note {
  width: 100%;
  font-size: 0.8rem;
  text-align: justify;
}

footer .info .note ol {
  padding-left: 25px;
}

footer .info .note ol li {
  margin-bottom: 5px;
}

@media (max-width: 1300px) {
  footer .info .contact {
    font-size: 1rem;
  }

  footer .info .contact div {
    margin-right: 30px;
  }
}

@media (max-width: 768px) {
  footer {
    padding-bottom: 100px;
  }

  footer .info_wrap {
    width: 90%;
    flex-direction: column;
  }

  footer .logo {
    width: 70%;
    margin-bottom: 40px;
  }

  footer .info {
    margin-left: 0px;
  }

  footer .info .contact {
    flex-direction: column;
    margin: 20px 0 40px;
    align-items: flex-start;
    font-size: 1.2rem;
  }

  footer .info .contact div {
    margin-right: 0px;
    flex-direction: row;
    margin-bottom: 20px;
  }

  footer .info .contact div span {
    width: 100px;
  }
}
/* footer end */
