@charset "UTF-8";

/* 絞り込みバー（SP専用：/search の floating-filter 風） */
.cg-filter {
    margin: 0 0 8px;
}

.cg-filter ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(to bottom, #FFF 80%, #F7F7F7 100%);
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cg-filter li {
    width: 33.33%;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.cg-filter li:not(:last-child) {
    border-right: 1px solid #ddd;
}

.cg-filter a {
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cg-filter a i {
    font-size: 18px;
}

/* アイコンに画像(SVG/PNG)を使う場合のサイズ調整 */
.cg-filter a img {
    width: 26px;
    height: auto;
}

/* 2行目（の事例／絞り込み）を下段に折り返す */
.cg-filter .sub {
    display: block;
}

.cg-filter .cg-count .num {
    font-size: 16px;
    font-weight: bold;
    color: #EE3440;
}

/* スクロールで固定ヘッダー(.l-header)の直下に吸着
   top はヘッダー実高さを JS が動的に上書きする。58px はフォールバック値 */
.cg-filter-fixed {
    position: fixed;
    top: 58px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 8px;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
