﻿
/* ニュース一覧 */

table.newsList {
    width: 100%;
}

ul.newsListItem {
    list-style: none;
    margin: 0 auto 15px;
    padding: 0;
    width: 95%;
}
    ul.newsListItem li {
        position: relative;
    }
        ul.newsListItem li a:link,
        ul.newsListItem li a:visited {
            display: block;
            background-color: #fefefe;
            border: 1px solid #aaa;
            border-radius: 4px;
            padding: 20px 16px;
            vertical-align: top;
            color: #151515;
            width: 100%;
            box-sizing: border-box;
            box-shadow: 6px 10px 10px -6px rgba(0, 0, 0, 0.3);
            transition: 0.3s;
        }

        ul.newsListItem li div.imgArea,
        ul.newsListItem li div.textArea {
            display: table-cell;
        }
        ul.newsListItem li div.imgArea {
            width: 20%;
        }
            ul.newsListItem li div.imgArea img {
                display: block;
                border-radius: 4px;
                margin: 0 auto;
                height: auto;
                width: 100%;
                object-fit: contain;
            }
        ul.newsListItem li div.textArea {
            position: relative;
            vertical-align: top;
            padding: 0 15px;
            box-sizing: border-box;
            word-break: break-all;
            width: 80%;
        }
@media (min-width: 960px) {
    ul.newsListItem li a:hover {
        text-decoration: none;
        transform: scale(1.02);
        box-shadow: 6px 10px 10px -6px rgba(0, 106, 182, 0.3);
        color: #069;
    }
}
@media (max-width: 1259px) {
    ul.newsListItem li div.imgArea {
        width: 30%;
    }
}
@media (max-width: 559px) {
    ul.newsListItem {
        width: 90%;
    }
    ul.newsListItem li div.imgArea,
    ul.newsListItem li div.textArea {
        display: block;
        padding: 0;
        width: 100%;
    }
    ul.newsListItem li div.imgArea {
        margin-bottom: 10px;
        text-align: center;
    }
}

.newsTag {
    display: inline-block !important;
    border-radius: 3px;
    padding: 1px 10px;
    color: #fff;
}
.closeNewsTag {
    display: inline-block !important;
    background-color: red;
    border-radius: 3px;
    padding: 1px 10px;
    color: #fff;
}
.limitNewsTag {
    display: inline-block !important;
    background-color: blue;
    border-radius: 3px;
    padding: 1px 10px;
    color: #fff;
}
.newsTit {
    display: block;
    margin-top: 3px;
    font-weight: bold;
    font-size: 1.2rem;
    width: 80%;
}
.newsSummary {
    display: block;
    margin-top: 10px;
    margin-bottom: 1.5em;
}
.newsDate {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    text-align: right;
}
@media (max-width: 559px) {
    .newsDate {
        position: relative;
        margin-top: 5px;
        text-align: right;
    }
}
.newsOffice {
    display: inline-block !important;
    text-align: left;
    background-color: rgb(210, 83, 131);
    border-radius: 3px;
    margin-right: 5px;
    padding: 0 5px;
    color: #fff;
}
@media (max-width: 559px) {
    .newsOffice {
        left: 0;
    }
}

