﻿.condiv {
    width: 95%;
    margin: 0 auto;
    text-align: left;
    letter-spacing: 0.1rem;
    font-size:1.05rem;
}

h3 {
    letter-spacing: 0.1rem;
    color: #3C3C3C;
    display: block;
    line-height: 2rem;
}
    h3 > span {
        border-bottom: 0.2rem double #3C3C3C;
        padding: 0.2rem;
    }

input[type=button], input[type=submit] {
    -webkit-appearance: none; /* Safari 和 Chrome，常用於iOS下移除內建樣式 */
    -moz-appearance: none; /* FireFox */
    height: 1.9rem;
    vertical-align: middle;
    background: #dbdbdb;
    border: 1px #9D9D9D solid;
}

/*服務公告列表標題和時間、文件下載列表標題和時間*/
.Ptitle {
    text-align: left;
    list-style: none;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0px;
    word-break: break-all;
}
    .Ptitle li:first-child {
        margin-top: 0;
    }

    .Ptitle li {
        margin-top: 0.5rem;
        border-bottom: 1px dashed #0D589F;
        padding: 0;
    }

        .Ptitle li a:link, .Ptitle li a:visited {
            color: #3C3C3C;
        }

        .Ptitle li a:hover, .Ptitle li a:active {
            color: #B22222;
        }

    /*公告日期*/
    .Ptitle .Ptitledate {
        display: inline-block;
        width: 6rem;
        font-size: 0.8rem;
        background-color: #036EB8;
        color: #ffffff;
        margin-right: 0.2rem;
        padding: 0.1rem 0.1rem;
        vertical-align: top;
        text-align: center;
        font-weight: bolder;
        line-height: 1.8rem;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        margin-bottom:0.2rem;
    }

    /*標題*/
    .Ptitle .Ptitletxt {
        display: inline-block;
        width: 80%;
        vertical-align: top;
        overflow: hidden; /*--設定超出的內容隱藏, IE, FireFox通用--*/
        text-overflow: ellipsis; /*--(IE專用)在內容超出時,在後方補上逗號--*/
        white-space: nowrap; /*-- 設定內容強制顯示一行,直到內容結束或<br>--*/
        padding: 0.1rem 0;
    }

        .Ptitle .Ptitletxt:hover {
            background-color: #F0F0F0;
        }

/*置頂重要*/
.impt {
    background-color: #D9006C;
    color: #ffffff;
    padding: 0 0.2rem;
    border-radius: 10px;
    margin-right: 0.2rem;
    display: inline-block;
}

    /*頁碼*/
    .page {
        /*字置中*/
        text-align: center;
        /*外距*/
        margin-top: 15px;
        margin-bottom: 10px;
        text-shadow: none;
    }

    .page a {
        /*無底線*/
        text-decoration: none;
        /*區塊*/
        display: inline-block;
        /*邊線*/
        border: 1px solid #2E4986;
        /*內外距*/
        padding: 5px 10px;
        margin: 1px;
        /*背景顏色 白*/
        background-color: #ffffff;
        /*字顏色 黑*/
        color: #000000;
        /*字位置*/
        vertical-align: middle;
        text-align: center;
        letter-spacing: normal;
    }

        .page a:hover {
            /*邊線*/
            border: 1px solid #2E4986;
            /*背景顏色 灰*/
            background-color: #dbdbdb;
            /*字顏色 黑*/
            color: #000000;
        }

    .page .currentpage {
        /*背景顏色 藍*/
        background-color: #2E4986;
        /*字顏色 白*/
        color: #ffffff;
        /*邊線*/
        border: 1px solid #2E4986;
    }

/*第一頁*/
.one {
    display: inline-block;
    min-width: 5rem;
}

/*數字頁碼*/
.pmiddle {
    display: inline-block;
    width: 10rem;
    text-align: center;
}

    .pmiddle .DDList {
        font-size:large;
        height:31px;
        vertical-align: middle;
        margin-right: 0.2rem;
    }

/*最終頁*/
.end {
    display: inline-block;
    min-width: 5rem;
}

/*服務公告內容標題和時間、文件下載內容標題和時間*/
.matterdiv {
}

.tList_Title {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: left;
    color: #470024;
    word-break: break-all;
    margin: 0 auto;
    padding: 0.5rem;
    background: #E6E6FA;
    border: 1.5px #B8A1CF solid;
    border-radius: 10px;
}

