﻿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: #9F1C1C;
    text-decoration: none;
    font-weight: bold;
}

a:hover, a:active {
    color: #9F1C1C;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #000000;
}

/* 跳到主要區塊#C */
.jump-only {
    position: absolute;
    background-color: #003298;
    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 {
    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;
}

input:focus, .DDList:focus, input[checkbox]:focus, textarea:focus {
    background-color: #fff5bd;
    outline: 2px solid #000000;
}
.Logo > h1 > a:focus {
    outline: none;
}

    .Logo > h1 > a:focus > img {
        outline: 2px solid #000;
        vertical-align: middle;
    }
.search input[type=text] {
    font-size: 1rem;
    height: 1.5rem;
    vertical-align: top;
    border-radius: 0;
    padding: 0 0;
    line-height: 1rem;
    background-color: #FEFEFE;
}

.search {
    border: 1px solid #aeadad;
    display: inline-block;
    background-color: #3E3A39;
    height: 1.5rem;
    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: 1.5rem;
        width: 2.5rem;
        background: #3E3A39;
        border: 0;
    }

        .search > a > img {
            width: 100%;
            margin: 0 0 4px 0;
            padding: 0;
            vertical-align: middle;
            border: 0;
        }

@media screen and (min-width:875px) {
    header {
        width: 100%;
        background: url(../images/Templates/LogoT_BG.png) left top, url(../images/Templates/LogoT_BG1.png);
        background-repeat: no-repeat, repeat-x;
        height: 232px;
        margin: 0 auto;
        text-align: center;
    }
    .Logo {
        float:left;
        padding-top:6.5rem;
        width:32%;
    }
      .header_w {
          line-height:2rem;
          font-weight:bolder;
          font-size:0.8rem;
          color:#2e2e2e;
          text-shadow:0px 0px 2px #aeadad;
      }
    .header_container {
        width:1350px;
        text-align:center;
        margin: 0 auto;
    }
    /* ~~ banner輪播圖片框~~ */
    .header_banner {
        float: right;
        width: 67%;
        position: relative;
        /*text-align: center;        min-width: 99%;*/
        padding: 1.5rem 0 0 0;
        overflow: hidden;
    }
    /* 動畫關鍵影格 */
    @keyframes move {
        0%, 20% {
            transform: translateX(0px);
        }

        25%, 45% {
            transform: translateX(-906px);
        }

        50%, 75% {
            transform: translateX(-1812px);
        }

        80%, 100% {
            transform: translateX(-2718px);
        }
    }
    /* 支援webkit核心的瀏覽器用 */
    @-webkit-keyframes move {
        0%, 20% {
            transform: translateX(0px);
        }

        25%, 45% {
            transform: translateX(-906px);
        }

        50%, 75% {
            transform: translateX(-1812px);
        }

        80%, 100% {
            transform: translateX(-2718px);
        }
    }

    .pictures-wrap {
        width: 906px;
        height: 204px;
        margin: 0 auto;
        overflow: hidden;
    }

        .pictures-wrap > ul {
            width: 500%;
            display: flex;
            animation: move 15s linear infinite;
        }


    /* ~~ 上方menu~~ */
    .header_menu {
        width: 100%;
        text-align: center;
        background-color: #036EB8;
        padding: 0.2rem 0rem 0rem 0rem;
        border-bottom: .15rem solid #C8C9CA;
    }

        .header_menu ul {
           margin: 0 auto;
           font-size:0px;
        }
            .header_menu ul li {
                display: inline-block;
                width: 110px;
                vertical-align: middle;
                text-align:center;     
            }

    /*.h_menu > ul li > a:link, .h_menu > ul li > a:visited { 
                color: #03589F;
                border:1px solid red;
                vertical-align: middle;
    }*/
    .h_menu {
        margin: 0 auto;
        width: 90rem;
    }

    .h_menu > div.Nav > ul li > a:link, .h_menu > div.Nav > ul li > a:visited {
        display: inline-block;
        font-size: 1.3rem;
        color: #DAEFFB;
        display: block;
        vertical-align: middle;
        padding: 0.4rem 0rem;
    }

    .h_menu > div.Nav > ul li > a:focus {
        outline: 2px dotted white;
        background-color: white;
        color: #036EB8;
        border-radius: .7rem;
        padding: 0.4rem 0rem;
    }

    .h_menu > div.Nav > ul li > a:hover {
        text-decoration-line: none;
        background-color: white;
        color: #036EB8;
        display: block;
        border-radius: .7rem;
        padding: 0.4rem 0rem;
    }

    .h_menu > div > a.top_dot {
        color: white;
        font-size: 0.3rem
    }

        .h_menu > div > a.top_dot:focus {
            outline: 2px solid white;
        }

    .Nav {
        position: relative;
        z-index: 10;
        /*width: 87rem;*/
        text-align: left;
        display: inline-block;
    }

        .Nav #Nav_menu {
            vertical-align: text-top;
            display: inline-block;
            margin: 0 auto;
        }

            .Nav #Nav_menu .NavLi {
                position: relative;
                text-align: center;
            }

        .Nav .NavLi .SubNav {
            position: absolute;
            top: 25px;
            height: auto;
            /*padding-bottom: 6px;
            padding-top: 6px;
            border: 0.2rem solid #511010;*/
            box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
            display: none;
            background-color: white;
            z-index: 99;
            text-align: center;
        }

            .Nav .NavLi .SubNav li {
                line-height: 2rem;
            }

    .h_menu > div.Nav > ul li > ul li > a:link, .h_menu > div.Nav > ul li > ul li > a:visited {
        color: #03589F;     
        display:block; 
    }
    .h_menu > div.Nav > ul li > ul li > a:hover {
        background-color:#D8F2FF;
        color:#232F59;
        border-radius:0rem;
    }
    .h_menu > div.Nav > ul li > ul li > a:focus {
        outline: 2px outset #015496;
        background-color:#D8F2FF;
        color:#232F59;
        border-radius:0rem;
    }
    /* ~~ 手機上方menu~~ */
    .S_header_menu {
        display: none;
    }
      .index_banner {
           display: none;
        }
     /*section*/
    .container {
        width: 100%;
        margin: 0 auto;
        min-height: 500px;
    }
    /*內文左邊*/
    .middleL {
        display:inline-block;
        width: 17%;
        text-align: center;
        vertical-align:top;
        padding-top: 2rem;
    }

        .middleL > ul {
            max-width: 65%;
            text-align: center;
            margin: 0 auto;
            font-size: 1.4rem;
            line-height:2.6rem;
            background-color: #CBDCF1;
            border: 1px solid #CBDCF1;
            border-radius: 1.5rem;
        }

            .middleL > ul > li a {
                display:block; 
                color:#595758;        
            }
            .middleL > ul > li:first-child {
                color: #585656;
                margin-top: 0.8rem;
                font-size: 1.6rem;
                border: none;
            }
            .middleL > ul > li:nth-child(2) {
                border: none;
            }
                .middleL > ul > li:first-child > div {
                    background-color: #FEFEFE;
                    border: 1px solid #FEFEFE;
                    border-radius: 0.8rem;
                    margin:0 auto;
                    width:90%;
                }
            .middleL > ul > li {
                font-weight: bolder;
                border-top:1px dashed white;
            }
                .middleL > ul > li a:hover, .middleL > ul > li a:active, .middleL > ul > li a:focus {
                    color: #A0180A;
                    text-decoration: none;
                }
	.hr-space-square {
        width:85%;
        margin:0 auto;
        margin-bottom:0.5rem;
		border: 0rem;
		color: #78A6CA;
		background: linear-gradient(currentColor, currentColor) no-repeat center;
		background-size: calc(100% - .5em - 2px) 4px;
		display: flex;
		justify-content: space-between;
	}
	.hr-space-square::before,
	.hr-space-square::after {
		content: '';
		display: block;
		width: .7rem; height: .7rem;
		border: 1px solid;
		margin: 0px;
		border-radius: 50%;
		background-color: #78A6CA;
	}

    /*內文中間*/
    .middleC {
        display: inline-block;
        width: 65%;
                }
    .container_top {
        color: #404040;
        margin-top: .5rem;
        margin-bottom: .5rem;
    }
    .middle_P {
        float: left;
    }

        .middle_P > a {
            color: #696969;
            word-break: keep-all;
            white-space: nowrap;
        }

    .middle_K {
        float: right;
    }

    .Title_L {
        float: left;
        background: url(../images/Templates/Items_R.png) no-repeat bottom left;
        padding-top:.5rem;
    }

        .Title_L h2 {
            font-size:2rem;
            font-weight: bold;
            color: #253C5A;
            margin-left: 3.5rem;
            line-height: 2.6rem;
        }

    .Title_R {
        float: right;
        padding-right:1rem;
        line-height:3rem;
    }

        .Title_R a img {
            vertical-align: middle;
        }

    .hr_style {
        border: 0;
        border-top: 0.2rem solid #F1ECB5;
        border-bottom: 0.3rem solid #93CCC9;
        font-size: 0;
        margin-top: 0rem;
    }
    .Matter {
        margin:1rem;
        line-height: 1.5rem;
        font-size: 1rem;
        min-height: 400px;
    }
    .container_clear {
        clear: both;
        text-align: right;
        padding-right: 2rem;
    }
 
    /*頁尾清單內文格式*/
    footer {
        width: 100%;
        background: #133480;
        font-size: 1rem;
        text-align: center;
        color: #FEFEFE;
        font-family: "微軟正黑體";
    }

        footer nav {
            background-color: #EFF3FA;
            color: #C30D22;
            font-size: 1.1rem;
            font-weight: bold;
            line-height: 2.5rem;
        }
            /*下方功能區域-最後更新日*/
            footer nav ul > li {
                display: inline-block;
            }

                footer nav ul > li a:link, footer nav ul > li a:visited {
                    color: #C30D22;
                }

                footer nav ul > li a:focus {
                    outline: 2px solid #C30D22;
                    color: #C30D22;
                }


    address {
        padding-bottom: .5rem;
        text-align: center;
        margin: 0 auto;
        display:inline-block;
        line-height:1.5rem;
    }

    /*地址*/
    footer address div {
        font-style: normal;
    }

        footer address div.ad {
            font-weight: bolder;
        }
    footer address .ad div,
    footer address .ad div span {
        display: inline-block;
    }

        footer address .ad div span:first-child{
            margin-right:1rem;
        }
}

