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

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

h2 {
  font-size: 64px;
  line-height: 92px;
  letter-spacing: 0.02em;
  font-weight: bold;
  font-family: "Noto Serif TC", serif;
  color: #0b0b0b;
  text-align: center;
}
h2 span {
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

a {
  text-decoration: none;
}

p {
  color: #0b0b0b;
}

header {
  background-color: #0b0b0b;
  height: 444px;
  display: flex;
  justify-content: center;
}
header h2 {
  color: #f4f4f4;
  padding: 224px 20px 8px;
  border-bottom: 2px solid;
}

#emailForm {
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
  padding: 24px;
  width: 468px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
}
form label {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 16px;
}
form .inputBox {
  position: relative;
}
form .inputBox input {
  width: 100%;
  border-radius: 4px;
  border: 2px solid #b5b5b5;
  height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 18px;
  color: #3f3f42;
}
form .inputBox input:focus {
  color: #b5b5b5;
  border-color: #b5b5b5;
}
form .inputBox span {
  position: absolute;
  padding: 0 16px;
  color: #b5b5b5;
  display: flex;
  align-items: center;
  font-size: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
form .inputBox2 {
  margin-top: 24px;
}
form .submit {
  background-color: #518c95;
  width: 100%;
  color: #fdfdfd;
  border-radius: 8px;
  height: 48px;
  margin-top: 24px;
  border: none;
  font-size: 24px;
  line-height: 48px;
  letter-spacing: 0.02em;
}

.inputBox input:valid + span,
.inputBox input:focus + span {
  padding: 0 4px;
  top: 0;
  transform: scale(0.8) translateY(-75%);
  background: #fff;
  transition: 0.4s;
}

#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: 5px;
}
#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: 5px;
}
#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;
}

#window-container-notExist,
#window-container-sent,
#window-container-newPasswordSuccess {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: "Microsoft JhengHei";
  margin: auto;
}
#window-container-notExist #window-pop,
#window-container-sent #window-pop,
#window-container-newPasswordSuccess #window-pop {
  background: white;
  width: 391px;
  height: 187px;
  z-index: 1;
  margin: 18% auto;
  overflow: auto;
  border-radius: 4px;
}
#window-container-notExist #window-pop .popup-content,
#window-container-sent #window-pop .popup-content,
#window-container-newPasswordSuccess #window-pop .popup-content {
  margin: auto;
  overflow: auto;
  padding: 24px;
}
#window-container-notExist #window-pop .popup-content span,
#window-container-sent #window-pop .popup-content span,
#window-container-newPasswordSuccess #window-pop .popup-content span {
  display: block;
  font-weight: bold;
  font-size: 32px;
  line-height: 43px;
}
#window-container-notExist #window-pop .popup-content p,
#window-container-sent #window-pop .popup-content p,
#window-container-newPasswordSuccess #window-pop .popup-content p {
  font-size: 24px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0.02em;
  color: #6c6c6c;
  margin-bottom: 16px;
}
#window-container-notExist #window-pop .popup-content .button,
#window-container-sent #window-pop .popup-content .button,
#window-container-newPasswordSuccess #window-pop .popup-content .button {
  display: flex;
  justify-content: space-between;
}
#window-container-notExist #window-pop .popup-content #notExist-confirm,
#window-container-notExist #window-pop .popup-content #confirm,
#window-container-notExist #window-pop .popup-content #exist-confirm,
#window-container-sent #window-pop .popup-content #notExist-confirm,
#window-container-sent #window-pop .popup-content #confirm,
#window-container-sent #window-pop .popup-content #exist-confirm,
#window-container-newPasswordSuccess #window-pop .popup-content #notExist-confirm,
#window-container-newPasswordSuccess #window-pop .popup-content #confirm,
#window-container-newPasswordSuccess #window-pop .popup-content #exist-confirm {
  width: 343px;
  height: 40px;
  font-size: 18px;
  border-radius: 4px;
  background-color: #518c95;
  color: #fdfdfd;
  border: none;
}

footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  height: 120px;
  padding: 0 10.5%;
  margin-top: 129px;
  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) {
  h2 {
    font-size: 52px;
    line-height: 75px;
  }
  header {
    height: 303px;
  }
  header h2 {
    padding: 160px 0 0;
  }
  header h2::after {
    width: 159px;
  }
  footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 168px;
    padding: 36px 0 188px;
    margin-top: 193px;
  }
  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) {
  #emailForm{
    width: 343px;
    margin-bottom: 30px;
  }
  #window-container-notExist #window-pop,
  #window-container-sent #window-pop,
  #window-container-newPasswordSuccess #window-pop {
    width: 343px;
    height: 151px;
    border-radius: 8px;
  }
  #window-container-notExist #window-pop .popup-content span,
  #window-container-sent #window-pop .popup-content span,
  #window-container-newPasswordSuccess #window-pop .popup-content span {
    font-size: 20px;
    line-height: 26.6px;
  }
  #window-container-notExist #window-pop .popup-content p,
  #window-container-sent #window-pop .popup-content p,
  #window-container-newPasswordSuccess #window-pop .popup-content p {
    font-size: 16px;
    line-height: 28px;
  }
  #window-container-notExist #window-pop .popup-content #notExist-confirm,
  #window-container-notExist #window-pop .popup-content #confirm,
  #window-container-notExist #window-pop .popup-content #exist-confirm,
  #window-container-sent #window-pop .popup-content #notExist-confirm,
  #window-container-sent #window-pop .popup-content #confirm,
  #window-container-sent #window-pop .popup-content #exist-confirm,
  #window-container-newPasswordSuccess #window-pop .popup-content #notExist-confirm,
  #window-container-newPasswordSuccess #window-pop .popup-content #confirm,
  #window-container-newPasswordSuccess #window-pop .popup-content #exist-confirm {
    width: 297px;
    height: 32px;
    font-size: 12px;
    line-height: 15.96px;
  }
  header {
    height: 234px;
  }
  header .number::after {
    display: none;
  }
  header h2 {
    font-size: 32px;
    line-height: 46px;
    padding: 120px 0px 0px;
  }
  header h2::after {
    width: 98px;
  }
  form {
    width: 100%;
    margin: 0;
  }
  form .submit {
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.02em;
  }
  footer {
    display: grid;
    grid-template-columns: 185px 32px;
    row-gap: 24px;
    height: 256px;
    padding: 40px 0;
    margin-top: 0px;
    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;
  }
}
