/* ============================================================
   FoodSaver Header Local CSS
   - header内だけに影響範囲を限定
   - style.css側との競合を最小化
   - 同一セレクタの二重定義を排除
============================================================ */

/* ===============================
   共通：ロゴ
=============================== */
header.header .fs-logo-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1.2;
}

header.header .fs-logo-subtext {
    margin-top: 4px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ===============================
   お知らせ帯
=============================== */
header.header .head_line {
    display: block;
    width: 100%;
    background: #008a00;
    margin: 0;
    padding: 0;
}

header.header .head_line_link {
    display: block;
    width: 100%;
    text-decoration: none;
}

header.header .head_line .text-1-1 {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    white-space: normal;
    box-sizing: border-box;
}
/* YouTube */
header.header .fs-category-youtube .fs-category-icon i {
    color: #ff0000;
}

/* 新着情報 */
header.header .fs-category-news .fs-category-icon i {
    color: #16a34a;
}

/* ===============================
   PC
=============================== */
@media (min-width: 768px) {

    header.header .header_wrap.view_pc {
        display: block;
        width: 100%;
        background: #ffffff;
    }

    header.header .view_pc .nav_menu,
    header.header .view_pc .fs-search-category-wrap {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
        border: none;
        box-shadow: none;
        background: #ffffff;
    }

    header.header .head_line .text-1-1 {
        max-width: 1180px;
        font-size: 17px;
        line-height: 1.4;
        padding: 4px;
    }

    /* 1段目：検索 + 会員リンク + カート */
    header.header .view_pc .fs-header-row1 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: 100%;
        min-height: 48px;
        box-sizing: border-box;
    }

    header.header .view_pc .fs-search-main {
        flex: 1 1 auto;
        min-width: 0;
    }

    header.header .view_pc .fs-search-container {
        display: flex;
        align-items: stretch;
        width: 100%;
        height: 36px;
        box-sizing: border-box;
    }

    header.header .view_pc .fs-search-input {
        width: 100%;
        height: 36px;
        font-size: 18px;
        line-height: 36px;
        padding: 0 10px;
        box-sizing: border-box;
        background: #ffffff;
        border: 1px solid #cccccc;
    }

    header.header .view_pc .fs-search-button {
        height: 36px;
        min-width: 116px;
        padding: 0 14px;
        font-size: 18px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 0;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    header.header .view_pc .fs-header-utilities {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    header.header .view_pc .fs-util-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 118px;
        height: 36px;
        padding: 0 12px;
        font-size: 16px;
        line-height: 36px;
        color: #333333;
        text-decoration: none;
        white-space: nowrap;
        border: 1px solid #d9d9d9;
        box-sizing: border-box;
        background: #ffffff;
    }

    header.header .view_pc .fs-header-cart-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 170px;
        height: 36px;
        padding: 0 14px;
        font-size: 16px;
        font-weight: 700;
        line-height: 36px;
        text-decoration: none;
        white-space: nowrap;
        box-sizing: border-box;
    }

    /* 2段目：ロゴ + グローバルナビ */
    header.header .view_pc .fs-header-row2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        width: 100%;
        min-height: 76px;
        padding: 8px 0 4px 0;
        margin: 0;
        box-sizing: border-box;
        border: none;
        box-shadow: none;
        background: #ffffff;
    }

    header.header .view_pc .fs-logo {
        flex: 0 0 auto;
    }

    header.header .view_pc .fs-logo-img {
	    display: block;
	    width: 210px;
	    max-width: 210px;
	    height: 66px;
	    object-fit: contain;
	}

    header.header .view_pc .fs-logo-subtext {
        font-size: 16px;
        color: #666666;
        font-weight: 500;
    }

    header.header .view_pc .fs-main-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 34px;
        flex-wrap: nowrap;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    header.header .view_pc .fs-nav-item {
        position: relative;
        border: none;
        box-shadow: none;
    }

    header.header .view_pc .fs-nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.3;
        color: #333333;
        text-decoration: none;
        white-space: nowrap;
        border: none;
        box-shadow: none;
    }

    header.header .view_pc .fs-nav-caret {
        font-size: 13px;
        margin-left: 4px;
    }

    /* ドロップダウン */
    header.header .view_pc .fs-products-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 220px;
        display: none;
        padding: 8px 0;
        background: #ffffff;
        border: 1px solid #dcdcdc;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
        z-index: 999;
        box-sizing: border-box;
    }

    header.header .view_pc .fs-nav-item:hover .fs-products-dropdown {
        display: block;
    }

    header.header .view_pc .fs-products-link {
        display: block;
        padding: 10px 14px;
        font-size: 16px;
        line-height: 1.4;
        color: #333333;
        text-decoration: none;
        white-space: nowrap;
    }

    header.header .view_pc .fs-products-link:hover {
        background: #f7f7f7;
    }

    /* 3段目：カテゴリバー */
    header.header .view_pc .fs-category-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 20px;
        width: 100%;
        min-height: 62px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border: none;
        box-shadow: none;
        background: #ffffff;
        box-sizing: border-box;
    }

    header.header .view_pc .fs-category-bar::-webkit-scrollbar {
        display: none;
    }

    header.header .view_pc .fs-category-bar .fs-category-item {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 36px;
        text-decoration: none;
        box-sizing: border-box;
        flex-shrink: 0;
        white-space: nowrap;
    }

    header.header .view_pc .fs-category-bar .fs-category-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        min-width: 30px;
        height: 30px;
        flex-shrink: 0;
        line-height: 1;
    }

    header.header .view_pc .fs-category-bar .fs-category-icon img {
        display: block;
        width: 30px;
        height: auto;
    }

    header.header .view_pc .fs-category-bar .fs-category-icon i {
        font-size: 24px;
        line-height: 1;
    }

    header.header .view_pc .fs-category-bar .fs-category-label {
        display: inline-block;
        margin: 0;
        padding: 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        color: #333333;
        white-space: nowrap;
    }
}

