/* ==================================================
   Header（Tablet）
================================================== */

@media (min-width:821px) and (max-width:1024px){

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

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    background:#fff;

    z-index:999;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

    transition:.3s;

}

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

.header-main{

    display:flex;

    justify-content:space-between;

    align-items:center;

    max-width:100%;

    margin:0 auto;

    height:80px;

    padding:0 20px;

}

/* ==================================================
   Logo
================================================== */

.header-logo{

    opacity:1;

    transform:none;

    animation:none;

    transition:.3s;

}

.header-logo img{

    display:block;

    height:60px;

    width:auto;

}

.header-logo:hover{

    transform:scale(1.05);

}

header.shrink .header-logo{

    transform:scale(.92);

}

/* ==================================================
   Menu 1
================================================== */

.header-menu-1{

    display:flex;

    align-items:center;

    gap:0;

    height:100%;

}

/* ==================================================
   Menu Button
================================================== */

.menu-btn{

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    height:80px;

    padding:0 16px;

    background:none;

    border:none;

    color:#333;

    text-decoration:none;

    font-size:15px;

    font-weight:500;

    white-space:nowrap;

    cursor:pointer;

    transition:.3s;

}

.menu-btn:hover{

    color:#0077ff;

}

.menu-btn.active{

    color:#0077ff;

}

.menu-btn::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:16px;

    width:0;

    height:2px;

    background:#0077ff;

    transform:translateX(-50%);

    transition:.3s;

}

.menu-btn:hover::after,
.menu-btn.active::after{

    width:60%;

}

/* ==================================================
   Menu 2
================================================== */

.header-menu-2{

    width:100%;

}

/* ==================================================
   Sub Navigation
================================================== */

.sub-nav{

    display:flex;

    justify-content:center;

    gap:35px;

    background:#f4f4f4;

    overflow:hidden;

    max-height:0;

    opacity:0;

    transition:
        max-height .35s,
        opacity .35s,
        padding .35s;

}

.sub-nav.show{

    max-height:180px;

    padding:18px;

    opacity:1;

}

.sub-nav.hide{

    max-height:0;

    padding:0;

    opacity:0;

}

.sub-nav a{

    position:relative;

    display:flex;

    flex-direction:column;

    align-items:center;

    color:#333;

    text-decoration:none;

    font-size:13px;

    opacity:0;

    transform:translateY(10px);

    animation:submenuFade .4s ease forwards;

    transition:.3s;

}

.sub-nav a:hover{

    color:#0077ff;

}

.sub-nav a::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:-5px;

    width:0;

    height:2px;

    background:#0077ff;

    transform:translateX(-50%);

    transition:.3s;

}

.sub-nav a:hover::after{

    width:100%;

}

.icon{

    display:block;

    margin-bottom:5px;

    font-size:22px;

}

/* ==================================================
   TOP Button
================================================== */

#topBtn{

    right:18px;

    bottom:18px;

}

#topBtn img{

    width:60px;

    height:60px;

}

}