/* ページャ */
.newsListPager table {
    table-layout: fixed;
    margin-top: 25px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
    .newsListPager table td {
        background-color: #fff;
        padding: 0 5px;
        text-align: center;
    }
        .newsListPager table td:before {
            display: none;
        }
        .newsListPager table td span {
            background-color: #295d72;
            border-radius: 50px;
            padding: 7px 13px;
            font-weight: bold;
            color: #fff;
        }
        .newsListPager table td a:link,
        .newsListPager table td a:visited {
            display: block;
            margin: 0 auto;
            padding: 10px 16px;
            text-align: center;
            text-indent: 0;
            color: #151515;
            transition: 0.1s;
        }
        .newsListPager table td a:hover {
            text-decoration: none;
            background-color: #337ab7;
            color: #fff;
        }
@media (max-width: 559px) {
    .newsListPager table td {
        display: inline-block;
    }
        .newsListPager table td span {
            padding: 7px 10px;
        }
}

/* 検索エリア */
div.srchArea {
    position: relative;
    background-color: papayawhip;
    margin: 0;
    padding: 16px 15px;
    width: 100%;
    box-sizing: border-box;
}
    div.srchArea input[type=text] {
        width: 40%;
    }
    div.srchArea select {
        margin: auto 2px;
    }
    div.srchArea div.btnClear {
        display: inline-block;
        border-left: 2px dotted #888;
        margin: 5px auto 5px 3px;
        padding-left: 10px;
        box-sizing: border-box;
    }
@media (max-width: 959px) {
    div.srchArea select {
        margin: 5px 0;
    }
}
@media (max-width: 559px) {
    div.srchArea input[type=text] {
        width: 70%;
    }
    div.srchArea select {
        margin: 10px 0 0;
    }
    div.srchArea div.btnClear {
        margin: 7px 0 0 auto;
    }
}

/* 記事詳細 */
div.detailArea {
    position: relative;
    background-color: #fcfcfc;
    border: 1px solid #aaa;
    border-radius: 4px;
    margin: 20px auto 0;
    padding: 30px 5%;
    max-width: 1200px;
    box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    width: 95%;
}
    div.detailArea span {
        display: block;
    }

.newsOfficeName {
    display: inline-block !important;
    background-color: rgb(210, 83, 131);
    border-radius: 3px;
    margin-bottom: 5px;
    padding: 0 5px;
    color: #fff;
}
@media (max-width: 559px) {
    .newsOfficeName {
        display: table!important;
    }
}

.newsDtlTit {
    padding: 5px 5px 0;
    font-weight: bold;
    font-size: 1.4em;
}
@media (max-width: 559px) {
    .newsDtlTit {
        padding: 5px 0;
    }
}
.newsDtlDate {
    text-align: right;
}

ul.newsImages {
    list-style: none;
    padding: 0;
    text-align: center;
    width: 100%;
}
    ul.newsImages li {
        display: inline-block;
        vertical-align: top;
        padding: 5px;
        width: 25%;
        box-sizing: border-box;
    }
    ul.newsImages:has(> :nth-child(1):last-child) li {
        width: 50%;
    }
        ul.newsImages li a:link,
        ul.newsImages li a:visited {
            width: 100%;
            transition: all .4s ease-in-out;
        }
        ul.newsImages li a img {
            position: relative;
            top: 0;
            border-radius: 4px;
            width: 100%;
            transition: 0.3s;
        }
@media (min-width: 960px) {
    ul.newsImages li a img:hover {
        top: -5px;
        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4);
        border-color: transparent;
    }
}
@media (max-width: 559px) {
    ul.newsImages:has(> :nth-child(1):last-child) li {
        width: 100%;
    }
    ul.newsImages:has(> :nth-child(2)) li {
        width: 50%;
    }
    ul.newsImages:has(> :nth-child(3):last-child) li:first-child {
        width: 100%;
    }
    ul.newsImages:has(> :nth-child(3):last-child) li {
        width: 50%;
    }
}

.newsDtlContent {
    border-top: 1px solid #aaa;
    margin: 5px auto;
    padding: 16px 0;
    overflow-wrap: break-word;
    box-sizing: border-box;
}
    .newsDtlContent img {
        max-width: 100%!important;
        height: auto!important;
    }

    .newsDtlContent table {
        width: 100%!important;
    }
        .newsDtlContent table th,
        .newsDtlContent table td {
            background-color: none;
            border: none;
            padding: initial;
            box-sizing: border-box;
        }
            .newsDtlContent table td:before {
                content: "";
                border: none;
                margin: 0;
            }
    .newsDtlContent iframe {
        max-width: 100%!important;
    }
@media (max-width: 559px) {
    .newsDtlContent table th,
    .newsDtlContent table td {
        display: table-cell;
        border: none;
        padding: 0;
    }
}

.editBtnArea {
    position: absolute;
    top: 10px;
    right: 10px;
}
    .editBtnArea .edit {
        margin-right: 5px;
    }
    .editBtnArea .delete {
        background-color: crimson;
        border: 1px solid crimson;
    }
        .editBtnArea .delete:hover {
            background-color: brown;
            border: 1px solid brown;
        }
@media (max-width: 559px) {
    .editBtnArea {
        position: absolute;
        top: 5px;
        right: 5px;
    }
}

/* Goodボタン */
table.voteTbl {
    margin-top: 45px;
    max-width: 800px;
}
    table.voteTbl td {
        background-color: #fff;
        border: none;
        vertical-align: top;
        text-align: center;
        width: 20%;
    }
        table.voteTbl td input[type=image] {
            width: 50px;
            transition: 0.3s;
        }
            table.voteTbl td input[type=image]:hover {
                transform: scale(1.1);
            }
        table.voteTbl td div.goodTxt {
            font-size: 0.9em;
        }
        table.voteTbl td div.goodCount {
            font-weight: bold;
            font-size: 1.2em;
            color: rgb(210, 83, 131);
        }