/* Reset & Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', sans-serif;
    color: #222;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #ddd;
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 35px;
}

.nav-desktop {
    display: flex;
    gap: 22px;
}

.nav-desktop a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
}

.hamburger {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #222;
    margin: 4px 0;
    border-radius: 2px;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    display: none !important;
    /* ← 重要 */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
}

.mobile-overlay.active {
    display: flex !important;
    /* ← Safari対策・最優先 */
}

.nav-mobile {
    text-align: center;
}

.nav-mobile .mobile-link {
    display: block;
    color: #fff;
    font-size: 20px;
    padding: 12px 0;
    text-decoration: none;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 520px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__layer {
    position: absolute;
    inset: 0;
    background-image: url('../images/top.jpg');
    background-size: auto 100%;
    background-repeat: repeat-x;
    animation: slowPan 40s linear infinite;
}

@keyframes slowPan {
    from {
        background-position: 0 50%;
    }

    to {
        background-position: -1020px 50%;
    }
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.section {
    padding: 36px 40px;
    max-width: 1280px;
    margin: 0 auto;
    background-color: #f4f4f4;
}

.section__title {
    font-size: 24px;
    margin-bottom: 16px;
}

.section_inner {
    line-height: 1.8;
}

.section_base {
    display: flex;
    gap: 2%;
    flex-wrap: wrap;
}

.section_col {
    width: 49%;
}

.section_col img {
    width: 100%;
    height: auto;
}

#contact {
    text-align: center;
}

.contact {
    text-align: center;
}

.contact a {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.tel {
    width: 400px;
    background: orange;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin: 30px auto;
}

a {
    display: block;
    text-decoration: none;
}

a:hover {
    opacity: 0.6;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gallery figure {
    background: #f6f6f6;
    padding: 6px;
    border-radius: 6px;
}

.gallery figcaption {
    text-align: center;
    margin-top: 8px;
    font-size: 16px;
}

.gallery p {
    font-size: 14px;
}

/* Footer */
.site-footer {
    padding: 20px 0;
    background: #fafafa;
    border-top: 1px solid #eee;
    text-align: center;
}

.sns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto 30px auto;
}

.sns img {
    width: 30px;
    height: 30px;
}

.map {
    width: 900px;
    height: 400px;
    margin: 0 auto;
}

#page-top {
    position: fixed;
    bottom: 10px;
    right: 20px;
    font-size: 77%;
    z-index: 5;
}

#page-top a {
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-indent: -9999px;
    display: block;
    background-image: url("../images/pagetop.png");
}

#page-top a:hover {
    text-decoration: none;
    background-image: url("../images/pagetop_hv.png");
}


/* Responsive */
@media (max-width:900px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 20px auto;
        padding: 0 14px;
        width: 100%;
    }

    .section {
        padding: 22px 5%;
        width: 90%;
    }

    .section_base {
        display: flex;
        gap: 2%;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .section_col {
        width: 100%;
        margin: 0 auto;
    }

    .section_col img {
        width: 100%;
        height: auto;
        margin: 10px auto;
    }

    .section__title {
        text-align: center;
        font-size: 1.2em;
    }

    .spbr {
        display: none;
    }

    #page-top {
        position: fixed;
        bottom: 2%;
        right: 10%;
        font-size: 77%;
        z-index: 5;
    }

    .contact a {
        color: #fff;
        font-size: 18px;
        font-weight: bold;
    }

    .tel {
        width: 95%;
        background: orange;
        text-align: center;
        padding: 10px;
        border-radius: 10px;
        margin: 10px auto;
    }

    .map {
        width: 100%;
        height: 400px;
    }
}