﻿body {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    background-position: top;
    overflow-y: scroll;
    font-family: "微軟正黑體";
}

ul, h1, h2, h3 { /* 取消ul預設的內縮及樣式 */
    margin: 0;
    padding: 0;
    list-style: none;
}
/*超連結樣式*/
a:link, a:visited {
    color: #903;
    text-decoration: none;
    font-weight: bold;
}

a:hover, a:active {
    color: #903;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #000000;
}

/* 跳到主要區塊#C */
.jump-only {
    position: absolute;
    background-color: #6A3906;
    padding: 0.5rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    margin-top: 0;
    z-index: 99;
}

.jump-only-focusable:active,
.jump-only-focusable:focus {
    left: 0;
    position: absolute;
    color: yellow;
    width: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    margin-bottom: 0.5rem;
    margin-left: 0.1rem;
    z-index: 99;
}

input:focus, .DDList:focus, input[checkbox]:focus, textarea:focus {
    background-color: #fff5bd;
    outline: 2px solid #000000;
}

.Logo > h1 > a:focus {
    outline: none;
}

    .Logo > h1 > a:focus > img {
        outline: 2px solid #000;
        vertical-align: middle;
    }

.search input[type=text] {
    font-size: 1rem;
    height: 1.5rem;
    vertical-align: top;
    border-radius: 0;
    padding: 0 0;
    line-height: 1rem;
}

.search {
    border: 1px solid #000;
    display: inline-block;
    background-color: #FFF;
    height: 1.5rem;
    margin: 0.5rem 0;
    line-height: 0;
}

    .search > input[type=text].searchTxt {
        border: 0;
        width: 13rem;
    }

    .search > a {
        display: inline-block;
        vertical-align: middle;
        height: 1.5rem;
        width: 2.5rem;
        background: #595656;
        border: 0;
    }

        .search > a > img {
            width: 100%;
            margin: 0 0 4px 0;
            padding: 0;
            vertical-align: middle;
            border: 0;
        }

