
/* 헤더 섹션 디자인 */
#hero_nine {
    padding: 0;
    height: 75vh; /* 화면 높이를 조금 더 사용 */
    min-height: 550px;
    background-image: url('../roof/images/dol_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Theme 오버레이 */
#hero_nine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 고급스러운 그라데이션 오버레이 (위에서 아래로 어두워짐) */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

/* 헤더 내부 컨테이너 스타일 */
.hero-content-container_nine {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 텍스트 애니메이션 정의 */
@keyframes fadeInUp_nine {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label_nine {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9); /* 흰색 + 투명도 */
    letter-spacing: 0.3em; /* 자간을 넓혀 고급스럽게 */
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    padding-bottom: 10px;
    animation: fadeInUp_nine 0.8s ease-out forwards;
}

/* 라벨 하단 짧은 바 */
.hero-label_nine::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
}

.hero-title_nine {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); /* 깊이감 있는 그림자 */
    animation: fadeInUp_nine 0.8s ease-out 0.2s forwards; /* 0.2초 딜레이 */
    opacity: 0; /* 초기 상태 숨김 */
}

.hero-desc_nine {
    font-size: 1.6rem;
    font-weight: 300; /* 얇은 폰트 */
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    animation: fadeInUp_nine 0.8s ease-out 0.4s forwards; /* 0.4초 딜레이 */
    opacity: 0;
}

.hero-footer_nine {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.05em;
    animation: fadeInUp_nine 0.8s ease-out 0.6s forwards; /* 0.6초 딜레이 */
    opacity: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.hero-footer_nine .separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

@media (max-width: 768px) {
    #hero_nine {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-title_nine {
        font-size: 3.2rem;
    }
    
    .hero-desc_nine {
        font-size: 1.2rem;
    }
}

/* 2. 섹션 간의 여백 (요청하신 160px 적용) */
.section_nine {
    margin-bottom: 80px; /* 섹션 사이의 간격을 160px로 벌려 여백의 미를 살립니다. */
}

/* 3. 제목 스타일링 (우아하고 세련된 디자인) */
.title_nine {
    font-size: 36px; /* 너무 크지 않으면서도 명확한 크기입니다. */
    font-weight: 500; /* 적당한 굵기로 세련미를 줍니다. */
    letter-spacing: 0.15em; /* 자간을 넓혀 고급스러운 여백을 만듭니다. */
    text-transform: uppercase; /* 영문은 대문자로 표기합니다. */
    color: #111111; /* 짙은 검은색으로 명료함을 줍니다. */
    text-align: center;
    margin-bottom: 4rem;
    position: relative; /* 하단 장식 선을 위한 기준점입니다. */
    padding-bottom: 1.5rem; /* 텍스트와 하단 선 사이의 간격입니다. */
}

/* 제목 내 연한 텍스트 스타일 */
.title_nine .title-light_nine {
    color: #aaaaaa; /* 연한 회색으로 설정하여 대비를 줍니다. */
    font-weight: 300; /* 굵기도 얇게 하여 강약을 조절합니다. */
}

/* 제목 하단 장식 선 (Underline Decoration) */
.title_nine::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* 짧고 간결한 선의 길이입니다. */
    height: 3px; /* 선의 두께입니다. */
    background-color: #111111; /* 선의 색상입니다. 포인트 컬러로 변경 가능합니다. */
}

h3 {
    font-size: 28px; /* h3: 18 * 1.25 * 1.25 */
}

h4, .h4 {
    font-size: 22.5px; /* h4: 18 * 1.25 */
}

h5, .h5 {
    font-size: 18px; /* h5: 18 * 1 */
}

/* 4. 제품 특징 섹션 디자인 */
#features_nine .feature-card_nine {
    border: none; /* 테두리를 없앱니다. */
    border-bottom: 1px solid #eeeeee; /* 아래쪽에만 얇은 선을 그어 깔끔하게 나열합니다. */
    padding: 2rem 0; /* 위아래로 넉넉한 여백을 줍니다. */
    transition: background-color 0.4s ease; /* 배경색 변화를 부드럽게 합니다. */
}

