﻿.condiv {
    width: 95%;
    margin: 0 auto;
    text-align: left;
    letter-spacing: 0.1rem;
    font-size: 1.1rem;
    line-height: 2rem;
}

h3 {
    letter-spacing: 0.1rem;
    color: #3C3C3C;
    display: block;
    line-height: 2rem;
}
    h3::before {
        content: '❖';
        margin-right: 0.5rem;
    }

    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;
    color:#000000;
}

/*服務公告列表標題和時間、文件下載列表標題和時間*/
.Ptitle {
    width: 95%;
    min-height: 1px;
    margin-bottom: 1.3rem;
}

    .Ptitle li {
        padding: 0.8rem 0.5rem;
        margin: 1rem 0;
        border: 2px solid #e9e8e8;
        border-radius: 1rem;
        background: #ffffff;
    }

        .Ptitle li a:link, .Ptitle li a:visited {
            color: #3C3C3C;
        }

        .Ptitle li a:hover, .Ptitle li a:active {
            color: #B22222;
        }

/*公告日期*/
.datemark {
    display: inline-block;
    text-align: center;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #000000;
    margin-left: 0.5rem;
    background-color: #ffe1c5;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 5rem;
    vertical-align: text-top;
}

.text {
    width: 80%;
    display: inline-block;
    vertical-align: text-top;
    margin-left: 1rem;
}

.text-dark {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    vertical-align:middle;
}

/*置頂重要*/
.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 {
    position: relative;
    padding: 0.7rem 1rem 0.7rem 1rem;
    background: #fff4db;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: left;
    color: #000000;
}

    .tList_Title:after {
        position: absolute;
        content: '';
        top: 100%;
        left: 20px;
        border: 13px solid transparent;
        border-top: 13px solid #fff4db;
        width: 0;
        height: 0;
    }

.t_Content {
    margin-top: 0.4rem;
    border: 1px solid #969696;
    padding: 0.5rem;
    border-radius:0.5rem;
}

.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;
}

.Content {
    margin: 0.3rem auto;
    padding: 0.5rem;
    border: 1px #bfbbbb solid;
    border-radius: 10px;
}

.tCount {
    text-align: right;
    font-size: 0.9rem;
}

.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;
}

/*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: #FFF8D7;
    color: #4D3900;
    text-align: center;
    border: 0.15rem solid #4D3900;
    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: #FFF8D7;
        border: 1px solid #4D3900;
        padding: 0.3rem;
        color: #4D3900;
    }

    .TableStyle1 td {
        border: 1px solid #4D3900;
        padding: 0.5rem;
    }

        .TableStyle1 td.tdleft {
            text-align: left;
        }

        .TableStyle1 td.keep {
            word-break: keep-all;
            white-space: nowrap;
        }

        .TableStyle1 .dinone {
            display: normal;
        }

    .TableStyle1 .rwdfloor {
        display: none;
    }

    .TableStyle1 .block {
        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-bottom: 4rem;
    width: 70%;
}

    .list a {
        position: relative;
        display: block;
        padding: 0.4rem 0.4rem 0.4rem 1rem;
        margin: 1rem 0;
        background: #fff4db;
        color: #000000;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: bolder;
        letter-spacing: 0.1rem;
    }

        .list a:hover {
            background: #eee;
        }

        .list a::before {
            content: counter(li);
            counter-increment: li;
            position: absolute;
            top: 50%;
            left: -2.6rem;
            margin-top: -1.3rem;
            background: #ffe1c5;
            height: 2.6rem;
            width: 2.2rem;
            line-height: 2.6rem;
            text-align: center;
            font-weight: bold;
            color: #000000;
        }

        .list a::after {
            position: absolute;
            content: "";
            border: 0.6rem solid transparent;
            left: -1.3rem;
            top: 50%;
            margin-top: -0.6rem;
        }

        .list a:hover::after {
            left: -0.5rem;
            border-left-color: #ffe1c5;
        }

/*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%;
    }

    /*文件下載,殯葬法規*/
    .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:715px) {
    .Ptitle {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .Ptitle li {
        padding-top: 0.2rem;
    }

    .datemark {
        width: 95%;
        margin: 0 auto;
        margin-left: 0;
    }

    .text {
        width: 98%;
        margin-left: 0.2rem;
    }

}

@media screen and (max-width:599px) {
    .TableStyle1 tr {
        display: block;
        margin-bottom: 0.5rem;
        margin-left: 0.5rem;
        border-top: 1px solid #4D3900;
        border-left: 1px solid #4D3900;
        border-right: 1px solid #4D3900;
    }

    .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 #4D3900;
        text-align: left;
    }

        .TableStyle1 td.Tone {
            background-color: #FFECC9;
            color: #000000;
        }

        .TableStyle1 td.Ttwo {
            background-color: #FFF8D7;
            color: #000000;
        }

        .TableStyle1 td.Tthree {
            background-color: #dbdbdb;
            color: #000000;
        }


        .TableStyle1 .dinone {
            display: none;
        }

    .TableStyle1 .rwdfloor {
        display: inline-block;
    }

    .TableStyle1 .block {
        display: 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;
    }
}
