html, body {
  margin: 0;
  padding: 0;
}

* {
  font-family: 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 2px;
  box-sizing: border-box;
  text-decoration: none;
}

:root {
  --mainColor: #3d3bbc;
  --textColor: #000;
  --bg-menu: #d6dadf;
  --bg-footer: #f8f8f4;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  width: 260px;
  height: 100%;
  padding: 0 15px;
  background: var(--bg-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

header > a {
  margin: 4em 0;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.middle > a {
  color: var(--textColor);
  border-bottom: 1px dotted #616161;
  padding: .5em 1em;
  display: block;
  font-weight: 500;
  font-size: 1.2em;
}

.middle > a:hover {
  color: var(--mainColor);
}

.right {
  margin: 2em 0;
}

.icons > a > i {
  color: var(--mainColor);
  font-size: 1.2em;
  margin: 0 .2em;
}

.icons > a > i:hover {
  color: #c8161d;
}

.page {
  width: calc(100% - 260px);
  position: relative;
  top: 0;
  left: 260px;
  overflow: hidden;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-footer);
  padding: 2em 0;  
}

.privacy a {
  color: var(--textColor);
}

.copyright {
  margin-top: 0;
}

.footerLogo {
  width: 160px;
  object-fit: contain;
}

.lhr {
  margin-right: 2em;
}

@media screen and (max-width: 820px) {
  header {
    position: relative;
    top: 0;
    left: 0;
    overflow-y: hidden;
    width: 100%;
    height: 100px;
    padding: 0 15px;
    background: var(--bg-menu);
    display: flex;
    flex-direction: unset;
    justify-content: space-between;
    align-items: center;
  }
  .page {
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    overflow: hidden;
  }
  .logo {
    display: none;
  }
  .menuSliderLogo {
    width: 4em !important;
    margin-left: 23em !important;
  }
  .b1Items img {
    width: 100% !important;
  }
}

@media screen and (max-width: 428px) {
  .menuSliderLogo {
    margin-left: 10em !important;
    margin-top: .5em;
    width: 3em !important;
  }
  header {
    height: 70px !important;
  }
  .contactForm {
    padding: 3em 2em !important;
  }
}