﻿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;
}

/*左方按鈕區域*/
.a_Title a:link, .a_Title a:visited {
    color: #595757;
    text-decoration: none;
}


/*展開／收合按鈕超連結樣式*/
.a_DD a:link, .a_DD a:visited {
    color: #851B20;
    text-decoration: none;
}

.a_DD a:hover {
    color: #840007;
    font-weight: bold;
    text-decoration-line: underline;
}

.a_DD a:active {
    color: #840007;
}
/* 跳到主要區塊#C */
.jump-only {
    float: left;
    background-color: #AE1E26;
    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 #950931;
}

input:focus, .DDList:focus, input[checkbox]:focus,textarea:focus {
    background-color: #fff5bd;
    outline: 2px solid #950931;
}

@media screen and (min-width:875px) {
header {
    background:url(../images/Templates/banner.png) bottom center;
    height:300px;
}

    .P_width  {
        width:70%;
        margin:0 auto;
        text-align:right;
        font-size:1rem;
        line-height:2rem;
    }
    .logoL {
         float:left;
    }

    /* ~~ 手機上方menu~~ */
    .S_header_menu {
        display: none;
    }
    /* ~~ 上方menu~~ */
    .P_header_menu {
        width: 100%;
        padding: .5rem 0rem .3rem 0rem;
        text-align: center;
        background-color:#C7461C;
        border-bottom:0.3rem solid #DFA986;
    }
        .P_header_menu ul {
            width: 79%;
            margin: 0 auto;
        }
            .P_header_menu ul li {
                display: inline-block;
                width: 7.7%;
                font-family: "微軟正黑體";
                line-height: 1.2rem;
                font-size: 1.2rem;
                border-left:1px solid white;
            }
            .P_header_menu ul li:nth-child(1) {
                border-left:none;
            }
    .P_menu > ul li > a:link, .P_menu > ul li > a:visited {
        text-decoration: none;
        color: white;
    }
    .P_menu > ul li > a:hover {
        color: #FFFA3D;
        text-decoration-line: underline;
    }
    .P_menu > ul li > a:focus {
        color: #FFFA3D;
        outline: 2px solid #FFFA3D;
    }
    .container {
        margin: 0 auto;
        background-color:white;
    }
    .I_width {
        width: 70%;
        margin:0 auto;
    }
    /*瀏覽人數  國農曆*/
    .P_divW {
        color:#6A3906;
        font-family: "微軟正黑體";
        background-color:#F3DEB8;
        font-size: 0.9rem;
        line-height: 1.7rem;
        font-weight: bolder;
    }
    .container {
        width: 70%; 
        font-size: 1rem;
        line-height: 1.6rem;
        margin:0 auto;
        /*min-height: 450px;*/
    }

    /*內文左邊*/
    .middleL {
        display:inline-block;
        min-width: 22%;
        text-align: center;
        vertical-align:top;
    }

        .middleL > ul {
            width: 70%;
            margin: 0 auto;
            font-size: 1.3rem;
            line-height: 2.8rem;

        }

            .middleL > ul > li a {
                display:block;             
            }
            .middleL > ul > li:first-child {
                color:#E83828;
                font-size: 1.5rem;
                border-bottom: .5rem solid white;
                background: #FFFFFF; /* Old browsers */
                background: -moz-linear-gradient(top, #FFFFFF 87%, #FFFFFF 87%, #F39800 87%); /* FF3.6-15 */
                background: -webkit-linear-gradient(top, #FFFFFF 87%,#FFFFFF 87%,#F39800 87%); /* Chrome10-25,Safari5.1-6 */
                background: linear-gradient(to bottom, #FFFFFF 87%,#FFFFFF 87%,#F39800 87%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#F39800',GradientType=0 ); /* IE6-9 */
            }
            .middleL > ul > li {
                font-weight: bolder;             
                border-bottom: .7rem solid white;
                background: #efefef; /* Old browsers */
                background: -moz-linear-gradient(top, #efefef 87%, #c9caca 87%, #c9caca 87%); /* FF3.6-15 */
                background: -webkit-linear-gradient(top, #efefef 87%,#c9caca 87%,#c9caca 87%); /* Chrome10-25,Safari5.1-6 */
                background: linear-gradient(to bottom, #efefef 87%,#c9caca 87%,#c9caca 87%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#efefef', endColorstr='#c9caca',GradientType=0 ); /* IE6-9 */
            }
            .middleL > ul > li a:hover, .middleL > ul > li a:active {
                color:white;
                background-color:#CA2C2C;
                text-decoration: none;
            }

    /*內文中間*/
    .middleC {
        display: inline-block;
        padding: 0 0.5rem 0.5rem 0.5rem;
        width: 75%;
        /*text-align: justify;*/
        min-height: 450px;
    }
    .Title {
        color: #231815;
    }
 .hr_style {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}
    h2 {
        font-size: 1.5rem;
        line-height: 2.2rem;
        font-weight: bolder;
        padding-left:2.6rem;
    }

    .Matter {
        padding: 1rem;
    }

    .Last_updated {
        display: none;
    }

    footer {
        text-align: center;
        color: #231815;
        width: 100%;
        font-family: "微軟正黑體";
        font-size: 1.1rem;
        line-height: 1.7rem;
        font-weight: bolder;
        background-color:#EFEFEF;
    }

    .mark {
        background-color: #F9F9D1;
    }

    /*展開／收合功能選單*/
    div.paneD {
        width: 70%;
        margin: 0 auto;
        padding: 1rem;
    }

    .flip { /*展開／收合文字*/
        display: block;
        text-align: center;
        background: #C7461C;
        font-family: "微軟正黑體";
        border-bottom:.4rem solid #EFB133;
    }

        .flip a {
            color: white;
            text-decoration:none;
        }

            .flip a:focus {
                outline: 2px solid #ffffff;
            }

    /*div.paneD {
        display: none;
    }*/

        div .paneD > div.DD {
            width: 11rem;
            vertical-align: top;
            display: inline-block;
            margin: 0.5rem;
            color: #851B20;
        }

    div.spanD {
        border: 1.5px solid #851B20;
        line-height: 1.8rem;
    }

    nav > ul > li {
        display: inline-block;
        font-family: "微軟正黑體";
        line-height: 1.3rem;
        font-size: 1.1rem;
        
        font-weight: bolder;
    }
    footer address div {
        padding-top: 0.1rem;
        display: inline-block;
        font-size: 1rem;
        line-height: 1.3rem;
        font-style: normal;
    }
}
@media screen and (min-width:1101px) and (max-width:1459px) {
    .P_width {
        width:94%;
    }
    .P_header_menu ul {
        width: 95%;
        margin: 0 auto;
    }

        .P_header_menu ul li {
            display: inline-block;
            width: 8.6%;
            font-family: "微軟正黑體";
            line-height: 1.2rem;
            font-size: 1.1rem;
        }
    .I_width {
        width: 95%;
        margin:0 auto;
    }
    .container {
        width:95%; 
        font-size: 1rem;
        line-height: 1.6rem;
        margin:0 auto;
        /*min-height: 450px;*/
    }
    /*展開／收合功能選單*/
    div.paneD {
        width: 95%;
        margin: 0 auto;
        padding: 1rem;
    }
}

@media screen and (min-width:875px) and (max-width:1100px) {
    .P_width {
        width:100%;
    }
    .P_header_menu ul {
        width: 100%;
        margin: 0 auto;
    }

        .P_header_menu ul li {
            display: inline-block;
            width: 8.6%;
            font-family: "微軟正黑體";
            font-weight: bold;
            line-height: 1.2rem;
            font-size: 0.9rem;
        }
    .I_width {
        width: 99%;
        margin:0 auto;
    }
    .container {
        width:99%; 
        font-size: 1rem;
        line-height: 1.6rem;
        margin:0 auto;
        /*min-height: 450px;*/
    }
    /*展開／收合功能選單*/
    div.paneD {
        width: 95%;
        margin: 0 auto;
        padding: 1rem;
        font-size: 1rem;
    }
}

@media screen and (max-width:874px) {
    header {
        background-color: #FFF8D7;
    }
    .P_width {
         width:100%;
         text-align:center;
    }
        .logoL img {
            max-width: 80%;
        }
        .logoL a:focus { /*TAB文字*/
            outline: none;
        }
    .logoR{
        display: none;
    }
    .P_header_menu {
        display: none;
    }
    /* ~~ 手機上方menu~~ */
    .S_header_menu { /* 手機選單 */
        width: 100%;
        text-align: right;
        cursor: pointer;
        z-index: 3;
    }

    .nav-mobile-button {
        display: inline-block;
        position: relative;
        background-color: transparent;
        background-image: none;
        border: #ffffff;
        padding: 2px 10px 7px 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: 25px;
            height: 4px;
            margin-right: -2px;
            background: #FFFFFF;
        }

    /*瀏覽人數那條*/
    .P_divW {
        display: none;
    }
    /*左方按鈕區域*/
    .middleL {
        display: none;
    }
    /*內文*/
    .middleC {
        font-family: "微軟正黑體";
        font-size: 1rem;
        line-height: 1.6rem;
        padding: 0.5rem;
        background-color: white;
    }
    .Title {
        color: #231815;
    }
 .hr_style {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}
    h2 {
        font-size: 1.5rem;
        line-height: 2.2rem;
        font-weight: bolder;
        padding-left: 2.6rem;
    }

    .Matter {
        padding: 0.5rem;
    }
    .mark {
        display: none;
    }

    nav {
        display: none;
    }

    footer {
        background-color:#F9F9D1;
        width: 100%;
        color: #231815;
        font-family: "微軟正黑體";
        font-size: 1.1rem;
        line-height: 1.5rem;
        text-align: center;
        font-weight: bolder;
    }

        footer address div {
            padding-top: 0.1rem;
            display: inline-block;
            font-size: 1rem;
            line-height: 1.3rem;
            font-style: normal;
        }
}
