html{
	scroll-behavior: smooth;
}

/* 全網頁只要滑鼠滑到連結就變手指 */
a:hover {
  cursor: pointer !important;
}

/* 這行是最上面的板頭 */
header>.inner {
  background-color: rgba(255, 255, 255, 0);
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* hoho的logo */
header>.inner a.logo {
  background: url(../images/icon_hoho-02.svg) no-repeat center;
  background-size: cover;
  width: 180px;
  height: 140px;
  left: 0px;
}

/* hoho的logo滑鼠移過去後 */
header>.inner a.logo:hover {
  filter: brightness(1.1);
  transition: 0.2s;
}

/* 右上的icon */
header ul.wrap-link li i[class*="icon-"],
header ul.wrap-link li a[class*="icon-"] {
  background-color: #444;
  color: #ffffff;
  transition: 0.2s;
}

/* 右上的icon滑鼠移過去後 */
header ul.wrap-link li i[class*="icon-"]:hover,
header ul.wrap-link li a[class*="icon-"]:hover {
  background-color: rgb(255, 188, 2);
  color: #ffffff ;
  transition: 0.2s;
}

/* icon旁邊的文字 */
header ul.wrap-link li span {
  color: #444;
  margin-right: 10px;
}

/* 從這邊開始是內容大框架 */
.pageContainer {
  background-color: #fff3ee;
  background: url(../images/bg-pc.jpg);
}

.pageContainer img {
  vertical-align: top;
  max-width: 100%;
  height: auto;
}

.innerbox {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 auto;
}

.showPC{
	display: block;
}
.showMB{
	display: none;
}

/* 客製內容從下面開始 */
[data-aos^=fade][data-aos^=fade].aos-animate {
    opacity: 1;
    transform: translateZ(0);
    margin: auto;
}

.kv-bg{
  width: 100%;
  background: url(../images/kv-bg.png);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.kv{
  padding: 0;
  width: 1200px;
  height:auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.kv-tt {
  text-align: center;
  animation-name: kv-tt;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  padding: 0px 5%;
  margin-top: 22px;
}

  .StepPro {
    padding: 0 16px;
    margin-top: 50px;
    
}
  .StepPro a{
    width: 45%;
}
  .StepTitle {
    padding-top: 0px;
}

/*圖片定位*/

.wrapper {
  position: relative; 
}

.link01 {
    display: block;
    position: absolute;
    z-index: 1;
    width: 24%;
    height: 22%;
    bottom: 79%;
    left: 7%;
}

.link02 {
    display: block;
    position: absolute;
    z-index: 10;
    width: 23%;
    height: 21%;
    bottom: 79%;
    right: 12%;
}

.link03 {
    display: block;
    position: absolute;
    z-index: 10;
    width: 23%;
    height: 22%;
    bottom: 56%;
    left: 0%;
    right: 57%;
}

.link04 {
    display: block;
    position: absolute;
    z-index: 10;
    width: 23%;
    height: 20%;
    bottom: 57%;
    right: 11%;
    right: 4%;
}

.nv-link01 {
    display: block;
    position: absolute;
    z-index: 1;
    width: 23%;
    height: 60%;
    bottom: 6%;
    left: 11%;
}

.nv-link02 {
    display: block;
    position: absolute;
    z-index: 10;
    width: 48%;
    height: 55%;
    bottom: 6%;
    right: 10%;
}



  .kv-HoHoPro {
    padding: 0 16px;
    
}
  .kv-HoHoPro a{
    width: 45%;
}
  .kv-HoHoTitle {
    padding-top: 0px;
}

.kv-HoHoPro img {
    -webkit-transition: filter 0.3s ease; 
    transition: filter 0.3s ease; 
  }
  
  .kv-HoHoPro img:hover {
    -webkit-filter: brightness(110%); 
    filter: brightness(110%);
  }


  .new-villagePro {
    padding: 0 16px;
    
}
  .new-villagePro a{
    width: 45%;
}
  .new-villageTitle {
    padding-top: 0px;
}

  .Life-QuizPro {
    padding: 0 16px;
    
}
  .Life-QuizPro a{
    width: 45%;
}
  .Life-QuizTitle {
    padding-top: 0px;
}


  .Player-giftPro {
    padding: 0 16px;
    
}
  .Player-giftPro a{
    width: 45%;
}
  .Player-giftTitle {
    padding-top: 0px;
}



@keyframes kv-tt{
  0%{
    transform:translateY(20px);
  }
  50%{
    transform:translateY(0px);
  }
  100%{
    transform:translateY(20px);
  }
}

.flexCon{
  display: flex;
  justify-content: space-evenly;

}

.LifeCon{
  display: flex;
  justify-content: space-evenly;
  margin-top: 80px;
  margin-bottom: 85px;
}

.PlayerCon{
  display: flex;
  justify-content: center;
  margin-top: 64px;
  margin-bottom: 0px;
}
.Player-1Con{
  display: flex;
  justify-content: space-evenly;
  margin-top: 0px;
  background-image: url("../images/Player-gift-02b.png");
  background-position: top center;
  background-size: contain;
  background-repeat: repeat-y;
  padding: 1% 5%;
}

.Player-1Con div{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 30%;
  background-color: #f9f6ed;
  border-radius: 24px;
  padding: 24px;
  font-size: 24px;
  font-weight: 600;
  color: #4a2e14;
}

.Player-1Con div a{
  font-size: 18px;
  font-weight: 400;
  color: #000;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 8px 4px;
  border: 1px solid #d8c5ae;
  border-bottom: 3px solid #d8c5ae;
}

.Player-1Con div a:hover{
  background-color: #fffba7;
}

.cleanHo{
  position: absolute;
  right: 4%;
  bottom: 0.9%;
  width: 28%;
}

.cursor-pointer {
  cursor: pointer;
}

.act1{
    max-width: 100%;
    text-align: center;
    padding: 56px;
}

.AFTEE {
    text-align: center;
    padding: 64px 0;
    display: flex;
    justify-content: center; /* 水平置中內部所有子元素 */
    flex-wrap: wrap; 
}

.product_Model{
      max-width: 100%;
      background-position: top center;
      background-size: contain;
      margin-top: 0 !important;
      padding-top: 48px;
}

.afteePic{
  width: 48%;
}

.lastPro{
    max-width: 100%;
    background-position: top center;
    background-size: contain;
    padding: 24px 0;
    margin-top: -16px;
}

.lastPro > div{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.lastPro > div a{
  width: 45%;
}

.new-village{
  max-width: 100%;
  background-position: top center;
  background-repeat: no-repeat;
  text-align: center;
  padding-top: 64px;
}

.new-villagePro{
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 24px;
  margin-bottom: 56px;
}

.new-villagePro a{
  width: 30%;
}

.new-villageTitle{
  padding-top: 0px;
  padding-bottom: 0px;
  text-align: center;
}

.Life-Quiz{
  max-width: 100%;
  background-position: top center;
  background-repeat: no-repeat;
  text-align: center;
  margin-top: 40px;
}

.Life-QuizPro{
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 24px;
  margin-bottom: 56px;
}

.Life-QuizPro a{
  width: 30%;
}

.Life-QuizTitle{
  padding-top: 0px;
  padding-bottom: 0px;
  text-align: center;
}

.Player-gift{
  max-width: 100%;
  background-position: top center;
  background-repeat: no-repeat;
  text-align: center;
}

.Player-giftPro{
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 24px;
  margin-bottom: 56px;
}

.Player-giftPro a{
  width: 30%;
}

.Player-giftTitle{
  padding-top: 0px;
  padding-bottom: 0px;
  text-align: center;
}

.afteeBtn{
  padding: 0 15%;
  margin-top: -15px;
  margin-bottom: 100px;
}

.HoHogoodBtn{
  padding: 0 20%;
  margin-bottom: 100px;
  margin-top: -53px;
}

.new-villageBtn{
  padding: 0 20%;
  margin-bottom: 100px;
  margin-top: -53px;
}

.Life-QuizBtn { 
  padding: 0 20%;
  margin-bottom: 100px;
  margin-top: -53px;
}

.Player-giftBtn {
  padding: 0 20%;
  margin-bottom: 100px;
  margin-top: -53px;
}


/*         以上修改          */

.kv-cp{
  max-width: 1200px;
  height: auto;
  display: flex;
  margin: -85px auto 50px auto;
  flex-wrap: nowrap; /*段行方式*/
  gap: 30px; /*中間間距*/
  justify-content: center; /*對齊方式*/
}

.kv-cp.showPC {
  display: flex;
  width: 100%; 
  align-items: flex-start; 
  justify-content: space-between; 
  flex-wrap: wrap;
  margin-top: 30px; 
  margin-bottom: 50px;
}

#kv-cp01{
  transition: 0.2s;
}
#kv-cp01>a>img{
  max-width: 100%;
}
#kv-cp01:hover{transform : scale(0.965);}

#kv-cp02{
  transition: 0.2s;
}
#kv-cp02>a>img{
  max-width: 100%;
}

