@charset "UTF-8";

/* =========================================================
   SHOP HEADER
========================================================= */

.shop-ec-mode .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.shop-ec-mode .header-inner {
    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;
    padding: 16px 32px;

    box-sizing: border-box;

    display: block;
}


/* =========================================================
   SHOP HEADER MAIN
========================================================= */

.shop-header-inner {
    width: 100%;
}

.shop-header-main {
    width: 100%;

    display: flex;
    align-items: center;

    box-sizing: border-box;
}


/* =========================================================
   LOGO
   通常ヘッダーと同じ考え方
========================================================= */

.shop-header-logo {
    width: 150px;
    height: 32px;

    flex-shrink: 0;
}

.shop-header-logo-link {
    display: inline-flex;
    align-items: center;

    height: 32px;

    color: var(--color-bg);
    text-decoration: none;

    transition: opacity 0.3s ease;
}

.shop-header-logo-link:hover {
    opacity: 0.65;
}

.shop-header-logo img {
    display: block;

    width: 100%;
    max-width: 150px;

    height: auto;
    max-height: 32px;

    object-fit: contain;
}

.shop-header-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;

    white-space: nowrap;
}


/* =========================================================
   NAV
========================================================= */

.shop-header-nav {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-left: auto;
}

.shop-header-nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    color: var(--color-bg);
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.08em;

    white-space: nowrap;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

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

.shop-header-nav-link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background: var(--color-primary);

    transition: width 0.3s ease;
}

.shop-header-nav-link:hover::after {
    width: 100%;
}


/* =========================================================
   ACTION AREA
========================================================= */

.shop-header-actions {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-left: 30px;
}


/* =========================================================
   SNS
   通常ヘッダーと同じサイズ感
========================================================= */

.shop-header-sns {
    display: flex;
    align-items: center;

    gap: 15px;
}

.shop-header-sns-link {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.shop-header-sns-link:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

.shop-header-sns-link img {
    width: 30px;
    height: 30px;

    object-fit: contain;
}


/* =========================================================
   CART
========================================================= */

.shop-header-cart {
    min-height: 36px;

    padding: 0 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: var(--color-bg);
    text-decoration: none;

    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;

    white-space: nowrap;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.shop-header-cart:hover {
    background: var(--color-primary);
    color: #fff;

    border-color: var(--color-primary);
}

.shop-header-cart-icon {
    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-header-cart-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shop-header-cart-text {
    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.08em;
}

.shop-header-cart-count {
    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-primary);
    color: #fff;

    font-size: 10px;
    font-weight: 700;

    box-sizing: border-box;
}

.shop-header-cart:hover .shop-header-cart-count {
    background: #fff;
    color: var(--color-primary);
}


/* =========================================================
   MEMBER
========================================================= */

.shop-header-member {
    display: flex;
    align-items: center;

    gap: 8px;
}

.shop-header-member-link {
    min-height: 36px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.06em;

    white-space: nowrap;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}


/* 新規登録・マイページ */

.shop-header-member-link--register,
.shop-header-member-link--mypage {
    color: #fff;

    background: var(--color-primary);
    border: 1px solid var(--color-primary);

    border-radius: 999px;
}

.shop-header-member-link--register:hover,
.shop-header-member-link--mypage:hover {
    background: var(--color-primary-light-70);
    border-color: var(--color-primary-light-70);
}


/* ログイン・ログアウト */

.shop-header-member-link--login {
    color: var(--color-bg);

    background: transparent;

    border: 1px solid rgba(0, 0, 0, 0.14);

    border-radius: 999px;
}

.shop-header-member-link--login:hover {
    color: var(--color-primary);

    border-color: var(--color-primary);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.shop-header-menu-button {
    display: none;

    width: 56px;
    height: 56px;

    margin-left: auto;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: var(--color-primary);

    color: #fff;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 11px;
}

.shop-header-menu-icon {
    position: relative;

    width: 22px;
    height: 2px;

    background: #fff;

    transition: all 0.3s ease;
}

.shop-header-menu-icon::before,
.shop-header-menu-icon::after {
    content: "";

    position: absolute;
    left: 0;

    width: 22px;
    height: 2px;

    background: #fff;

    transition: all 0.3s ease;
}

.shop-header-menu-icon::before {
    top: -7px;
}

.shop-header-menu-icon::after {
    top: 7px;
}

.shop-header-menu-label {
    font-size: 9px;
    letter-spacing: 0.15em;
}


/* OPEN */

.shop-header-menu-button.is-open {
    background: #fff;
}

.shop-header-menu-button.is-open .shop-header-menu-icon {
    background: transparent;
}

.shop-header-menu-button.is-open .shop-header-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--color-primary);
}

.shop-header-menu-button.is-open .shop-header-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--color-primary);
}

.shop-header-menu-button.is-open .shop-header-menu-label {
    color: var(--color-primary);
}


