/*** 섹션1 - 회사소개 ***/
/* 전체 감싸기 */
.sub-wrap {
    width: 1200px;
    margin: 180px auto;
    text-align: center; /* 전체 가운데 정렬 */
}

/* 상단 경로 */
.breadcrumb {
    text-align: right;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}
.breadcrumb img { width: 14px; vertical-align: middle; }

/* 타이틀 */
.page-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
}

/* ⭐ 탭 메뉴 디자인 */
.tab-menu {
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    border-bottom: 1px solid #ddd; /* 전체 밑줄 (회색) */
    margin: 0px auto 60px auto;
    padding: 0;
    list-style: none;
    width: 400px;
}

.tab-menu li {
    font-size: 18px;
    color: #888;
    padding: 15px 40px;
    cursor: pointer;
    position: relative;
    top: 1px; /* 선 겹치기용 */
    border-bottom: 3px solid transparent; /* 평소엔 투명한 줄 */
    width: 200px;
}

/* 활성화된 탭 (검은색 글씨 + 검은 밑줄) */
.tab-menu li.on {
    color: #222;
    font-weight: bold;
    border-bottom: 3px solid #ffd67d;; /* 선택된 탭만 진한 줄 */
}

/* 탭 내용 숨기기/보이기 기본 설정 */
.tab-content {
    display: none; /* 기본적으로 다 숨김 */
}
.tab-content.current {
    display: block; /* 'current' 클래스 있는 것만 보임 */
    animation: fadeIn 0.5s; /* 부드럽게 나타나기 */
}

/* 텍스트 디자인 (사진 참고) */
.intro-txt h3 {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 30px;
}
.point-txt {
    font-size: 36px;
    font-weight: 700;
    color: #002C7E;
    margin-bottom: 30px;
}
.desc-txt {
    font-size: 20px;
	line-height: 26px;
	margin-top: 20px;
	color: #333;
}
.intro-img img {
    margin-top: 50px;
    width: 100%;
    border-radius: 10px;
}
/* 지도 */
#view-tab-2 > div.mapCon {
	width: 100%;
	text-align: center;
    border-radius: 5px;
}
#view-tab-2 > div.mapCon > iframe {
	display: block;
	margin: 0 auto;
	width: 100%;
}
#view-tab-2 > div.mapCon > p {
	width: 100%;
	background: #3A9CED;
	margin: 0 auto;
	padding: 5px 0px 7px 0px;
	font-size: 18px;
    color: #fff;;
}
/* 오는방법 */
#view-tab-2 > div.traffic {
	/*border: 1px solid red;*/
	width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-around;
	margin-top: 30px;
	padding: 10px 0px;
	border-radius: 100px;
    border: 1px solid #ccc;
}
#view-tab-2 div.traffic > div {
	width: 600px;
	padding: 20px 30px;

}
#view-tab-2 > div.traffic > div > img {
	width: 100px;
	float: left;
}
#view-tab-2 > div.traffic > div > p {
	float: left;
	/*border: 1px solid red;*/
	margin: 10px 20px;
    text-align: left;
}
#view-tab-2 > div.traffic > div.bus {
	border-left: 1px solid #ccc;
}

/* 부드럽게 나타나는 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   [모바일 반응형] 회사소개 (서브페이지 공통)
   화면 너비가 768px 이하일 때 적용
   ========================================= */
