:root {
  --txt-color: #23861F;
}

header {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    background: white;
}

.top-message-wrapper {
    /* background: #fff8e0; */
    margin-top: 100px;
    overflow: hidden;
}

@media screen and (max-width: 921px){
    .top-message-wrapper {
    margin-top:60px;
    }
}

.top-message {
    background: url(../img/bg_top.png?250328) top center / 100% no-repeat;
    aspect-ratio: 1600/626;
    max-width: 1040px;
    margin: auto;
}

@media screen and (max-width: 920px) {
    .top-message-wrapper {
    background-position:top 60px center;
    }
}

.top-sns {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 15px;
}

.top-sns li img {
    width:40px;
}

.top-sns li:first-child {
    scale:.87;
}

.top-sns li:last-child {
    margin-left:.2em;
}

.top-message-wrapper > div.top-comment {
    max-width: 810px;
    padding: 0 20px;
    margin: 24px auto 50px;
    position: relative;
    text-align: justify;
    word-break: auto-phrase;
}

.top-message p {
    color: #23861F;
    font-size: 50px;
}

/*.top-comment p {
    font-size: 18px;
}
*/
.top-comment p + p {
    margin-top: 1em;
}

@media screen and (max-width: 1200px){
    .top-message-wrapper {
    background-size:1200px;
    }
    .top-message p {
        font-size:40px;
    }
}

@media screen and (max-width: 1000px){
    .top-message-wrapper {
    background-size:1000px;
    }
    .top-message p {
        font-size:30px;
    }
}

.top-news {
    margin-bottom: 90px;
}

.top-news h2 {
    text-align:center;
    color: var(--txt-color);
    font-size: 22px;
    font-weight: normal;
}

.top-news ul {
    border: solid var(--txt-color);
    border-width: 1.2px 0 0;
    margin: 25px auto 0;
    max-width: 810px;
    height: 596px;
    overflow-y: scroll;
}

.top-news ul li {
    display:flex;
    gap:15px;
    padding:15px;
    font-size:18px;
}

.top-news ul li + li {
    border-top: 1.2px solid var(--txt-color);
}

.top-news ul li .news-date {
    color: var(--txt-color);
    width: 67px;
}

.top-news ul li .news-date + p {
    flex:1;
}

.top-news ul li .news-content {
    flex:1;
}

.top-news ul li .news-content a {
    color:black;
}

.top-news ul li .news-content a:hover {
    text-decoration: underline;
}

.pagination {
    max-width: 810px;
    margin-left: auto;
    margin-right: auto;
    padding:0 20px 0;
}

/*------------------------------------------------*/

.top-banner {
    display: flex;
    gap: 25px 35px;
    margin:auto;
    max-width: 1080px;
    padding: 0 20px;
    box-sizing: border-box;
}

.top-banner a:hover {
    opacity: .7;
}

.top-banner img {
    width:100%;
}

@media (max-width: 600px){
    .top-banner {
        flex-direction:column;
        max-width:340px;
    }
}