#kv-cp02:hover{transform : scale(0.965);}

/* 讓外層容器成為定位基準 */
#kv-cp02.image-with-links {
    position: relative; 
    display: block; /* 或 inline-block，確保容器與圖片大小貼合 */
}

/* 圖片確保自適應滿版 */
#kv-cp02.image-with-links img {
    width: 100%;
    display: block;
}

/* 共用的隱形按鈕設定 */
.hidden-btn {
    position: absolute;
}

/* 左邊按鈕 (點我登記) 的位置抓取 */
.btn-left {
    bottom: 12%;   /* 距離底部的比例，請依實際圖片微調 */
    left: 12%;     /* 距離左邊的比例 */
    width: 35%;    /* 點擊區塊的寬度 */
    height: 18%;   /* 點擊區塊的高度 */
}

/* 右邊按鈕 (看更多獎項) 的位置抓取 */
.btn-right {
    bottom: 12%;   /* 必須跟左邊按鈕一樣高 */
    right: 12%;    /* 距離右邊的比例 */
    width: 35%;    
    height: 18%;   
}


#kv-cp03{
  transition: 0.2s;
}
#kv-cp03>a>img{
  max-width: 100%;
}
#kv-cp03:hover{transform : scale(0.965);}

#kv-cp04{
  transition: 0.2s;
}
#kv-cp04>a>img{
  max-width: 100%;
}
#kv-cp04:hover{transform : scale(0.965);}

