.case-post__cemetery {
        padding: 15px 20px;
    }    .case-post__cemetery {
        padding: 20px 25px;
    }/* 施工事例（case-post）のスタイル */

.case-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-post__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ヘッダー部分 */
.case-post__header {
    padding-bottom: 20px;
}

.case-post__title {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    line-height: 1.3;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #007cba, #005a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 124, 186, 0.1);
    padding: 20px 0;
    border-bottom: 3px solid #007cba;
    position: relative;
}

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

/* 施工霊園 */


.case-post__cemetery-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.case-post__cemetery-link {
    font-size: 1.5rem;
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
}

.case-post__cemetery-link:hover {
    color: #005a8a;
    text-decoration: underline;
}



/* 施工内容 */
.case-post__content {
    background: #ffffff;
}

.case-post__content-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.case-post__content-text {
    font-size: 1rem;
    color: #555;
    text-align: center;
}

/* 施工後写真 */
.case-post__after-images {
    background: #ffffff;
    padding: 25px;
}

.case-post__after-images-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 25px 0;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

/* ギャラリー */
.case-post__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.case-post__gallery-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.case-post__gallery-item:hover .case-post__gallery-img {
    transform: scale(1.05);
}

/*h2装飾*/
h2::after{
    all: unset;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .case-post {
        padding: 15px;
        margin: 10px;
    }
    
    .case-post__title {
        font-size: 2rem;
        padding: 15px 0;
    }
    
    .case-post__content-title,
    .case-post__after-images-title {
        font-size: 1.3rem;
    }
    
    .case-post__gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .case-post__gallery-img {
        height: 300px;
        object-fit: contain;
    }
    
    .case-post__container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .case-post {
        padding: 10px;
        margin: 5px;
    }
    
    .case-post__title {
        font-size: 1.7rem;
        padding: 10px 0;
    }
    
    .case-post__content,
    .case-post__after-images {
        padding: 20px;
    }
    
    .case-post__gallery-img {
        height: 250px;
        object-fit: contain;
    }
}