div.firstview {
    background-image: url('../images/pict17.jpg');
}

p.corona_info
{
    color: inherit;
    text-align: left;
}

.corona_info > span
{
    color: #FF1D25;
    font-weight: 700;
}


ul.area {
    margin: 20px auto;
    padding: 0;
    list-style: none;
    height: 3rem;
}

ul.area > li {
    display: inline-block;
    width: 120px;
    height: 3rem;
    position: relative;
}

ul.area > li:after {
    content: "";
    position: absolute;
    width: 1.4rem;
    height: 1px;
    background-color: #cbcbcb;
    transform: rotate(90deg);
    right: -10px;
    top: 50%;

    width: 1px;
    height: 1.4rem;
    transform: translateY(-50%);
    right: 0;
}

/* ul.area > li:first-of-type:before { */
ul.area > li::before {
    content: "";
    position: absolute;
    width: 1.4rem;
    height: 1px;
    background-color: #cbcbcb;
    transform: rotate(90deg);
    left: -10px;
    top: 50%;

    width: 1px;
    height: 1.4rem;
    transform: translateY(-50%);
    left: -1px;
}

ul.area > li > a {
    display: block;
    height: 100%;
    color: #999;
    text-decoration: none;
    position: relative;
}

ul.area > li > a > p {
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    width: 100%;
    text-align: center;
}

div.content_wrap {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

div.list-contents {
    padding-top: 100px;
}

div.list-contents a {
    color: #289E4E;
}

div.list-contents > p {
    text-align: center;
    color: #006833;
    font-size: 2.6rem;
    line-height: 3rem;
    letter-spacing: 0.5rem;
    margin-bottom: 15px;
}

div.list-contents > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

div.list-contents > ul > li {
    display: inline-block;
    width: 45.5%;
    margin: 2%;
    position: relative;
    padding: 15px 0;
}

div.list-contents > ul> li:before {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #6cb77f;
    position: absolute;
    top: 0;
    left: 0;
}

div.list-contents > ul> li:after {
    content: "";
    width: 100%;
    height: 1px;
    background-color: #90c9a0;
    position: absolute;
    transform: translateY(100%);
    bottom: 0;
    left: 0;
}

div.list-contents > ul > li > p.title {
    position: relative;
    padding-bottom: 15px;
}

div.list-contents > ul > li > p.title:after {
    content: "";
    width: 100%;
    height: 1px;
    background-color: #90c9a0;
    position: absolute;
    transform: translateY(100%);
    bottom: 0;
    left: 0;
}

div.list-contents > ul > li > p.date {
    padding-top: 15px;
}

div.list-contents > ul > li > p.link > a {
    color: #289f4f;
}

div.list-contents > ul > li > p.link > a:hover {
    color: #006833;
}

div.list-contents.one {
    display: inline-block;
    width: 49%;
    max-width: 585px;
}

div.one div.content--flex-table > table {
    width: 100%;
}

div.content--flex-table {
    justify-content: center;
}

div.brochure {
    text-align: right;
    margin-top: 5px;
}

div.brochure a {
    display: inline-block;
    border-radius: 5px;
    color: white;
    background-color: #016934;
    text-decoration: none;
    padding: 0 10px 0 26px;
    position: relative;
}

div.brochure a:before {
    content: "";
    height: 0;
    width: 0;
    border: solid 6px transparent;
    border-left: solid 10px white; 
    display: inline-block;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

span.caution {
    color: red;
}

td.date {
    position: relative;
}

div.close {
    color: red;
    position: absolute;
    transform: translate(0, -50%);
    right: 5px;
    top: 50%;
}




@media(max-width: 767px){
    div.guidance-list > div.list-contents > ul > li {
        margin: 0;
        width: 100%;
    }
    
    div.content--flex-table {
        width: 100%;
    }
    
    div.close {
        color: red;
        position: absolute;
        transform: translate(0);
        right: 5px;
        top: inferit;
        bottom: 0;
    }
    
    div.list-contents.one {
        display: block;
        width: 100%;
    }

    ul.area
    {
        max-width: 260px;
    }
}

.banner {
    display: inline-block;
    margin-top: 4px;
}

.banner img {
    width: 100%;
}

@media(any-hover:hover){
    .banner:hover {
        opacity: 0.8;
    }
}



/* 以下  2024-11-27 追記 */

div.content--flex-table {
    display: grid;
    gap: 20px 2%;
    grid-template-columns: repeat(auto-fit, 49%);
}

div.content--flex-table.one-content {
    grid-template-columns: 1fr;
}

div.content--flex-table > table {
    margin: 0;
    width: 100%;
}

div.content--flex-table > table:nth-of-type(2n){
    margin: 0;
}

@media(max-width: 767px){
    div.content--flex-table {
        grid-template-columns: 1fr;
    }
}


td > p {
    line-height: 1.7;
}

td > p:not(:first-of-type){
    margin-top: 0.8em;
}

td a {
    display: inline-block;
    line-height: 1.4;
    overflow-wrap: anywhere; /* 収まらない場合に折り返す */
    word-break: break-all;
}

td img {
    margin-top: 0.8em;
    width: 100%;
    vertical-align: middle;
}

@media(max-width: 767px){
    .pc-only { display: none; }
}