@charset "utf-8";
:root{
    --white: #ffffff;
    --black: #241613;
    --red-card: #BD3220;
    --gray-usui: #F9F9F9;
    --beige-matsuru: #E4CEBF;
    --gray-matsuru: #DED9D1;
    --green-matsuru: #628774;
    --beige-matsuru: #E4CEBF;
    --beige-media: #F3EEE4;
    --gray-access: #F2F2F2;
    --gray-about: #D6D6D6;
    --red-footer: #AC3131;
    --green-card: #5B8973;
    --gray-card: #DED9D0;
    --black-card: #272D32;
    --brown-card: #E2CABA;
    --brown2-card: #E6CDBD;
    --transparent: rgba(0,0,0,0);
    --bg-opacity: 0;
}

.mainvisual{
    height: 100dvh;
    background: url(../img/top/main-kari.webp) bottom/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media screen and (max-width:767px){
    .mainvisual{
        height: 100dvh;
        /* aspect-ratio: 880 / 1131; */
        img{
            width: 34.09%;
        }
    }
}

#concept{
    width: 100%;
    aspect-ratio: 1440/694;
    display: flex;
    justify-content: space-between;

    hgroup{
        width: 63.68%;
        height: 100%;
        padding: 3.87rem 2rem 0 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        
        h2{
            width: fit-content;
            line-height: 2;
            position: absolute;
            top: 0;
            left: 1rem;
            font-weight: normal;
            white-space: nowrap;
        }
        p{
            width: fit-content;
            font-size: 1rem;
            line-height: 2;
            margin: 0 auto;
            position: relative;

            img{
                display: block;
                width: 1.8rem;
                height: auto;
            }
            .m1{
                aspect-ratio: 92/38;
                position: absolute;
                top: 1.32rem;
                left: 6.2rem;
            }
            .m2{
                aspect-ratio: 92/41;
                position: absolute;
                top: 3.32rem;
                left: 2.1rem
            }
            .m3{
                aspect-ratio: 92/38;
                position: absolute;
                top: 5.3rem;
                left: 15.4rem
            }
            .m4{
                aspect-ratio: 92/39;
                position: absolute;
                top: 7.31rem;
                left: 12.3rem
            }
        }
        .pc-none{
            display: none;
        }
    }
    picture{
        width: 36.32%;
        height: 100%;
        overflow: hidden;

        img{
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
        }
    }
}
@media screen and (max-width:900px){
    #concept{
        aspect-ratio: auto;
        picture{
            height: auto;
            aspect-ratio: 523/694;
        }
        hgroup{
            p{
                margin: 3rem 0 4rem;
            }
        }
    }
}
@media screen and (max-width:841px){
    #concept{
        aspect-ratio: auto;
        display: block;
        hgroup{
            width: fit-content;
            margin: 0 auto;
            padding: 2rem 2rem 0 2rem;
            h2{
                width: fit-content;
                position: static;
                margin: 0 auto 2rem;
            }
            p{
                width: fit-content;
                margin: 0 auto 3.5rem;
            }
        }
        picture{
            width: 100%;
            aspect-ratio: 880/660;
        }
    }
}
@media screen and (max-width:536px){
    #concept{
        hgroup{
            h2{
                font-size: 1.7rem;
            }
            p{
                .m1{
                    top: 1.3rem;
                    left: 6.15rem;
                }
                .m2{
                    top: 5.32rem;
                    left: 2.1rem
                }
                .m3{
                    top: 11.3rem;
                    left: 8.2rem
                }
                .m4{
                    top: 13.31rem;
                    left: 12.3rem
                }
            }
            .sp-none{
                display: none;
            }
            .pc-none{
                display: block;
            }
        }
    }
}
@media screen and (max-width:480px){
    #concept{
        hgroup{
            width: 100%;
            padding: 2rem 0 0;
            h2{
                font-size: 1.7rem;
            }
            p{
                white-space: nowrap;
            }
        }
    }
}

