@charset "UTF-8";

section#page-amenities{
    margin: 0 auto 0;
    padding: 160px 40px;
    max-width: 1040px;
    box-sizing: border-box;
    background-color: rgba(255 , 255 , 255 , 0.9);
    border-radius: 4px;

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

    @media(max-width:480px){
        padding: 120px 12px;
    }

    dl{
        margin-top: 24px;

        div{
            padding: 24px 0;
            border-top: 1px solid var(--color-primary);

            &:first-child{
                border: none;
            }

            &:last-child{
                padding-bottom: 0;
            }

            dt{
                padding-left: 24px;
                font-size: 1.25rem;
                position: relative;

                &::before{
                    content: '◆';
                    font-size: 1.25rem;
                    position: absolute;
                    top: 0;
                    left: 0;
                }

                @media(max-width:480px){
                    font-size: 1.125rem;
                    line-height: 1.25;

                    &::before{
                        font-size: 1.125rem;
                    }
                }
            }

            dd{
                margin-top: 16px;
                line-height: 2;

                @media(max-width:768px){
                    line-height: 1.5;
                }
            }
        }
    }
    ul{
        margin-top: 32px;
        display: flex;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;

        @media(max-width:400px){
            gap: 10px;
        }

        li{
            width: calc((100% - 28px) / 3);
            overflow: hidden;

            @media(max-width:768px){
                width: calc((100% - 14px) / 2);
            }
            @media(max-width:400px){
                width: calc((100% - 10px) / 2);
            }

            img{
                width: 100%;
                border-radius: 4px;
                transition: .3s ;
                cursor: pointer;

                &:hover{
                    transform: scale(1.1);
                }
            }
        }
    }
    a.back{
        margin: 32px auto 0;
        display: block;
        width: fit-content;
        padding: 16px 36px;
        border-radius: 40px;
        border: 1px solid var(--color-primary);
        color: var(--color-primary);
        font-size: 1.125rem;
        position: relative;
        z-index: 1;
        transition: .3s;

        &:hover{
            background-color: var(--color-primary);
            color: #fff;
        }

        @media(max-width:480px){
            padding: 16px 28px;
        }
    }
}