/* 素材一覧の中身の共通スタイル */
.item {
    display: flex;
    background: #ffffff;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    transition: box-shadow 0.2s ease;
    align-items: center;

}

.item:hover {
    box-shadow: 0 4px 12px rgba(36, 41, 47, 0.1);
}

.item-image {
    flex-shrink: 0;
    width: 300px;
    height: 225px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    background: #f6f8fa;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 60%;
}

.item h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #24292f;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.item h2 a {
    color: #24292f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item h2 a:hover {
    color: #0969da;
}

.tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tags strong {
    color: #656d76;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f6f8fa 0%, #eef2f5 100%);
    color: #24292f;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #d1d9e0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.description {
    color: #656d76;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.item-info {
    color: #656d76;
    font-size: 0.875rem;
    margin-top: auto;
}

.item hr {
    display: none;
}

/* ページネーション */
.pagination {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
}

.pagination p {
    color: #656d76;
    margin-bottom: 1rem;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-links a {
    color: #0969da;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination-links a:hover {
    background: #0969da;
    color: white;
    border-color: #0969da;
}

.pagination-links strong {
    color: white;
    background: #0969da;
    padding: 0.5rem 1rem;
    border: 1px solid #0969da;
    border-radius: 6px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f6f8fa;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
}

.sort-controls span {
    color: #656d76;
    font-weight: 500;
    font-size: 1rem;
}

.sort-link {
    color: #0969da;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}