.ct-bg{
	  width: 100%;
    background-size: cover;
  	background: url(../images/bg-PC.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    
  	/* background-position: bottom center;
  	background-repeat: no-repeat;
  	background-size: cover; */
}

.ct{
  width: 1200px;
  display: flex;
  margin: auto;
  flex-wrap: wrap;
}

#ct01{
  margin-top: 100px;
  margin-bottom: 100px;
  margin-left: auto; 
  margin-right: auto;
}

.ct01-ct{
	max-width: 1200px;
  background-size: cover;
	background-repeat: no-repeat;
}

.ct01-cp{
	width: 100%;
  padding-top: 2%;
  padding-bottom: 2%;
	margin-top: 20px;
  justify-content: center;
}
.ct01-cp img {
	width: 100%;
	margin-top: 20px;
	display: flex;
  justify-content: center;
}

.ct01-cpBottom{
	width: 100%;
  padding-bottom: 4%;
  padding-top: 4%;
}

.ct01-cp-bt{
  width: 46%;
  filter:drop-shadow(0px 0px 5px #3f0d0035);
  transition: 0.2s;
  
}
.ct01-cp-bt:hover{transform : scale(0.965);}

#ct02{
	margin-top: 300px;
  display: flex;
  justify-content: center;
  justify-content: space-around;
  margin-top: 2%;
  gap: 50px;
}


#ct03{
  margin-top: 170px;
  background-size: cover; 
  background-repeat: no-repeat;
  background-position: center center; 
}


#ct03_bnt{
  display: flex;
  margin-top: -100px;
  margin-left: 40px;
  gap: 50px;
  
}