@media screen and (max-width: 768px) {

    /* 1. 전체 레이아웃 (서브 랩) */
    .sub-wrap {
        width: 100%; /* 1200px 고정 해제 */
        margin: 100px auto 60px; /* 상단 여백 축소 (180px -> 100px) */
        padding: 0 20px; /* 좌우 여백 추가 */
        box-sizing: border-box;
        margin-top: 180px;
    }

    /* 2. 타이틀 및 폰트 크기 조절 */
    .breadcrumb {
        display: none; /* 모바일에서는 경로 숨김 (깔끔하게) */
    }

    .page-title h2 {
        font-size: 28px; /* 36px -> 28px */
        margin-bottom: 30px;
    }

    /* 3. 탭 메뉴 (반반 나누기) */
    .tab-menu {
        width: 100% !important; /* 400px 고정 해제 */
        margin-bottom: 40px;
    }

    .tab-menu li {
        width: 50%; /* 너비 반반 */
        padding: 15px 0; /* 좌우 패딩 제거 */
        font-size: 16px; /* 글자 약간 축소 */
    }

    /* 4. 소개 텍스트 (Tab 1) */
    .intro-txt h3 {
        font-size: 24px; /* 32px -> 24px */
        word-break: keep-all;
    }

    .point-txt {
        font-size: 28px; /* 36px -> 28px */
    }

    .desc-txt {
        font-size: 16px; /* 20px -> 16px */
        line-height: 1.6;
        word-break: keep-all; /* 단어 끊김 방지 */
    }

    .intro-img img {
        margin-top: 30px;
    }


    /* 5. 오시는 길 (Tab 2) - 지도 */
    #view-tab-2 > div.mapCon iframe {
        height: 300px; /* 지도 높이 적당히 조절 */
    }
    
    #view-tab-2 > div.mapCon > p {
        font-size: 15px; /* 주소 글자 크기 축소 */
    }


    /* 6. 교통편 안내 (핵심! 가로 -> 세로 변환) */
    #view-tab-2 > div.traffic {
        width: 100%; /* 1200px -> 100% */
        flex-direction: column; /* 세로로 쌓기 */
        border-radius: 20px; /* 타원 -> 둥근 사각형 */
        padding: 20px;
        box-sizing: border-box;
    }

    /* 내부 아이템 (지하철, 버스) */
    #view-tab-2 div.traffic > div {
        width: 100%; /* 600px -> 100% */
        padding: 20px 0;
        
        /* 플롯 해제하고 플렉스로 가운데 정렬 */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 아이콘 이미지 */
    #view-tab-2 > div.traffic > div > img {
        float: none; /* 플롯 해제 */
        width: 80px; /* 아이콘 크기 축소 */
        margin-bottom: 15px;
    }

    /* 설명 텍스트 */
    #view-tab-2 > div.traffic > div > p {
        float: none; /* 플롯 해제 */
        margin: 0;
        text-align: center; /* 가운데 정렬 */
        font-size: 15px;
        line-height: 1.6;
        width: 100%;
        word-break: keep-all;
    }

    /* 버스 영역 구분선 변경 (세로선 -> 가로선) */
    #view-tab-2 > div.traffic > div.bus {
        border-left: none;
        border-top: 1px solid #ccc;
    }
}





/*** 섹션2 - 제작가이드 ***/

/* 상단 설명 문구 */
.sub-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-top: 20px;
    text-align: center;
}
.sub-desc .blue {
    color: #002C7E; /* 포인트 파란색 */
    font-weight: bold;
    font-size: 24px;
    display: inline-block;
    margin-bottom: 10px;
}

/* 3. 제작과정 (무지개 이미지) */
.process-area {
    text-align: center;
    margin: 60px 0 100px; /* 위아래 여백 */
}
.process-area img {
    max-width: 100%; /* 화면보다 크면 줄여라 */
}

/* 4. 박스 종류 리스트 (지그재그) */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 50px; /* 박스 사이 간격 */
}

.guide-item {
    display: flex; /* 옆으로 나란히 */
    align-items: center; /* 수직 중앙 정렬 */
    border: 1px solid #ddd; /* 테두리 */
    padding: 40px;
    background: #fff;
    
   
}

/* ⭐ 마법의 코드: 짝수(2번째) 아이템만 순서 뒤집기 (글-사진) */
.guide-item:nth-child(even) {
    flex-direction: row-reverse; 
}

