/**
 * ZOZOTOWN風スタイル（学習塾向けBtoB）
 *
 * @package Welcart
 * @subpackage Welcart_Basic
 */

/* ==========================================================================
   ZOZOTOWN風トップページ
   ========================================================================== */

/* コンテナ */
.zozo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.zozo-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 50px 20px; /* PCでのパディングを調整 */
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.zozo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.zozo-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.zozo-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.zozo-hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
}

.zozo-hero-button {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    border: 2px solid transparent;
}

.zozo-hero-button:hover {
    background: #ff5252;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* メインコンテンツエリア */
.zozo-main-content {
    padding: 40px 0;
    background: #f8f9fa;
}

.zozo-content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* 左側：カテゴリサイドバー */
.zozo-category-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
    max-width: 280px !important;
    min-width: 250px !important;
    width: 100% !important;
}

/* カテゴリ検索フォーム - PC用 */
.zozo-category-search {
    margin-bottom: 25px;
}

.zozo-category-search form {
    display: flex;
    gap: 0;
}

.zozo-category-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    border-right: none;
    background: #f8f9fa;
}

.zozo-category-search-button {
    padding: 12px 18px;
    background: #007cba;
    color: white;
    border: 1px solid #007cba;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.zozo-category-search-button:hover {
    background: #005a87;
}

/* カテゴリツリー - PC用 */
.zozo-category-tree {
    margin-top: 20px;
}

.zozo-section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* カテゴリグループ - PC用 */
.zozo-category-group {
    margin-bottom: 25px;
}

.zozo-category-group-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

/* カテゴリ子要素 - PC用 */
.zozo-category-children {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zozo-category-item {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.zozo-category-item:hover {
    background: #e9ecef;
}

.zozo-category-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    gap: 10px;
}

.zozo-category-link:hover {
    color: #007cba;
    text-decoration: none;
}

.zozo-category-icon {
    color: #007cba;
    font-size: 16px;
    flex-shrink: 0;
}

.zozo-category-info {
    flex: 1;
}

.zozo-category-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* 孫カテゴリ - PC用 */
.zozo-category-grandchildren {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}

/* システムカテゴリを非表示（安全のため） */
.zozo-category-item a[href*="itemgenre"],
.zozo-category-item a[href*="itemnew"],
.zozo-category-item a[href*="itemreco"],
.zozo-category-item a[href*="商品ジャンル"],
.zozo-category-item a[href*="新商品"],
.zozo-category-item a[href*="おすすめ商品"] {
    display: none !important;
}

.zozo-category-item:has(a[href*="itemgenre"]),
.zozo-category-item:has(a[href*="itemnew"]),
.zozo-category-item:has(a[href*="itemreco"]),
.zozo-category-item:has(a[href*="商品ジャンル"]),
.zozo-category-item:has(a[href*="新商品"]),
.zozo-category-item:has(a[href*="おすすめ商品"]) {
    display: none !important;
}

/* カテゴリ名での非表示 */
.zozo-category-name:contains("商品ジャンル"),
.zozo-category-name:contains("新商品"),
.zozo-category-name:contains("おすすめ商品") {
    display: none !important;
}

.zozo-category-grandchild-item {
    margin-bottom: 6px;
}

.zozo-category-grandchild-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: color 0.3s ease;
    gap: 8px;
    border-radius: 4px;
}

.zozo-category-grandchild-link:hover {
    color: #007cba;
    background: #f8f9fa;
    text-decoration: none;
}

.zozo-sidebar-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #333;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* ヘッダー調整 */
.zozo-header-content {
    display: flex;
    flex-direction: row;
    padding: 10px 20px; /* PCでのパディング調整 */
    align-items: center;
    justify-content: space-between; /* ロゴとアカウント/カートを両端に寄せる */
    flex-wrap: nowrap; /* PCでは折り返さない */
}

.zozo-logo {
    flex-shrink: 0; /* ロゴの縮小を防止 */
    margin-right: 0; /* space-betweenが位置を制御するため、autoマージンは不要 */
}

.zozo-logo img.custom-logo {
    max-width: 45px;
    height: auto;
    margin: 0;
}

.zozo-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 60px;
}

.zozo-logo .site-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-shadow: none;
}

.zozo-logo .site-description {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    font-weight: 400;
}

.zozo-logo a {
    text-decoration: none;
    color: inherit;
}

