﻿body { /*字體、外邊框、內邊距*/
    margin: 0;
    padding: 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: #656464;
    text-decoration: none;
}

a:hover, a:active { /*移至連結；正在點開*/
    color: #656464;
    text-decoration: underline;
}

a:focus { /*聚焦連結*/
    outline: 2px #03467B solid; /*外圍邊框*/
}

/*跳到主要內容區塊*/
.jump-only {
    position: absolute;
    background-color: #003F8E;
    padding: 0.5rem;
    clip: rect(0, 0, 0, 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;
}

.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: 10rem;
    }

    .search > a {
        display: inline-block;
        vertical-align: middle;
        height: 2rem;
        width: 2.5rem;
        background: #1B2D6A;
        border: 0;
    }

        .search > a:focus {
            outline: 2px #03467B solid;
        }

        .search > a > img {
            font-size: 0;
            width: 100%;
            margin: 2px 0;
            padding: 0;
            vertical-align: middle;
            border: 0;
        }

.Upmenu {
    text-align: center;
}

    .Upmenu > div > ul {
        width: 90%;
        margin: 0 auto;
    }

        .Upmenu > div > ul > li {
            display: inline-block;
            font-size: 1.2rem;
            font-weight: bold;
        }

    .Upmenu .chmenu {
        border: 2px #595757 solid;
        margin: 0.5rem 0.75rem;
    }

        .Upmenu .chmenu > a {
            background: #8f1d33;
            display: block;
            color: #ffffff;
            padding: 0.4rem 2.3rem;
        }

    .Upmenu .omenu {
        margin: 0.5rem 0.75rem;
        border: 2px #595757 solid;
    }

        .Upmenu .omenu > a {
            display: block;
            color: #595757;
            padding: 0.4rem 2.3rem;
        }


    .Upmenu > a:focus {
        outline: 2px solid #000000;
    }

    .Upmenu .chmenu > a:focus {
        color: #595757;
        background: #FFF;
    }

