@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_icon13.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);
            }
            .menu_list{
                display: grid;
                --auto-grid-min-size: min(26rem, calc(33% - 2.4rem));
                grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
                grid-gap: 2.4rem;
                @media screen and (max-width : 1550px) {
                    --auto-grid-min-size: calc(50%  - 2rem);
                    grid-gap: 2rem;
                }
                @media screen and (max-width : 1199px) {               
                    --auto-grid-min-size: 100%;            
                }
                li{
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    padding: 20px 0;
                    border-radius: 20px;
                    background-color: #fff;
                    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.2);
                    text-align: center;
                    box-sizing: border-box;
                    @media screen and (max-width : 1199px) {                          
                        border-radius: 10px;
                    }
                    .file_name{
                        padding: 0 10px;
                        h3{
                            margin: 0;
                            color: #666;
                            font-weight: 300;
                            font-size: clamp(1rem, 0.572rem + 1.37vw, 1.6rem); 
                            /* 画面サイズが1201px以上の場合：フォントサイズ25.6px 
                            　 画面サイズが500px以下の場合：フォントサイズ16px */
                            line-height: 1.5em;
                        }
                        p{
                            display: block;
                            margin-top: 10px;
                            font-weight: lighter;
                            font-size: clamp(0.7rem, 0.4rem + 0.96vw, 1.12rem);
                            /* 画面サイズが1201px以上の場合：フォントサイズ17.92px 
                            　 画面サイズが500px以下の場合：フォントサイズ11.2px */
                            line-height: clamp(0.7rem, 0.4rem + 0.96vw, 1.12rem);
                            /* 画面サイズが1201px以上の場合：行の高さ17.92px 
                            　 画面サイズが500px以下の場合：行の高さ11.2px */
                        }
                    }
                    .file_button{
                        display: flex;
                        justify-content: space-between;
                        margin-top: 20px;
                        a{
                            position: relative;
                            display: block;
                            width: 100%;
                            margin: 0 15px;
                            height: 60px;
                            color: var(--main-color);
                            font-weight: bold;
                            font-size: 20px;
                            line-height: 60px;
                            border-radius: 10px;
                            background-color: var(--sub-color);
                            transition: 0.3s;
                            &::before {
                                content: "";
                                position: absolute;
                                top: 0;
                                left: 0;
                                width: 100%;
                                height: 100%;
                                border-radius: 10px;
                                background-color: rgba(0, 0, 0, 0.2);
                                opacity: 0;
                                transition: opacity 0.3s ease;
                            }
                            &:hover{
                                &::before{
                                    opacity: 1;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .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)
        }
    }
}