.zozo-logo a:hover {
    text-decoration: none;
    color: inherit;
}

/* お問い合わせボタン */
.zozo-contact {
    margin-right: 15px;
}

.zozo-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #007cba;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.zozo-contact-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.zozo-contact-btn i {
    font-size: 16px;
}

/* アカウント・カート調整 - 右寄せ */
.zozo-account-cart {
    flex-shrink: 0; /* 縮小を防止 */
    display: flex !important; /* Flexboxを適用 */
    align-items: center; /* 垂直方向中央寄せ */
    gap: 10px;
    margin-left: 0; /* space-betweenが位置を制御するため、autoマージンは不要 */
    visibility: visible !important;
    opacity: 1 !important;
}

.zozo-cart a,
.zozo-account a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

/* アカウント・カートアイコンの表示確保 */
.zozo-account,
.zozo-cart {
    display: flex !important;
    align-items: center;
}

/* アイコンの表示確保 */
.zozo-cart i,
.zozo-account i {
    display: inline-block !important;
    font-family: FontAwesome !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.zozo-cart a:hover,
.zozo-account a:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.zozo-cart i,
.zozo-account i {
    font-size: 16px;
    color: #007cba;
}

.cart-count {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 検索フォーム - PC画面での中央配置とアイコン横並び */
.zozo-search {
    flex: 0 1 500px; /* PCでは最大幅500pxに設定（100px拡張） */
    display: flex; /* Flexboxを適用 */
    justify-content: center; /* 中央寄せ */
    align-items: center;
    margin: 0 auto; /* ロゴとアイコンに挟まれた中央に配置 */
}

/* 実際の検索フォームのスタイル - PC版 */
.zozo-search .s-box {
    display: flex;
    width: 100%;
    max-width: 500px;
    align-items: center;
}

.zozo-search .search-text {
    flex-grow: 1;
    min-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    outline: none;
}

.zozo-search .searchsubmit {
    width: 45px;
    height: 42px;
    background: #007cba;
    color: white;
    border: 1px solid #007cba;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.zozo-search .searchsubmit:hover {
    background: #005a87;
}

.zozo-search .searchsubmit i {
    font-size: 16px;
}

/* 古いスタイルとの互換性 */
.zozo-search input[type="text"] {
    flex-grow: 1; /* テキスト入力欄が利用可能なスペースを占める */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    min-width: 300px; /* 最小幅を設定 */
}

.zozo-search input[type="submit"] {
    border-top-left-radius: 3px; /* 左側を少し丸く */
    border-bottom-left-radius: 3px; /* 左側を少し丸く */
    width: 40px; /* 検索アイコンの幅を固定 */
    height: 40px; /* 検索アイコンの高さを固定 */
    font-size: 16px; /* アイコンサイズ */
}

/* メインナビゲーション */
.zozo-main-nav {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.zozo-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.zozo-nav-menu {
    display: flex;
    justify-content: center;
}

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

.zozo-nav-list li {
    position: relative;
}

.zozo-nav-list a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.zozo-nav-list a:hover {
    background: #e9ecef;
    color: #007cba;
    border-bottom-color: #007cba;
}

.zozo-nav-list .current-menu-item a {
    background: #007cba;
    color: white;
    border-bottom-color: #005a87;
}

/* レスポンシブ対応 - スマホ画面 (max-width: 768px) */
@media (max-width: 768px) {
    /* 横スクロール完全無効化 */
    body {
        overflow-x: hidden !important;
    }
    
    /* コンテナの調整 */
    .zozo-container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden !important;
    }
    
    /* ヘッダー調整 */
    .zozo-header-content {
        flex-direction: row; /* ロゴとアイコンを横並びに */
        flex-wrap: wrap; /* 検索欄を2段目にするために折り返しを許可 */
        justify-content: space-between; /* 要素を両端に寄せる */
        padding: 10px 15px;
        align-items: center;
    }

    .zozo-logo {
        order: 1; /* ロゴを1番目 */
        margin-right: 0;
        margin-bottom: 0;
        flex-basis: auto; /* 幅を自動調整 */
        width: auto;
        text-align: left;
        min-height: 60px; /* ロゴエリアの最小高さを確保 */
        display: flex;
        align-items: center;
        padding: 5px 0; /* 上下にパディングを追加 */
    }

    .zozo-logo img.custom-logo {
        max-width: 120px; /* ロゴサイズを大きく */
        height: auto;
        max-height: 50px; /* 最大高さも設定 */
    }

    .zozo-logo .site-title {
        font-size: 20px; /* タイトルサイズを大きく */
        font-weight: bold;
        color: #333;
        margin: 0;
    }

    .zozo-account-cart {
        order: 2; /* アカウント・カートアイコンをロゴの隣に配置 */
        margin-left: 0;
        margin-bottom: 0;
        flex-basis: auto; /* 幅を自動調整 */
    }

    .zozo-search {
        display: none !important; /* スマホでは検索バーを完全に非表示 */
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* スマホでは検索フォーム関連のすべてを非表示 */
    .zozo-search *,
    .zozo-search .s-box,
    .zozo-search .search-text,
    .zozo-search .searchsubmit,
    .zozo-search input[type="text"],
    .zozo-search input[type="submit"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* メインナビゲーション調整 */
    .zozo-nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .zozo-nav-list li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .zozo-nav-list a {
        padding: 12px 15px;
        font-size: 16px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .zozo-nav-list a:hover {
        border-left-color: #3498db;
        border-bottom-color: transparent;
    }
    
    .zozo-nav-list .current-menu-item a {
        border-left-color: #3498db;
        border-bottom-color: transparent;
    }
    
    /* ヒーローセクション調整 */
    .zozo-hero {
        padding: 40px 20px; /* スマホでのパディングを調整 */
    }
    
    .zozo-hero-title {
        font-size: 32px;
    }
    
    .zozo-hero-subtitle {
        font-size: 16px;
    }
    
    .zozo-hero-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* コンテンツグリッド調整 */
    .zozo-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 左側：カテゴリサイドバー */
    .zozo-category-sidebar {
        position: static;
        max-width: none !important;
        min-width: auto !important;
        width: auto !important;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .zozo-sidebar-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* カテゴリ検索フォーム */
    .zozo-category-search {
        margin-bottom: 20px;
    }
    
    .zozo-category-search form {
        display: flex;
        gap: 0;
    }
    
    .zozo-category-search-input {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px 0 0 6px;
        font-size: 14px;
        border-right: none;
    }
    
    .zozo-category-search-button {
        padding: 10px 15px;
        background: #007cba;
        color: white;
        border: 1px solid #007cba;
        border-radius: 0 6px 6px 0;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .zozo-category-search-button:hover {
        background: #005a87;
    }
    
    /* カテゴリツリー */
    .zozo-category-tree {
        margin-top: 20px;
    }
    
    .zozo-section-title {
        font-size: 16px;
        margin-bottom: 15px;
        color: #333;
        border-bottom: 2px solid #007cba;
        padding-bottom: 8px;
    }
    
    /* カテゴリグループ */
    .zozo-category-group {
        margin-bottom: 20px;
    }
    
    .zozo-category-group-title {
        font-size: 16px;
        margin-bottom: 10px;
        color: #333;
        font-weight: 600;
    }
    
    /* カテゴリ子要素 */
    .zozo-category-children {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .zozo-category-item {
        background: #f8f9fa;
        border-radius: 6px;
        overflow: hidden;
    }
    
    .zozo-category-link {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
        gap: 10px;
    }
    
    .zozo-category-link:hover {
        background: #e9ecef;
        color: #007cba;
        text-decoration: none;
    }
    
    .zozo-category-icon {
        color: #007cba;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .zozo-category-info {
        flex: 1;
    }
    
    .zozo-category-name {
        font-size: 14px;
        font-weight: 500;
        margin: 0;
    }
    
    /* 孫カテゴリ */
    .zozo-category-grandchildren {
        margin-top: 8px;
        padding-left: 15px;
        border-left: 2px solid #e9ecef;
    }
    
    .zozo-category-grandchild-item {
        margin-bottom: 5px;
    }
    
    .zozo-category-grandchild-link {
        display: flex;
        align-items: center;
        padding: 8px 10px;
        text-decoration: none;
        color: #666;
        font-size: 13px;
        transition: color 0.3s ease;
        gap: 8px;
    }
    
    .zozo-category-grandchild-link:hover {
        color: #007cba;
        text-decoration: none;
    }
    
    
    /* 商品グリッド調整 */
    .zozo-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* トップページのカテゴリ別商品グリッド調整 - スマホ用 */
    .zozo-products-scroll-container {
        padding: 10px 0;
        margin: 0;
        overflow: visible !important; /* 横スクロール無効 */
        overflow-x: hidden !important; /* 横スクロール強制無効 */
        width: 100% !important;
    }
    
    .zozo-products-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* スマホ：2カラム */
        gap: 15px;
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        overflow-x: hidden !important;
    }
    
    .zozo-product-card-scroll {
        width: 100%;
        margin: 0;
    }
    
    .zozo-product-card {
        padding: 0; /* パディングをリセット */
    }
    
    .zozo-product-image {
        height: 120px;
        position: relative;
        overflow: hidden;
    }

    .zozo-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .zozo-product-info {
        padding: 10px;
    }
    
    .zozo-product-title {
        font-size: 13px;
        margin: 0 0 6px 0;
    }
    
    .zozo-product-price {
        font-size: 14px;
    }
    
    .zozo-product-actions {
        padding: 0 10px 10px 10px;
    }
    
    .zozo-add-to-cart-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* カテゴリヘッダー調整 */
    .zozo-category-header {
        margin-bottom: 20px;
    }
    
    .zozo-category-title {
        font-size: 20px;
    }
    
    .zozo-category-description {
        font-size: 13px;
        margin-top: 8px;
    }
    
    /* 右側：コンテンツエリア */
    .zozo-content-area {
        padding: 20px 0;
    }
    
    /* その他の要素の調整 */
    .zozo-main-content {
        padding: 20px 0;
    }
    
    .zozo-footer-content {
        flex-direction: column;
        text-align: left; /* 左寄せに変更 */
        gap: 20px;
    }
    
    .zozo-footer-logo {
        text-align: left; /* 左寄せに変更 */
        margin-left: 0;
    }
    
    .zozo-footer-logo img.custom-logo {
        max-height: 40px; /* スマホでのフッターロゴサイズ */
        width: auto;
        object-fit: contain;
    }

    /* 会員登録フォームのレスポンシブ調整 */
    .customer_form {
        font-size: 14px;
    }
    
    .customer_form th,
    .customer_form td {
        padding: 8px;
        font-size: 14px;
    }
    
    .customer_form th {
        background: #f8f9fa;
        font-weight: 600;
        text-align: left;
        vertical-align: top;
        width: 30%;
    }
    
    .customer_form td {
        background: white;
    }
    
    .customer_form input[type="text"],
    .customer_form input[type="email"],
    .customer_form input[type="tel"],
    .customer_form input[type="password"],
    .customer_form select,
    .customer_form textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        box-sizing: border-box;
    }
    
    .customer_form .description {
        font-size: 12px;
        color: #666;
        margin-top: 4px;
    }
    
    /* 必須マークの調整 */
    .customer_form th em {
        color: #e74c3c;
        font-style: normal;
        font-weight: 600;
    }

    /* 商品詳細ページのレスポンシブ調整 */
    #itempage {
        padding: 20px 0;
    }
    
    #itempage .itemimg {
        text-align: center;
        margin-bottom: 20px;
    }
    
    #itempage .itemimg img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    #itempage .itemname {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    #itempage .itemprice {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    #itempage .item-description {
        margin-bottom: 30px;
    }
    
    #itempage .item-description p {
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    /* カートボタン調整 */
    #itempage .add-to-cart {
        background: #007cba;
        color: white;
        padding: 15px 30px;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    /* 数量選択調整 */
    #itempage .quantity-selector {
        margin-bottom: 20px;
    }
    
    #itempage .quantity-selector select {
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        background: white;
    }

    /* フッターのレスポンシブ調整 */
    .zozo-footer-main {
        padding: 40px 0;
        background: #1a1a1a; /* 黒背景に変更 */
        color: #ffffff; /* 文字色を白に変更 */
    }
    
    .zozo-footer-nav ul {
        list-style: none;
        padding: 0;
    }
    
    .zozo-footer-nav a {
        color: #ffffff; /* リンク色を白に変更 */
        text-decoration: none;
        background: #1a1a1a; /* 黒背景に変更 */
    }
    
    .zozo-footer-nav a:hover {
        color: #cccccc; /* ホバー時の色を薄いグレーに */
    }
    
    .zozo-footer-logo {
        text-align: left; /* ロゴを左寄せに変更 */
        margin-left: 0; /* 自動マージンをリセット */
        background: #1a1a1a; /* 黒背景に変更 */
    }

    .zozo-footer-logo img.custom-logo {
        max-height: 30px; /* PCでのフッターロゴの最大高さ */
        width: auto; /* アスペクト比を維持 */
        object-fit: contain; /* 画像全体を表示 */
    }

    /* スクロール時のヘッダー固定 */
    .zozo-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        border-bottom: 1px solid #e5e5e5;
    }

    /* #main の margin-top 調整 */
    #main {
        margin-top: 0;
        padding-top: 20px;
    }
}

