/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0.0
*/

/* ===========================================
   トップページ サムネイルグリッド
   =========================================== */

.thumbnail-grid-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.thumbnail-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.thumbnail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.thumbnail-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.thumbnail-image {
    position: relative;
    width: 100%;
    height: 195px;
    overflow: hidden;
    background: #f5f5f5;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-card:hover {
    transform: scale(1.05);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
}

.thumbnail-content {
    padding: 20px;
}

.thumbnail-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumbnail-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    align-items: center;
}

.thumbnail-category {
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* ページネーション */
.thumbnail-grid-container .pagination {
    text-align: center;
    margin-top: 40px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .thumbnail-image {
        height: 160px;
    }

    .thumbnail-content {
        padding: 15px;
    }

    .thumbnail-title {
        font-size: 0.95rem;
    }

    .thumbnail-grid-container {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-image {
        height: 200px;
    }
}