/* 이미지 박스 */
.guide-item .img-box {
    width: 50%; /* 반반 차지 */
    text-align: center;
    height: 500px;
}
.guide-item .img-box img {
    max-width: 100%;
    /*max-height: 300px;*/
    object-fit: contain; /* 비율 유지 */
}

/* 텍스트 박스 */
.guide-item .txt-box {
    width: 50%; /* 반반 차지 */
    padding: 0 40px; /* 글자 좌우 여백 */
    box-sizing: border-box;
}

.guide-item .txt-box h3 {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
    border-bottom: 2px solid #222; /* 제목 밑줄 */
    padding-bottom: 10px;
    display: inline-block;
}

.guide-item .txt-box ul li {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
    list-style: none; /* 점 없애기 (이미 텍스트에 -가 있으므로) */
    word-break: keep-all; /* 단어 잘림 방지 */
}

/* 📱 모바일 반응형 (좁아지면 위아래로 쌓이게) */
@media (max-width: 768px) {
    .guide-list {
        gap: 20px; /* 박스 사이 간격 */
    }
    .guide-item, 
    .guide-item:nth-child(even) {
        flex-direction: column; /* 무조건 위아래로 */
        padding: 20px;
    }
    .guide-item .img-box, 
    .guide-item .txt-box {
        width: 100%; /* 꽉 차게 */
        padding: 0;
    }
    .guide-item .img-box { margin-bottom: 20px; }
    .process-area {
        margin: 20px 0px 30px 0px;
    }
    .process-area > img {
        content: url('../img/section2/guideimg_mo.jpg'); 
        
        /* 크기 조절이 필요하다면 */
        width: 100%;
        height: auto;
    }
    /* 1. 플렉스 방향 변경 (가로 -> 세로) */
    .guide-item,
    .guide-item:nth-child(even) { /* 짝수 번째 뒤집기 기능도 해제 */
        flex-direction: column; /* 무조건 위아래로 쌓기 */
        align-items: center; /* 가운데 정렬 */
        margin-bottom: 40px; /* 아이템 간 간격 */
    }

    /* 2. 이미지 박스 크기 조절 */
    .guide-item .img-box {
        width: 100%; /* 50% -> 100% */
        height: auto; /* 500px 고정 해제 (내용만큼) */
        margin-bottom: 20px; /* 글자와 간격 띄우기 */
    }

    .guide-item .img-box img {
        max-height: 300px; /* 모바일에서 이미지가 너무 길어지지 않게 제한 */
        
    }

    /* 3. 텍스트 박스 크기 및 여백 조절 */
    .guide-item .txt-box {
        width: 100%; /* 50% -> 100% */
        padding: 0 10px; /* 좌우 여백 축소 (40px -> 10px) */
        text-align: center; /* 글자 가운데 정렬 (선택사항) */
    }

    .guide-item .txt-box h3 {
        font-size: 20px; /* 제목: 24px -> 20px */
        margin-bottom: 15px;
    }

    .guide-item .txt-box ul li {
        font-size: 14px; /* 본문: 15px -> 14px */
        text-align: left; /* 리스트는 왼쪽 정렬이 읽기 편함 */
        padding-left: 10px; /* 약간 들여쓰기 */
    }
}





/*** 섹션3 - 포트폴리오 ***/
/* 전체 감싸기 */
.portfolio-wrap {
    width: 1200px;
    margin: 140px auto; /* 중앙 정렬 */
    padding: 50px 0 100px;
}

/* 1. 상단 경로 (오른쪽 위) */
.breadcrumb {
    text-align: right;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}
.breadcrumb img { width: 14px; vertical-align: middle; }

/* 2. 타이틀 */
.page-title h2 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

