/*
Theme Name: corai
Version: 1.0
*/
@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;
}
html{
    /* font-size: 16px; */
    font-size: clamp(16px,1.111dvw,20px);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}
*,*::before,*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s;
}
body{
    width: min(2560px,100%);
    height: auto;
    margin: 0 auto;
    padding: 0;
    background: var(--white);
    color: var(--black);
    line-height: 1.9;
    letter-spacing: 0.02rem;
    text-align: left;
    font-family: sans-serif;
    font-weight: normal;
    font-style: normal;
}
a{
    color: var(--white);
    text-decoration: none;
}
a:hover{
    cursor: pointer;
    text-decoration: none;
    background: rgba(255,255,255,0.5);
}
.header-inner a:hover,
#access .access a:hover{
    background: rgba(255,255,255,.5);
}
.text a img:hover,
.link-btn:hover,
.footer-menu ul li a:hover,
#news dd a:hover{
    cursor: pointer;
    background: rgba(255,255,255,.5);
}
/* ブラウザが勝手に足す効果を無効 */
a,a:link,a:visited{
    text-decoration: none;
}
.text a img{
    transition: .3s;
}
img{
    max-width: 100%;
    height: auto;
}
h2{
    font-size: 2.42rem;
    font-weight: normal;
}
/* ヘッダー右上メニューのクリック時に出る白い枠を消す */
header a:focus:not(:focus-visible),
header button:focus:not(:focus-visible),
.sl01-toggle:focus:not(:focus-visible){
    outline: none;
    box-shadow: none;
}
/* Android特有の「タップ時の青枠」も消す */
.sl01-toggle {
    -webkit-tap-highlight-color: transparent;
}

