﻿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: #0360B5;
    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;
}

.search input[type=text] {
    font-size: 1rem;
    height: 1.5rem;
    vertical-align: top;
    border-radius: 0;
    padding: 0 0;
    line-height: 1rem;
    background-color:#DBDCDC;
}

.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/Banner_01.png) left top;
        background-repeat:no-repeat;
        height: 340px;
        text-align: left;
        -webkit-animation: round 12s linear infinite;
        animation: round 12s linear infinite;
    }

      @-webkit-keyframes round {
           0% {
                opacity: 1;
                filter: alpha(opacity=100);
                background: url(../images/Templates/Banner_01.png) left top;             
            }
            35% {
                opacity: 1;
                filter: alpha(opacity=100);
                background: url(../images/Templates/Banner_01.png) left top;
             
            }
            50% {
                opacity: 1;
                filter: alpha(opacity=100);
                background: url(../images/Templates/Banner_02.png) left top;
            }
            85% {
                opacity: 1;
                filter: alpha(opacity=100);
                background: url(../images/Templates/Banner_02.png) left top;
            }
            100% {
                opacity: 1;
                filter: alpha(opacity=100);
                background: url(../images/Templates/Banner_01.png) left top;
            }
  }
      .header_w {
          display: inline-block;
          padding-left: 3rem;
          line-height:2rem;
          font-weight:bolder;
          color:#2e2e2e;
          text-shadow:0px 0px 2px #aeadad, 0px 0px 2px #aeadad;
      }


    /* ~~ 上方menu~~ */
    .header_menu {
        width: 100%;
        text-align: center;
        background-color: #EFEEEF;
        padding: 0.2rem 0rem 0rem 0rem;
        border-bottom:.15rem solid #C8C9CA;
    }

        .header_menu ul {
           margin: 0;
           font-size:0px;
        }
            .header_menu ul li {
                display: inline-block;
                width: 120px;
                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 {
        width:77rem;
        margin: 0 auto;

    }

        .h_menu > div.Nav > ul li > a:link, .h_menu > div.Nav > ul li > a:visited {
            display: inline-block;           
            font-size: 1.3rem;
            color:#3E3A39;
            display:block; 
            vertical-align: middle;
            padding: 0.4rem 0rem;
        }

        .h_menu > div.Nav > ul li > a:focus {
            outline: 2px dotted #3E6191;
            background-color:#3E6191;
            color:white;
            border-radius:1rem 1rem 0rem 0rem;
        }

        .h_menu > div.Nav > ul li > a:hover {
            text-decoration-line:none;
            background-color:#3E6191;
            color:white;
            display:block; 
            border-radius:1rem 1rem 0rem 0rem;
            padding: 0.4rem 0rem;
        }

        .h_menu > div > a.top_dot {
            color: #3E6191;
            font-size: 0.3rem
        }

            .h_menu > div > a.top_dot:focus {
                outline: 2px solid #3E6191;
            }

    .Nav {
        position: relative;
        z-index: 10;
        width:75rem;
        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;
        background: url(../images/Templates/Container_BG.png) no-repeat right bottom;
    }
    /*內文左邊*/
    .middleL {
        display:inline-block;
        width: 19%;
        text-align: center;
        vertical-align:top;
        padding-top: 2rem;
    }

        .middleL > ul {
            max-width:60%;
            text-align:center;
            margin: 0 auto;
            font-size: 1.4rem;
            line-height: 2rem;
            border: .3rem solid #70A7D4;
            border-radius:1.5rem;
        }

            .middleL > ul > li a {
                display:block; 
                color:#595758;        
            }
            .middleL > ul > li:first-child {
                color:#3E3A39;
                margin-top:0.8rem;
                font-size: 1.6rem;
            }
            .middleL > ul > li {
                font-weight: bolder;
                /*border-bottom:2px dashed white;*/   
            }
            .middleL > ul > li a:hover, .middleL > ul > li a:active, .middleL > ul > li a:focus {
                color:#CB3A23;
                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;
	}

	.hr-mid-circle {
        margin-top:0;
        margin-bottom:.5rem;
        width:85%;
		border: 0;
		color: #AFCADF;
		background: linear-gradient(currentColor, currentColor) no-repeat center;
		background-size: 100% 4px;
	}
	.hr-mid-circle::before {
		content: '';
		display: block;
		width: .6em; height: .6em;
		border-radius: 50%;
		background-color: currentColor;
		margin: auto;
	}

.myLine{
  width:85%;
  margin:0 auto;
  text-align:center;
  height:4px;
  background-color:#78A6CA;
  position: relative;
  z-index:-1;
}

.myLine::before{
  width: 15px;
    height:15px;
    background-color: #78A6CA;
    position: absolute;
    display: block;
    left: 0px;
    top: -6px;
    content: '';
    border-radius: 50%;
}

.myLine::after{
  width: 15px;
    height:15px;
    background-color: #78A6CA;
    position: absolute;
    display: block;
    right: 0px;
    top: -6px;
    content: '';
    border-radius: 50%;
}

    /*內文中間*/
    .middleC {
        display: inline-block;
        width: 70%;
    }

    .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 right;
        padding-top:.5rem;
    }

        .Title_L h2 {
            font-size:2rem;
            font-weight: bold;
            color: #253C5A;
            margin-left: 1rem;
            margin-right: 6rem;
            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: 450px;          
    }

    .container_clear {
        clear: both;
        text-align: right;
        padding-right: 2rem;
        margin:auto;
        width: 80%;
    }
 
    /*頁尾清單內文格式*/
    footer {
        width: 100%;
        background:#DBDCDC;
        font-size: 1rem;
        text-align: center;
        color: #3E3A39;
        font-family: "微軟正黑體";
        padding-top:1rem;
    }

        /*下方功能區域-最後更新日*/
        footer nav ul > li {
            display: inline-block;
            color: #116091;
            font-size: 1.1rem;
            font-weight: bold;
            line-height: 1.2rem;
        }
            footer nav ul > li a:link {
                color: #116091;
            }

            footer nav ul > li a:focus, footer nav ul > li a:hover, footer nav ul > li a:visited {
                outline: 2px solid #116091;
                text-decoration: none;
                color: #116091;
            }

    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 {
            display: inline-block;
        }
}