/*左方目錄*/
.LeftMenu {
    display: inline-block;
    vertical-align: top;
    margin-top: 1rem;
    margin-left: 1.5rem;
    text-align: center;
    width: 14rem;
}

    .LeftMenu > div > a {
        text-decoration: none;
        color: #FFFFFF;
    }

    .LeftMenu > ul {
        display: inline-block;
        line-height: 2.7rem;
        color: #FFFFFF;
        border: 2px solid #296EAE;
    }

        /*.LeftMenu > ul > li {
            margin-top: 0.5rem;
        }*/

        .LeftMenu > ul > li:first-child {
            color: #FFFFFF;
            background: linear-gradient(to right, #1C2D6A, #2955A0);
            text-align: center;
            padding: 0;
            font-size: 1.5rem;
            width: 10rem;
            font-weight: 900;
            border-bottom: 2px solid #296EAE;
        }
            .LeftMenu > ul > li > a {
                color: #595757;
                text-decoration: none;
                text-align: center;
                display: block;
                font-size: 1.3rem;
                font-weight: bolder;
                border-bottom: 1px #296EAE dashed;
            }

        .LeftMenu > ul > li:last-child > a {
            border-bottom: none;
        }

                .LeftMenu > ul > li > a:hover {
                    background-color: #D7EEFA;
                    color: #1C2D6A;
                }

        .LeftMenu > ul > li > a:focus {
            border: 1px #296EAE dashed;
            background-color: #D7EEFA;
        }

.Title {
    margin: 2rem 2rem 2rem 0.8rem;
}

.Title_L {
    background: url(../images/Templates/P07.png) no-repeat left top;
    display: inline-block;
    margin-bottom: 0.5rem;
}

    .Title_L > h2 {
        vertical-align: bottom;
        margin-left: 2.8rem;
        margin-right: 1rem;
        line-height: 2.5rem;
        font-size: 1.9rem;
        color: #000000;
    }

        .Title_L > h2 > span {
            color: #d51718;
        }

.Title_L_hr {
    border: none;
    height: 3px;
    font-size: 0;
    background: #E73828;
}

.container {
    width: 1239px;
    margin: auto;
}

/*內文中間*/
.middleC {
    margin-top: 1rem;
    /*margin-bottom: 0.7rem;*/
    background: #FFF;
    min-height: 670px;
}

.information_upline {
    width: 100%;
    background-color: #1A2C75;
    height: 6px;
}

footer {
    background: url(../images/Templates/P06.png);
    text-align: center;
    padding: 0.8rem 0;
}

    footer > ul {
        list-style-type: none;
    }

        footer > ul > li {
            display: inline-block;
            color: #EBE980;
            margin: 0.2rem 0;
            padding: 0.25rem 0;
        }

            footer > ul > li > a {
                border: 1px solid #EBE980;
                border-radius: 10px;
                padding: 0.2rem 0.5rem;
            }

            footer > ul > li:first-child a {
                border: none;
                color: #EBE980;
            }

            footer > ul > li:last-child {
                border: none;
                margin-left: 0.5rem;
                margin-right: 0.5rem;
            }

            footer > ul > li a:link, footer > ul > li a:visited {
                text-decoration: none;
                color: #EBE980;
            }

            footer > ul > li > a:hover {
                background: #EBE980;
            }

            footer > ul > li:first-child > a:hover {
                background: none;
                color: #8FD1E3;
            }

            footer > ul > li > a:focus {
                outline: 2px solid #8FD1E3;
            }

            footer > ul > li:hover a {
                color: #000;
            }

    footer > address > div {
        line-height: 1.5rem;
        font-style: normal;
        color: #FFF;
        text-align: center;
    }

        footer > address > div > span {
            display: inline-block;
            margin-right: 1rem;
        }

.Banner {
    background: #FFFFFF;
}

    header {
        position: relative;
        z-index: 10;
    }

.bannerpic {
    background: url('../images/Templates/P08.png') center;
    min-height: 207px;
    max-width: 100%;
}

    .bannerpic > div {
        text-align: center;
        padding-top: 8.5rem;
        padding-bottom: 4.4rem;
        background: rgba(0,0,0,0.3);
    }

.Menu_down {
    background: rgba(255, 255, 255, 0.7);
    line-height: 2rem;
    margin-top: -2rem;
}

    .Menu_down > div {
        width: 72rem;
        margin: 0 auto;
    }

.left { /*瀏覽人數靠左*/
    float: left;
    margin-left: 1rem;
    font-size: 1.1rem;
}

    .left > a {
        color: #000000;
    }

.right { /*國曆日期靠右*/
    float: right;
    margin-right: 0.2rem;
}

/*收合按鈕*/
.flip {
    display: block;
    text-align: center;
    font-size: 1.2rem;
}

#opnemenu_area a:focus div {
    outline: 3px dashed #8FD1E3;
}

.mark {
    background: url(../images/Templates/P05.png);
    text-align: center;
    vertical-align: middle;
    max-height: 330px;
}

div .paneD {
    width: 955px;
    margin: auto;
    padding-top: 1.8rem;
    padding-bottom: 0.7rem;
    height: 330px;
}

    div .paneD > div.DD {
        width: 8rem;
        line-height: 1.5rem;
        vertical-align: top;
        display: inline-block;
        margin: 0.8rem 0.2rem;
        text-align: left;
    }

        div .paneD > div.DD > a:link, div .paneD > div.DD > a:visited {
            color: #656666;
            font-size: 1rem;
            font-weight: bold;
        }

        div .paneD > div.DD > a:focus {
            outline: 2px solid #656666;
            font-weight: bold;
        }

div.spanD {
    line-height: 1.8rem;
    color: #03467B;
    font-weight: bold;
    font-size: 1.1rem;
}

.Banner > div {
    width: 1190px;
    margin: 0 auto;
    padding-top: 0.1rem;
    margin-bottom: -0.4rem;
}

