/* モーダルの初期状態は非表示 */
.side-modal__content {
    position: relative;
}
button {
    background: none;
    border: none;
}
.side-modal {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%; /* 画面外に隠す */
    transition: right 0.3s ease-in-out;
    z-index: 10; /* 必要に応じて */
    display: flex;
    flex-direction: row;
}
.news-over {
    z-index: 11;
}

.side-modal-news-background {
    width: 32.4305555556vw;
    height: 100vh;
    left: 0;
    background:rgba(255,255,255,0.5);
}

/* モーダルコンテンツ領域 */
.side-modal__content {
    width: 67.56944444444444vw;
    height: 100vh;
    right: 0;
    background-color: #FFF8E6;
    overflow: scroll;
}

/* 閉じるボタン */
.side-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.earth-barcode {
    width: 3vw;
    margin-top: 0.4vw;
    margin-left: -0.3vw;
}

/* .is-active クラスが付与されたら表示位置を変更 */
.side-modal.is-active {
    right: 0; /* 画面右端に固定表示 */
}
.fixed-body {
    overflow: hidden;
}

.side-modal-content-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 8.055555555555555vw;
}

.side-modal-content-top-left {
    display: flex;
    flex-direction: column;
    font-size: 0.6944444444444444vw;
}

.side-modal-content-top-right {
    display: flex;
    flex-direction: row;
}

.side-modal-content-top-right-time {
    display: flex;
    flex-direction: column;
}

.side-modal-content-article-top-line {
    display: flex;
    flex-direction: row;
    margin-top: 3%;
}
.side-modal-news-section .side-modal-content-article-top-line {
    margin-top: 2.6vw;
}

.side-modal .modal-button {
    background: none;
    border: none;
    width: 10.76388888888889vw;
}
.side-modal-content-kv {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -4vw;
}
.side-modal-content-category {
    display: flex;
    flex-direction: row;
    width: 48.773611111111116vw;
}
.modal-thumbnail {
    width: 48.773611111111116vw;
}
.side-modal-content-article {
    width: 37.708333333333336vw;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: 11.2vw;
    overflow-wrap: break-word;
}

.side-modal-content-move {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.side-modal-content-move-button {
    width: 48.773611111111116vw;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 4%;
}
.side-modal-content-move-button button {
    width: 5.555555555555555vw;
    height: auto;
    height: fit-content;
}
.side-modal-content-move-back {
    width: 100%;
}
.news-over .side-modal-content-move-back {
    width: 48.773611111111116vw;
}
.side-modal-content-category {
    margin-bottom: 3%;
}
.side-modal-content-category-news {
    width: 0.4861111111111111vw;
    height: fit-content;
    margin-right: 0.4166666666666667vw;
}
.side-modal-content-article-top-line-img {
    margin-right: 0.9027777777777777vw;
    width: 6.041666666666667vw;
}
.side-modal-content-article-top-line-date {
    display: flex;
    flex-direction: column;
    justify-content: end;
}
#sideModal .side-modal-content-top-news-index {
    font-size: 2.2222222222222223vw;
    line-height: 1;
    margin-top: 2.4vw;
    margin-bottom: 1.8vw !important;
}
#sideModal .side-omdal-content-kv {
    margin-left: -3vw;
}
.side-modal-content-article-title {
    font-size: 2.2222222222222223vw;
    margin-top: 7%;
    margin-bottom: 2%;
    line-height: 1;
}
.side-modal-content-article-subtitle {
    font-size: 1.1111111111111112vw;
    margin-bottom: 6%;
}
#modal-content-en {
    margin-bottom: 10%;
    font-size: 0.7638888888888888vw;
}
#modal-content-jp {
    font-size: 1.1111111111111112vw;
}
.news-next-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: end;
}
.side-modal-content-move-back {
    margin-top: 4vw;
    margin-bottom: 5vw;
}
#sideModal .side-modal-content-move-back {
    width: 55.773611vw;
}

@media screen and (max-width: 751px){
    #modal-content-en {
        margin-bottom: 10%;
        font-size: 2.933333333333333vw;
        line-height: 1.6;
    }
    #modal-content-jp {
        font-size: 1.1111111111111112vw;
        font-size: 2.933333333333333vw;
        line-height: 1.8;
    }
    .news-over .side-modal-content-kv {
        width: 100vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .side-modal__content {
        width: 100vw;
        height: 100%;
        transform: translateX(8.6vw);
    }
    .side-modal-news-background {
        width: 8.5vw;
        position: absolute;
        opacity: 0.3;
        z-index: 1;
    }
    .news-over .side-modal-content-move-back {
        width: 66vw;
        margin: unset;
        margin-top: 5vw;
    }
    .news-over .side-modal-content-category {
        width: 61.466667vw;
        margin-bottom: 5%;
    }
    .modal-thumbnail {
        margin-left: 8vw;
        width: 73.773611vw;
    }
    .news-over .news-over .modal-thumbnail {
        width: 71.46666666666667vw;
    }
    .news-over .side-modal-content-article {
        width: 66.13333333333333vw;
        margin-right: 14.2vw;
        transform: translateX(-8.6vw);
    }
    #sideModal .side-modal-content-article-top-line-img {
        margin-right: 2vw;
        width: 11.8vw;
    }
    .news-over .side-modal-content-article-top-line {
        margin-top: 4.6vw;
    }
    .news-over .side-modal-content-article-title {
        font-size: 6.4vw;
        line-height: 1;
        margin-bottom: 5%;
        letter-spacing: -0.05rem;
    }
    .news-over .side-modal-content-article-subtitle {
        font-size: 3.2vw;
        margin-bottom: 8%;
        font-weight: 600;
    }
    .news-over .side-modal-content-move-button {
        width: 66.13333333333333vw !important;
        /* margin: auto !important; */
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: -4vw;
        margin-right: 10.694444444444445vw !important;
        margin-top: 16vw !important;
    }
    .news-over .side-modal-content-move {
        width: 66.13333333333333vw;
        margin: auto;
        margin-right: 10.694444444444445vw;
        /* transform: translateX(-8.6vw); */
        margin-right: 22.694444vw;
    }
    .side-modal-content-move {
        margin-bottom: 10vw !important;
    }
    .news-over .news-next-wrapper button {
        width: 16vw;
        height: auto;
    }
    .news-over .news-prev-wrapper button {
        width: 16vw;
        height: auto;
    }
    .news-over .modal-button {
        /* margin-top: unset !important; */
        margin-bottom: 16vw !important;
        margin-top: 2.4vw;
        /* margin-left: 1vw; */
    }
    .side-modal-earth-date {
        display: flex;
        flex-direction: row;
    }
    .earth-barcode {
        width: 14.6vw;
        margin-left: -0.3vw;
        margin-top: 1.8vw;
    }
    #sideModal .side-modal-content-kv {
        margin-top: -4vw !important;
        transform: translateX(-8.6vw);
    }
    .side-modal-content-article-top-line-date {
        font-size: 2.933333333333333vw;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
    }
    .side-modal-content-article-top-line-date::before {
        content: "/";
    }
    .side-modal-content-move-button button {
        width: 16vw;
        height: auto;
    }
    #news-next {
        transform: translateX(-5.6vw);
    }
}