@charset "utf-8";

/*電腦選單*/

#header_nav {
    position: fixed;
    top:0;
    left:0;
    opacity: 0;

    width: 100%;
    height: 50px;
    z-index: 9999;

    background-color: #222222;
    color: #fff;

    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: all 0.4s ease-in-out;
}

#header_nav.show { 
    transform: translateY(0);
    opacity: 1; 
}

#header_nav .header_list{
    width: 80%;
    height: 100%; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

#header_nav .header_list li{
    margin-left: 30px;
    letter-spacing: 3px;
}

#header_nav .header_list .studio_name{
    font-size: 16px;
    font-weight: bold;
    order: -1;
    margin-right: auto;
    margin-left: 0;
}

#header_nav .header_list .header_li{
    font-size: 16px;
    order: 1;
    height: auto; 
    display: block;
}

#header_nav .header_list .forms_bt {
    font-size: 16px;
    width: 100px;
    order: 1;
    height: auto; 

    display: flex;
    justify-content: center;
    align-items: center;
    
    margin-left: 30px;
    padding: 5px;
    border-radius: 10px;
    background-color: #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s ease;
}

#header_nav .header_list .forms_bt a{
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #434343;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    font-weight: bold;
    transition: 0.3s ease;

    letter-spacing: 3px;
    padding-left: 3px;
}

#header_nav .header_list .forms_bt:hover{
    background-color: #434343;
}

#header_nav .header_list .forms_bt:hover a{
    color: #FFF;
}

#header_nav .header_list .forms_bt:active {
    transform: scale(0.95);
}

#header_nav .header_list .header_li a {
    text-decoration: none;
    color: #FFF;
    position: relative;
    display: inline-block; 
    padding-bottom: 1px;
}

#header_nav .header_list .header_li a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0; 
    height: 2px;
    background-color: #FFF;
    transition: width 0.3s ease; 
}

#header_nav .header_list .header_li a:hover::after{
    width: 100%;
}

/*手機選單*/

#header_phone {
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 50px;
    background-color: #222222;
    z-index: 9999;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

#header_phone input{
    position: absolute;
    top: -1100px;
    left: -1400px;
    opacity: 0;
}

#header_phone .bt{
    padding: relative;
    
    width: 25px;
    height: 20px;

    z-index: 10000;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

#header_phone .bt span{
    position: relative;

    display: block;
    width: 100%;
    height: 3px;

    left: 0;

    border-radius: 9px;
    background-color: #acacac;

    opacity: 1;
    transition: all 0.5s ease-in-out;
    z-index: 10000;
}

#header_phone input:checked~.bt span{
    background-color: #666;
}

#header_phone input:checked~.bt span:nth-child(1){
    transform: translateY(8.5px) rotate(-135deg)
}

#header_phone input:checked~.bt span:nth-child(2){
    transform: translateX(30px);
    opacity: 0;
}

#header_phone input:checked~.bt span:nth-child(3){
    transform: translateY(-8.5px) rotate(135deg)
}

#header_phone .header_list{
    position: fixed;

    top: 0;
    left: 0;

    padding-top: 50px;

    width: 200px;
    height: 100vh;

    transform: translateX(-100%);

    background-color: #ededed;

    border: none;
    margin: 0;

    list-style: none;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 9500;
}

#header_phone input:checked~.header_list{
    transform: translateX(0);
    box-shadow: 0 5px 10px #666;
}

#header_phone .header_list li{
    font-size: 20px;
    font-weight: bold;
    margin: 10px 30px;
    letter-spacing: 3px;
    transform: translateX(-50px);
    opacity: 0;

    text-align: right;
    text-decoration: none;
}

#header_phone .studio_name{
    font-size: 20px;
    position: absolute;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    list-style: none;
    letter-spacing: 3px;
}

#header_phone input:checked~.header_list li{
    transition: all 0.2s ease-out calc(var(--i) * 80ms + 200ms);

    transform: translateX(0px);
    opacity: 1;
}

#header_phone .header_list .header_li a:hover::after{
    width: 100%;
}

#header_phone .header_list .header_li a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0; 
    height: 2px;
    background-color: #434343;
    transition: width 0.3s ease; 
}

#header_phone .header_list a{
    display: block;
    position: relative;
    display: inline-block; 
    padding-bottom: 5px;
}

#header_phone a {
    text-decoration: none;
    color: #434343;
}

#header_phone .studio_name a{
    font-weight: bold;
    text-decoration: none;
    color: #FFF;
}

/*自適應切換顯示*/

@media (min-width: 768px) {
    
    #header_phone{
        display: none;
    }
    #header_nav{
        display:flex;
    }

}

@media (max-width: 767px) {
    
    #header_nav {
        display: none; 
    }
    #header_phone{
        display: flex;
    }

}