@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: #f4f4f4;
  position: relative;
  font-family: "Microsoft JhengHei";
}

a {
  text-decoration: none;
}

header {
  display: flex;
  justify-content: center;
}
header .title {
  width: 100%;
  height: 503px;
  background-color: #0b0b0b;
  color: #f4f4f4;
  text-align: center;
}
header .title h2 {
  font-size: 64px;
  font-weight: bold;
  font-family: "Noto Serif TC", serif;
  line-height: 92px;
  padding-top: 224px;
  font-weight: bold;
}
header .title h2::after {
  content: "";
  display: flex;
  margin: auto;
  width: 300px;
  border-bottom: 2px solid #f4f4f4;
}
header .title p {
  font-size: 32px;
  font-family: "Microsoft JhengHei";
  line-height: 42px;
  margin-top: 16px;
}

.contact_us {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 60px 0px 120px;
  font-family: "Microsoft JhengHei";
}
.contact_us form {
  max-width: 486px;
  padding: 0px 24px;
}
.contact_us form .title {
  font-weight: bold;
  font-size: 32px;
  line-height: 43px;
  margin-bottom: 8px;
}
.contact_us form .block {
  position: relative;
}
.contact_us form .block input {
  width: 100%;
  height: 48px;
  padding-left: 16px;
  margin-bottom: 16px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #0B0B0B;
  border-radius: 4px;
  border: 1px solid #B5B5B5;
  outline: none;
}
.contact_us form .block input:focus + label {
  transform: translateY(-8px);
  font-weight: 290;
  font-size: 12px;
  line-height: 16px;
  background: #FFFFFF;
  padding: 0px;
  margin-left: 16px;
}
.contact_us form .block label {
  position: absolute;
  left: 0px;
  padding: 11.5px 0px 11.5px 18px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #6C6C6C;
}
.contact_us form .block .move {
  transform: translateY(-8px);
  font-weight: 290;
  font-size: 12px;
  line-height: 16px;
  background: #FFFFFF;
  padding: 0px;
  margin-left: 16px;
}
.contact_us form:first-child, .contact_us form:nth-child(4), .contact_us form textarea, .contact_us form .text {
  margin-bottom: 24px;
}
.contact_us form:nth-child(6) {
  margin-bottom: 8px;
}
.contact_us form textarea {
  width: 100%;
  height: 113px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  border-radius: 4px;
  border: 1px solid #B5B5B5;
  outline: none;
}
.contact_us form .text {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #6C6C6C;
}

.submit {
  background-color: #518c95;
  width: 100%;
  color: #fdfdfd;
  border-radius: 4px;
  height: 48px;
  border: none;
  font-family: "Microsoft JhengHei";
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0.02em;
}

.inputBox {
  position: relative;
  margin: 16px 0;
}
.inputBox input {
  font-weight: 500;
  font-size: 18px;
  color: #3f3f42;
  width: 350px;
  padding: 15px 15px;
  border-radius: 4px;
  border: 2px solid #b5b5b5;
  outline: none;
}
.inputBox input:focus {
  color: #b5b5b5;
  border-color: #b5b5b5;
}
.inputBox input:focus + span {
  color: #b5b5b5;
}
.inputBox input:focus + span, .inputBox input:focus + span {
  transform: scale(0.8) translateY(-30px);
  background: #fff;
  transition: 0.4s;
}
.inputBox span {
  position: absolute;
  margin: 17px 0;
  padding: 0 4px;
  font-family: Microsoft JhengHei;
  color: #b5b5b5;
  display: flex;
  align-items: center;
  font-size: 18px;
  top: -6px;
  left: 38px;
  background: none;
  pointer-events: none;
}

#window-container {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
#window-container #window-pop {
  background: white;
  width: 346px;
  height: 148px;
  z-index: 1;
  margin: 25% auto;
  overflow: auto;
  border-radius: 4px;
}
#window-container #window-pop .popup-content {
  margin: auto;
  overflow: auto;
}
#window-container #window-pop .popup-content span {
  display: block;
  line-height: normal;
  font-family: Microsoft JhengHei;
  font-style: normal;
  font-weight: bold;
  font-size: 32px;
  line-height: 43px;
  margin: 30px 0 10px 22px;
}
#window-container #window-pop .popup-content #close,
#window-container #window-pop .popup-content #confirm {
  width: 146px;
  height: 40px;
  font-size: 18px;
  border: 1px solid #518c95;
  border-radius: 4px;
}
#window-container #window-pop .popup-content #close {
  background-color: #fdfdfd;
  color: #518c95;
  margin: 0 5px 0 22px;
}
#window-container #window-pop .popup-content #confirm {
  background-color: #518c95;
  color: #fdfdfd;
}

footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  height: 120px;
  padding: 0 10.5%;
  background-color: #0b0b0b;
  color: #f4f4f4;
  font-size: 24px;
  line-height: 32px;
  font-weight: bold;
  align-items: center;
}
footer a {
  color: #f4f4f4;
}
footer .footerLeft span {
  padding-right: 16px;
}
footer .footerMiddle {
  justify-self: center;
}
footer .footerMiddle ul {
  display: flex;
}
footer .footerMiddle ul li {
  list-style: none;
  border-right: solid #f4f4f4;
  border-right-width: 1px;
  padding-right: 32px;
  margin-right: 32px;
}
footer .footerMiddle ul li:nth-last-child(1) {
  border-right-width: 0px;
  padding-right: 0px;
  margin-right: 0px;
}
footer .footerRight {
  justify-self: end;
  display: flex;
}
footer .footerRight a {
  margin-right: 16px;
}
footer .footerRight a:nth-last-child(1) {
  margin-right: 0;
}
footer .footerRight a img {
  width: 40px;
}

@media screen and (min-width: 601px) and (max-width: 1270px) {
  header .title {
    height: 400px;
  }
  header .title h2 {
    width: 100%;
    font-size: 52px;
    line-height: 75px;
    padding-top: 160px;
  }
  header .title p {
    margin-top: 40px;
  }
  .contact_us {
    padding: 60px 0px;
  }
  footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 168px;
    padding: 36px 0 188px;
  }
  footer .footerLeft {
    width: 100%;
    text-align: center;
  }
  footer .footerMiddle {
    margin-top: 24px;
  }
  footer .footerMiddle ul li {
    padding-right: 32px;
    margin-right: 32px;
  }
  footer .footerRight {
    margin-top: 24px;
    margin-left: 32px;
  }
  footer .footerRight a {
    margin-right: 24px;
  }
}
@media screen and (max-width: 600px) {
  header .title {
    width: 100%;
    height: 266px;
    background-color: #0b0b0b;
    color: #f4f4f4;
    text-align: center;
  }
  header .title h2 {
    font-size: 32px;
    line-height: 45.98px;
    padding-top: 116px;
  }
  header .title h2::after {
    width: 120px;
  }
  header .title p {
    font-size: 18px;
    line-height: 23.94px;
  }
  .contact_us {
    padding: 30px 0px 120px;
  }
  .contact_us form {
    max-width: 486px;
    padding: 0px 24px;
  }
  .contact_us form .title {
    font-size: 20px;
    line-height: 27px;
  }
  .contact_us form .text {
    font-size: 12px;
    line-height: 16px;
  }
  .submit {
    height: 36px;
    font-size: 16px;
    line-height: 28px;
  }
  #window-container #window-pop {
    width: 343px;
    height: 123px;
    border-radius: 8px;
  }
  #window-container #window-pop .popup-content span {
    font-size: 20px;
    line-height: 26.6px;
    margin: 24px 0 16px 24px;
  }
  #window-container #window-pop .popup-content #close,
  #window-container #window-pop .popup-content #confirm {
    width: 144.5px;
    height: 32px;
    font-size: 12px;
    line-height: 15.96px;
    border-radius: 4px;
  }
  #window-container #window-pop .popup-content #close {
    background-color: #fdfdfd;
    color: #518c95;
    margin: 0 4px 0 22px;
  }
  footer {
    display: grid;
    grid-template-columns: 185px 32px;
    row-gap: 24px;
    height: 256px;
    padding: 40px 0;
    margin-top: 60px;
    background-color: #0b0b0b;
    color: #fff;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: 0.02em;
    justify-content: center;
  }
  footer a {
    color: #f4f4f4;
  }
  footer .footerLeft {
    grid-column: 1/3;
    grid-row: 1/2;
    text-align: center;
  }
  footer .footerMiddle {
    grid-column: 1/2;
    grid-row: 2/3;
    justify-self: left;
  }
  footer .footerMiddle ul {
    display: flex;
    flex-direction: column;
  }
  footer .footerMiddle ul li {
    border-right-width: 0;
    padding-right: 0px;
    margin-right: 0px;
    margin-bottom: 16px;
  }
  footer .footerRight {
    grid-column: 2/3;
    grid-row: 2/3;
    justify-self: end;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
  }
  footer .footerRight a {
    margin-bottom: 16px;
    margin-right: 0px;
  }
  footer .footerRight a:nth-last-child(1) {
    margin-bottom: 0;
  }
  footer .footerRight a img {
    width: 32px;
  }
}