/* 3. 카테고리 탭 (알약 모양 버튼) */
.category-tabs {
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    border-bottom: 1px solid #ddd; /* 전체 밑줄 (회색) */
    margin: 0px auto 60px auto;
    padding: 0;
    list-style: none;
    width: 1080px;
}
.tab-btn {
    text-align: center;
    font-size: 18px;
    color: #888;
    padding: 15px 40px;
    cursor: pointer;
    position: relative;
    top: 1px; /* 선 겹치기용 */
    border-bottom: 3px solid transparent; /* 평소엔 투명한 줄 */
    width: 180px;
}
/* 활성화된 버튼 (진한 남색) */
.tab-btn.on, 
.tab-btn:hover {
    color: #222;
    font-weight: bold;
    border-bottom: 3px solid #ffd67d; /* 선택된 탭만 진한 줄 */
}



/* 4. 리스트 정보 (총 개수 & 정렬) */
.list-top {
    display: flex;
    justify-content: space-between; /* 양끝 정렬 */
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333; /* 아래 검은 줄 */
    padding-bottom: 15px;
}
.total-count { font-size: 15px; color: #555; }
.total-count b { color: #333; }
.sort-select {
    border: 1px solid #ddd;
    padding: 5px 10px;
    font-size: 14px;
    color: #555;
    border-radius: 5px;
}

/* 5. ⭐ 갤러리 그리드 (핵심!) */
.gallery-grid {
    display: grid;
    /* 1fr을 3번 반복 = 3칸 만들기 */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; /* 사이 간격 */
}

/* 각각의 아이템 */
.gallery-item {
    text-align: center;
    cursor: pointer;
}
.gallery-item:hover .tit { color: #0f2a4a; font-weight: bold; } /* 마우스 올리면 글씨 진하게 */

/* 이미지 박스 (둥근 모서리 + 그림자) */
.img-box {
    width: 100%;
    aspect-ratio: 1 / 1; /* 정사각형 비율 유지 (중요!) */
    overflow: hidden;
    border-radius: 20px; /* 사진 속 둥근 모서리 */
    margin-bottom: 20px;
    position: relative;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 박스에 꽉 차게 */
    transition: transform 0.4s;
}
/* 2. 두 번째 이미지 (호버용) 스타일 */
.hover-img {
    position: absolute; /* 공중에 띄워서 겹치기 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 박스 꽉 차게 */
    opacity: 0;
    z-index: 2;
}

/* 마우스 올리면 이미지가 살짝 확대됨 */
.gallery-item:hover .hover-img {
    opacity: 1; /* ⭐ 불투명하게 변신 (보임) */
    transition: opacity 0.4s;
}

/* 제품 제목 */
.tit {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* =========================================
   [모바일 반응형] 포트폴리오 (갤러리)
   화면 너비가 768px 이하일 때 적용
   ========================================= */
@media screen and (max-width: 768px) {

    /* 1. 전체 감싸기 (여백 및 너비 조절) */
    .portfolio-wrap {
        width: 100%; /* 1200px 고정 해제 */
        margin: 100px auto 50px; /* 상단 여백 축소 (140px -> 100px) */
        padding: 0 20px; /* 좌우 여백 추가 */
        box-sizing: border-box;
    }

    /* 2. 상단 경로 (숨김) */
    .breadcrumb {
        display: none; /* 모바일에서는 깔끔하게 숨기기 */
    }

    /* 3. 타이틀 크기 조절 */
    .page-title h2 {
        font-size: 28px; /* 36px -> 28px */
        margin-bottom: 30px;
    }

    /* 4. 카테고리 탭 (핵심! 여러 줄로 변경) */
    .category-tabs {
        width: 100%; /* 1080px 고정 해제 */
        flex-wrap: wrap; /* ⭐ 공간 부족하면 다음 줄로 내리기 */
        margin-bottom: 30px;
        border-bottom: none; /* 모바일에서는 전체 밑줄 빼는 게 더 깔끔함 (선택사항) */
    }

    .tab-btn {
        width: 50%; /* 한 줄에 2개씩 배치 (반반) */
        /* width: 33.33%; /* 혹시 한 줄에 3개씩 넣고 싶으면 이걸 쓰세요 */
        
        padding: 10px 0; /* 위아래 패딩 줄임 */
        font-size: 15px; /* 글자 크기 조절 */
        border-bottom: 1px solid #ddd; /* 개별 밑줄 추가 */
        box-sizing: border-box;
    }
    
    /* 활성화된 탭 스타일 */
    .tab-btn.on, 
    .tab-btn:hover {
        border-bottom: 3px solid #ffd67d; /* 활성 탭 밑줄 유지 */
    }


    /* 5. 리스트 정보 (총 개수 & 정렬) */
    .list-top {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .total-count { font-size: 14px; }
    
    .sort-select {
        font-size: 13px;
        padding: 3px 5px;
    }


    /* 6. 갤러리 그리드 (3열 -> 1열) */
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr); /* 한 줄에 1개씩 크게! */
        /* grid-template-columns: repeat(2, 1fr); /* 2개씩 보고 싶으면 주석 풀기 */
        gap: 30px; /* 사이 간격 조절 */
    }

    /* 7. 갤러리 아이템 (제목 크기 등) */
    .gallery-item {
        margin-bottom: 10px;
    }

    .img-box {
        border-radius: 15px; /* 모서리 둥글기 약간 축소 */
    }

    .tit {
        font-size: 16px; /* 제목 크기 약간 축소 */
        margin-top: 10px;
    }
    
    /* (참고) 모바일에서는 호버 효과가 '터치'할 때 작동합니다. */
}



/*** 섹션4 - 고객센터 ***/
/* --- [게시판 공통 스타일] --- */

.board-wrap {
    margin-top: 40px;
    border-top: 2px solid #333; /* 맨 위 진한 선 */
}

/* 1. 게시판 헤더 & 리스트 공통 레이아웃 (Flex) */
.board-header,
.board-row {
    display: flex; /* 옆으로 나란히 */
    align-items: center; /* 세로 중앙 정렬 */
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd; /* 줄 긋기 */
    font-size: 15px;
}

/* 헤더 전용 스타일 (회색 배경, 굵은 글씨) */
.board-header {
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333;
}

/* 열 너비 설정 */
.col-num { width: 10%; }
.col-title { width: 50%; text-align: left; padding-left: 20px; box-sizing: border-box; } /* 제목은 왼쪽 정렬 */
.col-writer { width: 15%; }
.col-date { width: 15%; }
.col-view { width: 10%; }


/* 2. 데이터 없음 (No Data) */
.no-data {
    padding: 80px 0;
    text-align: center;
    color: #888;
    border-bottom: 1px solid #ddd;
}


/* 3. 버튼 영역 (오른쪽 정렬) */
.board-btn-area {
    margin-top: 20px;
    text-align: right; /* 오른쪽으로 보내기 */
}

.btn-write {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.btn-write:hover {
    background-color: #555; /* 마우스 올리면 연해짐 */
}


/* 4. 검색창 영역 (가운데 정렬) */
.board-search {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px; /* 요소 사이 간격 */
}

.board-search select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    color: #555;
    outline: none;
}

.board-search input {
    width: 200px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    outline: none;
}

.board-search button {
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}
.board-search button:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}


/* --- [FAQ] 자주묻는 질문 스타일 --- */

.faq-wrap {
    margin-top: 40px;
    border-top: 2px solid #333; /* 상단 진한 줄 */
}

.faq-item {
    text-align: left;
    border-bottom: 1px solid #ddd; /* 하단 연한 줄 */
}

/* 1. 질문 (Q) 부분 */
.faq-q {
    padding: 20px 20px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    cursor: pointer; /* 손가락 모양 커서 */
    position: relative; /* 화살표 위치 기준 */
    transition: 0.3s;
}
.faq-q:hover {
    background-color: #fcfcfc; /* 마우스 올리면 살짝 밝게 */
}

.faq-q .q-mark {
    font-weight: bold;
    margin-right: 10px;
}

/* ⭐ 화살표 아이콘 만들기 (CSS로 그리기) */
.faq-q::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%); /* 수직 중앙 */
    width: 12px;
    height: 7px;
    background: url('../img/icon_arrow_down.png') no-repeat center; /* 이미지 있다면 사용 */
    /* 이미지가 없다면 아래 코드로 꺾쇠(V) 모양을 그릴 수 있습니다 */
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    width: 8px; height: 8px;
    transform: translateY(-70%) rotate(45deg); /* V자 모양 회전 */
    transition: 0.3s; /* 회전 애니메이션 */
}

