html{
    scroll-behavior: smooth;
}
body{
    background: #FFFDF6;
}
img{
    width: 100%;
}
._resize{
    object-fit: cover;
}
.mv{
    width: 100%;
    height: 100vh;
    max-height: 800px;
    background-image: url(../img/mv1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.mv-bg-layer{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
    z-index: 0;
    pointer-events: none;
    transform: none;
}
.mv-bg-layer.is-visible{
    opacity: 1;
}
.mv > *:not(.mv-bg-layer){
    position: relative;
    z-index: 1;
}

.mv > .mv-logo{
    width: 200px;
    position: absolute;
    top: 40px;
    left: 40px;
}       
.mv-logo img{
    padding-bottom: 28px;
    border-bottom: 1px solid #fff;
    margin-bottom: 28px;
}
.mv-logo-nav{
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}
.mv-logo-nav a{
    display: block;
    min-width: 30px;
    height: fit-content;
}
.mv-logo-nav p{ 
    display: block;
    width: fit-content;
    color:#FFFDF6;
    text-align: center;
    text-shadow: 0 0 6px #000;
    font-family: "BIZ UDMincho";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 25.44px */
    letter-spacing: 1.44px;
    writing-mode: vertical-lr;
    padding-left: 8px;
    border-left: 1px solid #fff;
}
.mv > .mv-title{
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.mv-title h1{
    color: #FFFDF6;
    text-align: center;
    /* -webkit-text-stroke-width: 0.3px;
    -webkit-text-stroke-color: var(--, #452C04); */
    font-family: "BIZ UDMincho";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 8px;
    writing-mode: vertical-lr;
}



/* about */
#about{
    padding: 100px 0 120px;
    background: #FFFDF6;
}
.about-bg{
    position: relative;
    width: 80%;
    max-width: 1200px;
    height: 680px;
    margin: 0 auto;
    background-image: url(../img/about.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: left;
    align-items: flex-end;
    padding: 48px 32px;
    box-sizing: border-box;
}
.about-title h2{
    color: #FFFDF6;
    text-shadow: 0 0 6px #000;
    font-family: "BIZ UDMincho";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 180%; /* 57.6px */
    letter-spacing: 1.92px;
    margin-bottom: 28px;
}
.about-title p{
    color: #FFFDF6;
    text-shadow: 0 0 6px #000;
    font-family: "BIZ UDMincho";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%; /* 43.2px */
    letter-spacing: 1.44px;
}
.about-scroll{
    position: absolute;
    bottom: 40px;
    right: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.about-scroll::after{
    content: '';
    width: 1px;
    height: 100px;
    background: #FFF;
}
.about-scroll::before{
    content: '';
    width: 8px;
    aspect-ratio: 1/1;
    background: #FFF;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -100px);
    animation: scrollDot 2.4s ease-in-out infinite;
}

@keyframes scrollDot{
    0%{
        opacity: 1;
        transform: translate(-50%, -100px);
    }
    30%{
        opacity: 1;
    }
    100%{
        opacity: 0.8;
        transform: translate(-50%, 0);
    }
}
.about-scroll p{
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #FFF;
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
}

/* gallery */
#gallery{
    padding: 0 0 150px;
    background-image: url(../img/gallery-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
._title{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 80px;
}
._title::before{
    content: '';
    background-image: url(../img/gallery-title-dec1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 18px;
    aspect-ratio: 18/112;
}
._title::after{
    content: '';
    background-image: url(../img/gallery-title-dec2.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 42px;
    aspect-ratio: 42/17;
}
._title h2{
    color: #FFF;
    font-family: "Noto Serif JP";
    font-size: 48px;
    font-style: normal;
    font-weight: 300;
    line-height: 160%; /* 76.8px */
    letter-spacing: 2.88px;
}
.gallery-list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 16px;
}
.gallery-list-layout{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}







/* garden */
#garden{
    background: #FFFDF6;
}
.garden-inner{
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}
.garden-title::before{
    background-image: url(../img/garden-title-dec1.webp);
}
.garden-title::after{
    background-image: url(../img/garden-title-dec2.webp);
}
.garden-title h2{
    color: #452C04;
}
.garden-flex{
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 32px;
    margin-left: calc(50% - 50vw);
    margin-bottom: 80px;
}
.garden-flex._reverse{
    flex-direction: row-reverse;
    margin-right: calc(50% - 50vw);
    margin-left: 0;
}
.garden-content-img{
    width: 65%;
    flex:1;
}
.garden-content-text{
    width: 35%;
}
.garden-content-text p{
    color: #452C04;
    font-family: "BIZ UDMincho";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 220%; /* 39.6px */
    letter-spacing: 1.08px;
}
.attention{
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.attention-title{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.attention-title::before{
    content: '';
    background-image: url(../img/attention-title-dec.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 28px;
    aspect-ratio: 1/1;
}
.attention-title h2{
    color: #452C04;
    /* H2 */
    font-family: "BIZ UDMincho";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%; /* 32.4px */
    letter-spacing: 1.08px;
}
.attention p{
    color:#452C04;
    /* P */
    font-family: "BIZ UDMincho";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%; /* 28.8px */
    letter-spacing: 0.96px;
    text-align: right;
}

/* footer */
footer{
    background: #fff;
}
.footer-info{
    color: #FFF;
    font-family: "BIZ UDMincho";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%; /* 28.8px */
    letter-spacing: 0.96px;
}
.footer-info p{
    color:#222;
    font-family: "Noto Serif JP";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 170%;
}
footer ._flex{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 16px;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0 ;
}
footer ._flex a{
    width: 40px;
    aspect-ratio: 1/1;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease-in-out;
}
.footer-info a:hover{
    opacity: 0.8;
}
.copyright{
    color: #FFFDF6;
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 200%;
    background:#452C04;
    padding: 14px 0;
}

.back-to-top{
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #452C04;
    color: #FFFDF6;
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}
.back-to-top.is-visible{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:focus-visible{
    outline: 2px solid #FFFDF6;
    outline-offset: 4px;
}

.sp-only{
    display: none;
}

@media screen and (max-width: 768px) {
    ._title h2{
        font-size: 24px;
    }
    .pc-only{
        display: none;
    }
    .sp-only{
        display: block;
    }
    .mv{
        height: 660px;
    }
    .mv > .mv-logo{
        width: 100px;
        top: 32px;
        left: 24px;
    }
    .mv-logo-nav{
        gap: 10px;
    }
    .mv-logo-nav p{
        font-size: 16px;
    }

    .about-bg{
        width: 90%;
        height: 500px;
    }
    .about-scroll{
        right: 10px;
    }
    .about-scroll p{
        font-size: 12px;
    }
    .about-title h2{
        font-size: 24px;
    }
    .about-title p{
        font-size: 16px;
    }
    .about-scroll{
        bottom: 20px;
    }
    .gallery-list{
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* #garden{
    } */
    .garden-inner{
        width: 90%;

    }
    .garden-title h2{
        font-size: 24px;
    }
    .garden-flex,.garden-flex._reverse{
        width: 100%;
        flex-direction: column;
        gap: 20px;
        margin: 0 auto 80px;
    }
    .garden-content-img{
        width: 100%;
    }
    .garden-content-text{
        width: 100%;
    }
    .attention{
        padding: 20px 0 40px;
    }
    .back-to-top{
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        letter-spacing: 1px;
    }
}