.Logo {
    float: left;
}

    .Logo > h1 > a:focus > img {
        outline: 2px solid #03467B;
    }

    .Logo > h1 > a:focus {
        outline: none;
    }

.LogoR {
    padding-top: 0.5rem;
    float: right;
    text-align: right;
    color: #3E3A39;
}

    .LogoR > .accesskeyU > a {
        color: #181428;
    }

        .LogoR > a:focus, .LogoR > .accesskeyU > a:focus {
            outline: 2px #03467B solid;
        }

    /*上方功能區域*/
    .header_menu {
        background: #1A2C75;
        text-align: center;
        padding: 0.4rem 0;
        font-size: 1.2rem;
    }

    .header_menu a:focus { /*聚焦目錄連結*/
        color: #FFFFFF;
        outline: 2px #FFF solid;
    }

    .header_menu a:hover {
        color: #FFFFFF;
        text-decoration: underline;
    }

    .header_menu > ul {
        margin: 0;
    }

        .header_menu > ul > li {
            display: inline-block;
            width: 113px;
            text-align: center;
        }

            .header_menu > ul > li > a:link, .header_menu > ul > li > a:visited {
                display: inline-block;
                font-size: 1.25rem;
                color: #ffffff;
                display: block;
                vertical-align: middle;
            }

            .header_menu > ul > li > a:focus {
                outline: 2px solid #ffffff;
            }

/* ~~ 手機上方menu~~ */
.S_header_menu {
    display: none;
}

article {
    background-repeat: no-repeat;
    background-position: bottom;
    background-color: #FFFFFF;
}

section {
    display: inline-block;
    width: 76%;
    /*padding-right: 3rem;*/
    min-height: 695px;
    vertical-align: text-top;
}

@media screen and (max-width:1255px) {
    .container {
        width: 100%;
    }
}

@media screen and (max-width:1200px) {
    .Menu_down > div {
        width: 95%;
    }
}

@media screen and (max-width:1100px) {
    section {
        width: 70%;
    }
}

@media screen and (max-width:970px) {
    div .paneD {
        width: 95%;
    }
}

@media screen and (max-width:885px) {
    div .paneD > div.DD {
        width: 7rem;
    }
}

@media screen and (min-width:855px) and (max-width:1210px) {
    .Banner > div {
        width: 98%;
        margin: 0 auto;
    }
}

@media screen and (max-width:855px) {
    .Banner > div {
        width: auto;
    }

    .Logo {
        float: none;
        display: block;
        text-align: center;
        padding-top: 0.5rem;
    }

        .Logo > h1 > a > img {
            max-width: 98%;
            margin: 0;
        }

    .Title {
        margin: 2rem;
    }

    .LogoR {
        display: none;
    }

    .right {
        display: none;
    }

    .LeftMenu {
        display: none;
    }

    /*上方功能區域*/
    header nav {
        display: none;
    }

    .header_menu {
        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: #1A2C75;
        line-height: 5px;
        padding-bottom: 3px;
    }

    .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: #D1D4E3;
        font-size: 1.2rem;
        font-weight: bold;
        text-align: left;
        letter-spacing: 0.1rem;
        padding: 0.5rem;
        padding-left: 1rem;
        border-bottom: 1px solid #e4eff6;
    }

        .link a {
            color: #000000;
        }

        .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: #E8E9F1;
        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;
        }

    .Upmenu {
        margin-bottom: 1rem;
    }

    .middleC_T {
        width: 98%;
        margin: 0 auto;
    }

    section {
        width: 100%;
        min-height: auto;
    }

    .middleC_T_R {
        display: none;
    }

    .middleC {
        min-height: 400px;
        margin: 0.5rem auto;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .flip {
        display: none;
    }

    .mark {
        display: none;
    }
}

@media screen and (max-width:315px) {
    .left {
        font-size: 1rem;
    }
}