@charset "utf-8";

/* グレーの背景のエリア */
main{
    .contents_area{
        overflow: hidden;
        height: -webkit-fill-available;
        padding-right: 60px;
        grid-area: 1 / 2 / 2 / 3;
        @media screen and (max-width: 1032px){
            height: 90%;
            padding: 0 20px;
        }
        @media screen and (max-width: 575px){
            height: calc((100dvh - 90px - 15px) * 0.9);
        }
        h2{
            display: flex;
            align-items: center;
            height: 100px;
            font-size: 30px;
                &::before{
                    display: block;
                    content: '';
                    width: 100px;
                    height: 100%;
                    background: url(../../images/common/menu_icon10.svg) center/contain no-repeat;
                }
                @media screen and (max-width: 1199px){
                    font-size: 1.5em;
                }
                @media screen and (max-width: 1032px){
                    height: 70px;
                    &::before{
                        width: 70px;
                    }
                }
                @media screen and (max-width: 575px){
                    height: 52px;
                    font-size: 1.1em;
                    &::before{
                        width: 52px;
                    }
                }
            }
        }
        .contents_inner{
            overflow-y: auto;
            height: calc(100% - 100px);
            padding: 7px 1rem 7px 7px;
            @media screen and (max-height: 906px){
                height: calc(780px* 0.9 - 200px);
                padding: 7px 1rem 20px 7px;
            }
            @media screen and (max-width: 575px){
                height: calc(100% - 50px);
            }
            h3{
                margin-bottom: 21px;
                font-size: 28px;
                @media screen and (max-width: 1199px){
                    font-size: 1.4em;
                }
                @media screen and (max-width: 575px){
                    font-size: 1.1em;
                }
            }
            .button_list{
                display: grid;
                --auto-grid-min-size: 100%;
                grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
                grid-gap: clamp(1.25rem, 0.81rem + 1.41vw, 2.5rem);
                margin-bottom: 40px;
                li{
                    display: flex;
                    min-height: 110px;
                    background-color: #fff;
                    /* border-radius: 1920px→20px　1200px→10px */
                    border-radius: clamp(0.625rem, -0.417rem + 1.39vw, 1.25rem);
                    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.2);
                    transition: 0.3s;
                    a{
                        position: relative;
                        display: inline-block;
                        width: 100%;
                        padding: clamp(0.938rem, 0.607rem + 1.06vw, 1.875rem);
                        box-sizing: border-box;
                        text-decoration: none;
                        &::before {
                            content: "";
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            /* border-radius: 1920px→20px　1200px→10px */
                            border-radius: clamp(0.625rem, -0.417rem + 1.39vw, 1.25rem);
                            background-color: rgba(0, 0, 0, 0.2);
                            opacity: 0;
                            transition: opacity 0.3s ease; /* オーバーレイのフェードイン/フェードアウト効果 */
                        }
                        &:hover{
                            &::before{
                                opacity: 1;
                            }
                        }
                        img{
                            width: 100%;
                            /* margin-bottom: 1920px→24px　992px→10px */
                            margin-bottom: clamp(0.625rem, -0.31rem + 1.51vw, 1.5rem);
                            border-radius: 10px
                        }
                        .file_name{
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            height: 100%;
                            .language_site{
                                display: flex;
                                align-items: center;
                                small{
                                    font-size: 15px;
                                    margin-left: 1em;
                                    @media screen and (max-width: 1199px){
                                        font-size: 0.8em;
                                    }
                                    @media screen and (max-width: 1032px){
                                        font-size: 0.6em;
                                    }
                                }
                            }
                            h4{
                                word-break: break-all;
                                color: var(--main-color);
                                margin: 0;
                                font-weight: 300;
                                font-size: clamp(1rem, 0.692rem + 0.99vw, 1.875rem);
                                /* 画面サイズ1920px以上の時は　フォントサイズ30px
                                　 画面サイズ500px以下の時は　フォントサイズ16px */
                                line-height: clamp(1.25rem, 1.03rem + 0.7vw, 1.875rem);
                                /* 画面サイズ1920px以上の時は　行間30px
                                　 画面サイズ500px以下の時は　行間20px */
                                &::after{
                                    display: inline-block;
                                    content: "";
                                    width: clamp(0.904rem, 0.596rem + 0.99vw, 1.779rem);
                                    /* 画面サイズ1920px以上の時は　横幅28.47px
                                    　 画面サイズ500px以下の時は　横幅14.47px */
                                    height: clamp(1.125rem, 0.861rem + 0.85vw, 1.875rem);
                                    /* 画面サイズ1920px以上の時は　縦幅30px
                                    　 画面サイズ500px以下の時は　縦幅18px */
                                    margin-left: clamp(0.625rem, 0.405rem + 0.7vw, 1.25rem);
                                    /* 画面サイズ1920px以上の時は　20px左寄せ
                                    　 画面サイズ500px以下の時は　10px左寄せ */
                                    background: url("../../images/common/link_icon.svg") no-repeat;
                                    background-size: contain;
                                    vertical-align: bottom;
                                }
                            }
                            p{
                                margin-top: clamp(0.938rem, 0.607rem + 1.06vw, 1.875rem);
                                /* 画面サイズ1920px以上の時は　上部余白30px
                                　 画面サイズ500px以下の時は　上部余白15px */
                                font-size: clamp(1rem, 0.802rem + 0.63vw, 1.563rem);
                                /* 画面サイズ1920px以上の時は　フォントサイズ25px
                                　 画面サイズ500px以下の時は　フォントサイズ16px */
                            }
                        }
                    }
                } 
            }
        }
    }
    .logo_area{
        grid-area: 2 / 2 / 3 / 3;
        display: flex;
        justify-content: center;
        align-items: center;
        img{
            width: 105px;
        }
        @media screen and (max-width: 1032px){
            height: calc((100dvh - 90px - 15px) * 0.1);
        }
    }
}