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

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

a {
  text-decoration: none;
}

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

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

.pcOnly {
  display: none;
}

.mobileOnly {
  display: block;
}

.active {
  display: block;
}

.hidden {
  display: none;
}

/* ========== 側邊快捷 (Side Bar) ========== */
.side-bar {
  position: fixed;
  top: 15%;
  right: 0;
  text-align: center;
  z-index: 99;
}
.side-bar a {
  color: #ff10d2;;
  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: #0988e3;
}
.side-bar ul.showlist>li:first-child img {
  position: absolute;
  right: 0;
  margin: auto;
}
.side-bar ul.showlist>li img {
  width: 100%;
}
.side-bar ul.showlist>li:last-child {
  overflow: hidden;
  background-color: #fffb00;
  border-radius: 0 0 20px 20px;
}
.side-bar ul.showlist>li:last-child a {
  background-color: #0d3557;
  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,.6);
  justify-content: center;
  color: #0d3557;
}
.side-bar ul.showlist>li ul.subheadfix li a:hover {
  color: #ff10d2;
}
.side-bar ul.showlist>li a {
  background-color: rgba(255, 255, 255, 0.9);
  display: block;
  font-size: 1.125em;
  line-height: 1.375;
  padding: 10px;
}
.side-bar ul.showlist>li a:hover {
  background: #fffb00;
  color: #ff10d2;
}
.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;
}
.side-bar ul.hidelist {
  display: none;
  background: #0d3557;
  border-radius: 10px 0 0 10px;
  width: 60px;
  margin-left: auto;
  padding: 10px 0;
  margin-bottom: 10px;
}
.side-bar ul.hidelist img {
  width: 100%;
  margin: auto;
  vertical-align: middle;
}
.side-bar ul.hidelist.active {
  display: block;
  cursor: pointer;
}
.side-bar .closebtn {
  display: none;
  position: absolute;
  top: 0;
  border-radius: 10px 0 0 10px;
  right: 0;
  margin-left: auto;
  text-align: center;
  padding: 10px 0;
  color: #fff;
  font-size: 20px;
  z-index: 99;
  cursor: pointer;
}
.side-bar .closebtn.active {
  display: block;
}

/* ========== Header ========== */

.logo-wrap {
  display: flex;
  justify-content: center;
  background-color: #fff;
  border-bottom: 3px solid #0d3556;
}

.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;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.banner img {
  margin: auto;
}

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

.copyright {
  margin: 0;
  padding: 1em 0;
  color: #fff;
  background-color: #4691ab;
  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 ========== */

/* Mobile (min-width: 320px) */
@media (min-width: 320px) {
  body {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
  }

  body::before {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: url(../image/background-m.png) no-repeat center top;
    background-size: cover;
  }
  .side-bar ul.hidelist {
    width: 40px;
  }
  .side-bar ul.showlist>li:first-child img {
    width: 100%;
    top: -2%;
  }
}

/* Tablet Portrait (min-width: 576px) */
@media (min-width: 576px) {
  body::before {
    background: url(../image/background-tab.png) no-repeat center center fixed;
    background-size: cover;
  }
}

/* Tablet Landscape (min-width: 768px and max-width: 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  body::before {
    background: url(../image/background-tab-h.png) no-repeat center center fixed;
    background-size: cover;
  }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
  body::before {
    background: url(../image/background.png) no-repeat center center fixed;
    background-size: cover;
  }

  .pcOnly {
    display: block;
  }

  .mobileOnly {
    display: none;
  }

  .side-bar ul.hidelist {
    width: 60px;
  }
  .side-bar ul.showlist>li:first-child img {
    top: -5%;
  }
}