/* ===============================
   SP
=============================== */
@media (max-width: 767px) {

    header.header .header_wrap.view_pc {
        display: none;
    }

    header.header .header-sp-wrap {
        display: block;
        margin: 0;
        padding: 0;
        line-height: 1;
        background: #ffffff;
    }

    header.header .head_line {
        display: block;
        position: relative;
        z-index: 5;
    }

    header.header .head_line .text-1-1 {
        max-width: none;
        font-size: 13px;
        line-height: 1.45;
        padding: 3px 6px;
    }

    /* 1段目 */
    header.header .header-sp-wrap .sp-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0;
        padding: 6px 10px 4px 10px;
        box-sizing: border-box;
    }

    header.header .header-sp-wrap .sp-logo {
        margin: 0;
        padding: 0;
        align-items: center;
    }

    header.header .header-sp-wrap .sp-logo .fs-logo-img {
        display: block;
        width: 170px;
        max-width: 170px;
        height: auto;
        margin: 0 auto;
    }

    header.header .header-sp-wrap .fs-logo-subtext {
        display: block;
        margin: 2px 0 0 0;
        padding: 0;
        font-size: 10px;
        line-height: 1.15;
        color: #555555;
        text-align: center;
        white-space: nowrap;
    }

    header.header .header-sp-wrap .sp-top-icons {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    header.header .header-sp-wrap .sp-top-icons .icon-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        margin: 0;
        padding: 0;
        line-height: 1.1;
        text-decoration: none;
    }

    /* 2段目：カテゴリ */
    header.header .header-sp-wrap .sp-category-wrap {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 2px 0;
        box-sizing: border-box;
    }

    header.header .header-sp-wrap .sp-category-wrap .fs-category-bar {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-sizing: border-box;
    }

    header.header .header-sp-wrap .sp-category-wrap .fs-category-bar::-webkit-scrollbar {
        display: none;
    }

    header.header .header-sp-wrap .sp-category-wrap .fs-category-item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        margin: 0;
        padding: 2px 4px;
        min-height: 0;
        text-decoration: none;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    header.header .header-sp-wrap .sp-category-wrap .fs-category-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    header.header .header-sp-wrap .sp-category-wrap .fs-category-icon img {
        display: block;
        width: 24px;
        height: auto;
        margin: 0;
    }

    header.header .header-sp-wrap .sp-category-wrap .fs-category-icon i {
        font-size: 22px;
        line-height: 1;
    }

    header.header .header-sp-wrap .sp-category-wrap .fs-category-label {
        margin: 0;
        padding: 0;
        font-size: 12px;
        line-height: 1.1;
        white-space: nowrap;
    }

    header.header .header-sp-wrap .sp-category-wrap .sp-cat-arrow {
        margin: 0;
        padding: 0;
        width: 34px;
        min-width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    /* 3段目：検索 */
    header.header .header-sp-wrap .sp-search-main {
        margin: 0;
    }

    header.header .header-sp-wrap .sp-search-main .fs-search-container {
        display: flex;
        align-items: stretch;
        margin: 0;
        padding: 0;
    }

    header.header .header-sp-wrap .sp-search-main .fs-search-input {
        margin: 0;
        height: 35px;
        font-size: 15px;
        line-height: 35px;
        box-sizing: border-box;
    }

    header.header .header-sp-wrap .sp-search-main .fs-search-button {
        margin: 0;
        height: 35px;
        min-width: 86px;
        font-size: 15px;
        line-height: 1;
        box-sizing: border-box;
    }
    
    /* =========================================
	   SP 検索欄幅 fix
	========================================= */

	header.header .header-sp-wrap .sp-search-main {
	    width: 100%;
	    padding: 0 8px 8px 8px;
	    box-sizing: border-box;
	}

	header.header .header-sp-wrap .sp-search-main .fs-search-container {
	    display: flex;
	    align-items: stretch;
	    width: 100%;
	}

	header.header .header-sp-wrap .sp-search-main .fs-search-input {
	    flex: 1 1 auto;
	    width: 100%;
	    min-width: 0;
	}

	header.header .header-sp-wrap .sp-search-main .fs-search-button {
	    flex-shrink: 0;
	}
	
	/* =========================================
	   SP カテゴリバー背景 fix
	========================================= */

	header.header .header-sp-wrap .sp-category-wrap {
	    position: relative;
	    z-index: 10;
	    background: #ffffff;
	}

	header.header .header-sp-wrap .sp-category-wrap .fs-category-bar {
	    background: #ffffff;
	}

	header.header .header-sp-wrap .sp-category-wrap .fs-category-item {
	    background: #ffffff;
	}
	
	
	    
}