/* フッターのレスポンシブ調整 */
.zozo-footer-main {
    padding: 40px 0;
    background: #1a1a1a; /* 黒背景に変更 */
    color: #ffffff; /* 文字色を白に変更 */
}

/* PC画面でのフッターコンテンツ調整 */
.zozo-footer-main > .zozo-container > .zozo-footer-content {
    display: flex;
    justify-content: flex-start; /* 左寄せに変更 */
    align-items: center;
    gap: 40px; /* 要素間の間隔を設定 */
    background: #1a1a1a; /* 黒背景に変更 */
}

.zozo-footer-nav {
    flex-grow: 0; /* ナビゲーションの伸縮を無効化 */
    text-align: left; /* ナビゲーションを左寄せ */
    background: #1a1a1a; /* 黒背景に変更 */
}

.zozo-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #1a1a1a; /* 黒背景に変更 */
}

.zozo-footer-nav a {
    color: #ffffff; /* リンク色を白に変更 */
    text-decoration: none;
    background: #1a1a1a; /* 黒背景に変更 */
}

.zozo-footer-nav a:hover {
    color: #cccccc; /* ホバー時の色を薄いグレーに */
}

.zozo-footer-logo {
    flex-shrink: 0; /* ロゴの縮小を防止 */
    text-align: left; /* ロゴを左寄せに変更 */
    margin-left: 0; /* 自動マージンをリセット */
    background: #1a1a1a; /* 黒背景に変更 */
}

