/* 検証用コード */
/* body {
    border: red solid 1px; 
    overflow: hidden;
} */

/* 記事一覧メインビジュアル領域 */
/* モバイル対応も同時調整で記述 */
.article_list_main_area {
    background-image: url(/src/eyes_v3pages/image/bg_article_list_bgimage_01_pc.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 120dvh;
    position: relative;

    @media (max-width: 768px) {
        height: 130svh;
    }

    /* メインテキスト領域 */
    .article_list_text_area {
        color: white;
        position: absolute;
        top: 55%;
        transform: translateY(-100%);
        left: 10vw;

        h2 {
            font-size: min(5vw, 5vh);
        }

        @media (max-width: 768px) {
            color: black;
            top: 15%;
            transform: translateY(0%);

            h3 {
                font-size: min(3vw, 3vh);
            }
        }
    }

    /* メインエリアのインフォーメーションエリア（右） */
    .article_list_infobox_area {
        position: absolute;
        right: 10vw;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(240, 248, 255, 0.527);
        width: 21vw;
        text-align: center;
        /* height: 70dvh; */

        @media (max-width: 768px) {
            right: initial;
            width: 100vw;
            display: flex;
            justify-content: center;
            top: 38svh;
            transform: initial;
        }

        p {
            font-size: min(1.8vw, 1.8vh);
            padding: 0.2rem 1rem;

            @media (max-width: 768px) {
                font-size: min(3.5vw, 3.5vh);
                padding: 0;
            }
        }

        img {
            width: 90%;
            height: auto;
            border-radius: 10px;
            filter: brightness(50%);

            &:hover {
                filter: brightness(90%);
                transition: 0.8s;
            }
        }

        .under_line {
            border-bottom: 1px solid rgb(88, 88, 88);
            padding: 0 1rem;
            margin: 0 1rem 1rem 1rem;
        }

        .info_box_header {
            padding: 1rem 1rem 1rem 1rem;
            text-align: left;
            font-size: min(1.7vw, 1.7vh);

            .flex_area {
                display: flex;
                align-items: center;
                justify-content: start;
            }

            p {
                font-size: min(1.8vw, 1.8vh);
            }

            @media (max-width: 768px) {
                font-size: min(3vw, 3vh);

                p {
                    font-size: min(3.5vw, 3.5vh);
                }
            }
        }

        .info_img_box {
            position: relative;

            h2 {
                position: absolute;
                top: 40%;
                /* transform: translateY(-50%); */
                left: 50%;
                transform: translateX(-50%);
                color: white;
                font-size: medium;
                border-bottom: 2px solid white;
            }

        }

        .info_news_header {
            text-align: left;
            font-size: min(2vw, 2vh);
            padding: 0 1rem;
            color: rgb(3, 75, 122);

            @media (max-width: 768px) {
                font-size: min(3.5vw, 3.5vh);
            }
        }

        .info_news_list_box {
            padding: 1rem 0.5rem;
            background-color: rgba(53, 175, 247, 0.808);
            margin: 0.5rem 1rem;
            color: white;
            text-align: left;
            font-size: min(2vw, 2vh);
            border-radius: 10px;

            a{
                color: white;
            }

            @media (max-width: 768px) {
                font-size: min(3vw, 3vh);
                margin: 0;
            }

            .news_flex {
                display: flex;
                justify-content: space-between;
                text-align: center;
                padding: 0.5rem 0 0.5rem 0;

                li {
                    border-bottom: 1px solid white;
                }

                @media (max-width: 768px) {
                    padding: 0.3rem;
                }
            }

            .news_icon {
                /* background-color: rgb(5, 109, 206); */
                border-radius: 20px;
                padding: 0.2rem 0.8rem;
                font-size: min(1.4vw, 1.4vh);

                &.news_icon_color_blue{
                      background-color: rgb(3, 84, 160);
                }

                &.news_icon_color_pink{
                      background-color: rgb(243, 46, 217);
                }

                @media (max-width: 768px) {
                    font-size: min(2vw, 2vh);
                }
            }
        }
    }
}

/* 表題見出し領域 */
.article_infomation_header {
    display: flex;
    justify-content: center;
    margin: 3rem 0;

    .header_text {
        width: 80dvw;
        border-bottom: 1px solid rgb(109, 108, 108);

        @media (max-width: 768px) {
            width: 90dvw;
        }

        p {
            font-size: min(2vw, 2vh);
            /* color: rgb(4, 96, 158); */
            font-weight: bold;

            @media (max-width: 768px) {
                font-size: min(3vw, 3vh);
            }
        }

        h1 {
            font-size: min(3vw, 3vh);
            color: rgb(90, 90, 90);

            @media (max-width: 768px) {
                font-size: min(4vw, 4vh);
            }
        }
    }

}

/* 記事一覧情報一覧領域 */
/* 記事ブロックはGRIDにて指定 */
.article_infomation_area {
    display: flex;
    justify-content: center;
}

.article_box_container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 80dvw;

    @media (max-width: 768px) {
        flex-wrap: wrap;
        width: 100dvw;
        gap: 0;
    }
}

