@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";
  background: #f4f4f4;
  position: relative;
}

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;
}

header {
  background-color: #0b0b0b;
  height: 444px;
  display: flex;
  justify-content: center;
}
header h2 {
  color: #f4f4f4;
  padding: 224px 0px 0px;
}
header h2::after {
  content: "";
  display: flex;
  margin: auto;
  width: 300px;
  border-bottom: 2px solid #f4f4f4;
}

main {
  margin: 60px 0 0;
  font-family: "Microsoft JhengHei";
}
main button,
main .submit {
  font-size: 24px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0.02em;
  color: #518c95;
  background-color: #f4f4f4;
  border: 1px solid #518c95;
}
main button {
  cursor: pointer;
}
main .toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
main .toggle button {
  width: 200px;
  height: 56px;
  border-radius: 4px;
  padding: 8px, 16px;
}
main .toggle button:first-child {
  background: #518c95;
  color: #fdfdfd;
}
main .toggle span {
  border-right: 1px solid #b5b5b5;
  margin: 0 34px;
  height: 40px;
  margin-top: 10px;
}
main .signin {
  display: flex;
  justify-content: center;
}
main .signin form {
  width: 468px;
  padding: 24px;
  background: #F4F4F4;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}
main .signin form .title {
  font-weight: bold;
  font-size: 32px;
  line-height: 43px;
  margin-bottom: 16px;
}
main .signin form input {
  width: 100%;
  height: 48px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  padding: 12px 16px;
  margin-bottom: 24px;
  border: 1px solid #B5B5B5;
  border-radius: 4px;
}
main .signin form .password-block {
  position: relative;
}
main .signin form .password-block .eye {
  position: absolute;
  top: 0px;
  right: 0px;
  margin: 14px 16px 0px 0px;
  cursor: pointer;
}
main .signin form .agree-block {
  margin-bottom: 24px;
}
main .signin form .agree-block input {
  width: unset;
  height: unset;
  margin-bottom: 0px;
}
main .signin form .agree-block a {
  color: #0D6EFD;
}
main .signin form .forget {
  text-decoration: none;
}
main .signin form .forget span {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #6C6C6C;
}
main .signin form button {
  width: 100%;
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  color: #FDFDFD;
  background: #518C95;
  border-radius: 8px;
  padding: 4px 0px;
  text-align: center;
  border: none;
  margin-top: 24px;
  cursor: pointer;
}
main .signup {
  display: none;
  justify-content: center;
}
main .signup form {
  width: 468px;
  padding: 24px;
  background: #F4F4F4;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}
main .signup form .title {
  font-weight: bold;
  font-size: 32px;
  line-height: 43px;
  color: #0B0B0B;
  margin-bottom: 16px;
}
main .signup form .block {
  position: relative;
}
main .signup 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;
}
main .signup form .block input:focus + label {
  transform: translateY(-8px);
  font-weight: 290;
  font-size: 12px;
  line-height: 16px;
  background: #FFFFFF;
  padding: 0px;
  margin-left: 16px;
}
main .signup form .block label {
  position: absolute;
  left: 0px;
  padding: 12px 0px 12px 16px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #6C6C6C;
}
main .signup form .block .move {
  transform: translateY(-8px);
  font-weight: 290;
  font-size: 12px;
  line-height: 16px;
  background: #FDFDFD;
  padding: 0px;
  margin-left: 16px;
}
main .signup form .block .eye {
  position: absolute;
  right: 0px;
  top: 0px;
  padding: 13px 16px 13px 0px;
}
main .signup form .time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}
main .signup form .time .date-block, main .signup form .time .time-block{
  width: 48%;
  position: relative;
}
main .signup form .time .date-text, main .signup form .time .time-text{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #6C6C6C;
  padding-right: 30px;
  background-color: #FDFDFD;
  margin-left: 16px;
}
main .signup form .time input {
  width: 100%;
  height: 48px;
  padding: 0px 16px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #6C6C6C;
  border-radius: 4px;
  border: 1px solid #B5B5B5;
  outline: none;
}
main .signup form .time #birth-date {
  margin-right: 12px;
}
main .signup form .text {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #6C6C6C;
  margin-bottom: 16px;
}
main .signup form .agree-block {
  margin-bottom: 24px;
}
main .signup form .agree-block input {
  width: unset;
  height: unset;
  margin-bottom: 0px;
}
main .signup form .agree-block a {
  color: #0D6EFD;
}
main .signup form button {
  width: 100%;
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  color: #FDFDFD;
  background: #518C95;
  border-radius: 8px;
  padding: 4px 0px;
  text-align: center;
  border: none;
  cursor: pointer;
}

#window-container-error,
#window-container-success,
#window-container-exist {
  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-error #window-pop,
