/* taxonomy-region.css */

.taxonomy-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.archive-header {
    text-align: left;
    font-size: 2em;
}

.archive-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

.cemetery-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cemetery-card {
    border: 1px solid #ddd;
    overflow: hidden;
    background: #fff;
    border-top: 5px solid #4F7942;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cemetery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cemetery-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cemetery-catch {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    display: block;
    font-weight: bold;
}

.cemetery-address {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.image-price-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.cemetery-image {
    width: 100%;
}

.cemetery-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 4px;
    font-size: 1rem;
}

.price-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 8px;
    list-style: none;
    padding: o 1rem;
}

.price-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 0.95rem;
}

.price-label {
    color: #333;
    font-weight: bold;
}

.price-value {
    font-weight: bold;
    color: #B65C2E;
    font-size: 1.3rem;
}

.price-unit {
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
    margin-left: 2px;
}

.cemetery-features {
    margin-bottom: 15px;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.feature-tag {
    background: #F0EDE5;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 5px;
    font-size: 0.65rem;
    color: #333;
}

.detail-button {
    display: block;
    background-color: #4F7942;
    color: white;
    padding: 12px 0;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 0;
    font-size: 0.9rem;
}

.detail-button:hover {
    background-color: #4F7942;
    color: white;
}

.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.no-posts-message p {
    font-size: 1.1rem;
    color: #666;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

.pagination a:hover {
    background-color: #4a7c59;
    color: white;
    border-color: #4a7c59;
}

.pagination .current {
    background-color: #4a7c59;
    color: white;
    border-color: #4a7c59;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .taxonomy-archive-container {
        padding: 15px;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .cemetery-list {
        grid-template-columns: repeat(auto-fitll, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .cemetery-info {
        padding: 12px;
    }
    
    .cemetery-catch {
        font-size: 1.1rem;
    }
    
    .price-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .cemetery-image img,
    .no-image {
        height: 160px;
    }
    
    .detail-button {
        padding: 10px 0;
        font-size: 0.85rem;
    }
}