/* 질문이 열렸을 때 (화살표 뒤집기) */
.faq-item.active .faq-q::after {
    transform: translateY(-30%) rotate(225deg); /* 180도 회전해서 ∧ 모양 */
    border-color: #333;
}


/* 2. 답변 (A) 부분 - 처음엔 숨김 */
.faq-a {
    display: none; /* ⭐ 기본 숨김 */
    background-color: #f9f9f9; /* 회색 배경 */
    border-top: 1px solid #f0f0f0;
}

.faq-a .a-inner {
    padding: 30px 40px;
    display: flex; /* A와 내용 옆으로 나란히 */
}

.faq-a .a-mark {
    font-weight: bold;
    color: #0f4c81; /* 포인트 파란색 */
    margin-right: 15px;
}
.faq-a p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}
/* =========================================
   [모바일 반응형] 고객센터 & 견적문의
   화면 너비가 768px 이하일 때 적용
   ========================================= */
@media screen and (max-width: 768px) {

    /* --- 1. 게시판 (공지사항/문의게시판) --- */
    
    /* 헤더(번호, 제목, 작성자...) 숨김 */
    .board-header {
        display: none; /* 모바일에서는 헤더가 있으면 복잡해 보여서 숨김 */
    }

    /* 리스트 아이템 스타일 변경 */
    .board-row {
        flex-wrap: wrap; /* 내용이 넘치면 줄바꿈 */
        padding: 15px 10px;
        text-align: left; /* 왼쪽 정렬 */
    }

    /* 덜 중요한 정보 숨기기 (번호, 날짜, 조회수) */
    .col-num, 
    .col-date, 
    .col-view {
        display: none; 
    }

    /* 제목 (가장 크게) */
    .col-title {
        width: 100%; /* 한 줄 다 차지 */
        padding: 0;
        font-size: 16px;
        margin-bottom: 5px;
        font-weight: 500;
    }

    /* 작성자 (작게 표시) */
    .col-writer {
        width: 100%;
        text-align: left;
        font-size: 13px;
        color: #888;
    }

    /* 검색창 (세로로 쌓기) */
    .board-search {
        flex-direction: column; /* 세로 정렬 */
        padding: 0 20px;
    }
    .board-search select,
    .board-search input,
    .board-search button {
        width: 100%; /* 꽉 차게 */
        margin-bottom: 5px;
        height: 40px;
    }


    /* --- 2. FAQ (자주 묻는 질문) --- */
    
    .faq-q {
        padding: 15px; /* 여백 축소 */
        font-size: 15px;
    }
    
    .faq-a .a-inner {
        padding: 20px; /* 답변 여백 축소 */
        flex-direction: column; /* Q마크와 내용 위아래로 */
    }
    
    .faq-a .a-mark {
        margin-bottom: 10px;
    }


    /* --- 3. ⭐ 견적문의 폼 (가장 중요!) --- */

    /* 전체 랩퍼 */
    .estimate-wrap {
        width: 100%; /* 1000px 고정 해제 */
        margin: 100px auto 50px; /* 상단 여백 줄임 */
        padding: 0 20px; /* 좌우 여백 */
        box-sizing: border-box;
    }

    /* 폼 입력 줄 (가로 -> 세로 변경) */
    .form-row {
        flex-direction: column; /* 위아래로 쌓기 */
        align-items: flex-start; /* 왼쪽 정렬 */
    }

    /* 왼쪽 라벨 (제목) */
    .col-label {
        width: 100%; /* 꽉 차게 */
        background-color: transparent; /* 배경색 제거 (깔끔하게) */
        padding: 15px 0 5px 0; /* 위쪽 여백 */
        font-size: 16px;
        border-bottom: none; /* 라벨 밑줄 제거 */
    }

    /* 오른쪽 입력칸 */
    .col-input {
        width: 100%; /* 꽉 차게 */
        padding: 0 0 15px 0; /* 아래쪽 여백 */
    }

    /* 사이즈 입력 그룹 (가로/세로/높이) */
    .size-group {
        flex-wrap: wrap; /* 공간 부족하면 줄바꿈 */
        gap: 10px;
    }
    
    .size-item {
        width: 100%; /* 한 줄에 하나씩 (입력하기 편하게) */
        /* width: 48%; /* 혹은 두 개씩 (선택사항) */
    }
    
    .size-item input {
        width: 100% !important; /* 입력칸 늘리기 */
        text-align: left; /* 숫자 왼쪽 정렬 */
    }

    /* 버튼 영역 */
    .btn-area {
        gap: 10px;
    }
    
    .btn-area button {
        width: 48%; /* 버튼 두 개 나란히 반반 */
        font-size: 16px;
    }
}




