/* 文字の大きさ */
h1,
h2,
h3,
h4 {
    margin: 0;
    padding: 0;
}

#News {
    position: relative;
    z-index: 1;
    top: 10%;
}

.news-btn {
    text-align: center;
    position: relative;
    z-index: 1;
}

#News .floating-text {
    position: absolute;
    top: 70%;
    z-index: 0;
}

.news-container {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    width: 90%;
    margin: 5% auto 15%;
    position: relative;
    z-index: 1;
}

.news-item {
    transition: background-color 0.3s ease;
    padding: 15px 35px;
    display: flex;
    justify-content: space-between;
    cursor: pointer
}

.news-category{
  padding-left: 5%;  
}

.news-container>a:first-child .news-item {
    border-radius: 20px 20px 0 0;
}

.news-container>a:last-child .news-item {
    border-radius: 0 0 20px 20px;
}


.news-meta {
    display: flex;
    align-items: center;
    font-size: clamp(14px, 2vw, 16px);    width: 300px;
}

.news-divider {
    width: 1px;
    height: 20px;
    margin: 0 2%;
    background-color: #000000;
    display: inline-block;
}

.news-text {
    font-weight: bold;
    font-size: 18px;
}

.news-link {
    display: flex;
    align-items: center;
}


.news-link a img {
    width: 40px;
    height: auto;
}

hr {
    margin: 0;
}

/* 画像サイズ */
#News img {
    width: 50px;
}

/* アニメーション */

.svg-wrapper {
    top: -39%;
    left: -1%;
}


@keyframes infinity-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100vw);
    }
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 1);
}


.news-container>a:first-child .news-item:hover {
    background-color: rgba(255, 255, 255, 1);
    border-radius: 20px 20px 0 0;
}

.news-container>a:last-child .news-item:hover {
    background-color: rgba(255, 255, 255, 1);
    border-radius: 0 0 20px 20px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {

    #News {
        position: relative;
        z-index: 1;
        top: 0;
    }


    #TopText {
        margin-top: 23%;
    }

    .news-container {
        width: 90%;
        margin: 10% auto;
        margin-bottom: 20%;
    }

    .news-title {
        width: 100%;
        padding: 3% 5% 0 1%;
    }

    .news-item {
        height: 100px;
        padding: 5px 5%;
    }

    .news-text {
        font-size: 15px;
        padding: 0;
        margin: 2% 0px;
    }

    .news-meta {
        font-size: 15px;
    }

    .news-divider {
        height: 20px;
        margin: 0 3%;
    }

    #TopView {
        position: relative;
        height: 300px;
    }

    #TopView-Polygon {
        top: -53%;
        left: -14%;
    }

    #logo {
        width: 42px;
        position: absolute;
        top: 4%;
        left: 4%;
    }

    .back-ground-logo {
        width: 120px !important;
    }

    #TopTriangle {
        position: absolute;
        top: 0%;
        left: -2%;
        width: 22%;
    }

    #News img {
        width: 28px;
    }

    .svg-wrapper {
        top: -60%;
        left: -15%;
    }
}