.tList_Content {
    width: 98%;
    margin: 0 auto;
}

.tList_Date {
    margin-top: 0.5rem;
    text-align: right;
    font-size: 0.9rem;
    color: #565657;
    padding-bottom: 0.2rem;
}

.Append {
    margin: 0 auto;
    letter-spacing: 0.1em;
    width: 98%;
    padding: 0.2rem;
    border-radius: 10px;
}

.Append li{
    margin-bottom:0.5rem;
    padding:0.2rem;
}

    .Append li img {
        vertical-align: middle;
    }  

.ControlMenu {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
    /*底部控制項*/
    .ControlMenu a {
        display: inline-block;
        /*無底線*/
        text-decoration: none;
        /*邊線*/
        border: 1px solid #dbdbdb;
        /*背景顏色 */
        background-color: #ffffff;
        /*內距*/
        padding: 10px;
        /*字距*/
        letter-spacing: 0.2em;
        /*字顏色*/
        color: #000000;
        margin: 0.3rem;
        
    }

        .ControlMenu a:hover {
            background-color: #dbdbdb;
            color: #000000;
        }

/*do錯誤*/
.doMsg {
    text-align: center;
    margin-top: 8rem;
    color: #903;
    letter-spacing: 0.2em;
}

/*沒資料*/
.ndata {
    text-align: center;
    margin-top: 8rem;
    color: #595757;
    letter-spacing: 0.2em;
}

/*04A警語*/
.mmsg {
    text-align: left;
    letter-spacing: 0.1rem;
    color: #C2006C;
}

/*米字**/
.miword {
    color: #C2006C;
    text-indent: -1rem;
    margin-left: 1rem;
}

/*textbox錯誤*/
.msgdiv {
    width: auto;
    height: 2rem;
    text-align: center;
    margin: 0 auto;
}

/*錯誤訊息*/
.eMsg {
    color: #D50000;
}

.sMsg {
    color: #007500;
}

/*文件下載,殯葬法規*/
.tconent {
    width: 80%;
    margin: 0 auto;
}

    .tconent ul {
        margin: 0;
    }

        .tconent ul > li {
            border-bottom: 0.05rem #808080 solid;
            padding: 0.5rem;
            padding-left: 1rem;
            margin-left: 0.9rem;
            text-indent: -0.9rem;
        }

            .tconent ul > li img {
                vertical-align: top;
            }

/*建議路線 應備文件 查詢條件*/
.sspan {
    background: #E1F1E7;
    color: #395f78;
    text-align: center;
    border: 0.15rem solid #B1D3C5;
    padding: 0.1rem;
    word-break: keep-all;
    white-space: nowrap;
    font-weight: bold;
}

/*表格*/
.TableStyle1 {
    border-spacing: 0 0;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
    width: 80%;
}

    .TableStyle1 th {
        background-color: #D2E9FF;
        border: 1px solid #003D79;
        padding: 0.3rem;
        color: #000000;
    }

    .TableStyle1 td {
        border: 1px solid #003D79;
        padding: 0.5rem;
    }

        .TableStyle1 td.tdleft {
            text-align: left;
        }

        .TableStyle1 td.keep {
            word-break: keep-all;
            white-space: nowrap;
        }

        .TableStyle1 td.dinone {
            display: normal;
        }

    .TableStyle1 .rwdfloor {
        display: none;
    }

    .TableStyle1 td span {
        word-break: keep-all;
        white-space: nowrap;
    }

/*留言聯絡table樣式*/
#P1014_table {
    display: table;
    border-collapse: collapse;
    border-spacing: 0;
    width: 80%;
    margin: 0 auto;
}

.P1014_tr {
    display: table-row;
}

.P1014_th {
    display: table-cell;
    background-color: #E6E6FA;
    padding: 0.2rem;
    text-align: center;
    border: 1px solid #B8A1CF;
    font-weight: bolder;
    width: 20%;
}

.P1014_td {
    display: table-cell;
    padding: 0.2rem;
    text-align: center;
    border: 1px solid #B8A1CF;
}

    .P1014_td .tabletb {
        width: 95%;
        height: 1.2rem;
        margin: 0.2rem 0;
    }

