/* =========================================================
   수정본 파일명 : location_environment.css
   다운로드용 TXT : location_environment.css.txt
   ---------------------------------------------------------
   적용 프로젝트 : 하우징개봉 청년안심주택 웹사이트
   원본 기준     : 사용자가 업로드한 location_environment.css
   수정일        : 2026-05-03
   ---------------------------------------------------------
   [기존 대화 반영 사항]
   1. 사이트 대표 컬러는 #006655 기준으로 유지합니다.
   2. 정적 리소스 경로는 /hgaebong/assets/... 기준을 유지합니다.
   3. PC / 태블릿 / 모바일 반응형 구조를 유지합니다.
   4. header.css, index.css, footer.css가 함께 로딩되어도 충돌이 적도록 구성합니다.
   5. 서브페이지 상단 비주얼 영역은 과도하게 높아지지 않도록 compact 기준을 유지합니다.
   6. 유지보수자가 CSS 역할을 쉽게 파악할 수 있도록 한글 주석을 보강했습니다.
   7. 사용자의 브라우저 모션 최소화 설정을 고려했습니다.
   ========================================================= */

/* =========================================================
   location_environment.css
   ---------------------------------------------------------
   사업안내 > 입지환경 페이지 전용 스타일
   ---------------------------------------------------------
   저장 경로 : /hgaebong/assets/css/location_environment.css

   [설명]
   - 사업개요 / 교통환경 페이지와 동일한 전체 톤 유지
   - 상단 서브 비주얼 / 본문 공통 폭 / 카드형 박스 구조 유지
   - 본문은 이미지 없이 4개의 정보 박스를 가로 배치
   - PC : 4열 구성
   - 태블릿 / 모바일 : 1열 세로 구성
   ========================================================= */

/* =========================================================
   1. 공통 변수
   ========================================================= */
:root {
    --le-primary: #006655;
    --le-primary-dark: #01483c;
    --le-primary-deep: #003d33;
    --le-primary-soft: #edf5f3;
    --le-primary-soft-2: #f5faf8;

    --le-text-main: #1b2624;
    --le-text-sub: #61706c;
    --le-text-white: #ffffff;

    --le-border: #d8e5e1;
    --le-line: rgba(0, 0, 0, 0.06);

    --le-bg: #ffffff;
    --le-bg-soft: #f7fbfa;

    --le-shadow: 0 14px 34px rgba(0, 102, 85, 0.08);
    --le-shadow-hover: 0 18px 42px rgba(0, 102, 85, 0.12);

    --le-radius-md: 20px;
    --le-radius-lg: 28px;

    --le-width: 1280px;
}

/* =========================================================
   2. 기본 초기화
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /*
       개별 서브페이지 CSS가 단독 로딩되는 경우에도
       공통 헤더와 비슷한 글꼴 기준을 유지하기 위한 안전 장치입니다.
    */
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Malgun Gothic",
        "Apple SD Gothic Neo",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--le-text-main);
    word-break: keep-all;
    overflow-x: hidden;
}


/* =========================================================
   공통 이미지 안전 처리
   ---------------------------------------------------------
   이미지가 부모 영역보다 커져 가로 스크롤이 생기는 문제를 방지합니다.
   ========================================================= */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   3. 페이지 전체 배경
   ========================================================= */