/* =========================================================
   MOBILE MENU
========================================================= */

.shop-header-mobile-menu {
    display: none;
}


/* =========================================================
   ORIGINAL HEADER
========================================================= */

.shop-ec-mode .ec-original-header-hidden {
    display: none !important;
}


/* =========================================================
   MAIN OFFSET
========================================================= */

.shop-ec-mode .shop-container {
    padding-top: 70px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .shop-ec-mode .header-inner {
        padding: 15px 25px;
    }

    .shop-header-nav {
        gap: 15px;
    }

    .shop-header-actions {
        gap: 12px;
        margin-left: 20px;
    }

    .shop-header-sns {
        gap: 10px;
    }

    .shop-header-member-link {
        padding: 0 16px;
    }

    .shop-header-cart {
        padding: 0 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .shop-ec-mode .header-inner {
        padding: 15px 25px;
    }

    .shop-header-main {
        min-height: 56px;
    }

    .shop-header-logo {
        width: 150px;
        height: 32px;
    }

    .shop-header-logo img {
        max-width: 150px;
    }

    .shop-header-nav,
    .shop-header-actions {
        display: none;
    }

    .shop-header-menu-button {
        display: flex;
    }


    /* -----------------------------------------
       Mobile Menu
    ----------------------------------------- */

    .shop-header-mobile-menu {
        position: fixed;

        top: 86px;
        left: 0;

        width: 100%;
        height: calc(100vh - 86px);

        display: flex;
        flex-direction: column;

        background: var(--color-body);

        overflow-y: auto;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateX(100%);

        transition:
            opacity 0.35s ease,
            visibility 0.35s ease,
            transform 0.35s ease;

        box-sizing: border-box;
    }

    .shop-header-mobile-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateX(0);
    }


    /* -----------------------------------------
       Visual
    ----------------------------------------- */

    .shop-header-mobile-visual {
        position: relative;

        width: 100%;
        height: 110px;

        overflow: hidden;
    }

    .shop-header-mobile-visual img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }

    .shop-header-mobile-visual-overlay {
        position: absolute;
        inset: 0;

        background: var(--color-primary);
        opacity: 0.8;
    }

    .shop-header-mobile-visual-title {
        position: absolute;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #fff;

        font-size: 25px;
        font-weight: 700;

        letter-spacing: 0.2em;
    }


    /* -----------------------------------------
       Navigation
    ----------------------------------------- */

    .shop-header-mobile-nav {
        list-style: none;

        padding: 40px 25px 20px;

        text-align: center;
    }

    .shop-header-mobile-nav a {
        display: block;

        margin-bottom: 20px;

        color: var(--color-bg);

        text-decoration: none;

        font-size: 16px;
        font-weight: 600;

        letter-spacing: 0.15em;

        transition:
            color 0.3s ease,
            opacity 0.3s ease;
    }

    .shop-header-mobile-nav a:hover {
        color: var(--color-primary);
        opacity: 0.7;
    }


    /* -----------------------------------------
       SNS
    ----------------------------------------- */

    .shop-header-mobile-sns {
        display: flex;
        justify-content: center;
        align-items: center;

        gap: 20px;

        margin-top: 10px;
    }

    .shop-header-mobile-sns a {
        width: 40px;
        height: 40px;

        display: inline-flex;
    }

    .shop-header-mobile-sns img {
        width: 40px;
        height: 40px;

        object-fit: contain;
    }


    /* -----------------------------------------
       Actions
    ----------------------------------------- */

    .shop-header-mobile-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;

        padding: 30px 25px 40px;
    }

    .shop-header-mobile-actions a {
        min-height: 52px;

        display: flex;
        align-items: center;
        justify-content: center;

        text-decoration: none;

        font-size: 13px;
        font-weight: 600;

        letter-spacing: 0.06em;

        box-sizing: border-box;
    }

    .shop-header-mobile-cart {
        grid-column: 1 / -1;

        gap: 10px;

        color: var(--color-bg);

        border: 1px solid rgba(0, 0, 0, 0.15);
    }

    .shop-header-mobile-cart strong {
        min-width: 22px;
        height: 22px;

        padding: 0 5px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;

        background: var(--color-primary);
        color: #fff;

        font-size: 10px;
    }

    .shop-header-mobile-register {
        background: var(--color-primary);
        color: #fff;
    }

    .shop-header-mobile-login {
        color: var(--color-bg);

        border: 1px solid rgba(0, 0, 0, 0.15);
    }

    .shop-ec-mode .shop-container {
        padding-top: 70px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .shop-ec-mode .header-inner {
        padding: 10px 10px;
    }

    .shop-header-logo {
        width: 130px;
    }

    .shop-header-logo img {
        max-width: 130px;
    }

    .shop-header-menu-button {
        width: 56px;
        height: 56px;
    }

    .shop-header-mobile-menu {
        top: 76px;
        height: calc(100vh - 76px);
    }

}
