﻿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;
}

/*設定字距3px、行距2*/
.em1T {
    font-size: 1.2rem;
    line-height: 2rem;
    letter-spacing: 3px;
    width:90%;
    margin:1rem auto;
}
/*設定字距0.3、行距1.5*/
.em2T {
    letter-spacing: 0.1em;
    line-height: 1.7rem;
    font-size: 1.3rem;
    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;
    width:10rem;
    z-index:99;
}

.jump-only-focusable:active,
.jump-only-focusable:focus {
    color: yellow;
    position: static;
    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;
}

/*訊息*/
.Msg {
    font-size: 1.5rem;
    color: #E00000;
    margin: 13rem auto;
    display: block;
    text-align:center;
}
.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;
    text-align: center;
}

.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 {
    color: #666666;
    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*/
    .P_logo {
        position: relative;
        text-align: center;
        background-image: url(../images/Templates/P_header_BG.png);
        height: 120px;
        /*z-index:1;*/
    }

        .P_logo img {
            margin: 0 auto;
        }

        /*國農歷*/
    .P_logoR {
        position:absolute;
        top: 1.5rem;
        right: 0;
        font-family: "微軟正黑體";
        font-size: 0.9rem;
        z-index: 2;
    }

    .hP_logoR {
        position: absolute;
        top: 3.6rem;
        right: 0;
        font-family: "微軟正黑體";
        font-size: 0.9rem;
        z-index: 2;
    }

    /* ~~ 手機上方menu~~ */
    .S_header_menu {
        display: none;
    }
    /* ~~ 上方menu~~ */
    .P_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.8rem;
        text-align:center;
    }

    .P_header_menul { /*上方功能區域*/
        float: left;
        font-size: 0.7rem;
    }

        /*.P_header_menu a:focus, .index_header_menu a:focus {
            color: #2E7C3C;
        }*/


    .P_header_menu ul li {
        display: inline-block;
        width:7.5%;
        font-family: "微軟正黑體";
        line-height:1.5rem;
        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;
    }

    /* ~~ index中間底圖~~ */
    .index_middle{
        background-image:url(../images/Templates/P_index_BG.png);
        background-size:cover;
        /*background-size:100% 666px;*/
        background-position-x:50%;
        background-repeat:no-repeat;
        background-position-y:bottom;
    }
    /* ~~ index功能按鈕圖示~~ */
    .index_button {
        padding-left:15%;
        padding-top: 3rem;
        text-align:left;
    }
        .index_button div {
            display:inline-block;
            margin-top:0.2rem;
        }
        .index_button a:hover {
            filter: hue-rotate(175deg) saturate(2.5);
        }
    /* ~~ 樣版中間內容~~*/
    .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:bold;
    }
        .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;
    }

    .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 a {
            color: #000000;
            text-decoration: none;
        }

            .P_buttom_menu_R a:hover {
                /*不要有tab的效果*/
                border: none;
                outline: none;
                color: #903;
            }

            .P_buttom_menu_R a:visited {
                /*不要有tab的效果*/
                border: none;
                outline: none;
                color: #000000;
            }

            .P_buttom_menu_R a:focus {
                outline: 2px solid #0F4880;
                border-color: #d413e2;
            }

    .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: 1rem;
        font-style: normal;
        vertical-align: middle;
    }

    address .footer_A{
        margin-right:1.5rem;
    }

    /*無障礙的標章*/
    .acc {
        display: inline-block;
        vertical-align: middle;
    }
}

/* BBB適用螢幕寬度大於875~1125px時*/
@media screen and (min-width:875px) and (max-width:1125px){
    .P_header_menu ul li {
        display: inline-block;
        font-family: "微軟正黑體";
        line-height:1.5rem;
        font-size: 1rem;
        text-align: center;
        padding-top:0.8rem;
    }
    .P_logoR {
        display: none;
    }

    .hP_logoR {
        display: none;
    }

    /* ~~ 功能按鈕圖示~~ */
    .index_button {
        padding-left: 6%;
        padding-top: 2rem;
        text-align: left;
    }
    .index_button div img{
        /*width:90%;*/
    }
    /* ~~ 樣版中間內容~~*/
    .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*/
    .P_logo{
        text-align: center;
        background-image:url(../images/Templates/P_header_BG.png);
        background-repeat:repeat;
        background-position-y:bottom;
        width:100%;
    }

    .P_logo img{
        max-width:80%;
    }

        .P_logo a:focus {
            /*不要有tab的效果*/
            border: none;
            outline: none;
        }

    /*國農歷*/
    .P_logoR{
        display:none;
    }

    .hP_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: 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: 5px;
                    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:link,a:visited {
            color: #000000;
        }

        div.panel > a:hover, a:active {
            color: #903;
        }

        div .panel > div.AA {
            width: 29%;
            display: inline-block;
            border: 1px solid white;
            /*淡藍底*/
            background-color: #A4CCD9;
            margin-top: 0.3rem;
            /*標題深藍*/
            color: #0F4880;
            font-weight: bolder;
            vertical-align:top;
        }

            div.panel > div.AA > hr {
                border: 0.5px dotted white;
                margin-top:0px;
            }
            div.panel > div.AA > a:link, a:visited {
                /*深紫色*/
                color: #000000;
            }

            div.panel > div.AA > a:hover, a:active {
                /*深紫色*/
                color: #903;
            }
      div.panel {
        display: none;
         }
    /* ~~ 功能按鈕圖示~~ */
    .index_button {
        width:100%;
        text-align:center;
        padding-top: 2rem;
    }
        .index_button div {
            display:inline-block;
            margin-top:0.2rem;
        }
        .index_button a:hover {
            /*不要有tab的效果*/
            border: none;
            outline: none;
            filter: hue-rotate(175deg) saturate(2.5);
        }

    .path {
        width: 95%;
        border:solid;
    }

    /* ~~ 樣版中間內容~~*/
    .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;
    }

        .S_buttom_menu > ul > li a, .S_buttom_menu > ul > li a:visited {
            color: #000000;
        }

            .S_buttom_menu > ul > li a:hover, .S_buttom_menu > ul > li a:active {
                color: #903;
            }


    .P_buttom_menu_R {
        display:none;
    }

    .matter_button{
        text-align:center;
        margin:0 auto;
    }

    .em1T{
        width:100%;
    }

    /* ~~ 下方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;
    }

    address .footer_A {
        margin-right: 1rem;
    }

    /*訊息*/
    .Msg {
        font-size: 1.5rem;
        color: #E00000;
        margin: 2rem auto;
        display: block;
    }

    .SuccessMsg {
        font-size: 1.5rem;
        color: #006400;
    }
}

@media screen and (max-width:230px) {
    .index_button .icon {
        display: inline-block;
    }
}