/* 施工事例アーカイブページのスタイル - カード形式 */

.case-post-archive {
    min-height: 100vh;
    padding: 40px 0;
}

.case-post-archive__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー部分 */
.case-post-archive__header {
    text-align: center;
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.case-post-archive__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a8e6, #007cba);
}

.case-post-archive__title {
    font-size: 3.2rem;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 800;
    background: linear-gradient(135deg, #007cba, #005a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: 0.02em;
}

.case-post-archive__title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a8e6);
    border-radius: 2px;
}

.case-post-archive__description {
    font-size: 1.3rem;
    color: #666;
    margin: 30px 0 0 0;
    line-height: 1.6;
    font-weight: 400;
}

/* カードグリッドレイアウト - PC3列、SP1列 */
.case-post-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 60px;
}

/* カードスタイル */
.case-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 124, 186, 0.1);
}

.case-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007cba, #00a8e6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.case-post-card:hover::before {
    transform: scaleX(1);
}

.case-post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 124, 186, 0.15);
    border-color: rgba(0, 124, 186, 0.3);
}

.case-post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* サムネイル */
.case-post-card__thumbnail {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.case-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-post-card:hover .case-post-card__image {
    transform: scale(1.08) rotate(1deg);
}

.case-post-card__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.case-post-card__no-image::before {
    content: '📷';
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* カード内容 */
.case-post-card__content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-post-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    transition: color 0.3s ease;
    min-height: 3.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-post-card:hover .case-post-card__title {
    color: #007cba;
}

/* 施工霊園 */

.case-post-card__cemetery-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-post-card__cemetery-name {
    font-size: 1.2rem;
    color: #007cba;
    font-weight: 700;
    display: block;
}

/* 施工内容抜粋 */
.case-post-card__excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 投稿日 */
.case-post-card__date {
    color: #999;
    font-size: 0.95rem;
    margin-top: auto;
    text-align: right;
    font-weight: 500;
    position: relative;
    padding-left: 24px;
}

.case-post-card__date::before {
    content: '📅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ページネーション */
.case-post-archive__pagination {
    text-align: center;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 124, 186, 0.1);
}

.case-post-archive__pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.case-post-archive__pagination .nav-links a,
.case-post-archive__pagination .nav-links span {
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-post-archive__pagination .nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.case-post-archive__pagination .nav-links a:hover::before {
    left: 100%;
}

.case-post-archive__pagination .nav-links a:hover {
    background: #007cba;
    color: #ffffff;
    border-color: #007cba;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 124, 186, 0.3);
}

.case-post-archive__pagination .nav-links .current {
    background: linear-gradient(135deg, #007cba, #005a8a);
    color: #ffffff;
    border-color: #007cba;
    box-shadow: 0 4px 16px rgba(0, 124, 186, 0.3);
}

/* 投稿なしの場合 */
.case-post-archive__no-posts {
    text-align: center;
    background: #ffffff;
    padding: 80px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 124, 186, 0.1);
}

.case-post-archive__no-posts h2 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 24px 0;
    font-weight: 700;
}

.case-post-archive__no-posts p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .case-post-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .case-post-card__thumbnail {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .case-post-archive {
        padding: 30px 0;
    }
    
    .case-post-archive__container {
        padding: 0 15px;
    }
    
    .case-post-archive__header {
        padding: 40px 25px;
        margin-bottom: 40px;
        border-radius: 12px;
    }
    
    .case-post-archive__title {
        font-size: 2.4rem;
    }
    
    .case-post-archive__description {
        font-size: 1.1rem;
    }
    
    .case-post-archive__grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .case-post-card {
        border-radius: 12px;
    }
    
    .case-post-card__thumbnail {
        height: 240px;
    }
    
    .case-post-card__content {
        padding: 25px;
    }
    
    .case-post-card__title {
        font-size: 1.3rem;
        min-height: auto;
    }
    
    .case-post-card__cemetery-name {
        font-size: 1.1rem;
    }
    
    .case-post-archive__pagination {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .case-post-archive__pagination .nav-links a,
    .case-post-archive__pagination .nav-links span {
        padding: 12px 14px;
        font-size: 0.9rem;
        min-width: 42px;
    }
}

@media (max-width: 480px) {
    .case-post-archive {
        padding: 20px 0;
    }
    
    .case-post-archive__header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .case-post-archive__title {
        font-size: 2rem;
    }
    
    .case-post-archive__description {
        font-size: 1rem;
    }
    
    .case-post-card__thumbnail {
        height: 200px;
    }
    
    .case-post-card__content {
        padding: 20px;
    }
    
    .case-post-card__title {
        font-size: 1.2rem;
    }
    
    .case-post-card__cemetery-name {
        font-size: 1rem;
    }
    
    .case-post-archive__pagination .nav-links {
        gap: 8px;
    }
    
    .case-post-archive__pagination .nav-links a,
    .case-post-archive__pagination .nav-links span {
        padding: 10px 12px;
        min-width: 38px;
        font-size: 0.85rem;
    }
    
    .case-post-archive__no-posts {
        padding: 60px 30px;
    }
    
    .case-post-archive__no-posts h2 {
        font-size: 1.6rem;
    }
    
    .case-post-archive__no-posts p {
        font-size: 1rem;
    }
}