﻿body {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    background-position: top;
    overflow-y: scroll;
}

/*因為沒有viewport字會亂變 加了這個字會乖乖*/
/*html, body {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
}*/

ul, h1, h2, h3 { /* 取消ul預設的內縮及樣式 */
    margin: 0;
    padding: 0;
    list-style: none;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.5rem;
}

/*超連結樣式*/
a:link {
    color: #666666;
    text-decoration: none;
    font-weight: bold;
}

a:visited {
    color: #666666;
    text-decoration: none;
}

a:hover {
    color: #903;
    /*text-decoration: underline;*/
}

a:active {
    color: #903;
    text-decoration: none;
}

/*設定字距0.3、行距1.5*/
.em1 {
    letter-spacing: 0.2rem;
    line-height: 1.5rem;
}

/*設定字距0.3、行距1.5*/
.em1T {
    line-height: 2rem;
    letter-spacing: 3px;
    width: 95%;
    margin: 1rem auto;
}
/*設定字距0.3、行距1.5*/
.em2T {
    letter-spacing: 0.1em;
    line-height: 1.7rem;
    font-size: 1.1rem;
    font-weight: bold;
}
/* 跳到主要區塊#C */
.jump-only {
    display: block;
    background-color: #036EB8;
    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 {
    color: yellow;
    position: static;
    width: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    margin-bottom: 0.5rem;
    margin-left: 0.1rem;
    z-index: 99;
    width: 10rem;
}

.P_top_icon {
    margin-top: 0.3rem;
    color: #227E7B;
    border-bottom: 0.25rem #227E7B solid;
    border-left: 0.7rem #227E7B solid;
    padding-left: 0.8rem;
}

a:focus { /*TAB文字*/
    outline: 2px solid #0F4880;
    border-color: #d413e2;
    /*outline: 2px dashed #03600E;
    border-color: #d413e2;*/
}
/*訊息*/
.Msg {
    font-size: 1.5rem;
    color: #E00000;
    width: 8rem;
    margin: 13rem auto;
    display: block;
}
.SuccessMsg {
    font-size: 1.5rem;
    color: #006400;
}
    .container {
        margin: 0 auto;
        width:100%;
    }


.matter_button {
    width: 100%;
}

    .matter_button ul li {
        display: inline-block;
        min-width: 7.5rem;
        font-family: "微軟正黑體";
        font-weight: bold;
        line-height: 1.5rem;
        margin-right:1.5rem;
        margin-top:0.2rem;
        margin-left:0.3rem;
    }

.P_middle_RL a, .P_middle_RL a:visited {
    color: #666666;
    text-decoration: none;
}

    .P_middle_RL a:hover {
        /*不要有tab的效果*/
        border: none;
        outline: none;
        color: #903;
    }

.matter_button a, .matter_button a:visited {
    text-shadow: 3px 3px 10px #97FFFF;
    text-decoration: none;
}

    .matter_button a:hover {
        color: #666666;
        text-shadow: 3px 3px 10px rgba(255, 255, 0, 0.80);
        text-decoration: none;
    }

@media screen and (min-width:875px) {
    /*LOGO*/
    .E_logo{
        text-align: center;
        background-image:url(../images/Templates/P_header_BG.png);
        height:120px;
    }

      /* ~~ 手機上方menu~~ */
    .S_header_menu {
         display:none;
    }
    /* ~~ 上方menu~~ */
    .E_header_menu {
        width: 100%;
        background: #5da9bb; /* Old browsers */
        background: -moz-linear-gradient(top, #5da9bb 0%, #5da9bb 16%, #a8d1df 18%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #5da9bb 0%,#5da9bb 16%,#a8d1df 18%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #5da9bb 0%,#5da9bb 16%,#a8d1df 18%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5da9bb', endColorstr='#a8d1df',GradientType=0 ); /* IE6-9 */
        /*height:2.6rem;*/
        text-align:center;
    }

    .P_header_menul { /*上方功能區域*/
        float: left;
        font-size: 0.7rem;
    }

        /*.P_header_menu a:focus, .index_header_menu a:focus {
            color: #2E7C3C;
        }*/


    .E_header_menu ul li {
        display: inline-block;
        width:13%;
        font-family: "微軟正黑體";
        line-height:1.3rem;
        font-size: 1.3rem;
        text-align: center;
        padding-top:0.8rem;    
    }

    .P_menu > ul li > a:link, a:visited  {
        text-decoration: none;
        color:black;
    }

    .P_menu > ul li > a:hover{
        color:#FFFFFF;
        background-color:#036EB8;
    }

    /* ~~ 樣版中間內容~~*/
    .P_middle {/* ~~內文底圖~~*/
        background-image:url(../images/Templates/P_middle_BG.png);
        background-position:left top;
        /*background-size:100% 666px;*/
        background-repeat:repeat-y;
        background-color:#E8F5F6;
        /*background-repeat:repeat-y;*/
        min-height:700px;

    }
    .P_middle_R {/* ~~內文框~~*/
        width:60%;
        float: right;
        line-height:1.8rem;
        font-size:1.1rem;
        font-family: "微軟正黑體";
        padding:10px;
        font-weight:400;
    }
        .P_middle_RL {/* ~~大標題~~*/
            text-align:left;
            color:#5A6363;
            float:left;
            font-weight:bold;
         }

    .P_middle_RR { /* ~~瀏覽人次~~*/
        text-align: right;
        color: #000000;
        float: right;
        font-size: 1rem;
    }

    .P_middle_button {/* ~~副標題~~*/
        color:#237A77;
        line-height:3.2rem;
        font-size:1.5rem;
        font-weight:bold;
        margin-left:1rem;
    }
    .P_middle_text {
        text-shadow:0px 0px 4px #FFFFFF,0px 0px 4px #FFFFFF;
    }

    /* ~~ 下方menu~~ start*/
    .P_buttom_menu {
        width: 100%;
        background: #5da9bb; /* Old browsers */
        background: -moz-linear-gradient(top, #5da9bb 0%, #5da9bb 16%, #a8d1df 18%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #5da9bb 0%,#5da9bb 16%,#a8d1df 18%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #5da9bb 0%,#5da9bb 16%,#a8d1df 18%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5da9bb', endColorstr='#a8d1df',GradientType=0 ); /* IE6-9 */
        height:1.8rem;
        text-align:center;
        padding-top:0.5rem;
        font-family: "微軟正黑體";
        font-size:1.1rem;
        font-weight:bold;
    }

    .P_buttom_menu_L {
        float: left;
    }

    .P_buttom_menu_R {
        float:right;
    }

    .P_buttom_menu_R > ul >li {
        display: inline-block;
        padding-left:0.3rem;
        padding-right:0.3rem;
        border:1px #000000 solid;
        border-radius:6px;
    }

        .P_buttom_menu_R > ul li > a:link, a:visited {
            text-decoration: none;
            color: black;
        }

    .S_buttom_menu {
        display:none;
    }

    /* ~~ 下方menu~~ end*/
    footer {
        background-color: #DCDDDD;
        color:#231815;
        text-align: center;
        font-weight: bold;
        font-family: "微軟正黑體", 'Times New Roman';
    }

    address div {
        padding-top:0.2rem;
        display: inline-block;
        font-size: 1rem;
        line-height: 1.5rem;
        font-style: normal;
    }

    /*無障礙的標章*/
    .acc {
        display:inline-block;
        /*position: absolute;*/
    }
}

/* BBB適用螢幕寬度大於875~1125px時*/
@media screen and (min-width:875px) and (max-width:1125px){
    .E_header_menu ul li {
        display: inline-block;
        font-family: "微軟正黑體";
        line-height:1.1rem;
        font-size: 1rem;
        text-align: center;
        padding-top:0.8rem;
    }

    /* ~~ 樣版中間內容~~*/
    .P_middle {
        background-image:url(../images/Templates/P_middle_BG.png);
        background-position-x:-70%;
        background-repeat:repeat-y;
        background-color:#E8F5F6;
        /*background-repeat:repeat-y;*/
        min-height:700px;
        font-weight:bold;
    }
    .P_middle_R {
        width:65%;
        float: right;
        line-height:1.5rem;
        font-size:1rem;
        font-family: "微軟正黑體";
        padding:10px;
    }
        .P_middle_RL {
            text-align:left;
            color:#5A6363;
            float:left;
            font-weight:bold;
         }

    .P_middle_RR {
        text-align: right;
        color: #000000;
        float: right;
        font-size: 1rem;
    }

    .P_middle_button {
        color:#237A77;
        line-height:3.2rem;
        font-size:1.6rem;
        font-weight:bold;
    }
    .P_middle_text {
        text-shadow:0px 0px 4px #FFFFFF,0px 0px 4px #FFFFFF;
    
        }
}
/* BBB適用螢幕寬度大於875~1125px時*/
@media screen and (min-width:1100px) and (max-width:1500px) {
    .P_middle {
        background-position-x:-20%;
    }

}
@media screen and (max-width:874px) {
    /*LOGO*/
    .E_logo{
        text-align: center;
        background-image:url(../images/Templates/P_header_BG.png);
        background-repeat:repeat;
        background-position-y:bottom;
        width:100%;
    }
    .E_logo img{
        max-width:80%;
        
    }
    .E_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: 1px 10px 5px 5px;
            width:1.3rem;

            
        }
            .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: 5px;
                    margin-right:-2px;
                    background:#000000;
                }
    div.panel {
        margin: 0 auto;
        width:100%;
        line-height: 2rem;
        background: #A4CCD9;
        text-align: center;
        font-weight: bolder;
        font-size: 1.1rem;
        text-align: center;
        font-family: "微軟正黑體";
        padding:0rem 0rem 1.5rem 0rem;
    }

        div.panel > a:hover {
            color: #B71E00;
        }

        div .panel > div.AA {
            width: 95%;
            display: inline-block;
            border: 1px solid white;
            /*淡藍底*/
            background-color: #A4CCD9;
            margin-top: 0.3rem;
            /*標題深藍*/
            color: #0F4880;
            font-weight: bolder;
        }

            div.panel > div.AA > hr {
                border: 0.5px dotted white;
                margin-top:0px;
            }

            div.panel > div.AA > a:hover {
                /*深紫色*/
                color:#7600A8;
            }
      div.panel {
        display: none;
         }


    /* ~~ 樣版中間內容~~*/
    .P_middle {
      width:100%;
    }

    .P_middle_R {/* ~~內文~~*/
        line-height:1.8rem;
        font-size:1rem;
        font-family: "微軟正黑體";
        padding:15px;
    }

    .P_middle_RL { /* ~~大標題~~*/
        text-align: left;
        color: #5A6363;
        float: left;
        font-weight: bold;
    }

    .P_middle_RR { /* ~~瀏覽人次~~*/
        text-align: right;
        color: #000000;
        float: right;
        font-size: 1rem;
    }

       .P_middle_button {/* ~~副標題~~*/
        color:#237A77;
        line-height:3rem;
        font-size:1.5rem;
        font-weight:bold;
        }

    /* ~~ 下方menu~~ start*/
    .P_buttom_menu {
        width: 100%;
        background: #5da9bb; /* Old browsers */
        background: -moz-linear-gradient(top, #5da9bb 0%, #5da9bb 16%, #a8d1df 18%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top, #5da9bb 0%,#5da9bb 16%,#a8d1df 18%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to bottom, #5da9bb 0%,#5da9bb 16%,#a8d1df 18%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5da9bb', endColorstr='#a8d1df',GradientType=0 ); /* IE6-9 */
        height:1.5rem;
        text-align:center;
        padding-top:0.5rem;
        font-family: "微軟正黑體";
        font-size:1rem;
        font-weight:bold;
    }

    .P_buttom_menu_L {
        float: left;
    }

    .S_buttom_menu {
        width:60%;
        margin:0 auto;
        text-align:center;
        padding:0.5rem;
    }
    .S_buttom_menu > ul >li {
        display: inline-block;
        margin-top:0.5rem;
        padding:0.3rem;
        border:1px #000000 solid;
        border-radius:6px;
    }
    .P_buttom_menu_R {
        display:none;
    }
    /* ~~ 下方menu~~ end*/
    footer {
        background-color: #DCDDDD;
        color:#231815;
        text-align: center;
        font-weight: bold;
        font-family: "微軟正黑體", 'Times New Roman';
    }

    address div {
        padding-top:0.2rem;
        display: inline-block;
        font-size: 1rem;
        line-height: 1.5rem;
        font-style: normal;
    }
}
   