/* ========== 基本設定 ========== */
body {
  margin: 0;
  opacity: 1;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  background: url(../image/background.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: fixed;
  background-size: cover;
}

main {
  display: block;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========== 共用類別 ========== */

.pcOnly {
  display: block;
}

.mobileOnly {
  display: none;
}

.active {
  display: block;
}

.hidden {
  display: none;
}

/* ========== 側邊快捷 (Side Bar) ========== */

.side-bar.left {
  left: 30px;
  right: unset;
}
.side-bar.left ul.hidelist1.active {
  right: -120px;
}
.side-bar.left ul.showlist>li:first-child,
.side-bar.left ul.showlist>li:last-child a {
  background-color: #444;
}
.side-bar.left ul.showlist>li a {
  background-color: #ffffda;
}
.side-bar {
  display:block;
  position: fixed;
  right: 30px;
  top: 40px;
  text-align: center;
  z-index: 99;
}
.side-bar a {
  color:#000;
  text-decoration: none;
}
.side-bar .go-top {
  cursor: pointer;
  display: none;
  margin-top: 10px;
}
.side-bar ul.showlist {
  display: none;
  padding: 10px 0 0;
}
.side-bar ul.hidelist>li,
.side-bar ul.showlist>li {
  list-style: none;
}
.side-bar ul.showlist>li {
  border-bottom: 1px dotted #fff;
}
.side-bar ul.showlist>li:first-child {
  height: 100px;
  border-bottom: 0;
  padding-bottom: 0;
  border-radius: 100px 100px 0 0;
  background-color: #220504;
}
.side-bar ul.showlist>li:first-child img {
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  margin: auto;
}
.side-bar ul.showlist>li img {
  width: 100%;
}
.side-bar ul.showlist>li:last-child {
  overflow: hidden;
  background-color: #220504;
  border-radius: 0 0 20px 20px;
}
.side-bar ul.showlist>li:last-child a {
  background-color: #220504;
  color: #fff;
}
.side-bar ul.showlist>li ul.subheadfix {
  display: flex;
  flex-wrap: wrap;
}
.side-bar ul.showlist>li ul.subheadfix li {
  width: 50%;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.8);
  justify-content: center;
  color: #220504;
}
.side-bar ul.showlist>li ul.subheadfix li a:hover {
  color: #220504;
}
.side-bar ul.showlist>li a {
  background-color: rgba(255, 255, 255, 1);
  display: block;
  font-size: 1.125em;
  line-height: 1.375;
  padding: 10px;
}
.side-bar ul.showlist>li a:hover,
.side-bar.left ul.showlist>li a:hover {
  background: #ffff25;
  color: #220504;
}
.side-bar ul.showlist>li:last-child {
  border-bottom: 0 solid #fff;
}
.side-bar ul.showlist>li.last-sidebtn a {
  border-bottom: 0 solid #fff;
  border-radius: 0 0 10px 10px;
}
.side-bar ul.showlist.active {
  display: block;
  min-width: 150px;
}
.side-bar ul.hidelist {
  display: none;
  width: 120px;
  margin-left: auto;
  padding: 10px 0;
  margin-bottom: 10px;
}
.side-bar ul.hidelist2 {
  background: #ffb2f5;
  border-radius: 10px 0 0 10px;
  width: 60px;
}
.side-bar ul.hidelist img {
  width: 100%;
  margin: auto;
  vertical-align: middle;
}
.side-bar ul.hidelist.active {
  display: block;
  cursor: pointer;
  position: absolute;
  right: -30px;
}
.side-bar .closebtn {
  display: none;
  position: absolute;
  top: 0;
  border-radius: 10px 0 0 10px;
  width: 30px;
  margin-left: auto;
  text-align: center;
  padding: 10px 0;
  color: #fff;
  font-size: 20px;
  z-index: 99;
  cursor: pointer;
}
.side-bar .closebtn1 {
  left: -30px;
}
.side-bar .closebtn2 {
  right: -35px;
}
.side-bar .closebtn.active {
  display: block;
}
/* ========== Header ========== */

.logo-wrap {
  display: flex;
  justify-content: center;
  background-color: #fff;
}

.logo-wrap img {
  display: block;
  width: 120px;
  margin: 6px auto;
}

/* ========== 固定置底列 ========== */

.float_mask {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  text-align: center;
}

.float_area {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 8px 0;
  text-decoration: none;
}

/* ========== Banner ========== */

.banner {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background-image: url(../image/banner-bg.png);
  min-height: 80vh;
}
.banner img {
  margin: auto;
}

/* ========== Copyright ========== */

.copyright {
  margin: 0;
  padding: 1em 0;
  color: #fff;
  background-color: #000;
  text-align: center;
  font-size: 0.8em;
}

/* ========== Animation ========== */

.animate__brightness {
  -webkit-animation: brightness 2s infinite;
  animation: brightness 2s infinite;
}

@keyframes brightness {
  0%, 88%, 94%, 100% {
    filter: brightness(100%);
  }
  91%, 97% {
    filter: brightness(175%);
  }
}

@-webkit-keyframes brightness {
  0%, 88%, 94%, 100% {
    -webkit-filter: brightness(100%);
  }
  91%, 97% {
    -webkit-filter: brightness(175%);
  }
}

.pop {
  animation: pop .5s steps(2, end) infinite;
}

@keyframes pop {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

@-webkit-keyframes pop {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

/* ========== RWD ========== */

/* Tablet */
@media (max-width: 1024px) {
  body::before {
    background: url(../image/background-tab.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    background-size: cover;
  }
  .banner {
    background-image: url(../image/banner-bg-tab.png);
  }
  .side-bar ul.hidelist {
    width: 60px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .pcOnly {
    display: none;
  }

  .mobileOnly {
    display: block;
  }
  body::before {
    background: url(../image/background-m.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    background-size: cover;
  }
  .banner {
    background-image: url(../image/banner-bg-m.png);
    min-height: 65vh;
  }
}