@media screen and (max-width:1400px) and (min-width:1120px) {
    .header_container {
        width: 100%;
        text-align: left;
        margin: 0 auto;
    }
    /* ~~ banner輪播圖片框~~ */
    .header_banner {
        float: right;
        width: 60%;
    }
    .Logo {
        float: left;
        padding-top: 6.5rem;
        width: 40%;
    }
     .h_menu {
        width: 98%;
        text-align: center;
        margin: 0 auto;
    }
       .h_menu > ul li > a:link, .h_menu > ul li > a:visited {     
        font-size: 5rem;
         width: 5rem;
         border:1px solid red;
    }
     .Nav {
        width: 95%;
    }
    /*內文左邊*/
    .middleL {
        display:inline-block;
        width: 20%;
        text-align: center;
        vertical-align:top;
        padding-top: 2rem;
    }
        .middleL > ul {
            max-width:75%;
        }
    /*內文中間*/
    .middleC {
        display: inline-block;
        width: 75%;
                }
    .Logo img {
        text-align:left;
    }
    .container {
        width: 100%;
    }
}
@media screen and (max-width:1119px) and (min-width:873px) {
    .header_container {
        width: 100%;
        text-align: left;
        margin: 0 auto;
    }
    /* ~~ banner輪播圖片框~~ */
    .header_banner {
        float: right;
        width: 50%;
    }

    .Logo {
        float: left;
        padding-top: 6.5rem;
        width: 50%;
    }
    .h_menu {
        width: 98%;
        text-align: center;
        margin: 0 auto;
    }

        .h_menu > ul li > a:link, .h_menu > ul li > a:visited {
            font-size: 5rem;
            width: 5rem;
            border: 1px solid red;
        }

    .Nav {
        width: 97%;
    }
    /*內文左邊*/
    .middleL {
        display: inline-block;
        width: 23%;
        text-align: center;
        vertical-align: top;
        padding-top: 2rem;
    }

        .middleL > ul {
            max-width: 76%;
        }
    /*內文中間*/
    .middleC {
        display: inline-block;
        width: 74%;
    }
}
@media screen and (max-width:874px) {
    header {
        width: 100%;
        background: url(../images/Templates/LogoT_BG.png) left, url(../images/Templates/LogoT_BG1.png);
        background-repeat: no-repeat, repeat-x;
        background-size: cover;
        margin: 0 auto;
        text-align: center;
    }
    .Logo img {
        max-width: 80%;
        padding-top: 3rem;
        padding-bottom: 1rem;
        text-align: center;
    }
    .header_banner {
        display: none;
    }
    .header_w {
        display: none;
    }
    .float_R {
        display:none;
    }
    .header_menu {
        display:none;
    }
    .header_menu {
        display:none;
    }
    .pic_w {
        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 #3E3A39;
        }

    .R_menu {
        width: 100%;
        font-weight: bold;
        text-align: left;
        background: #036EB8;
        line-height: 5px;
        padding-bottom: 3px;
        border-bottom: 0.2rem solid #C8C9CA;
    }

    .nav-mobile-button {
        display: inline-block;
        position: relative;
        background-color: transparent;
        background-image: none;
        border: #EFEEEF;
        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: #FFFFFF;
        }

    .accordion {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    .link {
        position: relative;
        background: #D7EDFA;
        font-size: 1.2rem;
        font-weight: bold;
        text-align: left;
        letter-spacing: 0.1rem;
        padding: 0.5rem;
        padding-left: 1rem;
        border-bottom: 1px solid #C3D9E6;
    }

        .link a {
            color: #000000;
        }

            .link a:focus {
                outline: 2px solid #000000;
            }

        .link input:focus {
            outline: 2px solid #000000;
        }

    .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: #375899;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

        .submenu > li > a {
            color: #FFFFFF;
            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;
        }
    .middleL {
        display: none;
    }

    .middleC {
        width: 95%;
        margin: 0 auto;
        min-height: 450px;
    }
    .middle_P {
        line-height:2rem;
    }
        .middle_P > a {
            color: #696969;
            word-break: keep-all;
            white-space: nowrap;
        }
    .middle_K {
        display:none;
    }
    .container_top {
        margin: 0.5rem 0;
    }

    .Title_L {
        float: left;
        background: url(../images/Templates/Items_R.png) no-repeat bottom left;
        padding-top: .5rem;
    }

        .Title_L h2 {
            font-size: 1.7rem;
            line-height: 2.6rem;
            color: #253C5A;
            font-weight: bolder;
            margin-left: 3rem;
        }

    .Title_R {
        float: right;
        line-height:3rem;
    }

        .Title_R a img {
            vertical-align: middle;
        }
	.hr-space-square {
        margin-top:0;
        margin-bottom:0.5rem;
        width:85%;
        text-align:center;
		border: 0rem;
		color: #78A6CA;
		background: linear-gradient(currentColor, currentColor) no-repeat center;
		background-size: calc(100% - .5em - 2px) 4px;
		display: flex;
		justify-content: space-between;
	}
	.hr-space-square::before,
	.hr-space-square::after {
		content: '';
		display: block;
		width: .7rem; height: .7rem;
		border: 1px solid;
		margin: 0px;
		border-radius: 50%;
		background-color: #78A6CA;
	}
    .Matter {
        margin-top: 1rem;
        line-height: 1.5rem;
    }

    .container_clear {
        clear: both;
        text-align: right;
        padding-right: 2rem;
    }

   /*頁尾清單內文格式*/
    footer {
        font-size: 1rem;
        text-align: center;
        color: #FEFEFE;
        font-family: "微軟正黑體";
        line-height: 1.3rem;
        background: #133480;
    }

    /*下方功能區域*/
            footer nav {
                display: none;
            }

        address {
            padding-bottom: .5rem;
            text-align:center;
            width: 90%;
            margin: 0 auto;
        }

    /*地址*/
    footer address div {
        font-style: normal;
    }

        footer address div.ad {
            font-weight: bolder;
        }
    footer address .ad div,
    footer address .ad div span {
        display: inline-block;
    }
        footer address .ad div span:first-child {
            margin-right: 1rem;
        }
}
@media screen and (max-width:465px) {
    footer address .ad div span {
        display: inline-block;
    }
        footer address .ad div span:first-child {
            margin-right: 0;
        }
        footer address .ad div span:last-child{
            margin-left:6rem;
        }
}
@media screen and (max-width:285px) {
        footer address .ad div span:first-child {
            margin-right: 0;
        }

        footer address .ad div span:last-child {
            margin-left: 0;
        }
}