.location-environment-page {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

/* =========================================================
   4. 상단 서브 비주얼
   ========================================================= */
.sub-hero-section {
    position: relative;
    width: 100%;
    min-height: 140px; /* 기존 대화 반영: 서브페이지 상단 배경 높이를 compact 기준으로 유지 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    background:
        linear-gradient(135deg, rgba(0, 102, 85, 0.92), rgba(1, 72, 60, 0.88)),
        url("/hgaebong/assets/images/index/slide1.webp") center center / cover no-repeat;
    overflow: hidden;
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.10), transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08), transparent 24%),
        rgba(0, 0, 0, 0.08);
}

.sub-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--le-width);
    margin: 0 auto;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.84);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.breadcrumb a:hover {
    opacity: 0.78;
}

.breadcrumb-separator {
    opacity: 0.7;
}

.breadcrumb-current {
    font-weight: 700;
    color: #ffffff;
}

.sub-hero-title {
    margin: 0 0 10px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.sub-hero-description {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   5. 본문 공통 폭
   ========================================================= */
.page-content-wrap {
    width: 100%;
    max-width: var(--le-width);
    margin: 0 auto;
    padding: 85px 20px 110px;
}

/* =========================================================
   6. 섹션 제목 공통
   ========================================================= */
.location-environment-main-section {
    width: 100%;
}

.section-title-wrap {
    margin-bottom: 34px;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--le-primary);
}

.section-title {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.03em;
    color: var(--le-text-main);
}

.section-description {
    max-width: 860px;
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--le-text-sub);
}

/* =========================================================
   7. 입지환경 카드 4열 레이아웃
   - PC : 4개 가로 배치
   ========================================================= */
.location-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* =========================================================
   8. 카드 박스 공통
   ========================================================= */
.location-info-card {
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-lg);
    box-shadow: var(--le-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.location-info-card:hover {
    box-shadow: var(--le-shadow-hover);
    transform: translateY(-4px);
}

/* =========================================================
   9. 카드 상단 제목 영역
   ========================================================= */
.content-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 24px 0;
}

.content-box-header-icon {
    font-size: 24px;
    color: var(--le-primary);
}

.content-box-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--le-text-main);
}

/* =========================================================
   10. 카드 본문 영역
   ========================================================= */
.location-card-body {
    padding: 20px 24px 26px;
}

.location-card-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
    color: var(--le-text-main);
}

/* =========================================================
   11. 등장 애니메이션
   ========================================================= */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal-up {
    transform: translateY(44px);
}

.reveal-left {
    transform: translateX(-44px);
}

.reveal-right {
    transform: translateX(44px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================================
   12. 태블릿 대응
   - 요청사항에 따라 4개 박스를 세로 1열로 변경
   ========================================================= */
@media (max-width: 1180px) {
    .location-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sub-hero-section {
        min-height: 200px;
        padding: 50px 20px 30px;
    }

    .sub-hero-title {
        font-size: 42px;
    }

    .sub-hero-description {
        font-size: 17px;
    }

    .page-content-wrap {
        padding: 70px 20px 90px;
    }

    .section-title {
        font-size: 34px;
    }

    .section-description {
        font-size: 16px;
    }

    .content-box-title {
        font-size: 21px;
    }

    .location-card-text {
        font-size: 16px;
    }
}

/* =========================================================
   13. 모바일 대응
   ========================================================= */
@media (max-width: 640px) {
    .sub-hero-section {
        min-height: 180px;
        padding: 42px 16px 24px;
    }

    .sub-hero-title {
        font-size: 28px;
    }

    .sub-hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .page-content-wrap {
        padding: 55px 16px 80px;
    }

    .section-title-wrap {
        margin-bottom: 24px;
    }

    .section-kicker {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .content-box-header {
        padding: 20px 18px 0;
    }

    .content-box-title {
        font-size: 20px;
    }

    .location-card-body {
        padding: 18px 18px 22px;
    }

    .location-card-text {
        font-size: 15px;
        line-height: 1.8;
    }
}


/* =========================================================
   접근성 보완 : 모션 최소화 설정 대응
   ---------------------------------------------------------
   사용자의 브라우저 또는 OS에서 '동작 줄이기'가 설정되어 있으면
   스크롤 등장 애니메이션, 슬라이드 텍스트 애니메이션, hover 이동 효과를 최소화합니다.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal.show,
    .reveal.active {
        opacity: 1;
        filter: none;
        transform: none;
    }
}