#ct04{
	margin-top: 100px;
  background-size: cover; 
  background-repeat: no-repeat;
  background-position: top center;
}

#ct04_bnt{
  display: flex;
  margin-top: -100px;
  margin-left: 40px;
  gap: 50px;
  
}

#ct05{
	margin-top: 30px;
  margin-bottom: 100;
  display: flex;
}

.act1{
  text-align: center;
}

.act1 a{
	filter: drop-shadow(0 0 10px #ebe6cf);
	margin-top: 16px;
	transform: translateY(0);
	transition: transform 0.3s ease-in-out;
}

.act1 a:hover{
	transform: translateY(-16px);
}

.act2{
  text-align: center;
}

.act2 a{
	filter: drop-shadow(0 0 10px #ebe6cf);
	margin-top: 16px;
	transform: translateY(0);
	transition: transform 0.3s ease-in-out;
}

.act2 a:hover{
	transform: translateY(-16px);
}

.AFTEE{
  text-align: center;
}

.AFTEE a{
	margin-top: 16px;
	transform: translateY(0);
	transition: transform 0.3s ease-in-out;
  display: flex;
  justify-content: center;
}


.AFTEE a:hover{
	transform: translateY(-16px);
}


/* 電腦版 ct05 (橫向排列) */
#ct05, #ct05-2 {
    display: flex;
    justify-content: space-between; 
    flex-wrap: wrap;
    margin-bottom: 20px; /* 區塊間距 */
}

/* 電腦版圖片連結 (每行兩張) */
#ct05 a.showPC, #ct05-2 a.showPC {
    width: 49%; /* 佔約一半 */
    text-align: center;
    
}
 
.finalPro{
	margin-top: 40px;
	padding: 0% 4%;
  margin-bottom: 100px;
	filter: drop-shadow(rgba(#3f0d0070) 0px 0px 10px);
}
.finalPro a:hover{
	-webkit-filter: brightness(105%); /* Safari */
    filter: brightness(105%);
}

@media (max-width: 600px) {
	.modal-content {
		padding: 24px 16px;
        max-height: 500px;
        overflow: scroll;
	}

	.modal-content h2 {
		font-size: 22px;
        padding: 16px 16px 0;
		margin-bottom: 0px;
	}

	.modal-content p {
		font-size: 16px;
        line-height: normal;
        padding: 8px 8px 0;
	}
}

/*以上彈窗*/



/* 活動說明 */
.rule{
  padding: 40px 16px 400px;
	background-color: #99dde1;
}

.rule h5{
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 24px;
}

.rule p{
	font-size: 18px;
	font-weight: 400;
	line-height: 32px;
}

.rule p span{
	display: block;
	margin-left: 20px;
}

.rule a{
	color: #3895b4;
	text-decoration: underline;
}

/*側邊欄*/
.navButton{
	display: none;
	justify-content: space-between;
	background-color: #fff;
	padding: 0px 16px;
	height: 40px;
	line-height: 40px;
	position: fixed;
	bottom: 0;
	width: 100%;
	box-sizing: border-box;
	transition: top .4s ease-in-out;
	box-shadow: 0 0 8px rgba(0,0,0,.2);
	z-index: 999;
}

.navButton a{
	color: #000;
	text-decoration: none;
	font-size: 16px;
}

.navButton_pc{
	display: block;
	position: fixed;
	right: 0px;
	top: 150px;
	width: 156px;
	height: 260px;
	padding: 100px 16px 0px 52px;
	background-image: url("../images/navbg.png");
	background-position: top center;
	background-repeat: no-repeat;
	transition: right .4s ease-in-out;
	filter:drop-shadow(4px 8px 8px rgb(201, 20, 0));
	z-index: 999;
}

.navButton_pc a{
	display: block;
    text-align: center;
    width: 100%;
    font-size: 16px;
	line-height: 28px;
	font-weight: 700;
    color: #181818;
    text-decoration: none;
}

.navButton_pc a:hover{
	color: #cc3c39;
	font-weight: 900;
}

.navHide .navButton_pc {
	right: -156px;
} 

    

/*swiper*/
.swiper {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0px auto;
}

#swiper-one {
    margin: 0 auto !important;
}

.swiper-slide {
    width: 325px;
    height: auto !important;
    text-align: center;
    font-size: 18px;
    background: transparent;
    padding: 0px 0 0 0;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}






/* 回到上方 */
a#backTop {
  background-color: #444;
	bottom: 52px;
}



