@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{
                button{
                    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-width: 575px){
                height: calc(100% - 50px);
            }
            h3{
                margin-bottom: 20px;
                font-size: clamp(1.3rem, 0.872rem + 1.67vw, 1.9rem);
                line-height: normal;
            }

            .item-container {
                display: flex;
                flex-wrap: wrap;
                align-content: flex-start;
                width: 100%;
                padding: 5px;
                overflow: auto;
                .item:first-child{
                    padding-top:0; 
                 }
                .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;
                    margin-left: 50px;
                    line-height:normal;
                    &: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);

                            float: left;
                        }
                        .rate-text {
                            float: right;
                        }
                    }
                    .threecheck {
                        position: relative;
                        margin: 3px auto auto 10px;
                        width: 30px;
                        height: 30px;
                        float: right;
                        line-height: 0;
                    }
                }
                .item.item-hide {
                    display: none;
                }
                  .item[data-layer="0"],.item[data-layer="1"],.item[data-layer="2"] {
                    font-size: clamp(1rem, 0.572rem + 1.37vw, 1.6rem); 
                    /* 画面サイズが1201px以上の場合：フォントサイズ25.6px 
                    　 画面サイズが500px以下の場合：フォントサイズ16px */
                }
                .item[data-layer="0"] {
                    display:block;
                 @media screen and (max-width: 1031px) {
                      display:none;  
                    }
                }
                .item[data-layer="2"] {
                    display:none;
                 @media screen and (max-width: 1031px) {
                      display:block;  
                    }
                }
                .item[data-layer="3"] {
                  margin-left: 0px;
                  padding-left:0px;
                  background: none;
                  box-shadow: none;
                  cursor: auto;
                  font-size:clamp(1.3rem, 0.872rem + 1.67vw, 1.9rem);
                  &:before {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 0%;
                    height: 0%;
                }
                }
                .item[data-layer="3"] .threecheck{
                    display:none;
                }
                .item[data-layer="3"] .item-text {
                    width:100%;
                    float: left;
                    .index-text,
                    .rate-text {
                        color: var(--text-color);
                        float: left;
                    }
                }
                
            } 
        }
    }
    .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)
        }
    }
}