/* 施工事例詳細ページのスタイル */
.construction-detail-page {
    padding: 40px 0;
    background-color: #f8f9fa;
}

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

/* 新規建立: 専用デザイン */
.cd-new-construction-layout {
    background: #f8f9fa;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: none;
}

.cd-header-info {
    margin-bottom: 0;
    background: #f8f9fa;
    padding: 15px 0;
    text-align: center;
    border-bottom: none;
}

.cd-header-text {
    font-size: 30px;
    color: #333;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.cd-main-photo-section {
    margin-bottom: 0;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
}

.cd-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
}

.cd-photo-item {
    flex: 0 0 auto;
    max-width: 400px;
    width: 100%;
}

.cd-main-photo {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    display: block;
    margin: 0;
}

.cd-main-photo:hover {
    transform: none;
}

.cd-construction-content {
    text-align: center;
    background: #f8f9fa;
    padding: 30px 20px;
}

.cd-content-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

.cd-wave-decoration {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color_main, #7ba270) 30%, 
        var(--color_main, #7ba270) 70%, 
        transparent 100%);
    border-radius: 2px;
    margin: 0 auto 25px;
    position: relative;
}

.cd-wave-decoration::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 9px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color_main, #7ba270) 20%, 
        var(--color_main, #7ba270) 80%, 
        transparent 100%);
    border-radius: 4px;
    opacity: 0.7;
}

.cd-content-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
}

.cd-content-text p {
    margin: 0;
    line-height: 1.7;
    color: #333;
    font-size: 15px;
    text-align: left;
}


/* スライダー関連のスタイル */
.cd-slider-wrapper {
    position: relative;
}

.cd-slide {
    display: none;
}

.cd-slide:nth-child(1),
.cd-slide:nth-child(2) {
    display: block;
    width: 48%;
    float: left;
    margin-right: 4%;
}

.cd-slide:nth-child(2) {
    margin-right: 0;
}

.cd-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.cd-slider-prev,
.cd-slider-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: background 0.3s ease;
}

.cd-slider-prev:hover,
.cd-slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.cd-slider-prev {
    left: 10px;
}

.cd-slider-next {
    right: 10px;
}

.cd-no-photos {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cd-container {
        padding: 0 15px;
    }
    
    .cd-new-construction-layout {
        padding: 0;
    }
    
    .cd-header-info {
        padding: 15px 0;
    }
    
    .cd-header-text {
        font-size: 14px;
    }
    
    .cd-main-photo-section {
        padding: 15px 10px;
    }
    
    .cd-photo-grid {
        gap: 10px;
    }
    
    .cd-photo-item {
        max-width: 320px;
    }
    
    .cd-main-photo {
        max-width: 100%;
    }
    
    .cd-construction-content {
        padding: 30px 15px;
    }
    
    .cd-content-title {
        font-size: 24px;
    }
    
    .cd-content-text p {
        font-size: 15px;
    }
    
    .cd-slider-prev,
    .cd-slider-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .cd-slider-prev {
        left: 5px;
    }
    
    .cd-slider-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .cd-new-construction-layout {
        padding: 0;
    }
    
    .cd-header-info {
        padding: 12px 0;
    }
    
    .cd-header-text {
        font-size: 13px;
    }
    
    .cd-main-photo-section {
        padding: 10px 5px;
    }
    
    .cd-photo-grid {
        gap: 8px;
    }
    
    .cd-photo-item {
        max-width: 280px;
    }
    
    .cd-main-photo {
        max-width: 100%;
    }
    
    .cd-construction-content {
        padding: 20px 10px;
    }
    
    .cd-content-title {
        font-size: 20px;
    }
    
    .cd-content-text p {
        font-size: 14px;
    }
    
    .cd-slider-prev,
    .cd-slider-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .cd-slider-prev {
        left: 2px;
    }
    
    .cd-slider-next {
        right: 2px;
    }
}