/**
 * Common Header Styles
 * 共通ヘッダー用スタイル
 *
 * @package Cocoon Child
 */

/* ========================================
   HEADER BASE
   ======================================== */
.common-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #5a5a5a;
}

.common-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 114px;
}

/* ========================================
   LOGO
   ======================================== */
.common-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.common-header-logo-img {
    height: 70px;
    width: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */
.common-header-nav {
    display: flex;
    align-items: center;
}

.common-header-nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.common-header-nav-list li a {
    font-family: var(--font-zen);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.common-header-nav-list li a:hover {
    opacity: 0.7;
}

/* ========================================
   RESERVE BUTTON
   ======================================== */
.common-header-reserve-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background-color: #b86b6b;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.common-header-reserve-btn:hover {
    background-color: #a55a5a;
}

.common-header-reserve-icon {
    width: 20px;
    height: 20px;
    color: #fff;
}

.common-header-reserve-btn span {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #fff;
}

.common-header-reserve-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #fff;
}

/* ========================================
   HAMBURGER MENU (Mobile)
   ======================================== */
.common-header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.common-header-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.common-header-hamburger-label {
    display: none;
}

.common-header-hamburger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.common-header-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.common-header-hamburger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.common-header-mobile-nav {
    display: none;
    position: fixed;
    top: 114px;
    left: 0;
    right: 0;
    background-color: #5a5a5a;
    padding: 20px;
    max-height: calc(100vh - 114px);
    overflow-y: auto;
}

.common-header-mobile-nav.is-open {
    display: block;
}

.common-header-mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.common-header-mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.common-header-mobile-nav-list li:last-child {
    border-bottom: none;
}

.common-header-mobile-nav-list li a {
    display: block;
    padding: 16px 0;
    font-family: var(--font-zen);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #fff;
    text-decoration: none;
}

.common-header-mobile-nav-list li a.mobile-reserve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 14px 30px;
    background-color: #b86b6b;
    text-align: center;
}

/* ========================================
   BODY PADDING (for fixed header)
   ======================================== */
body.has-common-header {
    padding-top: 114px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .common-header-inner {
        padding: 0 20px;
    }

    .common-header-nav-list {
        gap: 25px;
    }

    .common-header-nav-list li a {
        font-size: 13px;
    }

    .common-header-reserve-btn {
        padding: 12px 20px;
    }

    .common-header-reserve-btn span {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .common-header-inner {
        height: 80px;
        padding: 0 15px;
        gap: 10px;
    }

    /* モバイル：ロゴ 70px × 60px */
    .common-header-logo-img {
        width: 70px;
        height: 60px;
    }

    .common-header-nav {
        display: none;
    }

    /* モバイル：予約ボタン 150px × 44px */
    .common-header-reserve {
        display: block;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .common-header-reserve-btn {
        width: 150px;
        height: 44px;
        padding: 0 12px;
        gap: 6px;
    }

    .common-header-reserve-btn span {
        font-size: 13px;
    }

    .common-header-reserve-icon {
        width: 16px;
        height: 16px;
    }

    .common-header-reserve-arrow svg {
        width: 20px;
        height: 20px;
    }

    /* モバイル：ハンバーガーボタン 44px × 44px */
    .common-header-hamburger {
        display: flex;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
        padding-top: 3px;
        flex-shrink: 0;
    }

    .common-header-hamburger span:not(.common-header-hamburger-label) {
        width: 16px;
        height: 1.5px;
        background-color: var(--base-3, #42372f);
    }

    .common-header-hamburger-label {
        display: block;
        font-size: 7px;
        font-weight: 500;
        letter-spacing: 0.05em;
        color: var(--accent-1, #b8977e);
        margin-top: 2px;
    }

    .common-header-hamburger.is-active span:nth-child(1) {
        transform: translateY(4.5px) rotate(45deg);
    }

    .common-header-hamburger.is-active span:nth-child(3) {
        transform: translateY(-4.5px) rotate(-45deg);
    }

    .common-header-mobile-nav {
        top: 80px;
        max-height: calc(100vh - 80px);
    }

    body.has-common-header {
        padding-top: 80px;
    }
}