.zozo-footer-logo img.custom-logo {
    max-height: 30px; /* PCでのフッターロゴの最大高さ */
    width: auto; /* アスペクト比を維持 */
    object-fit: contain; /* 画像全体を表示 */
}

/* さらに小さい画面用 */
@media (max-width: 480px) {
    /* 横スクロール完全無効化 */
    body {
        overflow-x: hidden !important;
    }
    
    .zozo-container {
        padding: 0 10px;
        overflow-x: hidden !important;
    }
    
    .zozo-header-content {
        padding: 8px 10px;
    }
    
    .zozo-logo img.custom-logo {
        max-width: 100px;
        height: auto;
    }
    
    .zozo-hero {
        padding: 30px 15px; /* さらに小さいスマホでのパディングを調整 */
    }
    
    .zozo-hero-title {
        font-size: 28px;
    }
    
    .zozo-hero-subtitle {
        font-size: 14px;
    }
    
    .zozo-hero-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .zozo-sidebar-title {
        font-size: 18px;
    }
    
    .zozo-category-group-title {
        font-size: 15px;
    }
    
    .zozo-category-link {
        font-size: 13px;
    }
    
    .zozo-category-name {
        font-size: 12px;
    }
    
    .zozo-category-grandchild-link {
        font-size: 11px;
    }
    
    .zozo-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* トップページのカテゴリ別商品グリッド調整 - 小さいスマホ用 */
    .zozo-products-scroll-container {
        padding: 10px 0;
        margin: 0;
        overflow: visible !important; /* 横スクロール無効 */
        overflow-x: hidden !important; /* 横スクロール強制無効 */
        width: 100% !important;
    }
    
    .zozo-products-scroll {
        display: grid !important;
        grid-template-columns: 1fr !important; /* 小さいスマホ：1カラム */
        gap: 15px;
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        overflow-x: hidden !important;
    }
    
    .zozo-product-card-scroll {
        width: 100%;
        margin: 0;
    }
    
    .zozo-product-card {
        padding: 0;
    }
    
    .zozo-product-image {
        height: 100px;
        position: relative;
        overflow: hidden;
    }

    .zozo-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .zozo-product-title {
        font-size: 12px;
        margin: 0 0 4px 0;
    }
    
    .zozo-product-price {
        font-size: 13px;
    }
    
    .zozo-product-actions {
        padding: 0 8px 8px 8px;
    }
    
    .zozo-add-to-cart-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .zozo-footer-logo img.custom-logo {
        max-height: 30px; /* 小さいスマホでのフッターロゴサイズ */
        width: auto;
        object-fit: contain;
    }
}

