body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft JhengHei";
  width: 562.5px;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  background-color: #F3F3F3;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
}

button {
  font-family: "Microsoft JhengHei";
}

a,
a:hover {
  color: unset;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

hr {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1px 0;
  border: none;
}

ul {
  margin: 0;
  padding: 0;
}
ul li {
  list-style: none;
}

.d-none {
  display: none !important;
}

img.loading {
  display: block;
  width: 80px;
  position: absolute;
  top: 30vh;
  left: 50%;
  transform: translate(-50%, -50%);
}

::-webkit-scrollbar {
  width: 0px;
}

.clearfix {
  clear: both;
}

header {
  position: fixed;
  top: 0;
  width: 562.5px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  z-index: 999;
  background: #FFF;
  height: 6.5vh;
  box-shadow: 0px 6px 5px -5px rgba(0, 0, 0, 0.1);
}
header a.logo {
  position: relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 115px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
header a.logo img {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  display: block;
  width: 100%;
}
header a.login {
  position: absolute;
  left: 25%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 36px;
  padding: 7px;
}
header a.login img {
  display: block;
  width: 100%;
}
header a.previous {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 36px;
  padding: 7px;
}
header a.previous img {
  display: block;
  width: 100%;
}
header a.backend {
  position: absolute;
  left: 67%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
header button.search {
  position: absolute;
  left: 92%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 7px;
  width: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
header button.search img {
  display: block;
  width: 100%;
}
header .login-info {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 25%;
  display: flex;
}
header .login-info .logout button {
  padding: 5px 10px;
  font-size: 18px;
  color: #000;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.header-search {
  position: fixed;
  top: 0;
  width: 562.5px;
  left: 50%;
  transform: translate(-50%, -100%);
  max-width: 100%;
  z-index: 1000;
  background: #FFF;
  height: 6.5vh;
  transition: 0.2s;
}
.header-search form {
  position: relative;
  height: 70%;
  display: block;
  top: 50%;
  transform: translateY(-50%);
  left: 5%;
  width: 80%;
  display: inline-block;
}
.header-search form input {
  display: inline-block;
  padding: 0 5%;
  width: 80%;
  height: 100%;
  font-size: 16px;
  border-radius: 10px;
  background-color: #CCCCCC;
  border: none;
  outline: none;
}
.header-search form button {
  position: relative;
  display: inline-block;
  padding: 7px;
  width: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 5%;
}
.header-search form button img {
  display: block;
  width: 100%;
}
.header-search button.cancel {
  position: absolute;
  border: none;
  cursor: pointer;
  background: transparent;
  font-size: 16px;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  padding: 1%;
  width: 10%;
}

.header-search.show {
  transform: translate(-50%, 0);
}

section.main {
  position: relative;
  padding-top: 6.5vh;
  height: 100%;
  overflow-x: hidden;
}

section.preload {
  display: none;
}
section.preload * {
  display: none;
  height: 0;
  width: 0;
  z-index: -99;
  opacity: 0;
}

* {
  box-sizing: border-box;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  font-family: "Microsoft JhengHei";
}

::-moz-placeholder {
  /* Firefox 19+ */
  font-family: "Microsoft JhengHei";
}

:-ms-input-placeholder {
  /* IE 10+ */
  font-family: "Microsoft JhengHei";
}

:-moz-placeholder {
  /* Firefox 18- */
  font-family: "Microsoft JhengHei";
}

@media screen and (max-width: 562.5px) {
  header {
    height: 13vw;
  }
  header button.search {
    width: 8vw;
    padding: 1.5vw;
  }
  header a.logo {
    width: 20vw;
  }
  header a.previous {
    width: 8vw;
    padding: 1.5vw;
  }
  header a.login {
    width: 8vw;
    padding: 1.5vw;
  }
  header .login-info .logout button {
    padding: 0.5vw 1.5vw;
    font-size: 3.5vw;
  }

  .header-search {
    height: 13vw;
  }
  .header-search form input {
    font-size: 3.6vw;
  }
  .header-search form button {
    width: 8vw;
    padding: 1.5vw;
  }
  .header-search button.cancel {
    font-size: 3.5vw;
  }

  section.main {
    padding-top: 13vw;
  }

  img.loading {
    width: 18vw;
  }
}