@media (max-width: 1280px) {
.kv{
    width: 100%;
    height: auto;
  }

.kv-tt{
    width: 80%;
    text-align: center;
    margin: 0 auto; 
    margin-top: 70px;
  
  }
}
.kv-cp{
  width: 100%;
}

.ct{
  width: 100%;
  display: flex;
  justify-content: center;
}

#ct01{
  width: 96%;
}

.ct01-ct{
  width: 100%;
  background-size: contain;
}

#ct02{
  width: 90%;
}


@media (max-width: 1277px) {
.kv{
    width: 100%;
    height: auto;
  }

.kv-tt{
    width: 100%;
    text-align: center;
  }
.kv-cp{
  width: 90%;
}
}

@media (max-width: 1030px) {
.kv{
    width: 100%;
    height: auto;
  }

.kv-tt{
    width: 100%;
    text-align: center;
  }
.kv-cp{
  width: 90%;
}
}


@media (max-width: 1080px) {
.kv{
    width: 100%;
    height: auto;
  }

.kv-tt{
    width: 100%;
    text-align: center;
  }

  
}

@media (max-width: 845px) {

  
}

@media (max-width: 780px) {
	.showPC{
		display: none;
	}
	.showMB{
		display: block;
	}

  /* hoho的logo */
  header>.inner a.logo {
    background: url(../images/icon_hoho-02.svg) no-repeat center;
    background-size: cover;
    width: 130px;
    height: 100px;
    left: -10px;
  }

  

  .kv-tt{
    margin: 35px auto 0 auto;
  }

  .kv-cp{
  width: 100%;
  flex-wrap: wrap;
  width: 65%;
  gap: 43px;
  }
  

  .kv-cp-mb{
    width: 100%;
    display: block;
    margin: 15px auto;
    text-align: center;
  }

    .act1 {
      padding: 32px;
      background-position: top left;
      background-size: 250%;
      margin-top: -35px;
    }

    .act2 {
      padding: 32px;
      background-position: top left;
      background-size: 250%;
    }


    .AFTEE { 
  padding: 40px 0; 
  background-position: top left; 
  background-size: 250%; 
  width: 100%; 
  display: flex;
  justify-content: center; 
}

   .AFTEE img {
  width: 100%;   
  max-width: 900px; 
  height: auto; 
  display: block; /* 轉為區塊元素 */
  margin: 0 auto; /* 靠自動邊界置中 */
  margin-top: -35px;
}


    .kv-HoHoPro {
        margin-top: 0px;
    }
    
    .giftPro {
        margin-top: 0px;
    }

    .HoHogoodPro {
        margin-top: 0px;
    }

    .new-village{
      padding-top: 0px;
    }

    .new-villagePro {
        margin-top: 0px;
    }

    .Life-QuizPro {
        margin-top: 0px;
    }

    .Player-giftPro {
        margin-top: 0px;
    }

    
  .StepPro {
    padding: 0 16px;
    margin-bottom: 30px;
    margin-top: 35px;
    
}
  .StepPro a{
    width: 45%;
}
  .StepTitle {
    width: 90%;
}



  .homePro {
    padding: 0 16px;
}
  .homePro a{
    width: 45%;
}
  .homeTitle {
    width: 90%;
}

  .homePro{
  margin-bottom: 0px;
}


.kv-HoHoPro{
  margin-bottom: 0px;
}


  .kv-HoHoPro {
    padding: 0 16px;
}
  .kv-HoHoPro a{
    width: 45%;
}
  .kv-HoHoTitle {
    width: 90%;
}

.kv-HoHoPro{
  margin-bottom: 0px;
}

  .new-villagePro {
    padding: 0 16px;
}
  .new-villagePro a{
    width: 45%;
}
  .new-villageTitle {
    width: 90%;
}

  .new-villagePro{
  margin-bottom: 0px;
}

  .Life-QuizPro {
    padding: 0 16px;
}
  .Life-QuizPro a{
    width: 45%;
}
  .Life-QuizTitle {
    width: 90%;
}

  .Life-QuizPro{
  margin-bottom: 0px;
}

  .Player-giftPro {
    padding: 0 16px;
}
  .Player-giftPro a{
    width: 45%;
}
  .Player-giftTitle {
    width: 90%;
}

  .Player-giftPro{
  margin-bottom: 0px;
}

    .product_Model{
        padding-top: 0px;
    }
    .lastPro{
        margin-top: 0px;
    }
    .lastPro > div{
    }
    .lastPro > div a{
      width: 48%;
    }

  .act1 .flexCon{
  width: 90%;
	flex-direction: column;
	padding: 0 3%;
  text-align: center;
  margin: auto;

  }

    .act1 .LifeCon{
  width: 90%;
	flex-direction: column;
	padding: 0 3%;
  text-align: center;
  margin: auto;

  }

  .act1 a {
    margin-top: 0px;
  }

  .act1 a:hover{
	transform:none;
	transition:none;
  }

  .AFTEE .flexCon{
  width: 90%;
	flex-direction: column;
	padding: 0 3%;
  text-align: center;
  margin: auto;

  }

  .AFTEE a {
    margin-top: 0px;
  }

  .AFTEE a:hover{
	transform:none;
	transition:none;
  }

  .afteePic{
    width: 100%;
  }

  .ct-bg{
  width: 100%;
  background-image: url(../images/bg-PC.jpg); 
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover; 
  min-height: 800px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
  #ct01{
  width: 80%;
  margin-top: 75px;
  }
  .ct01-cp-bt{
  width: 90%;
  }

  #ct02{
  width: 80%;
  margin-top: 75px;
}

  #ct03{
  width: 80%;
  margin-top: 75px;
}

  #ct04{
  width: 80%;
  margin-top: 75px;
}

  #ct05{
  width: 80%;
  margin-top: 75px;
}


