
:root {
    --main-gradation:linear-gradient(to bottom, rgba(82,98,44,1), rgba(82,98,44,0));
    --main-color: rgba(82,98,44,1);
    --accent-color: rgba(242,68,5,1);
    --sub-color: rgba(203,229,206,1);
    --text-color: rgba(82,98,44,1);
    --clear-color: rgba(255,255,255,1);
}

*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:focus:not(:focus-visible) {
    outline: 0;
    /* キーボード操作"以外"でフォーカスされた際はoutlineを消す */
}

::selection {
    color: var(--clear-color);
    background: var(--main-color);
}

html {
    font-size: clamp(14px, 1vw, 18px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
@media (min-width: 1600px){
    html {
        font-size: clamp(12px, 0.8vw, 16px);
    }
}
@media (min-width: 481px) and (max-width: 768px){
    html {
        font-size: clamp(14px, 1.25vw, 18px);
    }
}
@media (max-width: 480px){
    html {
        font-size: clamp(14px, 1.5vw, 18px);
    }
}
@media (min-resolution: 2dppx) and (max-width: 480px){
    html {
        font-size: clamp(16px, 2vw, 20px);
    }
}


body{
    font-family: "BIZ UDPMincho", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-color);
    letter-spacing: .1rem;
    line-height: 1.7;
    overflow-x: hidden;
}
ul,ol,li{
    list-style-type: none;
}
img{
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}
a{
    text-decoration: none;
    display: block;
}

#header{
    position: relative;

    section{
        width: clamp(48rem, 90%, 68.75rem);
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;

        h1{
            width: 9.625rem;
            background: rgba(189,200,198,.7);
            padding: 1rem;

            img{
                width: 100%;
                aspect-ratio: 1 / 1;
                object-fit: cover;
            }
        }
    }
}
nav{
    background: rgba(255,255,255,.7);
    padding: 1rem 2rem;

    ul{
        display: flex;
        justify-content: flex-end;
        gap: 3rem;

        a{
            color: var(--main-color);
            font-size: 1.2rem;
        }
    }
}

#nav-toggle{
    display: none;
}

@media (max-width: 767px){
    #header{ position: static;
        section{ width: 100%;
            h1{ width: 8rem; }
        }
    }
    #nav-toggle{
        z-index: 100;
        width: 5rem;
        height: 5rem;
        background: var(--main-color);
        border-radius: 50%;
        position: fixed;
        top: 1rem;
        right: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .75rem;

        span{
            background: var(--clear-color);
            width: 3rem;
            height: .25rem;
            transition: 0.3s ease-in-out;
        }
    }
    nav{
        display: none;
    }
    .open #nav-toggle{
        gap: 0;
        span:nth-child(1) {transform: rotate(-45deg) translateY(.125rem);}
        span:nth-child(2) {display: none;}
        span:nth-child(3) {transform: rotate(45deg) translateY(-.125rem);}
    }

    .open nav{
        display: block;
        position: fixed;
        top: 7rem;
        left: 0;
        width: 100vw;
        height: auto;
        background: var(--main-color);
        z-index: 20;
        transition: 0.3s ease-in-out;

        ul{
            display: block;
            text-align: center;
            margin: 1.5rem auto;

            li{
                margin-bottom: 1rem;
                font-size: 1.1rem;
                padding: 1rem;

                a{
                    color:var(--clear-color);
                }
            }
        }
    }
}

.pagetitle{
    position: relative;
    margin-top: -5rem;
    z-index: -1;
    display: grid;
    align-items: center;
    justify-content: center;
    height: 10rem;
    img{
        grid-column: 1;
        grid-row: 1;
        width: 100vw;
        height: 10rem;
        object-fit: cover;
        object-position: center;
    }
    figcaption{
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        color: var(--clear-color);
        font-size: 2rem;
        text-shadow:
            var(--main-color) 0 0 1rem,
            var(--main-color) 0 0 1rem,
            var(--main-color) 0 0 1rem,
            var(--main-color) 0 0 1rem,
            var(--main-color) 0 0 1rem
        ;
    }
}
@media (max-width: 767px){
    .pagetitle{
        position: static;
        margin-top: 0;

        figcaption{
            font-size: 1rem;
        }
    }
}


#banner{
    position: fixed;
    right: 0;
    bottom: 50%;
    transform: translateY(50%);
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;

    ul{
        display: flex;
        gap: 2rem;

        li{
            padding: 2rem 1rem;
            font-size: 1.1rem;
            letter-spacing: .5rem;
            white-space: nowrap;
    
            a{
                color: var(--clear-color);
            }
        }
    
        li:first-of-type{
            background: var(--main-color);
        }
        li:last-of-type{
            background: var(--accent-color);
        }
    }
}
@media (max-width: 767px){
    #banner{
        position: fixed;
        left: 0;
        bottom: 0;
        transform: translateY(0%);
        writing-mode: horizontal-tb;
    
        ul{
            display: flex;
            gap: 0;
    
            li{
                width: 100%;
                text-align: center;
                white-space: normal;
            }
        
        }
    }
}
@media (max-width: 479px){
    #banner{
        ul{
            li{
                padding: 1rem;
                font-size: 1rem;
                letter-spacing: 0;
            }
        }
    }
}

#footer{
    section{
        width: clamp(48rem, 90%, 68.75rem);
        margin: 0 auto;
        padding: 4rem 0;
        text-align: center;

        h3{
            font-size: 1.5rem;
            line-height: 1.5;
        }
        address{
            font-style: normal;
        }
    }
    p{
        background: var(--main-color);
        text-align: right;
        padding: 2rem;
        font-size: .8rem;
        color: var(--clear-color);
    }
}
@media (max-width: 767px){
    #footer{
        margin-bottom: 5rem;

        section{
            width: 90%;
        }
    }
}
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: var(--main-color);
    color: var(--clear-color);
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.breadcrumbs{
    text-align: right;
    margin: 1rem auto;
    width: 90%;
    a{
        display: inline;
        color: var(--text-color);
    }
}