header{
    width: 100%;
    height: 111px;
    background: var(--transparent);
    position: absolute;
    padding: 0 10px;
    pointer-events: none;
}
.site-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
}
.site-header.is-hidden{
    display: none;
}
.header-inner{
    width: 98%;
    height: 111px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header a{
    display: block;
    height: 100%;
    pointer-events: auto;
}
header select,
header .lang-switcher{
    pointer-events: auto;
}
h1{
    width: 65px;
    height: 67px;
    margin: .1rem 0 0 .5rem;
    position: relative;
}
h1 img{
    width: 100%;
}
.visually-hidden{
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    overflow: hidden;
    position: absolute;
}

nav ul{
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: fit-content;
    text-align: left;
    margin: 0 auto;
    padding: 0;
    transition: opacity .35s ease;
}
nav ul li{
    width: 100%;
    list-style: none;
    padding-left: 0;
}
nav ul li a{
    height: 60px;
    line-height: 60px;
    display: inline-block;
    color: var(--white);
    white-space: nowrap;
}

/* バーガーメニューの要素、pc時は消す */
.nav-toggle{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0,0,0,0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}
.global-nav{
    display: none;
}
/* リサイズ中はナビを強制で隠す（フラッシュ防止） */
html.is-resizing .global-nav{
    display: none !important;
}
@media screen and (min-width:768px){
    header nav{
        display: block;
    }
    .global-nav{
        display: flex;
        position: static;
        background: transparent;
        opacity: 1;
        visibility: visible;
    }
}
@media screen and (max-width:767px){
    /* SP: メニュー展開中は背景スクロール禁止（対応ブラウザ向け） */
    html:has(#nav-toggle:checked){
        overflow: hidden;
        touch-action: none;
    }
    body{
        overscroll-behavior: none;
    }
    h1 img{opacity: 0;}
    html.is-resizing .global-nav{
        transition: none !important;
    }
    /* 以下、バーガーメニューに関する記述 */
    /* header が pointer-events:none なので、操作できる要素は個別に auto にする */
    .nav-toggle,
    .nav-btn,
    .global-nav,
    .global-nav a{pointer-events: auto;}
    /* PCの nav をSPでは消す（旧navが残ってても出さない） */
    header nav{display: none;}
    /* checkbox は非表示（機能だけ残す） */
    .nav-toggle{
        position: absolute;
        width: 0.05rem;
        height: 0.05rem;
        margin: -0.05rem;
        padding: 0;
        border: 0;
        clip: rect(0,0,0,0);
        clip-path: inset(50%);
        overflow: hidden;
        white-space: nowrap;
    }
    /* 白い3本線 */
    .nav-btn{
        position: absolute;
        top: 2rem;
        right: 1rem;
        width: 4rem;
        height: 3rem;
        display: block;
        cursor: pointer;
        z-index: 99;
    }
    .nav-btn::before,
    .nav-btn::after{
        content: "";
        position: absolute;
        left: 0.5rem;
        right: 0.5rem;
        height: 0.1rem;
        background: #fff;
        transition: transform .35s ease, top .35s ease, opacity .35s ease;
    }
    .nav-btn::before{ top: 0.25rem; }
    .nav-btn::after{  top: 2rem; }
    /* 真ん中線は span を使わず background で作る */
    .nav-btn{
        background:
            linear-gradient(#fff,#fff) 0.5rem 1.1rem / calc(100% - 1rem) 0.1rem no-repeat;
        transition: background-size .35s ease;
    }
    /* メニュー本体（最初は閉じる） */
    .global-nav{
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.85);
        z-index: 90;
        justify-content: center;
        align-items: center;;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .45s ease, visibility 0s linear .45s;
    }
    .global-nav ul{
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 21rem;
        padding: 0 1.2rem;
        margin: 0;
        opacity: 0;
        transform: translateY(0.6rem);
        transition: opacity .45s ease, transform .45s ease;
    }
    .global-nav li{
        width: 100%;
    }
    .global-nav li a{
        display: block;
        width: 100%;
        height: auto;
        font-size: 1.25rem;
        line-height: 3;
        letter-spacing: 0.25rem;
        padding: 0.9rem 0;
        color: var(--white);
        text-align: center;
        transition: background .25s ease;
    }
    /* 開いた時 */
    .nav-toggle:checked ~ .global-nav{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity .45s ease, visibility 0s linear 0s;
    }
    .nav-toggle:checked ~ .global-nav ul{
        opacity: 1;
        transform: translateY(0);
    }
    /* 開いた時：×にする（白） */
    .nav-toggle:checked + .nav-btn{
        background-size: 0 0; /* 真ん中線を消す */
    }
    .nav-toggle:checked + .nav-btn::before{
        top: 1.1rem;
        transform: rotate(45deg);
    }
    .nav-toggle:checked + .nav-btn::after{
        top: 1.1rem;
        transform: rotate(-45deg);
    }
    .global-nav li a:hover{
        background: rgba(255,255,255,.12);
    }
}

/* ---------------- */
/* --- footer --- */
/* ---------------- */
footer{
    width: 100%;
    background: var(--red-footer);
    overflow-x: hidden;

    .footer-sp{
        display: none;
    }

    .footer-pc{
        width: 100%;
        padding: 7rem 3.5% 6rem 0;
        background: var(--red-footer);
        display: flex;
        align-items: center;
        .rogo-corai{
            width: 36.4%;
            display: flex;
            justify-content: center;
            align-items: center;
            a{
                width: max(90px,24.73%);
                img{
                    width: 100%;
                    height:auto;
                }
            }
        }

        .footer-inner{
            width: 36.3%;
            display: flex;
            margin-left: auto;

            .footer-menu{
                width: max(104px,27.27%);
                margin: 0 1rem 0 0;
                display: flex;
                flex-direction: column;
                justify-content: center;
                flex-shrink: 0; 
                li{
                    width: 100%;
                    list-style: none;
                    padding-left: 0;
                    a{
                        display: block;
                        width: 100%;
                        line-height: 3.5rem;
                        white-space: nowrap;
                    }
                }
            }
    
            .insta{
                width: max(164px,72.73%);
                text-align: center;
                display: flex;
                justify-content: center;
                align-items: center;
                flex-shrink: 0;
                position: relative;
                top: -0.5rem;
            }
        }
    }
}
@media screen and (max-width:767px){
    footer{
        padding: 4rem 0 2rem 0;
        display: block;

        .footer-pc{display: none;}

        .footer-sp{
            display: block;
            .footer-sp-inner{
                width: 100%;
                display: flex;

                .rogo-corai{
                    width: 55.45%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    a{
                        width: max(90px,24.73%);
                        img{
                            width: 100%;
                            height:auto;
                        }
                    }
                }
                .footer-menu{
                    width: 44.55%;
                    li{
                        width: fit-content;
                        list-style: none;
                        a{
                            display: block;
                            width: 100%;
                            line-height: 3.5rem;
                            white-space: nowrap;
                        }
                    }
                }
            }
            .insta{
                width: max(200px,22.73%);
                height: 100px;
                text-align: center;
                margin: 4rem auto;
                a{
                    display: block;
                    height: 78%;
                }
            }
        }
    }
}

/* ---------------- */
/* --- topページ --- */
/* ---------------- */
.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;
        }
    }
}


#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;
                }
            }
        }
    }
}

#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;
        }
    }
}