.showPC {
    display: none !important; 
}
.showMB {
    display: block !important;
}
#ct03_bnt{
    width: 80%;
    display: flex; 
    flex-direction: column;
    margin: 0 auto; 
    gap: 10px;
    align-items: center;
}

#ct03_bnt img {
    display: block; 
    max-width: 100%;
    height: auto;
}

.rule{
	position: relative;
  padding: 40px 16px 40px;
	background-color: #99dde1;
}


  .rule p span {
    margin-left: 25px;
  }  
	

.flexCon{
  margin-bottom: 0px;
  margin-top: 5px;
}

.ATTilte{
  width: 85%;
  margin: 0 auto;
  margin-top: 60px;
}


    
.new-villageBtn {
    padding: 0 15%;
    margin-bottom: 0px;
    margin-top: 16px;
}

.Life-QuizBtn {
    padding: 0 15%;
    margin-bottom: 0px;
    margin-top: 16px;
}

.Player-giftBtn { 
    padding: 0 15%;
    margin-bottom: 0px;
    margin-top: 16px;
}
}

  @media (max-width: 650px) {

	.rule h5{
		font-size: 24px;
	}

	.rule p {
		font-size: 16px;
		line-height: 28px;
	}

  .kv-bg{
    width: 100%;
    background-image: url(../images/kv-bg-mb.png); 
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain; 
    min-height: 800px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .kv-cp {
    flex-wrap: wrap;
    width: 80%;
    gap: 25px;
    margin-top: -65px;
  }

  #kv-cp02, #kv-cp03{
  }

}

  @media only screen and (max-width: 490px) {
    #ct01{
  margin-top: 50px;
}
#ct02{
  margin-top: 50px;
}
#ct03{
  margin-top: 50px;
}
#ct04{
  margin-top: 50px;
}
#ct05{
  margin-top: 50px;
}

#ct05, #ct05-2 {
  display: block; /* 讓容器恢復為標準區塊 */
}