/*驗證碼後的T*/
#P1014_table a.ChkcoodTxt {
    border-radius: 0.5rem;
    padding: 0.2rem 0.5rem;
    letter-spacing: 0rem;
    background-color: #999999;
    color: #000000;
    cursor: pointer;
    font-weight: bold;
    vertical-align: middle;
}

    #P1014_table a.ChkcoodTxt:hover {
        background-color: #585053;
        color: #FFF;
    }

    #P1014_table a.ChkcoodTxt:focus {
        background-color: #585053;
        color: #FFF;
    }

/*驗證碼*/
#imgValidateCode {
    border-color: #999999;
    border-width: 1px;
    margin: 5px;
    border-style: solid;
    vertical-align: middle;
}

    #imgValidateCode:focus {
        outline: 2px solid #03375B;
    }

/*菜單*/
.list {
    counter-reset: li; /*數字*/
    list-style: none;
    padding: 0;
    padding-left: 2rem;
    margin: 0 auto;
    margin-top: 3rem;
    margin-bottom: 4rem;
    width: 70%;
}

    .list a {
        position: relative;
        display: block;
        padding: 0.4rem 0.4rem 0.4rem 1rem;
        margin: 1rem 0;
        background: #FDF5E6;
        color: #28004D;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: bolder;
        letter-spacing: 0.1rem;
    }

        .list a:hover {
            background: #eee;
        }

        .list a::before {
            position: absolute;
            top: 0;
            bottom: 0;
            left: -2.4rem;
            width: 1.9rem;
            text-align: center;
            color: #000000;
            font-weight: bold;
            background: #FFE5B4;
            border-bottom-left-radius: 70em;
            border-top-left-radius: 70em;
            counter-increment: li;
            content: counter(li);
            padding-left: 0.35rem;
            padding-top: 0.35rem;
        }

/*3張照片*/
.imgdiv img {
    max-width: 100%;
}

/*開頭*/
.indent2 {
    text-indent: 2.2rem;
}

@media screen and (max-width:874px) {
    .ndata, .doMsg {
        margin: 5rem auto;
    }
}

@media screen and (max-width:760px) {
    .condiv {
        width: 100%;
    }
 
    .Ptitle .Ptitletxt {
        width: 95%;
    }

    /*文件下載,殯葬法規*/
    .tconent {
        width: 100%;
    }

    /*表格*/
    .TableStyle1 {
        width: 90%;
    }

        .TableStyle1 th {
            padding: 0.1rem;
        }

        .TableStyle1 td {
            padding: 0.3rem;
        }

    #P1014_table {
        width: 100%;
    }

    .P1014_th {
        word-break: keep-all;
        white-space: nowrap;
    }
}

@media screen and (max-width:599px) {
    .TableStyle1 tr {
        display: block;
        margin-bottom: 0.5rem;
        margin-left: 0.5rem;
        border-top: 1px solid #003D79;
        border-left: 1px solid #003D79;
        border-right: 1px solid #003D79;
    }

    .TableStyle1 .thtr {
        display: none;
    }

    .TableStyle1 th {
        display: none;
    }

    .TableStyle1 thead {
        display: none;
    }

    .TableStyle1 td {
        display: block;
        padding: 0.3rem 0.5rem;
        border: none;
        border-bottom: 1px solid #003D79;
        text-align: left;
    }

        .TableStyle1 td.Tone {
            background-color: #D2E9FF;
            color: #000000;
        }

        .TableStyle1 td.Ttwo {
            background-color: #FFECC9;
            color: #000000;
        }

        .TableStyle1 td.dinone {
            display: none;
        }

    .TableStyle1 .rwdfloor {
        display: inline-block;
    }

    .TableStyle1 .inblock {
        display: inline-block;
    }

    .TableStyle1 img {
        display: none;
    }

    .TableStyle1 td:before {
        content: attr(data-title)"：";
        font-weight: bold;
        display: inline-block;
        color: #1f1f1f;
        padding-bottom: 0.1rem;
        padding-top: 0.1rem;
    }
}

@media screen and (max-width:390px) {
    /*第一頁*/
    .one {
        display: inline-block;
        width: 100%;
        text-align:center;
    }

    /*數字頁碼*/
    .pmiddle {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin:0.3rem auto;
    }

    /*最終頁*/
    .end {
        display: inline-block;
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width:360px) {
    .condiv {
        letter-spacing:0;
    }

    .miword {
        margin-left: 0;
        text-indent: 0;
    }
}