@media screen and (max-width:1255px) and (min-width:874px) {
     .h_menu {
        width: 95%;
        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: 25%;
        text-align: center;
        vertical-align:top;
        padding-top: 2rem;
    }

        .middleL > ul {
            max-width:70%;
        }

    /*內文中間*/
    .middleC {
        display: inline-block;
        width: 70%;
    }

    .Logo img {
        text-align:left;
    }

    .container {
        width: 100%;
    }

    /*展開／收合功能選單*/
    div.paneD {
        font-size: 1rem;
        width: 80%;
    }

        div .paneD > div.DD {
            width: 6.5rem;
        }

    .container_clear {
        clear: both;
        text-align: right;
        padding-right: 2rem;
        margin: auto;
        width: 90%;
    }
}

@media screen and (max-width:874px) {
    header {
        width: 100%;
        background: url(../images/Templates/Banner_01.png) left bottom;
        text-align:center;
    }
    .Logo img {
        max-width: 70%;
        vertical-align: middle; 
        text-align:center;     
    }
    .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: right;
        background: #EFEEEF;
        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: #3E3A39;
        }

    .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: #E1F1FB;
        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;
        }
    .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 right;
        padding-top:.5rem;
    }

        .Title_L h2 {
        font-size: 1.7rem;
        line-height: 2.6rem;
        color: #253C5A;
        font-weight: bolder;
        padding-left: 0.5rem;
        margin-right: 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: 1rem;
    }

   /*頁尾清單內文格式*/
    footer {
        font-size: 1rem;
        text-align: center;
        color: #3E3A39;
        font-family: "微軟正黑體";
        line-height: 1.3rem;
        background:#DBDCDC;
    }

    /*下方功能區域*/
            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 {
            display: inline-block;
        }
}