/* 手機板垂直排列 */
#ct05 a.showMB, #ct05-2 a.showMB {
  display: block;
  width: 100%;
  margin-bottom: 15px; /* 圖片間距 */
  position: static; 
  height: auto;
  padding: 0;
}

#ct05 a.showMB img, #ct05-2 a.showMB img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain; 
  object-position: center center; 
  margin: 0 auto; 
}

  }

  @media only screen and (max-width: 420px) {

  }

  

  /*以下自訂*/
  .mySwiper{
    overflow: hidden;
  }
  .swiper-wrapper{
    display: inline-flex;
  }
  .mySwiper .swiper-slide{
    width: 389px;
    height: 453px;
  }
  .plus1Swiper{
	overflow: hidden;
}

/* 以下寵物用彈窗 */
.btn-group {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }
@media (max-width: 780px) {
  .kv-HoHo .innerbox {
    padding: 16px;
  }
  
  .new-village .innerbox {
    padding: 16px;
  }

  .Life-Quiz .innerbox {
  padding: 16px;
  }

  .Player-gift .innerbox {
  padding: 16px;
  }

  .AFTEE .innerbox {
    padding: 16px; 
  }

  .LifeCon {
    margin-top: 0px;
    margin-bottom: -30px;
}

.PlayerCon {
    margin-top: 40px;
}


.Player-1Con{
  background-image: url("../images/Player-gift-02bmb.png");
  padding: 3% 6%;
  flex-direction: column;
}

.Player-1Con div{
  width: 100%;
  padding: 16px 4px;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}

.Player-1Con div span{
  width: 100%;
}

.Player-1Con div a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48%;
  font-size: 15px;
  border-radius: 8px;
  padding: 8px 8px;
  font-weight: 600;
}

.Player-1Con div a:hover{
  background-color: none;
}
  
  /* 開啟這個背景色方便你盲測位置，調好後記得刪掉這行！ */
  .link01, .link02, .link03, .link04, .nv-link01, .nv-link02 {
   /* background-color: rgba(255, 0, 0, 0.5); */
  }

  .link01 {
      width: 30%; 
      height: 20%;
      bottom:75%;
      left: 15%;
  }

  .link02 {
      width: 30%;
      height: 20%;
      bottom: 75%;
      right: 15%;
  }

  .link03 {
      width: 30%;
      height: 20%;
      bottom: 50%;
      left: 5%;
  }

  .link04 {
      width: 30%;
      height: 20%;
      bottom: 50%;
      right: 5%;
  }

  .nv-link01 {
      width: 50%;
      height: 35%;
      bottom: 47%;
      left: 25%;
  }

  .nv-link02 {
      width: 88%;
      height: 33%;
      bottom: 3%;
      right: 5%;
  }

.rule{
  padding: 40px 16px 750px;

  .btn-group {
    width: 110%;
    left: -5%;
    margin-top: 16px;
  }
}

    .btn-group a {
      display: block;
      background: #333;
      color: #fff;
      text-decoration: none;
      border-radius: 6px;
      transition: 0.2s;
    }

    .btn-group a:hover {
      background: #555;
    }

    /* 遮罩 */
    .popup-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      z-index: 999;
      justify-content: center;
      align-items: center;
      padding: 20px;
      box-sizing: border-box;
    }

    .popup-overlay.active {
      display: flex;
    }

    /* 彈窗內容 */
    .popup-box {
      position: relative;
      width: 100%;
      max-width: 550px;
      background: #fff;
      border-radius: 12px;
      padding: 48px 24px 24px;
      box-sizing: border-box;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    .popup-box h2 {
      margin: 0 0 12px;
      font-size: 24px;
    }

    .popup-box p {
      margin: 0;
      line-height: 1.8;
      color: #444;
    }

    .popup-box img{
      width: 100%;
    }

    /* 關閉按鈕 */
    .popup-close {
      position: absolute;
      top: 12px;
      right: 14px;
      background: none;
      border: none;
      font-size: 24px;
      line-height: 1;
      cursor: pointer;
      color: #666;
    }

    .popup-close:hover {
      color: #000;
    }
  }