@media (max-width: 768px) {

body {
    background: url(../images/webM.jpg) no-repeat;  
    background-size:  cover;
}

body.lock,
html.lock {
  overflow: hidden;
}

header {
    z-index: 1001;
}



#navbar {
    z-index: 1002;
}

.logo {
height: 11.3vw;
}

.navWebBtn{
    display: none;
}

.navMbtn{
    display: block;
}

/* ===== 漢堡按鈕 ===== */
.menu-btn {
  width: 12vw;
        height: 12vw;
        border-radius: 50%;
        background: #fff;
        border: 1.2vw solid #000;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin: 1vw;
        z-index: 1001;
}

/* 三條線容器 */
.menu-btn span {
  position: absolute;
        width: 6vw;
        height: 1vw;
        background: #000;
        transition: 0.4s ease;
}

/* 上中下位置 */
.menu-btn span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-btn span:nth-child(2) {
  transform: translateY(0);
}

.menu-btn span:nth-child(3) {
  transform: translateY(7px);
}

/* ===== Active -> X ===== */
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
}


/* ===== 滿版彈窗 ===== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  pointer-events: auto;
  z-index: 1001;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: 
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s;
}

/* 開啟狀態 */
.popup.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ===== 彈窗內容（示意） ===== */
.popup-content {
display: flex;
flex-direction:column;
align-items: center;
}

.navbarBg{
    display: flex;
  flex-direction:column;
  z-index: 1001;
}

.nav-btn{
height: 15vw;
margin: 1.5vw;
}

.link-btn  {
height: 15vw;
margin: 1.5vw;
}

.sectionTop {
   height: 165vw;
        margin-bottom: 20vw;
}

.topBg{
  width: 100vw;
        height: 151vw;
        background: url(../images/topBgM.png) no-repeat;
        background-size: 100% auto;
        margin-top: -11vw;
}

.topC{
width: 59.5vw;
        height: 67vw;
        top: 28.5vw;
        left: 60vw;
}

.sectionTopLogo{
width: 93vw;
        height: 42vw;
        background: url(../images/topLogoM.png) no-repeat;
        background-size: 100% auto;
        top: 125vw;
        left: auto;
}

.sectionStory {
    height: 143vw;
    margin-bottom:20vw;
    justify-content: center;
}

.storyBox{
    display: flex;
        flex-direction: column-reverse;
        justify-content:flex-start;
        align-items: center;
}

.storyLeft{
    width: 109vw;
        height: 84vw;
}

.storyRight{
  width: 100vw;
        padding: 0 5vw;
        display: flex;
        align-items: center;
        margin-top: -1.5vw;
        margin-bottom: 7vw;
}

.storyRight h1{
color: #ffba00;
font-weight: 900;
    font-size: 6.5vw;
    line-height: 12vw;
}

.storyRight p{
    color: #ffba00;
    font-weight: 400;
    font-size: 3vw;
    line-height:4vw;
    margin: .5vw auto;
}

.sectionCharacter {
    height: 237vw;
        margin-bottom: 20vw;
        justify-content: flex-start;
}

.sectionTitle img {
            height: 11.5vw;
        }

        .swiper {
    width: 100%;
    height: 225vw;
    margin-top: 5vw;
    overflow: inherit !important;
}

         .slide { 
        flex-direction: column;
        background: url(../images/characterBgM.png) no-repeat;
        background-size: 100% auto;
        width: 96.4vw;
        height: 204.8vw;
        padding: 8vw 8vw;
        margin: 21vw 0 2vw 3vw;
        overflow: inherit;
        }

        .bgTitle, .bgTitleL, .bgTitleE {
        transform: translateY(-50%) rotate(-90deg);
        color: #000;
        font-size: 26vw;
        font-weight: 900;
        pointer-events: none;
        overflow: hidden;
        clip: rect(0, 67.4vw, 24.5vw, 0);
        }

        .bgTitle{
            position: absolute;
        right: -33vw;
        top: 180vw;
        }

        .bgTitleL{
            position: absolute;
            right: -25.6vw;
            top: 180vw;
        }

        .bgTitleE{
            position: absolute;
            right: -23.5vw;
            top: 180vw;
        }

        /* -------- 左側文字區 -------- */
        .slide-left, .slide-leftL, .slide-leftE  {
            width: 105%;
        padding-right: 0;
        }

        .slide-left h1 {
            font-weight: 900;
            font-size: 9.5vw;
            /* line-height: 5vw; */
           word-break: keep-all;
        }

        .slideTitleL {
            font-size: 9.5vw !important;
            /* font-size: 4.5vw !important;
            font-weight: 900 !important;
            letter-spacing: -.3vw; */
        }

        .slideTitleE {
            /* font-size: 4.5vw !important; */
            /* font-weight: 900 !important; */
            /* letter-spacing: -.3vw; */
        }

        .titleLine {
            width: 82vw;
        }

        .titleLine img {
            width: 100%;
        }

        .slide-left p {
            font-weight: 400;
            font-size: 3vw;
            line-height: 4vw;
            margin: .5vw auto;
        }

        .slide-left h2 {
            font-weight: 900;
            font-size: 5vw;
            line-height: 9vw;
            margin: 0.5vw auto;
        }

        .talent-box {
            /* display: flex; */
            gap: 20px;
            
        }

        .skill-icon {
            height: 19vw;
        margin: 2vw 2vw 2vw 0;
        
        }

        .skill-icon img {
            width: 100%;
        }

        .talent-text {
            font-size: 16px;
            line-height: 1.6;
        }
       