/* タブレット用調整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .zozo-container {
        padding: 0 30px;
    }
    
    .zozo-content-grid {
        grid-template-columns: 250px 1fr;
        gap: 25px;
    }
    
    .zozo-category-sidebar {
        max-width: 230px !important;
        min-width: 200px !important;
    }
    
    .zozo-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* トップページのカテゴリ別商品グリッド調整 - タブレット用 */
    .zozo-products-scroll-container {
        padding: 10px 0;
        margin: 0;
        overflow: visible !important; /* 横スクロール無効 */
    }
    
    .zozo-products-scroll {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* タブレット：3カラム */
        gap: 20px;
        padding: 0;
    }
    
    .zozo-product-card-scroll {
        width: 100%;
        margin: 0;
    }
    
    .zozo-product-image {
        height: 160px;
        position: relative;
        overflow: hidden;
    }

    .zozo-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .zozo-product-info {
        padding: 12px;
    }
    
    .zozo-product-title {
        font-size: 14px;
    }
    
    .zozo-product-price {
        font-size: 15px;
    }
    
    .zozo-product-actions {
        padding: 0 12px 12px 12px;
    }
    
    .zozo-add-to-cart-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* タッチデバイス用の調整 */
@media (hover: none) and (pointer: coarse) {
    .zozo-product-card:hover {
        transform: none;
    }
    
    .zozo-add-to-cart-btn:hover {
        transform: none;
    }
    
    .zozo-category-link:hover {
        background: none;
    }
    
    .zozo-nav-list a,
    .zozo-contact-btn:hover {
        transform: none;
    }
}

