/*! page */
/* 8個並べるためのグリッド設定 */
.c-post-grid,
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
}

.l-category-filter,
.filter-section {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.c-post-card-thumbnail img,
.post-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.c-post-card-content,
.post-content {
    padding: 10px;
    flex-grow: 1;
}

.c-post-card-title,
.post-title {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px 0;
    font-weight: bold;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    font-size: 12px;
    color: #666;
}

/* タブボタンの装飾 */
.c-category-filter-list,
.category-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
    margin-bottom: 16px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.c-category-filter-button,
.cat-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 72px;
    background: #f5f5f5;
    border: none;
    padding: 6px 8px;
    margin-right: 0;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    font-size: 12px;
    width: auto;
}
.l-load-more,
.load-more-wrap {
    text-align: center;
    margin: 20px 0 10px;
}
.c-load-more-button,
.load-more-btn {
    border: 1px solid #ccc;
    background: #f5f5f5;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
}
@media (min-width: 481px) {
    .c-post-grid,
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-height: 0; }
    .c-post-card-thumbnail img,
    .post-thumbnail img { height: 120px; }
    .c-post-card-content,
    .post-content { padding: 10px; }
    .c-post-card-title,
    .post-title { font-size: 14px; }
    .post-excerpt { font-size: 12px; }
}
@media (min-width: 769px) {
    .c-post-grid,
    .article-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; min-height: 400px; }
    .l-category-filter,
    .filter-section { padding: 0; }
    .c-category-filter-list,
    .category-list { display: block; gap: normal; flex-wrap: nowrap; margin-bottom: 30px; padding-bottom: 10px; }
    .c-category-filter-button,
    .cat-btn { flex: initial; min-width: 0; margin-right: 5px; width: 10%; padding: 10px 20px; font-size: 15px; }
    .c-post-card-thumbnail img,
    .post-thumbnail img { height: 150px; }
    .c-post-card-content,
    .post-content { padding: 12px; }
    .c-post-card-title,
    .post-title { font-size: 15px; }
    .post-excerpt { font-size: 13px; }
}
@media (min-width: 1025px) {
    .c-post-grid,
    .article-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