@media screen and (min-width:875px) {
    header {
        width: 100%;
        text-align: center;
        background: url(../images/Templates/Logo_BG.png) center top;
        background-repeat:no-repeat;
        height: 265px;
    }

    .Logo {
        float: left;
         padding-left:90px;
    }
           .slider_container {
            margin: 0px auto;
            width:429px;
            height:261px;
            position: relative;
            background:url(../images/Templates/Img01.png);
        }

            .slider_container div {
                position: absolute;
                top: 0;
                left: 0;
                opacity: 0;
                /*filter: alpha(opacity=0);*/
            }

            .slider_container div {
                -webkit-animation: round 8s infinite;
                animation: round 8s infinite;
  /*-moz-animation-direction: alternate;*/
            }
        /*設定動畫週期*/
        @-webkit-keyframes round {
            1% {
                opacity: 1;
            }

            25% {
                opacity: 1;
            }
          30% {
                opacity: 0;
            }
        }

        @keyframes round {
            1% {
                opacity: 1;
            }

           25% {
                opacity: 1;
            }
           30% {
                opacity: 0;
            }
        }
        /*每張圖片進場時間相隔5秒*/
        .slider_container div:nth-child(2) {
            -webkit-animation-delay: 0s;
            animation-delay: 0s;
        }

        .slider_container div:nth-child(3) {
            -webkit-animation-delay:4s;
            animation-delay: 4s;
        }


    /* ~~ 上方menu~~ */
    .header_menu {
        width: 100%;
        text-align: center;
        background-color: #6A3906;
        padding: 0.3rem 0;
    }

        .header_menu ul {
            margin: 0;
            padding: 0;
            font-size: 0;
        }

            .header_menu ul li {
                margin: 0px;
                font-size: 0;
                padding: 0;
                display: inline-block;
                width: 120px;
                vertical-align: middle;
                text-align:center;
            }

    .h_menu {
        width:77rem;
        margin: 0 auto;
    }

        .h_menu > div.Nav > ul li > a:link, .h_menu > div.Nav > ul li > a:visited {
            display: inline-block;
            font-size: 1.2rem;
            color: #FFF;
            vertical-align: middle;
        }

        .h_menu > div.Nav > ul li > a:focus {
            outline: 2px solid #ffffff;
        }

        .h_menu > div.Nav > ul li > a:hover {
            text-decoration-line: underline;
        }

        .h_menu > div > a.top_dot {
            color: #FFF;
            font-size: 0.3rem
        }

            .h_menu > div > a.top_dot:focus {
                outline: 2px solid #FFF;
            }

    .Nav {
        position: relative;
        z-index: 10;
        width:75rem;
        text-align:left;
        display: inline-block;
    }

        .Nav #Nav_menu {
            vertical-align: text-top;
            display: inline-block;
            margin: 0 auto;
        }

            .Nav #Nav_menu .NavLi {
                position: relative;
                text-align: center;
            }

        .Nav .NavLi .SubNav {
            position: absolute;
            top: 27px;
            height: auto;
            padding-bottom: 6px;
            padding-top: 6px;
            border-top: 0.2rem solid #a74e42;
            display: none;
            background-color: #F7E8D5;
            z-index: 99;
            text-align: center;
        }

            .Nav .NavLi .SubNav li {
                line-height: 2rem;
            }

    .h_menu > div.Nav > ul li > ul li > a:link, .h_menu > div.Nav > ul li > ul li > a:visited {
        color: #613030;
    }

    .h_menu > div.Nav > ul li > ul li > a:focus {
        outline: 2px solid #000;
    }

    /* ~~ 手機上方menu~~ */
    .S_header_menu {
        display: none;
    }

    .pic_banner {
        width: 100%;
        background: #F8EACD;
        border-bottom:.2rem solid #DFC376;
    }

    .container {
        width: 1180px;
        margin: 0 auto;
    }

    /*內文左邊*/
    .middleL {
        display:inline-block;
        min-width: 20%;
        text-align: center;
        vertical-align:top;
    }

        .middleL > ul {
            width: 70%;
            margin: 0 auto;
            font-size: 1.3rem;
            line-height: 2.5rem;
            border: 2px solid #6A3906;
        }

            .middleL > ul > li a {
                display:block; 
                color:#231815;            
            }
            .middleL > ul > li:first-child {
                color: white;
                font-size: 1.5rem;
                background: #6A3906; /* Old browsers */
            }
            .middleL > ul > li {
                font-weight: bolder;
                border-top:1px dotted #727171;
                color:#281C1A;         
            }
            .middleL > ul > li a:hover, .middleL > ul > li a:active {
                color:#AF1C1A;
                background-color:#F7E8D5;
                text-decoration: none;
            }

                .middleL > ul > li a:focus {
                    color: #AF1C1A;
                    background-color: #F7E8D5;
                    text-decoration: none;
                    outline: none;
                }

    /*內文中間*/
    .middleC {
        display: inline-block;
        padding: 1rem;
        width: 73%;
        min-height: 500px;
    }

    .container_top {
        color: #404040;
        margin-bottom: 1rem;
    }

    .middle_P {
        float: left;
    }

        .middle_P > a {
            color: #696969;
            word-break: keep-all;
            white-space: nowrap;
        }

    .middle_K {
        float: right;
    }

    .Title_L {
        float: left;
        background: url(../images/Templates/Items_R.png) no-repeat left;
    }

        .Title_L h2 {
            font-size: 1.8rem;
            font-weight: bold;
            color: #C73828;
            margin-left: 3.5rem;
            line-height: 3rem;
        }

    .Title_R {
        float: right;
        line-height: 2.8rem;
    }

        .Title_R a img {
            vertical-align: middle;
        }

    .hr_style {
        border: 0;
        border-bottom: 0.2rem solid #AD8969;
        font-size: 0;
        margin-top: 0rem;
    }

    .hr_style2 {
        border: 0;
        border-bottom: 0.4rem solid #E2D2C2;
        font-size: 0;
        margin-top: 0.2rem;
    }

    .Matter {
        margin-top: 1rem;
        line-height: 1.5rem;
    }

    .container_clear {
        clear: both;
        text-align: right;
        padding-right: 2rem;
    }

    /*頁尾清單內文格式*/
    footer {
        width: 100%;
        background-color: #EBAA41;
        font-size: 1rem;
        text-align: center;
        color: #40220F;
        font-family: "微軟正黑體";
        line-height: 2rem;
    }

        /*下方功能區域-最後更新日*/
        nav{
            background-color:#F2D994;
        }

        footer nav ul > li {
            display: inline-block;
            font-family: "微軟正黑體";
            color: #B71C25;
            font-size: 1.1rem;
            font-weight: bold;
            line-height: 2.5rem;
        }

            footer nav ul > li > a:link, footer nav ul > li > a:visited {
                color: #B71C25;
            }

            footer nav ul > li a:focus {
                outline: 2px solid #AD392E;
            }

    address {
        width:60%;
        padding-bottom: .3rem;
        text-align: center;
        margin: 0 auto;
        display: inline-block;
        line-height: 1.7rem;
    }

    /*地址*/
    footer address div {
        font-style: normal;
    }

        footer address div.ad {
            font-weight: bolder;
        }

    footer address .ad div {
        display: inline-block;
    }
}
@media screen and (max-width:1255px) and (min-width:874px) {
    .h_menu {
        width: 95%;
        text-align: left;
        margin: 0 auto;
    }

    .Nav {
        width: 95%;
    }
    .container {
        width: 100%;
    }
    .Logo {
        float: left;
        max-width: 50%;
         padding-left:0rem
    }
}
@media screen and (max-width:995px) and (min-width:875px) {
    /*展開／收合功能選單*/
    div.paneD {
        font-size: 1rem;
        width: 95%;
    }

        div .paneD > div.DD {
            width: 6.5rem;
        }
}

