@charset "UTF-8";

/* セレクトボックス ****************************************************************************************/
/* クリック部分 */
.year_select {
    cursor: pointer;
    margin-left: 2.5vw;
    padding: 1vw;
    width: 12vw;
    display: flex;
    align-items: center;
    text-align: right;
    border-radius: 0.5vw;
    background-color: rgb(0, 115, 191);
    color: #fff;
    transition: transform 0.5s;
}

.year_select:hover {
    transform: scale(1.05);
}

.year_select_txt {
    width: 60%;
}

.year_select_arrow {
    width: 40%;
}

/* 選択部分 */
.add_year {
    position: relative;
}

.add_year_box {
    margin-left: 1.5vw;
    margin-top: 1vw;
    opacity: 0;
    height: 0;
    transition: opacity 0.5s ease, height 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(150, 150, 150, 0.8);
    border-radius: 1vw;
    overflow: hidden;
    transition: transform 0.5s;
    overflow-y: auto;
    z-index: 100;
}

.add_year_box.limited-height {
    max-height: calc(4 * 4vw);
    /* .add_year_box div5個分の高さに固定*/
}

.add_year_box.visible {
    opacity: 1;
    height: auto;
}


.add_year_box div {
    padding-top: 1.2vw;
    height: 4vw;
    cursor: pointer;
    width: 14vw;
    text-align: center;
    border-radius: 1vw;
    font-size: 1vw;
    transition: font-size 0.3s ease;
    color: #fff;
}

.add_year_box div:hover {
    background-color: rgba(130, 130, 130, 0.8);
    box-shadow: 0px 1px 19px -6px rgba(130, 130, 130, 0.8);
    text-shadow: 0px 0px 5px rgba(88, 88, 88, 0.5);
    color: #fff;
    font-size: 1.2vw;
}

.add_year_box::-webkit-scrollbar {
    background: rgba(130, 130, 130, 0.8);
    width: 5px;
}

.add_year_box::-webkit-scrollbar-thumb {
    background-color: rgba(220, 220, 220, 0.8);
}

/* お知らせ一覧ブロック ***************************************************************************************/
.news_contents {
    width: 80%;
    margin-left: 10%;
    margin-top: 2vw;
}

.news_box {
    margin-top: 1vw;
    margin-left: 1vw;
}

.news_list {
    margin-top: 2vw;
    display: flex;
    flex-wrap: wrap;
}

.news_item {
    cursor: pointer;
    width: 45%;
    background-color: rgb(245, 245, 245);
    padding: 10px;
    border-radius: 10px;
    margin: 2.5%;
    transition: transform 0.5s;
}

.news_item:hover {
    transform: scale(1.05);
}

.news_title {
    font-weight: bold;
    font-size: 1vw;
    padding: 0vw 1vw 2vw 1vw;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.news_date {
    color: #0871b9;
    padding: 1vw;
}

/* 次へ前へボタン ********************************************************************************************/
.prev_next {
    margin: 1vw;
}

.pagination {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.pagination div {
    font-family: Arial;
    font-size: 1.5vw;
    font-weight: 900;
    margin: 1vw;
    border-radius: 50%;
    width: 2vw;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.prev,
.next {
    cursor: default;
    color: rgb(172, 172, 172);
}

.color_change {
    cursor: pointer;
    color: #0871b9;
    transition: transform 0.5s;
}

.color_change:hover {
    color: #ff943d;
    transform: scale(1.2);
}


/* 選択したニュース表示画面 *****************************************************************************************/
/* 改行を保持する */
/* .news_text {
    white-space: pre-wrap;
} */
.choice_news_box {
    display: none;
    width: 70%;
    margin-left: 15%;
}

.choice_news {
    width: 100%;
    border-radius: 2vw;
    padding: 2vw;
    background-color: rgb(245, 245, 245);
}

.choice_news_date {
    color: #0871b9;
}

.choice_news_title {
    margin: 0.5vw 0vw 1vw 0vw;
    font-size: 1.4vw;
}

.choice_news_text {
    font-size: 1vw;
    white-space: pre-wrap;
}

.return_news_list {
    color: #0871b9;
    cursor: pointer;
    margin: 1vw;
    padding: 1vw;
    text-align: right;
}

.news-image {
    max-width: 100%;
    height: auto;
    margin-top: 1em;
    margin-bottom: 1em;
}

.news-link {
    display: inline-block;
    margin: 0.5em 0;
    color: #00b7ff;
    text-decoration: underline;
}


/* 画面サイズ変更時 **********************************************************************************************/
@media (max-width:900px) {
    .year_select {
        width: 50vw;
    }

    .add_year_box div {
        width: 50vw;
        height: auto;
        font-size: 20px;
    }

    .add_year_box.limited-height {
        max-height: calc(10 * 4vw);
    }

    .news_contents {
        width: 100%;
        margin: 0%;
    }

    .news_list {
        margin-top: 2vw;
        display: block;
    }

    .news_item {
        width: 90%;
        height: auto;
        background-color: rgb(245, 245, 245);
        padding: 10px;
        border-radius: 10px;
        margin: 5%;
    }

    .news_title {
        font-size: 16px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-wrap: break-word;
    }

    .choice_news_box {
        width: 100%;
        margin-left: 0%;
    }

    .choice_news {
        padding: 5%;
    }

    .choice_news_title {
        font-size: 20px;
    }

    .choice_news_text {
        margin-top: 5%;
        font-size: 16px;
    }

    .pagination div,
    .num {
        font-size: 30px;
        margin: 15px;
    }
}