﻿body {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    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: #B22222;
    text-decoration: none;
    font-weight: bold;
}

a:hover, a:active {
    color: #B22222;
    text-decoration: underline;
}

/* 跳到主要區塊#C */
.jump-only {
    float: left;
    background-color: #39276D;
    position: absolute;
    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 {
    display:inline-block;
    color: yellow;
    position: static;
    width: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    margin-bottom: 0.5rem;
    margin-left: 0.1rem;
    z-index: 99;
}

a:focus { /*TAB文字*/
    outline: 2px solid #903;
}

.accordion {
    list-style-type: none;
    margin: 0;
    padding: 0;
    padding-bottom: 0.5rem;
}

.search input[type=text] {
    font-size: 1rem;
    height: 2rem;
    vertical-align: top;
    border-radius: 0;
    padding: 0 0;
    line-height: 1rem;
}

.search {
    border: 1px solid #000;
    display: inline-block;
    background-color: #FFF;
    height: 2rem;
    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: 2rem;
        width: 2.5rem;
        background: #413c3c;
        border: 0;
    }

        .search > a > img {
            font-size: 0;
            width: 100%;
            margin: 2px 0;
            padding: 0;
            vertical-align: middle;
            border: 0;
        }

address a:focus {
    outline: 2px solid #ffffff;
}

input:focus, .DDList:focus, input[checkbox]:focus, textarea:focus {
    background-color: #fff5bd;
    outline: 2px solid #903;
}

header {
    background: url(../images/Templates/LogoT_BG.png) repeat-x bottom;
    font-size: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.2rem;
}

footer {
    background: linear-gradient(to right, #90569F, #52217F, #52217F,#90569F);
    border-bottom: 3px #b35123 solid;
    text-align: center;
    padding: 0.8rem 0;
}

    footer > ul {
        list-style-type: none;
    }

        footer > ul > li {
            display: inline-block;
            color: #dee177;
            font-weight: bold;
            letter-spacing: 2px;
            margin:0.2rem 0; 
        }

            footer > ul > li a:link, footer > ul > li a:visited {
                text-decoration: none;
                color: #dee177;
                font-weight: bold;
            }

            footer > ul > li a:hover {
                text-decoration: underline;
            }

            footer > ul > li a:focus {
                outline: 2px #dee177 solid;
            }

    footer > address > div {
        line-height: 1.5rem;
        font-style: normal;
        color: #FFF;
        text-align: center;
        font-weight: bold;
    }

        footer > address > div > span {
            display: inline-block;
            margin-right: 1rem;
        }

@media screen and (min-width:875px) {
    .Logo {
        margin-left: 20vw;
    }

        .Logo > h1 > a:focus {
            outline: none;
        }

            .Logo > h1 > a:focus > img {
                outline: 2px solid #000;
                vertical-align: middle;
                max-width: 80%;
            }

    /* ~~ 上方menu~~ */
    .header_menu {
        text-align: center;
        background-color: #794389;
        padding: 0.4rem 0;
    }

        .header_menu > ul {
            margin: 0;
        }

            .header_menu > ul > li {
                display: inline-block;
                width: 120px;
                vertical-align: middle;
                text-align: center;
            }

        .header_menu > ul > li > a:link, .header_menu > ul > li > a:visited {
            display: inline-block;
            font-size: 1.2rem;
            color: white;
            display: block;
            vertical-align: middle;
        }

        .header_menu > ul > li > a:focus {
            outline: 2px solid #ffffff;
        }

    /* ~~ 手機上方menu~~ */
    .S_header_menu {
        display: none;
    }

    section {
        background: url(../images/Templates/section_Top.png) no-repeat top, url(../images/Templates/section_Bottom.png) no-repeat bottom;
        min-height: 750px;
    }

    .container {
        width: 1180px;
        margin: 0 auto;
        padding-bottom: 5rem;
    }

    .container_Top {
        padding-top: 1rem;
    }

    .Top_L {
        float: left;
        padding-top: 1rem;
        color: #3e3a39;
    }

    .Top_R {
        float: right;
        vertical-align: bottom;
    }

    .middleL {
        display: inline-block;
        width: 18%;
        text-align: center;
        vertical-align: top;
        padding-top: 2rem;
        margin-right:0.5rem;
    }

        .middleL > ul {
            max-width: 78%;
            text-align: center;
            margin: 0 auto;
            font-size: 1.4rem;
            line-height: 2.6rem;
            background-color: #6f6f6f;
            border: 4px solid #6f6f6f;
            padding-bottom: 5px;
        }

            .middleL > ul > li a {
                display: block;
                color: #3e3a39;
                background-color: #ffffff;
                padding: 0.2rem 0;
            }

            .middleL > ul > li {
                border-bottom: 1px #cccccc solid;
            }


                .middleL > ul > li:first-child {
                    color: #FFF;
                    font-size: 1.5rem;
                    border: none;
                }

    /*內文中間*/
    .middleC {
        display: inline-block;
        padding: 0 0 1rem 0;
        width: 78%;
        min-height: 500px;
    }

    .Title_L {
        background: url(../images/Templates/Items_R.png) no-repeat left top;
    }

        .Title_L > h2 {
            font-size: 1.9rem;
            font-weight: bold;
            color: #512564;
            margin-left: 3rem;
            line-height:2rem;
        }
}

@media screen and (min-width:875px) and (max-width:1300px) {
    .container{
        width:100%;
    }
}

@media screen and (max-width:874px) {
    header {
        background: url(../images/Templates/LogoT_BG.png) repeat-x bottom;
        font-size: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.2rem;
        text-align: center;
    }

    .Logo > h1 > a:focus > img {
        max-width: 80%;
    }

    .header_menu{
        display:none;
    }

    .container_Top {
        display: none;
    }

    .middleL {
        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: #794389;
        line-height: 5px;
        padding-bottom: 3px;
        border-top: 0.1rem solid #E2D2C2;
        border-bottom: 0.2rem solid white;
    }

    .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: #e4dfee;
        font-size: 1.2rem;
        font-weight: bold;
        text-align: left;
        letter-spacing: 0.1rem;
        padding: 0.5rem;
        padding-left: 1rem;
        border-bottom: 1px solid #c9b1d0;
    }

        .link a {
            color: #413c3c;
        }

        .link .search a:focus {
            outline: none;
            background: #03589F;
        }


    .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: #FFF;
        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;
        }

    .Title_L {
        background: url(../images/Templates/Items_R.png) no-repeat left top;
    }

        .Title_L > h2 {
            font-size: 1.9rem;
            font-weight: bold;
            color: #512564;
            margin-left: 3rem;
            line-height: 2rem;
        }

    .matter_path {
        margin-top: 0.5rem;
        margin-left: 0.5rem;
    }

    .middleC{
        width:100%;
        min-height:500px;
    }


    footer > ul {
        display: none;
    }
}
  
