            /* 페이지 전체에 부드러운 스크롤 적용 */
            html {
                scroll-behavior: smooth;
            }

            /* 앵커 태그의 기본 밑줄 제거 및 색상 유지 */
            .info-link {
                text-decoration: none;
                color: inherit;
                display: block;
                margin-bottom: 10px;
            }

            /* 섹션 이동 시 상단 바에 가려지지 않도록 여백 설정 (필요 시) */
            div[id^="section"] {
                scroll-margin-top: 20px; 
            }

            /* 1. 부동산 정보 컨테이너 및 섹션 설정 */
            .real-estate-container {
                max-width: 1200px;
                margin: 20px auto;
                padding: 0 15px;
                font-family: 'Pretendard', -apple-system, sans-serif;
            }

            .region-group {
                background: #ffffff;
                border: 1px solid #e9ecef;
                border-radius: 16px;
                padding: 24px;
                margin-bottom: 30px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            }

            .section-header {
                font-size: 1.15rem;
                font-weight: 700;
                color: #212529;
                margin-bottom: 20px;
                display: flex;
                align-items: center;
                gap: 8px;
            }

            .section-header i {
                color: #4dabf7;
            }

            /* 2. 좌우 배치를 위한 핵심 레이아웃 */
            .category-wrapper {
                display: flex;
                gap: 24px;
                flex-wrap: wrap; /* 모바일 대응 */
            }

            .category-block {
                flex: 1;
                min-width: 300px; /* 데스크탑에서 최소 너비 확보 */
            }

            .category-title {
                font-size: 0.95rem;
                font-weight: 600;
                color: #495057;
                margin-bottom: 12px;
                padding-left: 4px;
            }

            /* 3. 버튼 그리드 설정 (3개씩 한 줄) */
            .link-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }

            /* 4. 공통 버튼 스타일 (기존 스타일 유지 및 보완) */
            .btn-estate {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 12px 8px;
                font-size: 0.85rem;
                font-weight: 600;
                text-decoration: none;
                border-radius: 8px;
                transition: all 0.2s ease;
                border: 1px solid transparent;
                gap: 6px;
                white-space: nowrap;
            }

            .btn-estate i {
                font-size: 0.95rem;
            }

            /* 5. 유형별 테마 컬러 (기존 색상 유지) */
            .btn-sale {
                background-color: #fff1f0;
                color: #cf1322;
                border-color: #ffa39e;
            }

            .btn-jeonse {
                background-color: #e6f7ff;
                color: #096dd9;
                border-color: #91d5ff;
            }

            .btn-rent {
                background-color: #f6ffed;
                color: #389e0d;
                border-color: #b7eb8f;
            }

            /* 6. 인터랙션 및 모바일 대응 */
            .btn-estate:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                filter: brightness(0.97);
            }

            @media (max-width: 768px) {
                .category-block {
                    flex: none;
                    width: 100%;
                }
                
                .link-grid {
                    grid-template-columns: repeat(1, 1fr); /* 모바일은 세로로 나열 */
                }
                
                .category-wrapper {
                    gap: 16px;
                }
            }
            /* 끝. 부동산 정보 컨테이너 및 섹션 설정 */


            /* 2. 인구정보와 부동산 정보 사이에 구분지정 */
            .info-banner {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                color: white;
                padding: 15px 20px;
                border-radius: 10px;
                margin: 30px 0 20px 0;
                display: flex;
                align-items: center;
                gap: 10px;
                box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            }

            .info-banner i { font-size: 1.2rem; }
            .info-banner span { font-weight: 600; }
            /* 2. 인구정보와 부동산 정보 사이에 구분지정 */




        :root {
            --primary: #3b82f6;
            --bg-page: #f1f5f9;
            --bg-card: #ffffff;
            --text-dark: #1e293b;
            --text-light: #64748b;
            --border: #e2e8f0;
            --danger: #ef4444;
            --pastel-green: #eefdf5;
            --text-green: #15803d;
        }

        body {
            font-family: 'Noto Sans KR', sans-serif;
            background-color: var(--bg-page);
            color: var(--text-dark);
            margin: 0;
            padding: 0;
            -webkit-font-smoothing: antialiased;
        }

        .container {
            max-width: 700px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            margin-bottom: 25px;
        }

        header h1 {
            font-size: 1.4rem;
            font-weight: 700;
            margin: 0 0 15px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .api-status-area {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .back-to-main-button {
            text-decoration: none;
            color: var(--text-light);
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: white;
            font-weight: 500;
            transition: all 0.2s;
            cursor: pointer;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 10px;
            background: #dcfce7;
            color: #166534;
            border-radius: 99px;
        }

        .search-area {
            background: var(--bg-card);
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }

        .input-group {
            display: flex;
            gap: 8px;
        }

        input[type="text"] {
            flex: 1;
            padding: 14px;
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 1rem;
            outline: none;
        }

        #searchButton {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0 20px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .detailed-view {
            background: white;
            padding: 24px;
            border-radius: 20px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        }

        .summary-box {
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            line-height: 1.6;
            font-size: 0.95rem;
        }

        .result-title-single {
            font-size: 1.2rem;
            text-align: center;
            margin: 20px 0;
            color: var(--primary);
        }

        .section-header {
            font-size: 1.1rem;
            font-weight: 700;
            margin: 25px 0 10px 0;
            display: flex;
            align-items: center;
            gap: 10px;
            border-left: 4px solid var(--primary);
            padding-left: 12px;
        }

        .chart-container {
            margin: 20px 0;
            padding: 15px;
            background: #f8fafc;
            border-radius: 12px;
            height: 320px;
        }

        .rank-note {
            display: block;
            font-size: 0.8rem;
            color: var(--text-light);
            margin-bottom: 15px;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
            margin-bottom: 20px;
        }

        .data-table th {
            background: #f8fafc;
            padding: 12px 8px;
            text-align: left;
            color: var(--text-light);
            border-bottom: 2px solid var(--border);
        }

        .data-table td {
            padding: 14px 8px;
            border-bottom: 1px solid #f1f5f9;
        }

        .col-right {
            text-align: right;
        }

        .col-center {
            text-align: center;
        }

        .highlight-row {
            background: #f8fafc;
            font-weight: 700;
        }

        .highlight-row-green {
            background: var(--pastel-green);
            color: var(--text-green);
            font-weight: 700;
        }

        .sub-group-header {
            background: #f1f5f9;
            font-weight: 700;
            font-size: 0.85rem;
        }

        .sub-category {
            padding-left: 15px !important;
            color: #475569;
        }

        .sub-sub-category {
            padding-left: 25px !important;
            color: #64748b;
            font-size: 0.85rem;
        }

        .aging-society {
            color: #d97706;
            font-weight: 600;
        }

        .aged-society {
            color: #ea580c;
            font-weight: 600;
        }

        .high-aging-rate {
            color: var(--danger);
            font-weight: 700;
        }
        
        .separator {
            height: 1px;
            background: var(--border);
            margin: 25px 0;
            border: none;
        }

        .list-link {
            display: block;
            background: white;
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--text-dark);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .info-message {
            background: #eff6ff;
            color: #1e40af;
            padding: 15px;
            border-radius: 10px;
        }

        .real-estate-links {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px dashed var(--border);
        }

        .btn-estate {
            text-decoration: none;
            font-size: 0.78rem;
            font-weight: 700;
            padding: 9px 13px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.2s;
        }

        .btn-sale { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
        .btn-jeonse { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
        .btn-rent { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
        .btn-estate:hover { opacity: 0.85; transform: translateY(-1px); }
