*{
    position:relative;
}

html{
    scroll-behavior: smooth;
}

/* 無形卻載入 */
.invisible {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

.hidden{
    display: none;
}

body{
    margin: 0px;
    padding: 0px;
    color: #000;
    font-weight: 400;
    text-align: left;
    letter-spacing: 1px;
    font-size:16px;
    padding-top: 90px;

    /* background-color: #f3ece6; */
    /* background-image: url(/images/bg.jpg?1); */

    background: linear-gradient( 
        to left,
        #9b9ad9 0%,   /* 右邊：淡紫色 */
        #c8d7f0 40%,  /* 中間：淡藍紫 */
        #e3fbff 100%  /* 左邊：淺藍幾乎接近白 */
    );


    background: linear-gradient(to left, #6563ab 0%, /* 右邊：淡紫色 */ #d0e9f0 40%, /* 中間：淡藍紫 */ #4abec8 100% /* 左邊：淺藍幾乎接近白 */);
   
}

body[page="blog"] nav .pc_header .wrap .btnWrap li[page="blog"]:after
,body[page="service"] nav .pc_header .wrap .btnWrap li[page="service"]:after
,body[page="page"] nav .pc_header .wrap .btnWrap li[page="page"]:after
,body[page="passport"] nav .pc_header .wrap .btnWrap li[page="passport"]:after
,body[page="login"] nav .pc_header .wrap .btnWrap li[page="login"]:after
{
    content: '';
    background-color: #4abec8;
    display: block;
    width: 85%;
    height: 3px;
    position: absolute;
    left: 7.5%;
    bottom: 0px;
}


body[page="passport"] .login_menu li[page="passport"]:after
,body[page="setting"] .login_menu li[page="setting"]:after
,body[page="orders"] .login_menu li[page="orders"]:after
{
    content: '';
    background-color: #83dde1;
    display: block;
    width: 85%;
    height: 3px;
    position: absolute;
    left: 7.5%;
    bottom: -10px;
}


input[type="text"],input[type="date"],input[type="password"],input[type="file"]{
    appearance: none;
    -webkit-appearance: none;
    width: calc(100% - 30px);
    font-size: 16px;
    padding: 15px;
    background-color: #ebebeb;
    border: none;
    border-radius: 50px;
    outline: none;

    &::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #cacaca;
    }
    &::-moz-placeholder { /* Firefox 19+ */
    color: #cacaca;
    }
    &:-ms-input-placeholder { /* IE 10+ */
    color: #cacaca;
    }
    &:-moz-placeholder { /* Firefox 18- */
    color: #cacaca;
    }


    &:focus{
        background-color: #d8d8d8;
    }
    
}
input[type="file"]{
    background-color: #FFF;
}

.formeach{
    margin-bottom: 15px;
    display: block;
    text-align: left;

    .label{
        margin-bottom: 5px;
    }
    .value{
        padding: 15px;
        color: #8f8f8f;
    }
}

.theformeach{
    margin-bottom: 15px;
    display: block;
    text-align: left;

    .label{
        margin-bottom: 5px;
    }

}

centerwrap{
	max-width: 1440px;
    position: relative;
    text-align: center;
    display: block;
    margin: auto;
}

centerwraps{
	max-width: 960px;
    position: relative;
    text-align: center;
    display: block;
    margin: auto;
}

li {
    list-style: none;
}


.m{
    display: none;
}
m{
    display: none;
}


a{
    display: contents;
    color: inherit;
}


/* table */
/* .................................. */

.table{


    .table_each{

        &.header{
            background-color: #cfd4e8;
        }
        
        
        .table_wrap{
            display: flex;
            width: 100%;
        }

        li {
            flex: 1;    
            padding: 10px;
            list-style: none;
            border-bottom: 1px solid #e2e2e2;

            &:nth-last-child(1) {
                flex: 2;
            }
            
        }

        &:nth-last-child(1) li{
                border-bottom: none;
        }
    }

}


section{

    h2.maintitle{
        text-align: center;
        color: #666666;
        letter-spacing: 2px;
        font-size: 30px;
        margin-block-end: 5px;
        font-weight: 500;
    }

    h2.intitle{
        color: #666666;
        margin-block-start: 0;
    }

    h3.entitle{
        text-align: center;
        color: #666666;
        margin-block-start: 0;
        font-size: 15px;
    }
    .horizon-icon{
        width: 80px;
        margin: auto;
        display: block;
        margin-bottom: 20px;
        margin-top: 10px;
    }
    .text{
        text-align: left;
        font-size: 18px;
        line-height: 1.8;
    }

    .btn{
        background-color: #FFF;
        width: 300px;
        margin: auto;
        border: 2px solid #a7a7d3;
        height: 50px;
        line-height: 50px;
        font-size: 18px;
        color: #a7a7d3;
        border-radius: 50px;
        cursor: pointer;
        text-align: center;
        user-select: none;

        &:active{
            line-height: 54px;
        }

        &.purple{
            background-color: #a7a7d3;;
            color: #FFF;
        }
    }

    .sbtn{
        width: 240px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        display: inline-block;
        margin-top: 6px;
        background-color: #a7a7d3;
        margin-bottom: 6px;
        border-radius: 50px;
        text-align: center;
        color: #FFF;
        cursor: pointer;

        &:hover{
            background-color: #8585b9;
        }

        &:active{
            line-height: 44px;
        }
    }

    select.small{
        width: 240px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        display: inline-block;
        margin-top: 6px;
        background-color: #d0d0d0;
        margin-bottom: 6px;
        border-radius: 50px;
        text-align: center;
        color: #000000;
        border: none;
        border-right: 15px solid #d0d0d0;
        padding-left: 27px;
    }
}


body[login="true"]{

    nav{
        .pc_header .wrap .btnWrap{

            li[page="login"]{
                display: none;
            }
            li[page="setting"]{
                display: inline-block;
            }


        }

        .m_header .btnWrap .in{

            li[page="login"]{
                display: none;
            }
            li[page="setting"]{
                display: inline-block;
            }
        }

    }
}

nav{

    .pc_header{

        .wrap{
            position: fixed;
            width: 100%;
            height: 90px;
            z-index: 10;
            left: 0px;
            top: 0px;
            background-color: #FFF;


            .logo{
                height: 60px;
                top: 13px;
                left: 30px;
                position: absolute;
            }

            .btnWrap{
                left: 400px;
                position: absolute;
                top: 0px;


                


                &.right{
                    right: 20px;
                    left: auto;


                    li[page="login"]{
                        display: inline-block;
                    }
                    li[page="setting"]{
                        display: none;
                    }
                }
                

                li{
                    display: inline-block;
                    list-style: none;
                    color: #272828;
                    padding-left: 20px;
                    padding-right: 20px;
                    letter-spacing: 1px;
                    height: 90px;
                    line-height: 90px;
                    cursor: pointer;
                    vertical-align: middle;
                    margin-right: -5px;
                    font-size: 16px;
                    padding-left: 15px;
                    padding-right: 15px;

                    &:hover{
                        color: #108590;
                    }

                    &.btn{
                        background-color: #666666;
                        color: #FFF;
                        border-radius: 50px;
                        padding-left: 25px;
                        padding-right: 25px;
                    }
                }

                .btnSubWrap{
                    background-color: #6563ab;
                    width: 180px;
                    min-height: 60px;
                    position: absolute;
                    top: 90px;
                    margin-left: -30px;
                    padding-top: 15px;
                    padding-bottom: 15px;

                    .subeach{
                        line-height: 50px;
                        cursor: pointer;
                        color: #FFF;

                        &:hover{
                            background-color: #48468f;
                        }
                    }
                }
            }

        }

    }

    .m_header{
        display: none;


        &.active{
            .btnWrap{
                right: 0;

            }

            .menuBtn .in li{
                    background-color: #FFF;
            }


            .wrap{
                

                .menuBtn{
                    .in{ 
                    
                        li{
                            background-color: #FFF;
                            height: 2px;
                        }
                        li[nth="1"] {
                            transform: rotate(45deg)  translateY(-6px);
                            transform-origin: left bottom;
                        }
                        li[nth="2"] {
                            width: 0%;
                        }
                        li[nth="3"] {
                            transform: rotate(-45deg)  translateY(6px);
                            transform-origin: left bottom;
                        }
                    }
                }

            }

            .btnWrap-cancel{
                display: block;
            }
            
        }
        

        .wrap{
            top: 0;
            position: fixed;
            background-color: #FFF;
            width: 100%;
            height: 65px;
            z-index: 10;
            z-index: 11;

            .logo{
                height: 40px;
                top: 13px;
                left: 13px;
                position: absolute;
            }

            

        }

        .menuBtn {
                position: fixed;
                top: 1px;
                right: 2px;
                width: 60px;
                height: 60px;
                z-index: 15;
                cursor: pointer;

                .in {
                    position: absolute;
                    top: 20px;
                    left: 10px;
                    width: 40px;
                    height: 21px;


                    

                    li {
                        background-color: #585858;
                        height: 1px;
                        list-style: none;
                        position: absolute;
                        width: 100%;
                        -webkit-transition: all 0.3s;
                        -moz-transition: all 0.3s;
                        -o-transition: all 0.3s;
                        transition: all 0.3s;
                    }

                    li[nth="1"] {
                        top: 0px;
                    }
                    li[nth="2"] {
                        top: 50%;
                        margin-top: -1.5px;
                        width: 50%;
                        right: 0;
                    }
                    li[nth="3"] {
                        bottom: 0px;
                    }
                    
                }
            }

        .btnWrap{
            background-color: #6563ab;
            position: fixed;
            z-index: 10;
            width: 65%;
            height: 100vh;
            right: -80%;
            z-index: 14;
            top: 0;

            -webkit-transition: right 0.3s;
            -moz-transition: right 0.3s;
            -o-transition: right 0.3s;
            transition: right 0.3s;

            .in{
                padding: 30px;
                padding-top: 70px;
                padding-left: 0px;
                padding-right: 0px;


                hr{
                        opacity: 0.3;
                }

                .btnSubWrap{
                    background-color: #44419a;
                    color: #FFF;
                    padding-top: 10px;
                    padding-bottom: 10px;
                    margin-top: 5px;
                    margin-bottom: 5px;

                    .subeach{
                        padding-bottom: 8px;
                        padding-top: 8px;
                        color: #FFF;
                        padding-left: 30px;
                        padding-right: 30px;
                        font-weight: 500;
                        font-size: 18px;
                    }
                }


                li{
                    padding-bottom: 8px;
                    padding-top: 8px;
                    color: #FFF;
                    padding-left: 30px;
                    padding-right: 30px;
                    font-weight: 500;
                    font-size: 18px;
                }
            }
        }

        .btnWrap-cancel{
            width: 100%;
            height: 100%;
            position: fixed;
            z-index: 11;
            background-color: #000;
            opacity: 0.5;
            display: none;
            top: 0;
        }

        
    }

}


.login_menu{
    padding: 10px;
    background-color: #6563ab;
    color: #FFF;
    text-align: center;

    li{
        display: inline-block;
        padding: 10px;
    }
}

footer{
    padding: 50px;
    background-color: #585858;

    .copyright {
        text-align: center;
        color: #FFF;
        font-size: 13px;
    }
}


section.demo{

    min-height: 800px;

}

.bg1{
    background-image: url(/images/biglogo.png?);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: right -10% top 10%;
    padding: 1px;
}


section.login{


    &[type="login"] .wrap[type="login"] , &[type="register"] .wrap[type="register"]{
        display: block;
    }
    
    

    .wrap{
        background-color: #FFF;
        padding: 50px;
        width: 400px;
        margin: auto;
        margin-top: 50px;
        margin-bottom: 50px;
        max-width: calc(100% - 160px);

        display: none;

        h1{
                text-align: center;
                margin-block-start: 0;
                font-size: 27px;
        }
        .btn{
            margin-top: 20px;
        }
        
    
    }

    .main-logo{
        width: 140px;
        margin: auto;
        display: block;
        margin-bottom: 30px;
    }

    .pets_list{
        background-color: #f9f9f9;
        padding: 25px;
    }
}



/* noteAlert  */
/* ...............................  */
.noteAlert{
    display: none;

    background-color: #0000009c;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999;
    margin-left: -150px;
    margin-top: -50px;
    border-radius: 10px;
    text-align: center;
}
.noteAlert span{
            color: #FFF;
            font-size: 50px;
            margin-top: 17px;
}

.noteAlert .text {
        color: #FFF;
        text-align: center;
        margin: 15px;
        font-size: 18px;
        margin-top: 5px;
}


article{
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
}



section.page{
    padding-top: 30px;
    padding-bottom: 60px;

    .page_info{
        background-color: #ffffffc9;
        padding: 50px;
        padding-top: 30px;
        margin-left: 20px;
        margin-right: 20px;

        .photo{
            width: 600px;
            max-width: 100%;
        }
        h2.thetitle{
            margin-block-start: 0;
        }
    }

}


/* ytModal */
/* ............................ */
.ytModal{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.ytModal.isOpen{
    display: block;
}

.ytModal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

/* 中央內容 */
.ytModal__content{
    position: relative;
    width: min(900px, 92vw);
    margin: 10vh auto 0;
    z-index: 1;
}

/* 16:9 */
.ytModal__ratio{
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.ytModal__ratio iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* 右上角關閉 */
.ytModal__close{
    position: absolute;
    right: -10px;
    top: -10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}
/* ............................ */



/* ............................................................ */
@media screen and (max-width: 1240px) {

    .pc{
        display: none;
    }
    pc{
        display: none;
    }
    .m{
        display: initial;
    }
    m{
        display: initial;
    }

    body{
        /* background-image: url(/images/bg_m.jpg?1); */
        padding-top: 60px;
    }


    nav .pc_header{
        display: none;
    }
    nav .m_header{
        display: block;
    }

    section {
        h2.maintitle {
            letter-spacing: 1px;
            font-size: 21px;
        }
    }
    section {
        h3.entitle {
            font-size: 12px;
        }
    }
    section {
        .horizon-icon {
            width: 65px;
        }
    }
    section {
        .text {
            text-align: left;
            font-size: 15px;
            line-height: 1.6;
            /* padding-left: 30px;
            padding-right: 30px; */
        }
    }

    section {
        .btn {
            max-width: 70%;
            font-size: 16px;
            height: 45px;
            line-height: 45px;
        }
    }

    section.login {
        .wrap {
            background-color: #FFF;
            padding: 25px;
            width: 400px;
            margin: auto;
            margin-top:30px;
            margin-bottom: 50px;
            max-width: calc(100% - 100px);
        }
    }

    section.login {
        .main-logo {
            width: 110px;
            margin: auto;
            display: block;
            margin-bottom: 14px;
        }
    }


    /* table */
    /* .................................. */
    .table{

        .header{
            display: none;
        }


        .table_each {
            border-bottom: 1px solid #e2e2e2;

            .table_wrap {
                flex-direction: column; 
                padding: 10px 0;
            }

            li {
                flex: none;
                display: flex;
                justify-content: space-between;
                padding: 8px 12px;
                border-bottom: none;


            }

            li::before {
                content: attr(data-label);
                color: #6563ab;
                font-weight: bold;
            }


            &:nth-last-child(1) {
                    border-bottom: none;
            }
        }

    }

    section.page {
        padding-top: 10px;
        
        .page_info {
            background-color: #ffffffc9;
            padding: 30px;
            padding-top: 10px;
            margin-left: 20px;
            margin-right: 20px;

            article{
                text-align: left;
                font-size: 16px;
                line-height: 1.6;
            }
        }
    }

    
}