@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;
  padding-top: 8px;
}

main {
  margin: auto;
}
main article {
  max-width: 992px;
  margin: 60px auto 0px;
}
main article h4 {
  color: #518c95;
  font-weight: bold;
  font-size: 32px;
  line-height: 43px;
  margin-bottom: 24px;
}
main article ol {
  padding-left: 34px;
  margin-bottom: 24px;
}
main article ol:nth-last-child(1) {
  margin-bottom: 0;
}
main article ol li {
  color: #0b0b0b;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0.02em;
}

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;
  }
  main {
    padding: 0px 48px;
  }
  main article {
    max-width: 672px;
    margin: 60px auto 0px;
  }
  main article h4 {
    font-size: 28px;
    line-height: 37px;
  }
  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 {
    padding: 0px 24px;
  }
  main article {
    margin: 30px auto 60px;
  }
  main article h4 {
    font-size: 20px;
    line-height: 27px;
  }
  main article ol {
    padding-left: 24px;
  }
  main article ol li {
    color: #0b0b0b;
    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: 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;
  }
}