#news{
    background: var(--gray-usui);
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: end;

    h2{
        line-height: 2;
        white-space: nowrap;
        position: absolute;
        top: 0;
        left: 1rem;
        font-weight: normal;
    }

    dl{
        width: max(500px,50%);
        display: flex;
        margin:0 auto 2rem;
        dt{
            margin-right: 1rem;
        }
        dd{
            a{
                color: var(--red-footer);
                font-weight: bold;
                text-decoration: none;
            }
            a:hover{
                text-decoration: underline;
            }
        }
    }
}
@media screen and (max-width:650px){
    #news{
        padding: 6rem 4rem 4rem;
        align-items: normal;
        dl{
            width: 100%;
        }
    }
}
@media screen and (max-width:523px){
    #news{
        padding: 6rem 2rem 4rem 2rem;
    }
}
@media screen and (max-width:404px){
    #news{
        padding: 6rem 0 4rem 1rem;
    }
}

#map-wrapper{
    overflow: hidden;
    border: 1px solid #7A7773;
}
#map{
    width: 100%;
    height: clamp(896px,62.2dvw,1593.27px);
    aspect-ratio: 1189/740;
    line-height:0;
    font-size:0;

    .jiji{
        width: 100%;
        height: 100%;
        background: url(../img/top/jiji.webp) right/cover no-repeat;
        border: 0;
    }
}
@media screen and (max-width:1440px){
    #map{
        width: 100%;
        height: 896px;
        aspect-ratio: auto;
        overflow-x: auto;     /* 横スクロール出す */
        overflow-y: hidden;   /* 縦は出さない */
        white-space: nowrap;  /* 子要素改行防止 */
        -webkit-overflow-scrolling: touch; /* SP慣性スクロール */
        direction: rtl; /* 右端から開始 */
        .jiji{
            width: 1440px; /* ←固定しはみ出させる */
            direction: ltr; /* 中身は通常表示に戻す */
        }
    }
}
@media screen and (max-width:891px){
    #map{
        width: 100%;
        height: auto;
        aspect-ratio: 880/1374;
        .jiji{
            width: 100%;
            height: 100%;
            background: url(../img/top/jiji-sp.webp) center/cover no-repeat;
        }
    }
}

