@charset "utf-8";

/* CSS Document */

.loading{
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;  
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1d1208 url(../images/loading.svg) no-repeat center center;
  background-size: clamp(10px, 10vw, 60px);
  z-index: 99999999999;
}

html {
  font-size: 15px;
  /* scroll-behavior: smooth; */
}

body {
  margin: 0;
  padding: 0 !important;
  background: rgba(0, 0, 0, 1);
  position: relative;
  overflow-x: hidden;
}

/* 隱藏 scrollbar，但允許滾動（背景還是會滑動） */
/* body {
  overflow: auto;
  scrollbar-width: none;
} */

::-webkit-scrollbar {
  /* display: none !important; */
}

* {
  -webkit-box-sizing: border-box;
  /*firefox*/
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-user-drag: none;
}

*:focus {
  outline: none;
  /*去除藍框*/
}

input,
button,
select,
textarea {
  outline: none;
  /*去除藍框*/
}

/* span {
  display: inline-block;
} */

/* ol,
ul {
  padding-left: 1rem !important;
} */

img {
  -webkit-user-drag: none;
}

[data-aos="fade-up"] {
    transform: translate3d(0, 20px, 0);
}

/* 回到頂部 */
.bnt_top {
  position: fixed;
  bottom: 2.5%;
  right: 6.5vh;
  width: 10%;
  max-width: 50px;
  background-image: url(../images/btn_top.webp);
  background-repeat: no-repeat;
  background-size: 100% auto;
  display: none;
  opacity: 0.7;
  z-index: 999;
}

.bnt_top a {
  background-image: url(../images/btn_top_ov.webp);
  background-repeat: no-repeat;
  background-size: 100% auto;
  image-rendering: -webkit-optimize-contrast;
  opacity: 0.01;
  transition: opacity 0.5s;
}

.bnt_top a:hover {
  opacity: 1;
  filter: brightness(150%);
}

