/* --- 検索結果一覧全体 --- */
.search-posts {
    display: flex;
    flex-wrap: wrap;       /* カードが折り返す */
    gap: 20px;             /* カード間の隙間 */
    margin: 0 -10px;       /* カード間paddingと合わせる */
}

/* --- 各カード --- */
.search-posts .post-card {
    width: calc(33.333% - 20px);  /* 3列表示、gapを引く */
    box-sizing: border-box;
    background: #fff;             /* 必要に応じて */
    border: 1px solid #e0e0e0;    /* 必要に応じて */
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* アイキャッチ画像 */
.search-posts .post-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 10px;
}

/* 日付 */
.search-posts .post-card .post-date {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px 0;
}

/* タイトル */
.search-posts .post-card h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* 都市名・ジャンルの子カテゴリーラッパー */
.search-posts .post-card .article-sub-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 子カテゴリーラベル */
.search-posts .post-card .sub-category-item {
    padding: 4px 10px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-size: 12px;
    text-decoration: none;
    transition: 0.2s;
}

/* ホバー時 */
.search-posts .post-card .sub-category-item:hover {
    background: #ccc;
    color: #fff;
}

/* レスポンシブ調整 */
@media screen and (max-width: 1024px) {
    .search-posts .post-card {
        width: calc(50% - 20px); /* 2列表示 */
    }
}

@media screen and (max-width: 600px) {
    .search-posts .post-card {
        width: 100%; /* 1列表示 */
    }
}