.article_report_box {
    margin: 0.2rem;
    display: grid;
    grid-template:
        "box1 box1" 30px
        "box2 box3" auto
        "box2 box4" auto /
        50% 50%;
    row-gap: 1rem;
    max-width: 27vw;
    
    @media (max-width: 768px) {
        column-gap: initial;
        row-gap: 0.5rem;
        max-width: initial;
    }

    img {
        width: 100%;
        height: auto;
    }

    h3 {
        font-size: min(2vw, 2vh);

        @media (max-width: 768px) {
            font-size: min(4vw, 4vh);
        }
    }

    p {
        font-size: min(1.6vw, 1.6vh);
        padding: 0 0 0 0.5rem;

        @media (max-width: 768px) {
            font-size: min(2.8vw, 2.8vh);
            padding: 0.5rem;
            line-height: 1.5;
        }
    }
}

.box1 {
   grid-area: box1;
    padding: 0.2rem 0.2rem;
    background-image: linear-gradient(90deg, #969696, #cbcbcb);
    align-items: center;
    color: rgb(253, 252, 252);
    display: flex;
    justify-content: space-between;
}

.box2 {
    grid-area: box2;
}

.box3 {
    grid-area: box3;
    /* width: 15vw; */

    p{
        width: 12vw;
        @media (max-width: 768px){
            width: initial;
        }
    }
}

.box4 {
    grid-area: box4;
    display: grid;
    align-items: end;
    text-align: right;
    font-weight: bold;
    margin-bottom: 1rem;

    p {
        color: rgb(48, 47, 47);

        @media (max-width: 768px) {
            font-size: min(5vw, 5vh);
            color: #0d9ff3;
            border-bottom: #a3a2a2 solid 1px;
            margin-bottom: 1rem;
        }

    }
}

/* ニュース情報の一覧 */
.article_service_news_list {
    padding: 3rem 0;
    background-image: linear-gradient(178deg, #ffffff, #d4efff);
    display: flex;
    justify-content: center;

    @media (max-width: 768px) {
        padding: initial;
    }

    .article_news_area {
        width: 60dvw;

        @media (max-width: 768px) {
            width: 95dvw;
        }
    }

    .news_box {
        border-radius: 2px;
        padding: 0.5rem 1rem;
        margin: 1rem 0;
        background-color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;

        .flex_left {
            display: flex;
            gap: 1rem;
            align-items: center;
            justify-content: left;
        }

        .flex_right {
            display: flex;
            gap: 1rem;
            justify-content: space-between;
            align-items: center;
        }

        data {
            color: #1e79b6;
        }

        p {
            font-size: small;

            @media (max-width: 768px) {}
        }

        .news_icon {
            border-radius: 20px;
            color: white;
            font-size: min(1.5vw, 1.5vh);
            padding: 0.2rem 1rem;

            @media (max-width: 768px) {
                display: none;
            }
        }

        .news_icon_blue {
            background-color: #1e79b6;
        }
        .news_icon_green {
            background-color: #037c7c;
        }
            .news_icon_gray {
            background-color: #8c8d8d;
        }

        a {
            color: #696969;
            border-bottom: 1px solid black;
        }
    }
}