/*** 섹션5 - 견적문의 ***/
/* 견적문의 전체 랩퍼 */
.estimate-wrap {
    width: 1000px; /* 전체 너비 (조절 가능) */
    margin: 180px auto; /* 중앙 정렬 */
    padding: 0 20px;
}
/* 상단 타이틀 */
.page-title-area {
    text-align: center;
    margin-bottom: 50px;
}
.page-title-area h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}
.page-title-area p {
    color: #666;
    line-height: 1.6;
}
/* 폼 섹션 공통 */
.form-section {
    margin-bottom: 50px;
}
/* 섹션 타이틀 (남색 바) */
.form-tit {
    background-color: #102d4f; /* 사진 속 진한 남색 */
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0; /* 아래 선과 붙이기 위해 */
    border-radius: 10px 10px 0px 0px;
}
/* 입력 줄 (Row) */
.form-row {
    display: flex; /* 좌우 정렬 */
    border-bottom: 1px solid #ddd; /* 회색 줄 */
    align-items: center; /* 세로 중앙 정렬 */
}
.form-row:first-of-type {
    border-top: 1px solid #333; /* 맨 윗줄 진하게 */
}
/* 왼쪽 라벨 (제목) */
.col-label {
    width: 200px; /* 제목 너비 */
    background-color: #f9f9f9; /* 연한 회색 배경 */
    padding: 20px;
    font-weight: bold;
    font-size: 15px;
    color: #333;
    flex-shrink: 0; /* 너비 줄어듦 방지 */
}
.col-label .req {
    color: #e74c3c; /* 필수항목 빨간 별 */
    margin-left: 5px;
}
/* 오른쪽 입력칸 */
.col-input {
    flex: 1; /* 남은 공간 다 차지 */
    padding: 15px 20px;
}
/* 인풋 박스 공통 스타일 */
.col-input input[type="text"],
.col-input input[type="email"],
.col-input select {
    width: 100%; /* 칸 꽉 차게 */
    height: 45px;
    border: 1px solid #ddd;
    padding: 0 10px;
    font-size: 14px;
    color: #555;
    box-sizing: border-box; /* 패딩 포함 크기 */
}
/* 텍스트 영역 (문의내용) */
.col-input textarea {
    width: 100%;
    height: 200px;
    border: 1px solid #ddd;
    padding: 15px;
    resize: none; /* 사이즈 조절 불가 */
    font-size: 14px;
    box-sizing: border-box;
}
/* 사이즈 입력 그룹 (가로, 세로, 높이) */
.size-group {
    display: flex;
    gap: 20px; /* 아이템 사이 간격 */
}
.size-item {
    display: flex;
    align-items: center;
}
.size-item span {
    margin: 0 5px;
    font-size: 14px;
    color: #555;
    white-space: nowrap; /* 줄바꿈 방지 */
}
.size-item input {
    width: 80px !important; /* 사이즈 칸은 작게 */
    text-align: right;
}