.container {
  position: relative;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

.modal-open {
  padding-right: 0 !important;
}

/*像素比例尺*/

.btn-check:focus+.btn,
.btn:focus {
  outline: 0;
  box-shadow: none !important;
}

img {
  width: 100%;
  height: auto;
}

.l {
  display: block;
}

.m {
  display: none;
}

.s {
  display: none;
}

a {
  z-index: 100;
  width: 100%;
  /* height: 100%; */
  display: block;
}



/*去藍框*/
.btn-check:focus+.btn,
.btn:focus {
  box-shadow: none;
}

#lightarea {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/** 動態效果 **/
@keyframes fadeout {
  0% {
    transform: scale(1.1);
    transform-origin: top center;
    filter: blur(5px);
  }

  100% {
    transform: scale(1);
    filter: blur(0px);
  }
}

@keyframes fadein {
  0% {
    transform: scale(1.5);
  }

  60% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

.wrapper {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

/** 共用 **/
.content {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
}

/** 文字設定 共用 **/
h2 {
  font-size: 2.5rem !important;
}

.sec_txt,
.txt_y,
.txt_g,
.txt_s,
.txt_wy,
.txt_go {
  font-family: 'Noto Sans SC', sans-serif;
}

.sec_txt {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/** 文字漸層色 共用 **/
/*黃色*/
.txt_y {
  background: linear-gradient(to bottom, #fce7ae 10%, #f6d306 55%, #f09304 95%);
  background-clip: text;
  font-weight: bold;
  color: #fdfdfd87;
  /* filter: drop-shadow(2px 3px 0px #000); */
}

/*金色*/
.txt_g {
  background: linear-gradient(to bottom, #faeece 30%, #f1b100 75%);
  background-clip: text;
  color: #fdfdfd96;
  /* filter: drop-shadow(2px 3px 0px #000); */
}

/*銀色*/
.txt_s {
  background: linear-gradient(to bottom, #ffffff 20%, #e1e1e1 100%);
  background-clip: text;
  color: #fdfdfd8f;
  filter: drop-shadow(2px 3px 0px #000);
}

/*白微黃*/
.txt_wy {
  background: linear-gradient(to top, #ffffff 30%, #f5c802 100%);
  background-clip: text;
  color: #fdfdfd8f;
  filter: drop-shadow(2px 3px 0px #000);
}

/*//////////////////////////////////////////////////////////*/
/*Button 共用*/
/* Button 共用 */
.btn {
  padding: 0rem !important;
  transition: all 0.3s ease-in-out;
}

.btn:active {
  transform: scale(0.95);
}

.btn_l {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin-bottom: 1rem;
}

.btn_l img {
  width: 100% !important;
}

.btn_m {
  width: 24%;
  font-size: 0;
  line-height: 0;
  display: block;
  transition: all 0.25s;
}

.btn_m:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0px 0 10px rgba(111, 54, 7, 0.65));
}

.btn_m img {
  width: 100% !important;
}

.btn_s {
  width: 100%;
  max-width: 130px;
  padding: 0rem 0 !important;
}

.btn_xs {
  width: 100%;
  max-width: 100px;
  padding: 0rem 0 !important;
}



@keyframes btn_m {
  from {
    filter: brightness(100%);
    transform: scale(1);
  }

  to {
    filter: brightness(120%);
    transform: scale(1.05);
  }
}

.btn_m img {
  width: 100% !important;
}

/*//////////////////////////////////////////////////////////*/

/* 基本樣式重置，移除列表的預設樣式 */
ul.menu_b {
  width: 100%;
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: stretch;
  /* 確保所有項目高度一致 */
}

.menu-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-item img {
  max-width: 100%;
  height: auto;
}

/* ////////////////// 區塊設定共用 //////////////////  */

/* ////////////////// 共用 //////////////////  */
#cover {
  width: 100%;
  min-height: 100vh;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

#cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../images/bg_cb.webp) center top no-repeat;
  background-size: cover;
  z-index: 0;
  transform: scale(1.1);    
  filter: blur(5px);
  pointer-events: none;
}

#cover.run::before {  
  animation: cover_trans 2.5s forwards;
}


@keyframes cover_trans {
  0% {
    transform: scale(1.1);    
    filter: blur(5px);
  }

  100% {
    transform: scale(1);
    filter: blur(1px);
  }
}


/* ////////////////// 00_cover首頁 //////////////////  */


/* 角色 */
.ch_l {
  width: 100%;
  height: 106%;
  position: absolute;
  top: 2vh;
  left: 0;
  background: url(../images/cha.webp) no-repeat center top;
  z-index: 3;
  transform: scale(1.1);
  transform-origin: top center;
  filter: blur(5px);
}
.ch_l.run {
  animation: fadeout 1.8s forwards;
}

.appstore {
  width: 100%;
  max-width: 1200px;
  padding: clamp(10px, 5vw, 2rem);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1%;
  position: relative;
  z-index: 4;
}



/* 若使用者偏好減少動態，尊重設定 */
@media (prefers-reduced-motion: reduce) {
  .titlebtn-link {
    animation: none;
  }
}

/* 預約按鈕 */
.slogan_block a img.btn03 {
  width: 100%;
}

.btn03 {
  animation: glowUpImg 1s linear infinite;
}

@keyframes glowUpImg {
  0% {
    filter: brightness(1.1);
  }

  50% {
    filter: brightness(1.2);
    scale: 1.03;
  }

  100% {
    filter: brightness(1);
  }
}

/* 向下↓箭頭 */
.slogan_block a img.btn_scroll {
  width: 80%;
}

.btn_scroll {
  animation: upTodown 1s linear infinite;
}

@keyframes upTodown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(1rem);
    opacity: 0.6;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* /////////////////////////////////////// 火焰特效設定 /////////////////////////////////////// */
/* --- Fire Animation Layer --- */

#cover .fire-layer canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#cover .fire-layer .fire-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  width: 80%;
  max-width: 700px;
}

#cover .fire-layer .headline {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(to right, #f5a742, #e85a19, #ff3e00);
  background: linear-gradient(to right, #f5dbba, #7319e8, #ff3e00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(20px);
  animation: fireFadeUp 1.5s ease forwards 0.5s;
}

#cover .fire-layer .subheadline {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(20px);
  animation: fireFadeUp 1.5s ease forwards 0.8s;
}

#cover .fire-layer .cta-button {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fireFadeUp 1.5s ease forwards 1.1s;
}

#cover .fire-layer .cta-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

#cover .fire-layer .portfolio-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  opacity: 0;
  animation: fireFadeUp 1.5s ease forwards 1.4s;
}

#cover .fire-layer .nav-item {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  text-transform: uppercase;
}

#cover .fire-layer .nav-item:hover {
  color: #f5a742;
}

@keyframes fireFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 火焰層：絕對定位於封面全區域，位於背景上方、文字下方 */
#cover .fire-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* 火焰在背景上、文字下 */
  overflow: hidden;
  pointer-events: none;
  /* 不影響按鈕點擊 */
}

/* 火焰 canvas 自適應全畫面 */
#cover .fire-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* /////////////////////////////////////// RWD設定 /////////////////////////////////////// */
@media screen and (max-width: 767px) {

  .ch_l {
    background-image: url(../images/cha_s.webp);
    background-size: cover;
    background-position: center center;
  }

  .appstore {
    gap: clamp(5px, 3vw, 1rem);
  }

  .btn_m {
    width: 48%;
  }
}