@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);
        }
        .hdg_area{
            display: flex;
            align-items: center;
            justify-content: space-between;
            h2{
                display: flex;
                align-items: center;
                height: 100px;
                font-size: 30px;
                &::before{
                    display: block;
                    content: '';
                    width: 100px;
                    height: 100%;
                    background: url(../../images/common/menu_icon02.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;
                    }
                }
            }
            .back_button_area{
                padding: 18px 28px;
                color: #fff;
                font-size: 25px;
                /* border-radius: 1920px→10px　1200px→5px */
                border-radius: clamp(0.313rem, -0.208rem + 0.69vw, 0.625rem);
                background-color: var(--main-color);
                @media screen and (max-width: 1199px){
                    padding: 10px;
                    font-size: 1.5em;
                }
                @media screen and (max-width: 1032px){
                    padding: 10px 20px;
                }
                @media screen and (max-width: 575px){
                    font-size: 0.8em;
                    padding: 10px;
                }
            }
        }
        .contents_inner{
            overflow-y: auto;
            height: calc(100% - 100px);
            padding: 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;
                span{
                    margin-left: 0.5em;
                }
                @media screen and (max-width: 1199px){
                    font-size: 1.5em;
                }
                @media screen and (max-width: 575px){
                    font-size: 1.1em;
                }
            }
            .item-container {
                display: flex;
                flex-wrap: wrap;
                align-content: flex-start;
                width: 100%;
                padding: 5px;
                overflow: auto;
                .item {
                    position: relative;
                    margin: 0 0 10px 0;
                    padding: 11px 20px;
                    padding-right: 15px;
                    width: 100%;
                    background: #fff;
                    box-shadow: 0px 0px 5px #00000033;
                    /* border-radius: 1920px→10px　1200px→5px */
                    border-radius: clamp(0.313rem, -0.208rem + 0.69vw, 0.625rem);
                    cursor: pointer;
                    &:before {
                        content: "";
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        /* border-radius: 1920px→10px　1200px→5px */
                        border-radius: clamp(0.313rem, -0.208rem + 0.69vw, 0.625rem);
                        background-color: rgba(0, 0, 0, 0.2);
                        opacity: 0;
                        transition: opacity 0.3s ease;
                    }
                    &:hover{
                        &:before{
                            opacity: 1;
                        }
                    }
                    .item-text {
                        width: calc(100% - 20px - 30px);
                        float: left;
                        .index-text,
                        .rate-text {
                            color: var(--text-color);
                            font-size: clamp(1rem, 0.572rem + 1.37vw, 1.6rem); 
                                /* 画面サイズが1201px以上の場合：フォントサイズ25.6px 
                                　 画面サイズが500px以下の場合：フォントサイズ16px */
                            line-height: 38px;
                            float: left;
                        }
                        .rate-text {
                            float: right;
                        }
                    }
                    .threecheck {
                        position: relative;
                        margin: 3px auto auto 10px;
                        width: 30px;
                        height: 30px;
                        float: right;
                    }
                }
                .item.item-hide {
                    display: none;
                }
                .item[data-layer="1"] {
                  margin-left: 0px;
                }
                .item[data-layer="2"] {
                  margin-left: 0px;
                }
                .item[data-layer="3"] {
                  margin-left: 0px;
                }
            } 
        }
    }
    .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)
        }
    }
}