/* 하단 버튼 영역 */
.btn-area {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.btn-area button {
    width: 150px;
    height: 50px;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid #ddd;
    cursor: pointer;
}
/* 등록 버튼 (검정) */
.btn-submit {
    background-color: #102d4f;
    color: #fff;
    border-color: #102d4f;;
    border-radius: 50px;
}
/* 취소 버튼 (흰색) */
.btn-cancel {
    background-color: #fff;
    color: #102d4f;;
    border-radius: 50px;
}
.btn-submit:hover { color: #F8CC6D; }
.btn-cancel:hover { background-color: #f5f5f5; }

/* 📱 모바일 반응형 */
@media (max-width: 768px) {
    .estimate-wrap { width: 100%; }
    .form-row { display: block; /* 모바일은 위아래로 떨어지게 */ }
    .col-label { width: 100%; padding: 10px; border-bottom: 1px solid #eee; }
    .col-input { padding: 10px; }
    .size-group { flex-direction: column; gap: 10px; } /* 사이즈 입력도 세로로 */
    .size-item input { width: 100% !important; }
}



/* =========================================
   [서브 페이지] 이용약관 & 개인정보처리방침
   ========================================= */

/* 1. 약관 내용 박스 (핵심!) */
.policy-box {
    width: 100%;
    height: 500px; /* ⭐ 높이 고정 (이걸 넘으면 스크롤 생김) */
    overflow-y: scroll; /* ⭐ 세로 스크롤 활성화 */
    
    background-color: #f9f9f9; /* 연한 회색 배경 */
    border: 1px solid #ddd; /* 테두리 */
    padding: 30px 40px; /* 안쪽 여백 */
    box-sizing: border-box; /* 패딩 포함 크기 계산 */
    
    font-size: 14px;
    color: #666;
    line-height: 1.8; /* 줄 간격 넉넉하게 */
    word-break: keep-all; /* 단어 중간에 끊기지 않게 */
}

/* 2. 약관 내부 소제목 (제1조, 제2조...) */
.policy-box h4 {
    font-size: 16px;
    color: #333; /* 제목은 진하게 */
    font-weight: bold;
    margin-top: 30px; /* 위쪽 간격 */
    margin-bottom: 10px; /* 아래쪽 간격 */
}

/* 첫 번째 제목은 위쪽 간격 없애기 */
.policy-box h4:first-child {
    margin-top: 0;
}

/* 3. 약관 내부 문단 */
.policy-box p {
    margin-bottom: 10px;
}

/* 4. 강조하고 싶은 글자 (strong 태그) */
.policy-box strong {
    color: #222;
    font-weight: bold;
}

/* --- [꿀팁] 스크롤바 예쁘게 꾸미기 (크롬, 사파리, 엣지용) --- */
.policy-box::-webkit-scrollbar {
    width: 8px; /* 스크롤바 너비 */
}
.policy-box::-webkit-scrollbar-thumb {
    background-color: #ccc; /* 스크롤바 색상 (회색) */
    border-radius: 4px; /* 둥글게 */
}
.policy-box::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* 스크롤바 뒷배경 */
}


/* --- [반응형] 모바일에서는 높이와 여백 조절 --- */
@media (max-width: 768px) {
    .policy-box {
        height: 400px; /* 모바일에서는 높이 약간 줄임 */
        padding: 20px; /* 여백 줄임 */
        font-size: 13px; /* 글자 크기 약간 줄임 */
    }
}