/* ヘッダー関連のスタイル */
header {
    background-color: var(--bg01);
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    box-shadow: var(--shadow-md);
}

.header-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    background-color: var(--header-logo-bg);
}

.logo-image {
    max-height: 80px;
    width: auto;
}

nav.nav-menu {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--header-nav-bg);
}

nav.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

nav.nav-menu ul li {
    display: inline-block;
    margin: 0 10px;
}

nav.nav-menu ul li a {
    text-decoration: none;
    color: var(--text01);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-top: -10px;
}

nav.nav-menu ul li a:hover {
    background-color: var(--hover03);
    text-decoration: none;
    border-radius: 8px;
}

nav.nav-menu ul li a i {
    font-size: 18px;
}

nav.nav-menu ul li a span {
    font-size: 14px;
}

/* バーガーメニュー */
.hamburger-menu {
    display: none;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1000;
    background-color: var(--hamburger-bg);
    width: 80px;
    height: 80px;
    transition: color 0.3s ease;
}

/* PCサイズでネット予約とLINE予約を非表示 */
nav.nav-menu ul li.mobile-only {
    display: none;
}

.hamburger-menu:hover {
    color: var(--hover01);
}

.hamburger-menu:hover .hamburger-content,
.hamburger-menu:hover .close-content {
    color: var(--hover01);
}

.hamburger-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text01);
}

.close-content {
    display: none;
    flex-direction: column;
    align-items: center;
    color: var(--text01);
}

.hamburger-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.close-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.hamburger-text, .close-text {
    font-size: 12px;
}

/* バーガーメニューがアクティブ時のアイコン */
.hamburger-menu.active .hamburger-content {
    display: none;
}

.hamburger-menu.active .close-content {
    display: flex;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        max-width: 100%;
        padding: 0;
        height: 80px;
        background-color: transparent;
    }
    
    .header-logo {
        height: 80px;
        z-index: 1001;
        position: relative;
        width: calc(100% - 80px);
        padding: 0 12px 0 16px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .logo-image {
        max-height: 48px;
        width: auto;
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* バーガーメニュー表示 */
    .hamburger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ナビゲーションメニュー */
    nav.nav-menu {
        position: fixed;
        top: -100vh;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--hamburger-bg);
        z-index: 999;
        box-shadow: var(--shadow-md);
        transition: top 0.3s ease;
    }
    
    nav.nav-menu.active {
        top: 80px; /* スマホ版ヘッダー全体の高さ分 */
    }
    
    nav.nav-menu ul {
        margin: -150px 0 0 0;
        padding: 20px;
        text-align: center;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    nav.nav-menu ul li {
        display: block;
        margin: 0;
        text-align: center;
    }
    
    nav.nav-menu ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 15px;
        background-color: var(--background02);
        border-radius: 8px;
        font-size: 16px;
        color: var(--text01);
        text-decoration: none;
        width: 100px;
        height: 100px;
        box-sizing: border-box;
    }
    
    nav.nav-menu ul li a i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    nav.nav-menu ul li a img.line-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 8px;
    }
    
    nav.nav-menu ul li a span {
        font-size: 14px;
    }
    
    nav.nav-menu ul li a:hover {
        background-color: var(--hover03);
        text-decoration: none;
        border-radius: 8px;
    }
    
    /* スマホサイズでmobile-onlyクラスを表示 */
    nav.nav-menu ul li.mobile-only {
        display: block;
    }
    
    /* 予約リンクの個別スタイル（両方ともLINE予約） */
    nav.nav-menu ul li.mobile-only:nth-last-child(2) a,
    nav.nav-menu ul li.mobile-only:nth-last-child(1) a {
        background-color: transparent;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav.nav-menu ul li.mobile-only:nth-last-child(2) a img,
    nav.nav-menu ul li.mobile-only:nth-last-child(1) a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    
    /* 予約リンクのホバー時も個別色を維持 */
    nav.nav-menu ul li.mobile-only:nth-last-child(2) a:hover,
    nav.nav-menu ul li.mobile-only:nth-last-child(1) a:hover {
        background-color: var(--reservation-line-bg);
        color: var(--reservation-line-text);
        opacity: 0.8;
    }
    
    /* オーバーレイ */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 998;
    }
    
    .nav-overlay.active {
        display: block;
    }
} 