#map-ui-pc{
    width: 100%;
    aspect-ratio: 192000/119274;
    overflow: hidden;
    position: relative;

    .map-ui{
        width: 100%;
        height: 100%;
        display: flex;
        position: relative;
    }

    .mapui-img{
        width: calc(100% - 25.1%);
        height: 100%;
        flex: 0 0 calc(100% - 25.1%);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .btn-container{
        width: 25.1%;
        height: 100%;
        flex: 0 0 25.1%;
        position: relative;
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .map-btn{
        display: block;
        width: 100%;
        padding: 0;
        background: var(--white);
        border: none;
        border-left: 1px solid var(--gray-about);
        border-right: 1px solid var(--gray-about);
        background: transparent;
        cursor: pointer;
        position: absolute;
        left: 0;
        z-index: 2;
    }

    .map-btn:hover{
        background: rgba(255,255,255,0.5);
    }

    .map-btn.is-active{
        pointer-events: none;
        background: transparent;
    }

    #map-ui-pc .mapui-img,
    #map-ui-pc .btn-container{
        transition: opacity 0.2s ease;
    }
    /* 切替時に一瞬透明にしてから戻す用 */
    #map-ui-pc .map-ui.is-switching .mapui-img,
    #map-ui-pc .map-ui.is-switching .btn-container{
        opacity: 0;
    }

    .map-ui.type01 .map-btn:nth-of-type(1){ top: 0%; height: 51.6602%; }
    .map-ui.type01 .map-btn:nth-of-type(2){ top: 51.6602%; height: 5.3711%; }
    .map-ui.type01 .map-btn:nth-of-type(3){ top: 57.0313%; height: 5.3711%; }
    .map-ui.type01 .map-btn:nth-of-type(4){ top: 62.4024%; height: 5.3711%; }
    .map-ui.type01 .map-btn:nth-of-type(5){ top: 67.7735%; height: 5.3711%; }
    .map-ui.type01 .map-btn:nth-of-type(6){ top: 73.1446%; height: 5.3711%; }
    .map-ui.type01 .map-btn:nth-of-type(7){ top: 78.5157%; height: 5.3711%; }
    .map-ui.type01 .map-btn:nth-of-type(8){ top: 83.8868%; height: 5.3711%; }
    .map-ui.type01 .map-btn:nth-of-type(9){ top: 89.2579%; height: 5.3711%; }
    .map-ui.type01 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type02 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type02 .map-btn:nth-of-type(2){ top: 5.3711%; height: 51.6602%; }
    .map-ui.type02 .map-btn:nth-of-type(3){ top: 57.0313%; height: 5.3711%; }
    .map-ui.type02 .map-btn:nth-of-type(4){ top: 62.4024%; height: 5.3711%; }
    .map-ui.type02 .map-btn:nth-of-type(5){ top: 67.7735%; height: 5.3711%; }
    .map-ui.type02 .map-btn:nth-of-type(6){ top: 73.1446%; height: 5.3711%; }
    .map-ui.type02 .map-btn:nth-of-type(7){ top: 78.5157%; height: 5.3711%; }
    .map-ui.type02 .map-btn:nth-of-type(8){ top: 83.8868%; height: 5.3711%; }
    .map-ui.type02 .map-btn:nth-of-type(9){ top: 89.2579%; height: 5.3711%; }
    .map-ui.type02 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type03 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type03 .map-btn:nth-of-type(2){ top: 5.3711%; height: 5.3711%; }
    .map-ui.type03 .map-btn:nth-of-type(3){ top: 10.7422%; height: 51.6602%; }
    .map-ui.type03 .map-btn:nth-of-type(4){ top: 62.4024%; height: 5.3711%; }
    .map-ui.type03 .map-btn:nth-of-type(5){ top: 67.7735%; height: 5.3711%; }
    .map-ui.type03 .map-btn:nth-of-type(6){ top: 73.1446%; height: 5.3711%; }
    .map-ui.type03 .map-btn:nth-of-type(7){ top: 78.5157%; height: 5.3711%; }
    .map-ui.type03 .map-btn:nth-of-type(8){ top: 83.8868%; height: 5.3711%; }
    .map-ui.type03 .map-btn:nth-of-type(9){ top: 89.2579%; height: 5.3711%; }
    .map-ui.type03 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type04 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type04 .map-btn:nth-of-type(2){ top: 5.3711%; height: 5.3711%; }
    .map-ui.type04 .map-btn:nth-of-type(3){ top: 10.7422%; height: 5.3711%; }
    .map-ui.type04 .map-btn:nth-of-type(4){ top: 16.1133%; height: 51.6602%; }
    .map-ui.type04 .map-btn:nth-of-type(5){ top: 67.7735%; height: 5.3711%; }
    .map-ui.type04 .map-btn:nth-of-type(6){ top: 73.1446%; height: 5.3711%; }
    .map-ui.type04 .map-btn:nth-of-type(7){ top: 78.5157%; height: 5.3711%; }
    .map-ui.type04 .map-btn:nth-of-type(8){ top: 83.8868%; height: 5.3711%; }
    .map-ui.type04 .map-btn:nth-of-type(9){ top: 89.2579%; height: 5.3711%; }
    .map-ui.type04 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type05 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type05 .map-btn:nth-of-type(2){ top: 5.3711%; height: 5.3711%; }
    .map-ui.type05 .map-btn:nth-of-type(3){ top: 10.7422%; height: 5.3711%; }
    .map-ui.type05 .map-btn:nth-of-type(4){ top: 16.1133%; height: 5.3711%; }
    .map-ui.type05 .map-btn:nth-of-type(5){ top: 21.4844%; height: 51.6602%; }
    .map-ui.type05 .map-btn:nth-of-type(6){ top: 73.1446%; height: 5.3711%; }
    .map-ui.type05 .map-btn:nth-of-type(7){ top: 78.5157%; height: 5.3711%; }
    .map-ui.type05 .map-btn:nth-of-type(8){ top: 83.8868%; height: 5.3711%; }
    .map-ui.type05 .map-btn:nth-of-type(9){ top: 89.2579%; height: 5.3711%; }
    .map-ui.type05 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type06 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type06 .map-btn:nth-of-type(2){ top: 5.3711%; height: 5.3711%; }
    .map-ui.type06 .map-btn:nth-of-type(3){ top: 10.7422%; height: 5.3711%; }
    .map-ui.type06 .map-btn:nth-of-type(4){ top: 16.1133%; height: 5.3711%; }
    .map-ui.type06 .map-btn:nth-of-type(5){ top: 21.4844%; height: 5.3711%; }
    .map-ui.type06 .map-btn:nth-of-type(6){ top: 26.8555%; height: 51.6602%; }
    .map-ui.type06 .map-btn:nth-of-type(7){ top: 78.5157%; height: 5.3711%; }
    .map-ui.type06 .map-btn:nth-of-type(8){ top: 83.8868%; height: 5.3711%; }
    .map-ui.type06 .map-btn:nth-of-type(9){ top: 89.2579%; height: 5.3711%; }
    .map-ui.type06 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type07 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type07 .map-btn:nth-of-type(2){ top: 5.3711%; height: 5.3711%; }
    .map-ui.type07 .map-btn:nth-of-type(3){ top: 10.7422%; height: 5.3711%; }
    .map-ui.type07 .map-btn:nth-of-type(4){ top: 16.1133%; height: 5.3711%; }
    .map-ui.type07 .map-btn:nth-of-type(5){ top: 21.4844%; height: 5.3711%; }
    .map-ui.type07 .map-btn:nth-of-type(6){ top: 26.8555%; height: 5.3711%; }
    .map-ui.type07 .map-btn:nth-of-type(7){ top: 32.2266%; height: 51.6602%; }
    .map-ui.type07 .map-btn:nth-of-type(8){ top: 83.8868%; height: 5.3711%; }
    .map-ui.type07 .map-btn:nth-of-type(9){ top: 89.2579%; height: 5.3711%; }
    .map-ui.type07 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type08 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type08 .map-btn:nth-of-type(2){ top: 5.3711%; height: 5.3711%; }
    .map-ui.type08 .map-btn:nth-of-type(3){ top: 10.7422%; height: 5.3711%; }
    .map-ui.type08 .map-btn:nth-of-type(4){ top: 16.1133%; height: 5.3711%; }
    .map-ui.type08 .map-btn:nth-of-type(5){ top: 21.4844%; height: 5.3711%; }
    .map-ui.type08 .map-btn:nth-of-type(6){ top: 26.8555%; height: 5.3711%; }
    .map-ui.type08 .map-btn:nth-of-type(7){ top: 32.2266%; height: 5.3711%; }
    .map-ui.type08 .map-btn:nth-of-type(8){ top: 37.5977%; height: 51.6602%; }
    .map-ui.type08 .map-btn:nth-of-type(9){ top: 89.2579%; height: 5.3711%; }
    .map-ui.type08 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type09 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type09 .map-btn:nth-of-type(2){ top: 5.3711%; height: 5.3711%; }
    .map-ui.type09 .map-btn:nth-of-type(3){ top: 10.7422%; height: 5.3711%; }
    .map-ui.type09 .map-btn:nth-of-type(4){ top: 16.1133%; height: 5.3711%; }
    .map-ui.type09 .map-btn:nth-of-type(5){ top: 21.4844%; height: 5.3711%; }
    .map-ui.type09 .map-btn:nth-of-type(6){ top: 26.8555%; height: 5.3711%; }
    .map-ui.type09 .map-btn:nth-of-type(7){ top: 32.2266%; height: 5.3711%; }
    .map-ui.type09 .map-btn:nth-of-type(8){ top: 37.5977%; height: 5.3711%; }
    .map-ui.type09 .map-btn:nth-of-type(9){ top: 42.9688%; height: 51.6602%; }
    .map-ui.type09 .map-btn:nth-of-type(10){ top: 94.6290%; height: 5.3711%; }

    .map-ui.type10 .map-btn:nth-of-type(1){ top: 0%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(2){ top: 5.3711%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(3){ top: 10.7422%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(4){ top: 16.1133%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(5){ top: 21.4844%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(6){ top: 26.8555%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(7){ top: 32.2266%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(8){ top: 37.5977%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(9){ top: 42.9688%; height: 5.3711%; }
    .map-ui.type10 .map-btn:nth-of-type(10){ top: 48.3399%; height: 51.6602%; }

    .map-ui.type01 .mapui-img{
        background: url("../img/mapui/mapui01-map.webp") center/cover no-repeat;
    }

    .map-ui.type01 .btn-container{
        background: url("../img/mapui/mapui01-menu.webp") center/contain no-repeat;
    }

    .map-ui.type02 .mapui-img{
        background: url("../img/mapui/mapui02-map.webp") center/cover no-repeat;
    }

    .map-ui.type02 .btn-container{
        background: url("../img/mapui/mapui02-menu.webp") center/contain no-repeat;
    }

    .map-ui.type03 .mapui-img{
        background: url("../img/mapui/mapui03-map.webp") center/cover no-repeat;
    }

    .map-ui.type03 .btn-container{
        background: url("../img/mapui/mapui03-menu.webp") center/contain no-repeat;
    }

    .map-ui.type04 .mapui-img{
        background: url("../img/mapui/mapui04-map.webp") center/cover no-repeat;
    }

    .map-ui.type04 .btn-container{
        background: url("../img/mapui/mapui04-menu.webp") center/contain no-repeat;
    }

    .map-ui.type05 .mapui-img{
        background: url("../img/mapui/mapui05-map.webp") center/cover no-repeat;
    }

    .map-ui.type05 .btn-container{
        background: url("../img/mapui/mapui05-menu.webp") center/contain no-repeat;
    }

    .map-ui.type06 .mapui-img{
        background: url("../img/mapui/mapui06-map.webp") center/cover no-repeat;
    }

    .map-ui.type06 .btn-container{
        background: url("../img/mapui/mapui06-menu.webp") center/contain no-repeat;
    }

    .map-ui.type07 .mapui-img{
        background: url("../img/mapui/mapui07-map.webp") center/cover no-repeat;
    }

    .map-ui.type07 .btn-container{
        background: url("../img/mapui/mapui07-menu.webp") center/contain no-repeat;
    }

    .map-ui.type08 .mapui-img{
        background: url("../img/mapui/mapui08-map.webp") center/cover no-repeat;
    }

    .map-ui.type08 .btn-container{
        background: url("../img/mapui/mapui08-menu.webp") center/contain no-repeat;
    }

    .map-ui.type09 .mapui-img{
        background: url("../img/mapui/mapui09-map.webp") center/cover no-repeat;
    }

    .map-ui.type09 .btn-container{
        background: url("../img/mapui/mapui09-menu.webp") center/contain no-repeat;
    }

    .map-ui.type10 .mapui-img{
        background: url("../img/mapui/mapui10-map.webp") center/cover no-repeat;
    }

    .map-ui.type10 .btn-container{
        background: url("../img/mapui/mapui10-menu.webp") center/contain no-repeat;
    }
}

#map-ui-sp{
    width: 100%;
    aspect-ratio: 1128/1770;
    overflow: visible;
    position: relative;
    background-position: top;
    background-size: contain;
    background-repeat: no-repeat;
    display: none;

    .map-ui{
        width: 100%;
        height: 100%;
        position: relative;

        &.type01{ background: url("../img/mapui/mapui01-sp.webp") left top / 100% 100% no-repeat; }
        &.type02{ background: url("../img/mapui/mapui02-sp.webp") left top / 100% 100% no-repeat; }
        &.type03{ background: url("../img/mapui/mapui03-sp.webp") left top / 100% 100% no-repeat; }
        &.type04{ background: url("../img/mapui/mapui04-sp.webp") left top / 100% 100% no-repeat; }
        &.type05{ background: url("../img/mapui/mapui05-sp.webp") left top / 100% 100% no-repeat; }
        &.type06{ background: url("../img/mapui/mapui06-sp.webp") left top / 100% 100% no-repeat; }
        &.type07{ background: url("../img/mapui/mapui07-sp.webp") left top / 100% 100% no-repeat; }
        &.type08{ background: url("../img/mapui/mapui08-sp.webp") left top / 100% 100% no-repeat; }
        &.type09{ background: url("../img/mapui/mapui09-sp.webp") left top / 100% 100% no-repeat; }
        &.type10{ background: url("../img/mapui/mapui10-sp.webp") left top / 100% 100% no-repeat; }
    }

    .btn-container{
        width: 42.2%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 2;
    }

    .map-btn{
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        border-left: 1px solid var(--gray-about);
        box-sizing: border-box;
        background: transparent;
        cursor: pointer;
        position: absolute;
        left: 0;
    }

    #map-ui-sp .map-ui{
        transition: opacity 0.2s ease;
    }

    #map-ui-sp .map-ui.is-switching{
        opacity: 0;
    }

    .map-btn:nth-of-type(1){ top: 52.9%; height: 4.8%; }
    .map-btn:nth-of-type(2){ top: 57.6%; height: 4.8%; }
    .map-btn:nth-of-type(3){ top: 62.1%; height: 4.8%; }
    .map-btn:nth-of-type(4){ top: 66.9%; height: 4.8%; }
    .map-btn:nth-of-type(5){ top: 71.6%; height: 4.8%; }
    .map-btn:nth-of-type(6){ top: 76.17%; height: 4.8%; }
    .map-btn:nth-of-type(7){ top: 81.1%; height: 4.8%; }
    .map-btn:nth-of-type(8){ top: 85.85%; height: 4.8%; }
    .map-btn:nth-of-type(9){ top: 90.6%; height: 4.8%; }
    .map-btn:nth-of-type(10){ top: 95.3%; height: 4.8%; }

    .map-btn:hover{
        background: rgba(255,255,255,0.5);
    }

    .map-btn.is-active{
        pointer-events: none;
        background: transparent;
    }
}
/* map uiの画像、前の画像をフェードアウト */
.mapui-prev{
    position: absolute;
    pointer-events: none;
    opacity: 1;
    z-index: 3;
    transition: clip-path 1s ease;
}
/* PC：左から右（風） */
.mapui-prev-map,
.mapui-prev-menu{
    clip-path: inset(0 0 0 0);
}
.mapui-prev-map.is-wipe,
.mapui-prev-menu.is-wipe{
    clip-path: inset(0 0 0 100%);
}
/* SP：上から下（風） */
.mapui-prev-sp{
    inset: 0;
    clip-path: inset(0 0 0 0);
}
.mapui-prev-sp.is-wipe{
    clip-path: inset(100% 0 0 0);
}


#matsuru{
    .item{
        display: flex;
        position: relative;

        picture{
            width: 50%;
            overflow: hidden;
            position: relative;
            img{
                width: 100%;
                height: 100%;
                position: absolute;
                inset: 0;
                object-fit: cover;
                object-position: center;
            }
        }
        .text{
            width: 50%;
            height: 20.88rem;
            background: var(--beige-matsuru);
            position: relative;
            h2{
                height: 5.2rem;
                position: absolute;
                right: 1rem;

                .vertical{
                    position: absolute;
                    top: 1.25rem;
                    right: 2.5rem;
                    writing-mode: vertical-rl;
                    text-orientation: upright;
                    font-size: 0.9rem;
                    color: #8C8C8C;
                    letter-spacing: 0.1rem;
                    font-weight: 400;
                    transform: none;
                    height: 4rem;
                    white-space: nowrap;
                }
                .vertical2{
                    position: absolute;
                    top: 1.25rem;
                    left: 2.3rem;
                    writing-mode: vertical-rl;
                    text-orientation: upright;
                    font-size: 0.9rem;
                    color: #8C8C8C;
                    letter-spacing: 0.1rem;
                    font-weight: 400;
                    transform: none;
                    height: 4rem;
                    white-space: nowrap;
                }
            }
            p{
                position: absolute;
                bottom: 0.5rem;
                left: 1rem;
            }
            img{
                width: max(112px,16%);
                position: absolute;
                bottom: 1.5rem;
                right: 1rem;
            }
        }
    }
    .item:nth-of-type(2) .text{
        background: var(--gray-matsuru);
        h2{
            left: 1rem;
            font-weight: normal;
        }
    }
    .item:nth-of-type(3) .text{
        background: var(--green-matsuru);
    }
    .item:nth-of-type(4) .text{
        h2{
            background: var(--brown2-card);
            left: 1rem;
        }
    }
    .item-wide{
        width: 100%;
        height: 28rem;
        background: url(../img/top/matsuru05.webp) center/cover no-repeat;
        position: relative;
        h2{
            line-height: 2;
            color: var(--white);
            white-space: nowrap;
            font-weight: normal;
            position: absolute;
            left: 1rem;
        }
        img{
            width: max(201.8px,16%);
            position: absolute;
            bottom: 1.5rem;
            right: 1rem;
        }
    }    
}
@media screen and (max-width:767px){
    #matsuru{
        .item{
            flex-direction: column;
            picture{
                width: 100%;
                aspect-ratio: 1920/893;
                img{
                    position: static; /* absoluteを解除 */
                    width: 100%;
                    height: 100%;
                    object-fit: cover; /* いらなければ消してOK */
                }
            }
            .text{
                width: 100%;
                height: auto;
                aspect-ratio: 1920/893;

                h2{
                    left: 1rem;
                    text-align: right;
                    white-space: nowrap;
                    overflow: hidden;

                    .vertical{
                        position: absolute;
                        top: 1.2rem;
                        right: 2.5rem;
                        writing-mode: vertical-rl;
                        text-orientation: upright;
                        font-size: 0.9rem;
                        color: #8C8C8C;
                        letter-spacing: 0.1rem;
                        font-weight: 400;
                        transform: none;
                        height: fit-content;
                        white-space: nowrap;
                    }
                }
            }
        }
        .item:nth-of-type(2),
        .item:nth-of-type(4){
            flex-direction: column-reverse;
            .text{
                h2{
                    overflow:visible;
                    right: 31rem;
                    text-align: left;
                    border: none;
                    color: #000;

                    .vertical2{
                        position: absolute;
                        top: 1.1rem;
                        left: 2.25rem;
                        writing-mode: vertical-rl;
                        text-orientation: upright;
                        font-size: 0.9rem;
                        color: #8C8C8C;
                        letter-spacing: 0.1rem;
                        font-weight: 400;
                        transform: none;
                        height: 4rem;
                        white-space: nowrap;
                    }
                }
            }
        }
        .item-wide{
            height: auto;
            aspect-ratio: 880/673;
            background: url(../img/top/matsuru05-sp.webp) center/cover no-repeat;
        }    
    }
}

#media{
    background: var(--beige-media);
    padding: 5rem 0 0;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: flex-end;
    overflow: hidden;
    h2{
        line-height: 2;
        white-space: nowrap;
        font-weight: normal;
        position: absolute;
        top: 0;
        left: 1rem;
    }
    .media-inner{
        width: 100%;
        height: max(520px,26rem);
        padding: 0 0 0 7.5rem;
        display: flex;
        gap: 1rem;
        /* ▼ 横スクロール設定 */
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        /* ▼ 右寄り整列の核（アイテム数が増えても右寄せ開始） */
        &::before{
            content: "";
            flex: 1 0 auto;
        }
        .item{
            flex: 0 0 auto;
            img{
                height: 450px;
            }
        }
    }
}
@media screen and (max-width:767px){
    #media{
        .media-inner{
            height: 420px;
            padding: 0 0 0 7.5rem;
            .item{
                img{
                    height: 360px;
                }
            }
        }
    }
    #map-ui-pc{
        display: none;
    }
    #map-ui-sp{
        display: block;
    }
}

