@charset "UTF-8";
/* ==================== 基礎設定 ==================== */
html,
body,
#main {
  color: #fff;
  overflow-x: hidden;
  min-width: auto !important;
  background-color: #0f1c50;
}

:root {
  --outline-color: #020202;
  --outline-width: .08em;
}

#header {
  background: rgba(15, 28, 80, 0.6980392157);
}

#footer {
  background: transparent;
}

#header .nav {
  max-width: 16.66667em;
}

.hilife-logo {
  width: 5.5em;
  margin-top: 0.3em;
}

*:focus-visible {
  outline: auto;
  outline-offset: 0.1em;
}

[data-device=mobile] .only-pc,
[data-device=pc] .only-mobile {
  display: none;
}

[data-login=true] .only-logout,
:root:not([data-login=true]) .only-login {
  display: none;
}

/* ==================== 背景圖區 ==================== */
.bg-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 16em);
  z-index: -5;
  width: 32em;
  margin: 0 auto;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.bg-area img {
  width: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

/* ==================== Banner ==================== */
#article .banner {
  position: relative;
  display: block;
  margin: 2em auto -0.4em;
}

/* ==================== 主內容 ==================== */
#main {
  color: #fff;
  overflow: hidden;
}
#main img {
  max-width: 100%;
}
#main {
  /* JS 淡入動畫 */
}
#main .fade-up,
#main .fade-left,
#main .fade-right,
#main .fade-down,
#main .fade-in {
  opacity: 0;
  transition: opacity 1.6s, transform 1s;
}
#main .fade-up.faded,
#main .fade-left.faded,
#main .fade-right.faded,
#main .fade-down.faded,
#main .fade-in.faded {
  transform: none;
  opacity: 1;
}
#main .fade-up {
  transform: translate(0, 1em);
}
#main .fade-down {
  transform: translate(0, -1em);
}
#main .fade-left {
  transform: translate(1em, 0);
}
#main .fade-right {
  transform: translate(-1em, 0);
}
#main .bg-area.fade-up,
#main .bg-area .fade-up {
  transform: none;
}

/* ==================== Banner 持續動畫 ==================== */
.banner-layer .loop-float {
  animation: loopFloat 3s ease-in-out infinite alternate;
}

@keyframes loopFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}
.banner-layer .loop-pulse {
  animation: loopPulse 2.5s ease-in-out infinite alternate;
}

@keyframes loopPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
.banner-layer .loop-swing {
  animation: loopSwing 3s ease-in-out infinite alternate;
}

@keyframes loopSwing {
  from {
    transform: translateX(-5px);
  }
  to {
    transform: translateX(5px);
  }
}
/* ==================== 裝飾圖 ==================== */
.bg-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 1;
  pointer-events: none;
}

.bg-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 0;
  pointer-events: none;
}

/* ==================== 按鈕 ==================== */
.btn-modal {
  position: absolute;
  bottom: 19%;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  max-width: 80%;
}
.btn-modal img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}
.btn-modal .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.btn-modal:hover .hover-img {
  opacity: 1;
}

/* ==================== 內容區塊 ==================== */
.activity-section,
.notice-section {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 20px;
  width: 100%;
}
.activity-section img,
.notice-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==================== Modal ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content-inner {
  position: relative;
  top: 1em;
  width: 13em;
  max-width: 800px;
  max-height: 90vh;
  animation: popIn 0.3s ease forwards;
}

.modal-scroll {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-scroll::-webkit-scrollbar {
  display: none;
}
.modal-scroll img.mo-img {
  display: block;
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

@keyframes popIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.btn-close {
  position: absolute;
  top: -1em;
  right: -0.5em;
  cursor: pointer;
  width: 2em;
  height: 2em;
  z-index: 10;
  transition: transform 0.2s;
}
.btn-close:hover {
  transform: scale(1.1);
}
.btn-close img {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 768px) {
  .btn-close {
    top: -1em;
    right: -0.5em;
  }
}/*# sourceMappingURL=main.css.map */