/* -------- 右側角色圖 -------- */
        .slide-right {
            width: 100%;
    height: 99vw;
            position: relative;
        }

        .slide-rightE {
            width: 33%;
            position: relative;
        }

        .character-imgN {
           height: 101.5vw;
        position: absolute;
        top: -2vw;
        left: -18vw;
        overflow: hidden;
        clip: rect(auto, 107vw, auto, auto);
        }

        .character-imgL {
           height: 77.5vw;
        top: -1.4vw;
        left: 15.5vw;
        }

        .character-imgE {
          height: 78.5vw;
        position: absolute;
        top: -2.4vw;
        left: -26.7vw;
        overflow: hidden;
        clip: rect(auto, 115vw, auto, auto);
        }

        .character-img img {
            width: 100%;
        }

/* -------- 垂直語錄 -------- */
        .vertical-quotes {
        top: 8vw;
        font-size: 4vw;
        letter-spacing: .5vw;
        gap: 1vw;
        }

        .vertical-quotes span {
            background: #000;
            padding: 0.2vw .1vw;
        }


        /* --- 自訂 Pagination 底部右側 --- */
        .swiper-pagination {
        position: absolute;
        top: 20vw !important;
        left: 17vw !important;
        width: 68vw !important;
        height: 20vw;
        gap: 1vw;
        z-index: 20;
        } 

        .sectionCampaign {
   height: 220vw;
        margin-bottom: 20vw;
        justify-content: flex-start;

}

.sectionCampaign h1 {
    width: 80vw;
    font-size: 5.3vw;
        line-height: 6.5vw;
        text-align: center;
        margin: 5vw 0;
}

.campaignBox{
 background: url(../images/campaignBgM.png) no-repeat;
        background-size: 100% auto;
        width: 98vw;
        height: 184.5vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 1vw;
        margin-left: -2vw;
}

.campaignLeft{
    display: flex;
    flex-direction: column;
}

.rp300{
    width: 80.2vw;
        height: 34vw;
    margin-left: 1vw;
}

.rp1000{
    width: 99.2vw;
        height: 38vw;
    margin-top: -1vw;
}

.rp500{
    width: 96.2vw;
        height: 27vw;
    margin-left: 3vw;
}

.campaignRight{
    display: flex;
    flex-direction: column;
}

.rpDefine{
    background: url(../images/rpDefineM.png) no-repeat;
        background-size: 100% auto;
        width: 100vw;
        height: 81.2vw;
        margin-left: 0vw;
        margin-top: -6.1vw;
}

.storeIcon {
   display: flex;
        justify-content: flex-end;
}

.storeBtn{
width: 34vw;
    margin: 1vw 1.5vw;
}

.storeBtn img{
    width: 100%;
}

.sectionVideo {
            margin-bottom: 20vw;
        height: 73vw;
}

.mask-image {
   display: none;
}

.Mmask-image {
     display: block;
   width: 100vw;       
        margin-top: -11vw;
        z-index: 1;
}

.youtube-frame {
  position: absolute;
        right: 0vw;
        top: 17.5vw;
        width: 95vw;
        height: 54vw;
}

.youtube-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.ytBtn {
    position: absolute;
        top: -3vw;
        left: 2vw;
        width: 17vw;
        height: 17vw;
}

footer img{
    height: 16vw;
}

footer p{
    font-size: 1.8vw;
}


}