#access{
    width: 100%;
    background: var(--gray-access);
    display: flex;
    .googlemap{
        width: 40.97%;
        iframe{
            width: 100%;
            height: 100%;
        }
    }
    .access-info{
        width: 59.03%;
        aspect-ratio: 851/564;
        background: url(../img/top/access.webp) center 65%/90% no-repeat;
        position: relative;
        h2{
            line-height: 2;
            white-space: nowrap;
            font-weight: normal;
            position: absolute;
            right: 1rem;
        }
        address{
            display: none;
        }
        .bus01{
            width: 8dvw;
            height: 2.5dvw;
            position: absolute;
            top: 36%;
            left: 60%;
        }
        .jr01{
            width: 8dvw;
            height: 2.5dvw;
            position: absolute;
            top: 67%;
            left: 12%;
        }
        .jr02{
            width: 8dvw;
            height: 2.5dvw;
            position: absolute;
            top: 83%;
            left: 12%;
        }
    }
}
@media screen and (max-width:767px){
    #access{
        flex-direction: column;
        .googlemap{
            width: 100%;
            aspect-ratio: 4/3;
        }
        .access-info{
            width: 100%;
            height: auto;
            aspect-ratio: 440/663;
            background: url(../img/top/access-sp.webp) center 80%/80% no-repeat;
            h2{
                left: 1rem;
            }
            address{
                display: block;
                font-style: normal;
                text-align: center;
                margin-top: 4.25rem;
            }
            .bus01{
                width: 22dvw;
                height: 4dvw;
                top: 81.5%;
                left: 32%;
            }
            .jr01{
                width: 22dvw;
                height: 4dvw;
                top: 53.2%;
                left: 31%;
            }
            .jr02{
                width: 22dvw;
                height: 4dvw;
                top: 64.8%;
                left: 31%;
            }
        }
    }
}
@media screen and (max-width:441px){
    #access{
        .googlemap{
            aspect-ratio: 1;
        }
    }
}

#about{
    a{
        position: relative;
        .about-inner{
            width: 100%;
            height: 10rem;
            background: var(--gray-about);
            position: relative;
    
            h2{
                color: var(--black);
                line-height: 2;
                white-space: nowrap;
                font-weight: normal;
                position: absolute;
                left: 1rem;
                span{
                    font-size: 1rem;
                    position: absolute;
                    top: 4rem;
                }
            }
            img{
                width: 130px;
                position: absolute;
                bottom: 1rem;
                right: 1rem;
            }
        }
        .about-img{
            width: 100%;
            aspect-ratio: 1114/787;
            background: url(../img/top/about-img.webp) center/cover no-repeat;
        }
    }
    a::after{
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0);
        transition: .3s;
        pointer-events: none;
    }
    a:hover::after{
        background: rgba(255,255,255,0.3);
    }
}
@media screen and (max-width:767px){
    #about{
        .about-img{
            width: 100%;
            aspect-ratio: 880/1235;
            background: url(../img/top/about-img-sp.webp) center/cover no-repeat;
        }
    }
}