@media screen and (max-width:874px) {
    header {
        width: 100%;
        height:9rem;
        padding: 0.5rem 0;
        background: url(../images/Templates/Logo_BG.png) center top;
        background-size: cover;
    }

    .Logo img {
        max-width: 75%;
        vertical-align: middle;
        text-align:center;
    }
    .slider_container{
         display: none;
    }

    .header_menu {
        display: none;
    }

    .pic_banner {
        display: none;
    }

    /* ~~ 手機上方menu~~ */
    .S_header_menu { /* 手機選單 */
        display: block;
        width: 100%;
        text-align: right;
        z-index: 3;
    }

    .S_menu > div > a:focus {
        outline: none;
    }

        .S_menu > div > a:focus > .nav-mobile-button {
            outline: 2px solid #ffffff;
        }

    .R_menu {
        width: 100%;
        font-weight: bold;
        text-align: right;
        background: #6A3906;
        line-height: 5px;
        padding-bottom: 2px;
        border-top: 0.1rem solid #E2D2C2;
        border-bottom: 0.3rem solid #AD8969;
    }

    .nav-mobile-button {
        display: inline-block;
        position: relative;
        background-color: transparent;
        background-image: none;
        border: #002425;
        padding: 5px 10px 5px 5px;
        width: 1.4rem;
    }

        .nav-mobile-button .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            overflow: hidden;
        }

        .nav-mobile-button .icon-bar {
            display: inline-block;
            width: 1.6rem;
            height: 0.3rem;
            margin-right: -2px;
            background: #FFF;
        }

    .accordion {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    .link {
        position: relative;
        background: #F8EACD;
        font-size: 1.2rem;
        font-weight: bold;
        text-align: left;
        letter-spacing: 0.1rem;
        padding: 0.5rem;
        padding-left: 1rem;
        border-bottom: 1px solid #DFC376;
    }

        .link a {
            color: #000000;
        }

            .link a:focus {
                outline: 2px solid #000000;
            }

        .link input:focus {
            outline: 2px solid #000000;
        }

    .link1 a {
        display: block;
    }

        .link1 a:focus {
            outline: none;
        }

            .link1 a:focus > span {
                outline: 2px solid #000000;
            }

    .link span.arrow {
        position: absolute;
        right: 10px;
        margin-top: 0.1rem;
        width: 10px;
        height: 10px;
        border-top: 3px solid #000000;
        border-left: 3px solid #000000;
        transform: rotate(-137deg);
    }

    .submenu {
        background: #F9F2EC;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

        .submenu > li > a {
            color: #333333;
            display: block;
        }

            .submenu > li > a:focus {
                outline: none;
            }

                .submenu > li > a:focus > span {
                    outline: 2px solid #000000;
                }

        .submenu li {
            border-bottom: 1px solid #cccccc;
            font-size: 1rem;
            font-weight: bold;
            letter-spacing: 2px;
            padding: 0.5rem;
            padding-left: 2.2rem;
            text-align: left;
        }

    .middleL {
        display: none;
    }

    .middleC {
        width: 95%;
        margin: 0 auto;
        min-height: 450px;
    }

    .container_top {
        margin: 0.5rem 0;
    }

    .middle_P > a {
        color: #696969;
        word-break: keep-all;
        white-space: nowrap;
    }

    .middle_K {
        display: none;
    }

    .Title_L {
        float: left;
        background: url(../images/Templates/Items_R.png) no-repeat left;
        padding-left: 2rem;
    }

        .Title_L h2 {
            font-size: 1.8rem;
            font-weight: bold;
            color: #D53829;
            margin-left: 2rem;
            line-height: 2.8rem;
        }

    .Title_R {
        float: right;
        line-height: 2.6rem;
    }

        .Title_R a img {
            vertical-align: middle;
        }

    .hr_style {
        border: 0;
        border-bottom: 0.2rem solid #AD8969;
        font-size: 0;
        margin-top: 0rem;
    }

    .hr_style2 {
        border: 0;
        border-bottom: 0.4rem solid #E2D2C2;
        font-size: 0;
        margin-top: 0.2rem;
    }

    .Matter {
        margin-top: 1rem;
        line-height: 1.5rem;
    }

    .container_clear {
        clear: both;
        text-align: right;
        padding-right: 2rem;
    }

    .flip {
        display: none;
    }


    /*頁尾清單內文格式*/
    footer {
        background-color: #EBAA41;
        font-size: .9rem;
        text-align: center;
        color:#40220F;
        font-family: "微軟正黑體";
        line-height: 1.2rem;
    }

        /*下方功能區域*/
        footer nav {
            display: none;
        }

    address {
        padding-bottom: .5rem;
        text-align: center;
        width: 90%;
        margin: 0 auto;
    }

    /*地址*/
    footer address div {
        font-style: normal;
    }

        footer address div.ad {
            font-weight: bolder;
        }

    footer address .ad div {
        display: inline-block;
    }
}