/* 商品グリッド */
.zozo-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* 商品カード */
.zozo-product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #f0f0f0;
}

.zozo-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
    border-color: #e0e0e0;
}

/* 商品画像 */
.zozo-product-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.zozo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zozo-product-card:hover .zozo-product-image img {
    transform: scale(1.08);
}

/* 商品情報 */
.zozo-product-info {
    padding: 18px;
}

.zozo-product-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

.zozo-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0;
}

.zozo-product-price .currency {
    font-size: 14px;
    margin-right: 2px;
}

/* 商品アクション */
.zozo-product-actions {
    padding: 0 18px 18px 18px;
    margin-top: 12px;
}

.zozo-add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.zozo-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

/* カテゴリヘッダー */
.zozo-category-header {
    margin-bottom: 20px;
    text-align: center;
}

.zozo-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.zozo-category-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    margin-top: 8px;
}

/* トップページのカテゴリ別商品カード */
.zozo-product-card-scroll {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #f0f0f0;
    width: 100%;
    margin: 0;
}

.zozo-product-card-scroll:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
    border-color: #e0e0e0;
}

/* トップページの商品画像 */
.zozo-product-card-scroll .zozo-product-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.zozo-product-card-scroll .zozo-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zozo-product-card-scroll:hover .zozo-product-image img {
    transform: scale(1.08);
}

/* トップページの商品情報 */
.zozo-product-card-scroll .zozo-product-info {
    padding: 15px;
}

.zozo-product-card-scroll .zozo-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

.zozo-product-card-scroll .zozo-product-title a {
    color: #333;
    text-decoration: none;
}

.zozo-product-card-scroll .zozo-product-title a:hover {
    color: #007cba;
}

.zozo-product-card-scroll .zozo-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0;
}

/* カテゴリ別商品のグリッドコンテナ - PC画面用（デフォルト） */
.zozo-products-scroll-container {
    padding: 10px 0;
    margin: 0;
    overflow: visible !important; /* 横スクロール完全無効 */
    overflow-x: hidden !important; /* 横スクロール強制無効 */
}

.zozo-products-scroll {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* PC画面：3カラム固定 */
    gap: 20px;
    padding: 0;
    max-width: 100%;
    width: 100% !important;
    overflow: visible !important;
}

/* カテゴリセクション */
.zozo-category-section {
    margin-bottom: 40px;
}

.zozo-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.zozo-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.zozo-category-title a {
    color: #333;
    text-decoration: none;
}

.zozo-category-title a:hover {
    color: #007cba;
}

.zozo-category-view-more {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.zozo-category-view-more:hover {
    color: #005a87;
    text-decoration: none;
}

.zozo-category-view-more i {
    font-size: 12px;
} 