/* 書籍・資料関連のスタイル */

.resources-shortcode {
    margin: 20px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.resource-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-thumbnail {
    overflow: hidden;
}

.resource-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-item:hover .resource-thumbnail img {
    transform: scale(1.05);
}

.resource-content {
    padding: 15px;
}

.resource-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.resource-content h4 a {
    color: #333;
    text-decoration: none;
}

.resource-content h4 a:hover {
    color: #007cba;
}

.resource-author {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.resource-type {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin: 5px 0;
}

.resource-price {
    font-weight: bold;
    color: #e74c3c;
    margin: 5px 0;
}

.resource-rating {
    color: #f39c12;
    margin: 5px 0;
}

.resource-excerpt {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
}

.resource-more-link {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
} 