/* ========== HEADER ========== */
.site-header {
    width: 100%;
    height: 100px;
    background: #ffffff90;
    display: flex;
    align-items: center;
    top: 0;
    z-index: 100;
    position: fixed;
}

.site-header-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 96px;
}

.logo img {
    height: 68px;
    display: block;
}

.nav {
    margin-left: auto;
    margin-right: 40px;
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    gap: 2.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.insta {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 110;
    margin-left: 0;
}

.insta img {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    padding: 8px;
    transition: background 0.3s;
}

/* ハンバーガーメニュー（PCでは非表示） */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 82px; /* インスタの幅＋余白 */
    z-index: 150;
    transition: opacity 0.2s;
}
.hamburger span {
    display: block;
    height: 4px;
    width: 28px;
    margin: 5px 0;
    background: #222;
    border-radius: 2px;
    transition: .3s;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========== RESPONSIVE HEADER ========== */
@media (max-width: 900px) {
    .site-header {
        height: 100px;
        min-height: 100px;
    }
    .site-header-content {
        padding: 0 40px;
        height: 64px;
        min-height: 64px;
        flex-direction: row;
        align-items: center;
        position: relative;
        gap: 0;
    }
    .logo img {
        display: block;
        height: auto;
        width: 350px;
        max-width: calc(100vw - 90px); /* ハンバーガーメニューとインスタの幅を引く */
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 10px;
        width: 44px; 
        height: 44px;
        padding: 0;
        right: 48px;
        z-index: 200;
    }

    .hamburger span {
        display: block;
        height: 5px;
        width: 36px;   /* ← 28px から24pxに */
        margin: 4px 0; /* ← 5pxから4pxに */
        background: #222;
        border-radius: 2px;
        transition: .3s;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }

    
    header .insta {
        position: absolute;
        top: 6px;
        right: 12px;
        margin-left: 0;
        z-index: 110;
    }
    .nav {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 6px 24px #0001;
        z-index: 110;
        transition: 0.3s;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        margin: 0;
        padding: 0;
        display: block;
    }
    .nav.open {
        max-height: 360px;
        opacity: 1;
        pointer-events: auto;
        transition: max-height 0.4s, opacity 0.4s;
    }
    .nav ul {
        flex-direction: column;
        gap: 1.2rem;
        padding: 18px 0 14px 24px;
        align-items: flex-start;
        margin: 0;
    }
    .nav ul li {
        margin-left: auto;
        margin-right: 54px;
        text-align: right;
    }
    .nav-link {
        font-size: 18px;
        font-weight: 500;
        text-align: right;
    }
    .hamburger {
        right: 20px;
        top: 0;
        width: 36px;
        height: 36px;
        bottom: 0;
        margin: auto;
    }
    .insta 
    {
        right: 6px;
        top: 2px;
    }
    .insta img 
    { 
        width: 55px; 
        height: 55px;
        padding: 5px;
    }
    .site-header-content { padding: 0 20px;}
}


/* ========== FOOTER ========== */
.site-footer {
    background: #fff;
    border-top: 2px solid #b0b0b0;
    width: 100%;
    margin-top: 100px;
}
.site-footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.site-footer-logo {
    height: 170px;
    width: auto;
    display: block;
}
.site-footer-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}
.site-footer-link {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
}
.site-footer-link:hover {
    color: var(--primary);
}
.insta img:hover{
    background: var(--primary);
}
.site-footer-copyright {
    background: #000;
    color: #fff;
    font-size: 16px;
    text-align: center;
    padding: 16px 0;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.06em;
}

@media (max-width: 900px) 
{
    .site-footer-content {
        flex-direction: column;
        gap: 20px;
        padding: 22px 10px 16px 10px;
        align-items: flex-start;
    }
    .site-footer-nav {
        gap: 20px;
        flex-wrap: wrap;
        margin: auto 36px 36px 36px;
    }
    .site-footer-logo {
        height: 160px;
        margin: auto;
    }
    .site-footer-copyright {
        padding: 12px 0;
    }
    .site-footer-copyright p{
        font-size: 12px;
    }
    .site-footer-link {
        font-size: 1em;
    }
    footer .insta img {
        width: 60px;
        height: 60px;
    }
}

/* ... 既存のCSS ... */

.nav ul li .insta-link {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.nav ul li .insta-link img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: transparent;
    padding: 5px;
    transition: background 0.3s;
}

@media (min-width: 901px) {
    /* PCのときはメニュー右側ではなく単独で */
    .nav ul li .insta-link { display: none; }
    .insta-alone { display: flex; align-items: center; }
    .insta-alone img {
        width: 45px;
        height: 45px;
    }
}
@media (max-width: 900px) {
    .insta-alone { display: none; }
    .nav ul li .insta-link { display: flex; }
}