#window-container-success #window-pop,
#window-container-exist #window-pop {
  background: white;
  width: 391px;
  height: 187px;
  z-index: 1;
  margin: 18% auto;
  overflow: auto;
  border-radius: 4px;
}
#window-container-error #window-pop .popup-content,
#window-container-success #window-pop .popup-content,
#window-container-exist #window-pop .popup-content {
  margin: auto;
  overflow: auto;
  padding: 24px;
}
#window-container-error #window-pop .popup-content span,
#window-container-success #window-pop .popup-content span,
#window-container-exist #window-pop .popup-content span {
  display: block;
  font-weight: bold;
  font-size: 32px;
  line-height: 43px;
}
#window-container-error #window-pop .popup-content p,
#window-container-success #window-pop .popup-content p,
#window-container-exist #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-error #window-pop .popup-content .button,
#window-container-success #window-pop .popup-content .button,
#window-container-exist #window-pop .popup-content .button {
  display: flex;
  justify-content: space-between;
}
#window-container-error #window-pop .popup-content #error-confirm,
#window-container-error #window-pop .popup-content #confirm,
#window-container-error #window-pop .popup-content #exist-confirm,
#window-container-success #window-pop .popup-content #error-confirm,
#window-container-success #window-pop .popup-content #confirm,
#window-container-success #window-pop .popup-content #exist-confirm,
#window-container-exist #window-pop .popup-content #error-confirm,
#window-container-exist #window-pop .popup-content #confirm,
#window-container-exist #window-pop .popup-content #exist-confirm {
  width: 343px;
  height: 40px;
  font-size: 18px;
  border-radius: 4px;
  background-color: #518c95;
  color: #fdfdfd;
}

footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  height: 120px;
  padding: 0 10.5%;
  margin-top: 120px;
  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;
  }
  footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 168px;
    padding: 36px 0 188px;
    margin-top: 80px;
  }
  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 {
    height: 234px;
  }
  header h2 {
    font-size: 32px;
    line-height: 46px;
    padding: 120px 0px 0px;
  }
  header h2::after {
    width: 120px;
  }
  main .toggle span {
    display: none;
  }
  main .toggle button {
    font-size: 16px;
    line-height: 28px;
    width: 147.5px;
    height: 44px;
  }
  main .toggle #signin-link {
    margin-right: 16px;
  }
  main .signin form {
    width: 343px;
    padding: 24px 16px;
  }
  main .signin form .title {
    font-size: 20px;
    line-height: 27px;
  }
  main .signin form input {
    font-size: 12px;
    line-height: 16px;
    padding: 16px;
  }
  main .signin form .agree-block {
    margin-bottom: 26px;
    font-size: 12px;
    line-height: 16px;
  }
  main .signin form .forget span {
    font-size: 12px;
    line-height: 16px;
  }
  main .signin form button {
    font-size: 16px;
    line-height: 28px;
  }
  main .signup {
    display: none;
    justify-content: center;
  }
  main .signup form {
    width: 343px;
    padding: 24px 16px;
    background: #F4F4F4;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
  }
  main .signup form .title {
    font-size: 20px;
    line-height: 27px;
  }
  main .signup form .block input {
    padding: 16px;
    font-size: 12px;
    line-height: 16px;
  }
  main .signup form .block label {
    font-size: 12px;
    line-height: 16px;
    padding: 16px;
  }
  main .signup form .time .date-text, main .signup form .time .time-text{
    font-size: 12px;
    line-height: 16px;
  }
  main .signup form .time input {
    width: 143px;
    font-size: 12px;
    line-height: 16px;
  }
  main .signup form .time #birth-date {
    margin-right: 18px;
  }
  main .signup form .text {
    font-size: 12px;
    line-height: 16px;
  }
  main .signup form .agree-block {
    margin-bottom: 26px;
    font-size: 12px;
    line-height: 16px;
  }
  main .signup form button {
    font-size: 16px;
    line-height: 28px;
  }
  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;
  }
  #window-container-error #window-pop,
  #window-container-success #window-pop,
  #window-container-exist #window-pop {
    width: 343px;
    height: 151px;
    border-radius: 8px;
  }
  #window-container-error #window-pop .popup-content span,
  #window-container-success #window-pop .popup-content span,
  #window-container-exist #window-pop .popup-content span {
    font-size: 20px;
    line-height: 26.6px;
  }
  #window-container-error #window-pop .popup-content p,
  #window-container-success #window-pop .popup-content p,
  #window-container-exist #window-pop .popup-content p {
    font-size: 16px;
    line-height: 28px;
  }
  #window-container-error #window-pop .popup-content #error-confirm,
  #window-container-error #window-pop .popup-content #confirm,
  #window-container-error #window-pop .popup-content #exist-confirm,
  #window-container-success #window-pop .popup-content #error-confirm,
  #window-container-success #window-pop .popup-content #confirm,
  #window-container-success #window-pop .popup-content #exist-confirm,
  #window-container-exist #window-pop .popup-content #error-confirm,
  #window-container-exist #window-pop .popup-content #confirm,
  #window-container-exist #window-pop .popup-content #exist-confirm {
    width: 297px;
    height: 32px;
    font-size: 12px;
    line-height: 15.96px;
  }
}