/* --- 検索窓・ボタンのスタイル --- */
        .search-container { margin-bottom: 20px; padding: 15px; background: #f0f7ff; border-radius: 8px; }
        .search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
        #keyword-input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
        .search-btn { padding: 10px 20px; background: DeepSkyBlue; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }

        .quick-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
        .quick-search label { font-size: 12px; color: #666; font-weight: bold; margin-right: 5px; }
        .filter-tag { background: #fff; color: #0070cc; border: 1px solid #0070cc; padding: 4px 12px; border-radius: 20px; font-size: 11px; cursor: pointer; transition: all 0.2s; }
        .filter-tag:hover, .filter-tag.active { background: #0070cc; color: #fff; }

        /* --- 商品グリッド --- */
        .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; margin-top: 20px; }
        .product-item { background: #fff; border: 1px solid #eee; padding: 15px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: #333; display: flex; flex-direction: column; }
        .product-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
        .img-wrapper { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 15px; background: #fdfdfd; }
        .img-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s; }
        .product-name { font-size: 14px; font-weight: bold; margin-bottom: 8px; min-height: 3em; display: flex; align-items: center; justify-content: center; }

        .keywords { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: auto;min-height: 40px; }
        .tag { background: #f0f7ff; color: #0070cc; font-size: 10px; padding: 2px 8px; border-radius: 12px; border: 1px solid #dae9f5; cursor: pointer; transition: background 0.2s; }
        .tag:hover { background: #e0f0ff; border-color: #0070cc; }

        .no-results { display: none; text-align: center; padding: 50px; color: #999; font-size: 16px; grid-column: 1 / -1; }

        /* --- サイドバー（履歴） --- */
        .history-aside { width: 220px; flex-shrink: 0; }
        .history-box { border: 1px solid #eee; padding: 10px; background: #fafafa; position: sticky; top: 20px; }
        .history-title { font-size: 13px; font-weight: bold; border-bottom: 2px solid DeepSkyBlue; margin-bottom: 10px; padding-bottom: 5px; color: #333; }
        .history-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; color: #333; background: #fff; padding: 5px; border: 1px solid #eee; transition: background 0.2s; }
        .history-item:hover { background: #f0faff; }
        .history-item img { width: 50px; height: 65px; object-fit: contain; }
        .history-item span { font-size: 11px; line-height: 1.2; flex: 1; }

        /* --- ページネーション --- */
        .pagination { margin: 50px 0; display: flex; justify-content: center; gap: 8px; }
        .pagination a { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; text-decoration: none; color: #666; }
        .pagination a.active, .side-nav li.active a{ background: DeepSkyBlue; color: #fff; border-color: DeepSkyBlue; }