@charset "utf-8";

*,
::before,
::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: sans-serif;
    font-size: 16px;
    color: #000;
    line-height: 1;
    background-color: #ffffff;
}

img {
    max-width: 100%;
}

/* ==========================================
   Header
   ========================================== */
.header-inner {
    max-width: 1200px;
    height: 110px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-menu-button {
    display: none;
}

.header-logo {
    display: block;
    width: 200px;
}

.header-logo img,
.footer-logo img {
    width: 100%;
    height: auto;
}

.site-menu ul {
    display: flex;
}

.site-menu ul li {
    margin-left: 20px;
    margin-right: 20px;
}

.site-menu ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

/* ==========================================
   Main (First View / スライドショー設定)
   ========================================== */
.first-view {
    /* height: calc(100vh - 110px); */
    height: 550px;
    position: relative; 
    overflow: hidden;   
    display: flex;
    align-items: center;
}

.fv-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0; /* 0:動く、1:固定 */
    transition: opacity 1.5s ease-in-out; 
    z-index: 1;
}

.fv-slide.active {
    opacity: 1;
}

.first-view-text {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-bottom: 80px;
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 10px #4b2c14;
}

.first-view-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    line-height: 60px;
}

.first-view-text p {
    font-size: 18px;
    margin-top: 28px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {    
    color: #24211b;
    background-color: #ffffff;
    padding-bottom: 15px;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: block;
    width: 180px;
    height: auto; 
    margin-top: 0px;
}

.footer-tel {
    font-size: 26px;
    font-weight: bold;
    margin-top: 28px;
}

.footer-time {
    font-size: 13px;
    margin-top: 16px;
}

.copyright {
    font-size: 14px;
    font-weight: bold;
    margin-top: 90px;
}

/* ==========================================
   Gallery
   ========================================== */
.ornament {
    width: 50%;
    display: block;
    margin: -150px auto -150px;
}

.gallery {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

.gallery-inner {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.gallery-item {
    width: calc(25% - 15px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 800px) {
    .site-menu ul {
        display: block;
        text-align: center;
    }

    .site-menu li {
        margin-top: 20px;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #ffffff;
        height: 50px;
        z-index: 10;
        box-shadow: 0 3px 6px rgb(0, 0, 0, 0.2);
        /* 影設定    */
    }

    .header-inner {
        padding-left: 20px;
        padding-right: 20px;
        height: 100%;
        position: relative;
    }

    .header-logo {
        width: 100px;
    }

    .header-site-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        color: #ffffff;
        background-color: #736e62;
        padding-top: 30px;
        padding-bottom: 50px;
        display: none;
    }

    .header-site-menu.is-show {
        display: block;
    }

    .toggle-menu-button {
        display: block;
        width: 44px;
        height: 34px;
        background-image: url(../images/common/icon-menu.png);
        background-size: 50%;
        background-position: center;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        border-radius: 0;
        /* outline: none; */
    }

    .main {
        padding-top: 50px;
    }

    .footer-logo {
        margin-top: 60px;
    }

    .footer-tel {
        font-size: 20px;
    }

    .copyright {
        margin-top: 50px;
    }

    main.main section.gallery .gallery-inner {
        display: flex;
        flex-direction: column; /* 縦並びにする */
        align-items: center;    /* 中央寄せ */
        gap: 20px;              /* 画像同士の隙間を20px空ける */
        width: 100%;
        height: auto;
        position: relative;
    }

    /* 2. 1つずつの画像枠の絶対配置・重なりを、親クラスを繋げて上書き解除します */
    main.main section.gallery .gallery-item {
        position: relative;     /* absolute（絶対配置）を上書き解除 */
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;        /* 位置の特殊な移動をリセット */
        width: 100%;
        max-width: 400px;       /* スマホ画面で見やすい最大幅 */
        height: auto;
        display: block;
    }

    /* 3. 画像自体の横幅をスマホ画面にフィットさせます */
    main.main section.gallery .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;     /* 角をほんのり丸く */
    }

    /* 4. 飾り画像がメイン画像に被るのを防ぐため、スマホでは非表示にします */
    main.main section.gallery .left-content .ornament {
        display: none;
    }
}