#features_nine .feature-card_nine:hover {
    background-color: #fafafa; /* 마우스 올렸을 때 아주 연한 회색으로 변합니다. */
}

/* 10. 제품 색상표 디자인 */
.color-group_nine {
    margin-bottom: 3rem;
}

.color-title_nine {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #111;
    display: inline-block;
}

/* 색상 차이 주의 문구 */
.color-disclaimer_nine {
    font-size: 0.95rem;
    font-style: italic;
    color: #6c757d; /* text-muted 색상 */
    margin-bottom: 0;
}

.color-list_nine {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.color-item_nine {
    width: 160px; /* 기본 너비 (1톤, 2톤) */
    text-align: center;
}

.color-item_nine span {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

/* 1-Tone 색상 정의 */
.color-charcoal_nine { background-color: #3a3a3a; }
.color-silver-gray_nine { background-color: #5a5e63; }
.color-brown-bark_nine { background-color: #5d4a42; }
.color-brick_nine { background-color: #9e4a3b; }
.color-olive_nine { background-color: #4a5443; }
.color-gray_nine { background-color: #8a8a8a; }

/* 2-Tone 색상 정의 */
.color-charcoal-gray_nine { background: linear-gradient(135deg, #3a3a3a 50%, #5a5e63 50%); }
.color-sienna_nine { background: linear-gradient(135deg, #8B4513 50%, #A0522D 50%); }
.color-brick-twotone_nine { background: linear-gradient(135deg, #9e4a3b 50%, #b85c4d 50%); }
.color-forest-green_nine { background: linear-gradient(135deg, #228B22 50%, #32CD32 50%); }

/* 3-Tone 색상 정의 */
.color-silver-gray-threetone_nine { background: linear-gradient(135deg, #5a5e63 33%, #7a7e83 33%, #7a7e83 66%, #9a9e03 66%); }
.color-teak-threetone_nine { background: linear-gradient(135deg, #8B4513 33%, #A0522D 33%, #A0522D 66%, #CD853F 66%); }

.color-swatch-img_nine {
    width: 100%;
    height: 150px; /* 기본 높이 (1톤, 2톤) */
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.color-item_nine:hover .color-swatch-img_nine {
    transform: translateY(-5px);
}

/* 3-Tone Series 특별 스타일 */
.color-item-threetone_nine {
    width: 364px; /* PC: 원본 너비 고정 */
    max-width: 100%; /* 모바일: 화면 너비에 맞게 축소 */
    text-align: center;
}

.color-swatch-img-threetone_nine {
    width: 100%;
    height: 180px; /* PC: 원본 높이 고정 */
    object-fit: cover; /* 비율 유지하며 꽉 채움 */
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.color-item-threetone_nine:hover .color-swatch-img-threetone_nine {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .color-list_nine {
        justify-content: center; /* 모바일에서 중앙 정렬 */
    }
    
    .color-item_nine {
        width: 45%; /* 모바일에서 2열 배치 */
    }

    /* 쓰리톤 모바일 스타일: 반응형 적용 */
    .color-item-threetone_nine {
        width: 100%; /* 모바일에서는 꽉 차게 */
    }
    
    .color-swatch-img-threetone_nine {
        height: auto; /* 비율 유지 */
        aspect-ratio: 364 / 180; /* 원본 비율 유지 */
    }
}

/* 6. 기술 사양 섹션 디자인 */
.spec-table_nine {
    width: 100%;
    border-top: 2px solid #111111; /* 표 상단에 굵은 선을 그어 시선을 끕니다. */
    margin-top: 2rem;
}

.effective-specs-img_nine {
    max-width: 100%;
}

.spec-row_nine {
    display: flex; /* 표 대신 유연한 레이아웃을 사용합니다. */
    border-bottom: 1px solid #eeeeee; /* 항목 간의 얇은 선입니다. */
    padding: 1.5rem 0;
}

.spec-label_nine {
    width: 30%; /* 항목 이름의 너비입니다. */
    font-weight: 500;
    color: #666666;
}

.spec-value_nine {
    width: 70%; /* 수치값의 너비입니다. */
    text-align: right; /* 수치를 오른쪽 정렬하여 깔끔하게 맞춥니다. */
}

/* 7. 시공사례 갤러리 디자인 */
#gallery_nine .gallery-item_nine {
    overflow: hidden; /* 이미지가 영역을 벗어나지 않게 합니다. */
    background-color: #f9f9f9; /* 이미지가 로딩되기 전의 배경색입니다. */
}

#gallery_nine img {
    cursor: pointer; /* 클릭 가능함을 알려줍니다. */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* 갤러리 느낌의 부드러운 확대 효과입니다. */
    filter: grayscale(20%); /* 약간의 회색조를 주어 차분한 느낌을 줍니다. */
}

#gallery_nine img:hover {
    transform: scale(1.05); /* 마우스 올렸을 때 살짝 확대합니다. */
    filter: grayscale(0%); /* 마우스 올렸을 때 원래 색상을 보여줍니다. */
}

/* --- 이미지 리버(Image River) 섹션 --- */
.image-river-container_nine {
    position: relative; /* 화살표 버튼의 기준점입니다. */
    width: 100%;
    background-color: #ffffff;
    padding: 40px 0;
}

.image-river_nine {
    position: relative;
    overflow: hidden; /* 영역 밖 이미지를 숨깁니다. */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.image-river-track_nine {
    display: flex; /* 이미지들을 가로로 나란히 배치합니다. */
    width: max-content; /* 내부 콘텐츠 크기에 맞춥니다. */
    will-change: transform; /* 부드러운 애니메이션을 위해 브라우저에 최적화를 힌트합니다. */
}

.image-river-track_nine img {
    height: 25px; /* 이미지 높이를 작게 조절합니다. */
    width: auto; /* 비율에 맞춰 너비를 자동 조절합니다. */
    margin: 0 30px; /* 이미지 간의 간격입니다. */
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.5s ease;
}

.image-river-track_nine:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* 좌우 컨트롤 버튼 */
.river-control_nine {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8); /* 반투명한 흰색 배경을 추가합니다. */
    border: 1px solid #eeeeee; /* 얇은 테두리를 추가합니다. */
    border-radius: 50%; /* 완벽한 원 모양으로 만듭니다. */
    width: 50px; /* 버튼의 너비입니다. */
    height: 50px; /* 버튼의 높이입니다. */
    font-size: 1.5rem;
    color: #888888; /* 기본 아이콘 색상입니다. */
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 은은한 그림자 효과를 줍니다. */
    transition: all 0.3s ease; /* 모든 속성 변화에 부드러운 효과를 줍니다. */
}

.river-control_nine:hover {
    background-color: #111111; /* 마우스를 올리면 배경이 짙은 회색으로 바뀝니다. */
    color: #ffffff; /* 아이콘 색상은 흰색으로 바뀝니다. */
    transform: translateY(-50%) scale(1.1); /* 살짝 커지는 효과를 줍니다. */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 시험 결과치 테이블 디자인 */
.test-table_nine {
    border-top: 2px solid #111111; /* 테이블 상단 선을 굵게 하여 안정감을 줍니다. */
}

.test-table_nine .test-row_nine {
    display: flex;
    border-bottom: 1px solid #eeeeee; /* 각 행을 나누는 얇은 선입니다. */
    padding: 1.5rem 0; /* 상하 여백을 늘려 시원한 느낌을 줍니다. */
    font-size: 16px; /* 테이블 내 폰트 크기를 16px로 조정합니다. */
}

/* 테이블 헤더 스타일 */
.test-table_nine .test-header_nine {
    font-weight: 700;
    color: #111111;
    border-bottom-width: 2px; /* 헤더와 본문을 나누는 선을 굵게 처리합니다. */
}

.test-table_nine .test-header_nine span {
    justify-content: center; /* 헤더 텍스트 중앙 정렬 */
}

.test-table_nine .test-category_nine {
    width: 20%;
    font-weight: 700; /* 굵은 글씨로 다른 항목과 구분합니다. */
    color: #111111; /* 텍스트 색상을 기본 색상으로 되돌립니다. */
    padding: 0 1rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.test-table_nine .test-method_nine {
    width: 35%; /* 너비를 늘려 공간을 확보합니다. */
    color: #555555;
    display: flex;
    align-items: center;
    padding: 0 2rem; /* 좌우 여백을 추가하여 간격을 만듭니다. */
}

.test-table_nine .test-result_nine {
    width: 45%; /* 너비를 늘려 공간을 확보합니다. */
    color: #555555;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

/* --- 반응형: 모바일 화면에서의 시험 결과치 테이블 --- */
@media (max-width: 767px) {
    .test-table_nine .test-row_nine {
        flex-direction: column; /* 항목들을 세로로 쌓습니다. */
        padding: 1.5rem 1rem;
        border-width: 2px;
        border-radius: 8px;
        margin-bottom: 1rem;
        background-color: #fcfcfc;
    }

    .test-table_nine .test-category_nine,
    .test-table_nine .test-method_nine,
    .test-table_nine .test-result_nine {
        width: 100%; /* 모든 항목의 너비를 100%로 설정합니다. */
        padding: 0;
        text-align: left;
        display: flex; /* 내부 요소 정렬을 위해 flex를 사용합니다. */
        align-items: flex-start; /* 모바일에서는 모든 내용을 상단 정렬합니다. */
        word-break: keep-all; /* 단어 단위로 줄바꿈하여 깨짐을 방지합니다. */
    }

    .test-table_nine .test-category_nine {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        display: block; /* 카테고리는 한 줄 전체를 차지하도록 합니다. */
    }

    .test-table_nine .test-method_nine::before {
        content: '방법:'; /* 내용 앞에 제목을 붙여줍니다. */
        font-weight: 700;
        margin-right: 1rem; /* 간격을 늘립니다. */
        color: #888;
        white-space: nowrap; /* 라벨이 줄바꿈되지 않도록 합니다. */
    }

    .test-table_nine .test-result_nine::before {
        content: '결과:'; /* 내용 앞에 제목을 붙여줍니다. */
        font-weight: 700;
        margin-right: 1rem; /* 간격을 늘립니다. */
        color: #888;
        white-space: nowrap; /* 라벨이 줄바꿈되지 않도록 합니다. */
    }

    .test-footer-note_nine {
        text-align: left !important; /* 모바일에서는 좌측 정렬합니다. */
    }
}

/* 3. 리스트 디자인 커스터마이징 */
.custom-list_nine {
    list-style: none; /* 기본 불릿을 제거합니다. */
    padding-left: 0;
}

.spec-list_nine {
    font-size: 1.1rem;
    line-height: 2;
}

.custom-list_nine li {
    position: relative;
    padding-left: 1.5rem; /* 불릿 공간을 확보합니다. */
    margin-bottom: 0.5rem;
}

.custom-list_nine li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px; /* 줄 높이의 중간쯤에 위치하도록 조정 */
    width: 6px;
    height: 6px;
    background-color: #111111; /* 불릿 색상 */
    /* border-radius: 50%; 원형을 원하면 주석 해제 */
}

.river-prev_nine { left: 0; }
.river-next_nine { right: 0; }

#catalog_gallery_nine .gallery-item_nine {
    overflow: hidden;
}

#catalog_gallery_nine img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#catalog_gallery_nine img:hover {
    transform: scale(1.05);
}

/* 8. 라이트박스 모달 디자인 */
#lightbox_nine .modal-content {
    background-color: rgba(255, 255, 255, 0.95); /* 배경을 반투명한 흰색으로 하여 고급스러움을 줍니다. */
    border: none;
}

#lightbox_nine .btn-close {
    filter: none;
    opacity: 1;
}

#lightbox_nine .btn-close.btn-close-white-nine {
    filter: invert(1) grayscale(100%) brightness(200%);
    --bs-btn-close-opacity: 1;
    --bs-btn-close-hover-opacity: 1;
}

#lightbox_nine .btn-close.btn-close-white-nine:focus {
    box-shadow: none;
}

/* Benefits */
#benefits_nine .benefit-card_nine {
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#benefits_nine .benefit-card_nine:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

#benefits_nine .benefit-icon_nine {
    height: 64px;
    width: auto;
    margin-bottom: 0.75rem;
    display: inline-block;
}

#benefits_nine .benefit-label_nine {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.02em;
}

@media (max-width: 767px) {
    #benefits_nine .benefit-icon_nine {
        height: 56px;
    }
}

/* Accessories Detail */
.accessory-card_nine {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

/* Visual Break Section (Expand Animation) */
.visual-break-container_nine {
    width: 100%;
    height: 450px; /* 충분한 높이 확보 */
    overflow: hidden; /* 이미지가 커질 때 넘치는 부분 숨김 */
    position: relative;
    margin-bottom: 160px; /* 섹션 간격 유지 */
}

.visual-break-img_nine {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* 초기 상태: 약간 확대된 상태 */
    clip-path: inset(0 90% 0 90%); /* 초기 상태: 좌우가 잘려 좁은 상태 */
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1); /* 부드럽고 고급스러운 애니메이션 */
    opacity: 0.8;
}

/* 활성화 클래스 (자바스크립트로 추가) */
.visual-break-img_nine.revealed {
    transform: scale(1); /* 원래 크기로 */
    clip-path: inset(0 0 0 0); /* 전체 보이기 */
    opacity: 1;
}

/* 9. 시공 방법 섹션 디자인 */
.construction-card_nine {
    background: transparent;
    border: none;
    height: 100%;
    /* shadow 제거 */
}

.construction-img-wrapper_nine {
    width: 100%;
    height: 220px; /* 모든 이미지 높이 통일 (적당한 크기) */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    position: relative;
}

/* 첫 번째 큰 이미지(피스 작업)는 조금 더 높게 설정 */
.construction-card_nine.large .construction-img-wrapper_nine {
    height: 360px;
}

/* 큰 이미지는 좌우가 잘리지 않도록 contain으로 설정 */
.construction-card_nine.large .construction-img_nine {
    object-fit: contain;
    background-color: #ffffff; /* 여백이 생길 경우 흰색 배경 */
}

.construction-img_nine {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 영역을 꽉 채우도록 설정 */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* 부드러운 줌 효과 */
}

/* 마우스 호버 시 이미지 확대 애니메이션 */
.construction-card_nine:hover .construction-img_nine {
    transform: scale(1.08);
}

.construction-title_nine {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.construction-card_nine:hover .construction-title_nine {
    color: #000; /* 호버 시 텍스트 색상 진하게 */
}

@media (max-width: 768px) {
    .construction-card_nine.large .construction-img-wrapper_nine {
        height: 240px; /* 모바일에서는 높이 줄임 */
    }
}

@media (max-width: 768px) {
    .visual-break-container_nine {
        height: 250px;
    }
    .visual-break-img_nine {
        clip-path: inset(0 0 0 0); /* 모바일에서는 처음부터 다 보여줌 (성능/UX 고려) */
        transform: scale(1);
    }
}

.accessory-card_nine:hover {
    border-color: #e0e0e0;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accessory-img-wrapper_nine {
    height: 160px; /* 고정 높이 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accessory-img_nine {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.accessory-card_nine:hover .accessory-img_nine {
    transform: scale(1.05);
}

.accessory-label_nine {
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}
