:root {
    --color-main: #1455ff; /* 메인 블루 */
    --color-main-dark: #0f3bb5;
    --color-text-main: #222222;
    --color-bg: #ffffff;
    --color-section-bg: #f7f9fc;
    --color-border-soft: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --global-bar-height: 72px;
    --sub-navbar-height: 80px;
    --header-height: calc(var(--global-bar-height) + var(--sub-navbar-height));

    --hero-dur: 1.0s;     /* 한 요소가 나타나는 시간 */
    --hero-gap: 0.18s;    /* 다음 요소까지 간격 */
    --hero-ease: ease-out;
    --font-scale: 1;
    --service-scale: 1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
}

/* ===== 상단 헤더 ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    z-index: 1000;
}

/* --- 전체 메뉴 바 --- */

.global-bar {
    border-bottom: 1px solid var(--color-border-soft);
    background-color: #ffffff;
}

.global-bar-inner {
    margin: 0 auto;
    height: 72px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-left {
    position: absolute;
    left: 0;                 /* 화면 왼쪽 여백 */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 80px;
    width: auto;
}

.global-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: calc(18px * var(--font-scale));
}

.global-link {
    border: none;
    background: none;
    font: inherit;
    color: #555555;
    text-decoration: none;
    padding: 4px 0;
    cursor: pointer;
    position: relative;
}

.global-link:hover {
    color: var(--color-main);
}

.global-link-active {
    color: var(--color-main);
    font-weight: 600;
}

/* 드롭다운 */

.global-dropdown {
    position: relative;
}

.global-link-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.global-caret {
    font-size: calc(10px * var(--font-scale));
}

.global-dropdown-menu {
    position: absolute;
    top: 115%;
    left: 0;
    min-width: 140px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    padding: 8px 0;
    display: none;
    z-index: 5;
}

.global-dropdown-menu.open {
    display: block;
}

.global-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: calc(18px * var(--font-scale));
    color: #333333;
    text-decoration: none;
}

.global-dropdown-menu a:hover {
    background-color: #f3f4ff;
    color: var(--color-main);
}

/* 무료상담 버튼 */

.global-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background-color: var(--color-main);
    color: #ffffff;
    font-size: calc(16px * var(--font-scale));
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(20, 85, 255, 0.35);
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.global-cta:hover {
    background-color: var(--color-main-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 85, 255, 0.4);
}

/* --- 섹션 네비게이션 바 --- */

.sub-navbar {
    height: 80px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-ko {
    font-size: calc(16px * var(--font-scale));
    font-weight: 700;
    color: #111827;
}

.brand-en {
    font-size: calc(9px * var(--font-scale));
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: calc(15px * var(--font-scale));
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background-color: var(--color-main);
    transform-origin: center;
    transform: scaleX(0);
    transition: transform 0.18s ease-out;
}

.nav-link:hover {
    color: #111827;
}

.nav-link.active {
    color: #111827;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* ===== 스크롤 프로그레스 바 ===== */

#scroll-progress {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: 4px;
    background-color: #eef2ff;
    z-index: 999;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-main), #00a1ff);
    transition: width 0.1s linear;
}

/* ===== 메인 구조 & 공통 섹션 ===== */

main {
    margin-top: calc(var(--header-height) + 4px);
}

.section {
    padding: 96px 24px;
    scroll-margin-top: calc(var(--header-height) + 24px);

    /* 섹션 등장 애니메이션 기본 상태 */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* 초기 상태 (안 보이게) */
.hero-section .hero-full-image,
.hero-section .hero-label,
.hero-section .hero-title,
.hero-section .hero-description{
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--hero-dur) var(--hero-ease),
    transform var(--hero-dur) var(--hero-ease);
  will-change: opacity, transform;
}

/* 이미지(첫번째)는 살짝만 움직이게 */
.hero-section .hero-full-image{
  transform: scale(1.02);
  transition:
    opacity var(--hero-dur) var(--hero-ease),
    transform var(--hero-dur) var(--hero-ease);
}

/* section-visible 붙으면 등장 */
.hero-section.section-visible .hero-full-image,
.hero-section.section-visible .hero-label,
.hero-section.section-visible .hero-title,
.hero-section.section-visible .hero-description{
  opacity: 1;
  transform: translateY(0);
}

/* 이미지 등장 시 scale 원복 */
.hero-section.section-visible .hero-full-image{
  transform: scale(1);
}

/* 순서 딜레이 */
.hero-section.section-visible .hero-full-image{
  transition-delay: 0s;
}
.hero-section.section-visible .hero-title{
  transition-delay: calc(var(--hero-gap) * 6);
}
.hero-section.section-visible .hero-description{
  transition-delay: calc(var(--hero-gap) * 9);
}

.section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: calc(14px * var(--font-scale));
    font-weight: 600;
    color: var(--color-main);
    margin-bottom: 12px;
}

.section-title {
    font-size: calc(30px * var(--font-scale));
    font-weight: 800;
    color: #111827;
    margin-bottom: 18px;
}

.section-title-small {
    font-size: calc(24px * var(--font-scale));
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
}

.section-description {
    font-size: calc(15px * var(--font-scale));
    color: #4b5563;
    margin-bottom: 28px;
}

/* ===== HERO 섹션 ===== */

.hero-section {
    background-color: #ffffff;
    border-bottom: 0;
    padding: 0px 0px;
    margin-top: 20px;
}

.hero-inner {
    max-width: none;
    display: block;
    padding: 0;
    margin-bottom: 0;
}

.hero-label {
    font-size: calc(14px * var(--font-scale));
    font-weight: 600;
    color: var(--color-main);
    margin-bottom: 12px;
    text-align: center;
}

.hero-title {
    font-size: calc(48px * var(--font-scale));
    font-weight: 800;
    color: #111827;
    margin-bottom: 18px;
    text-align: center;
}

.hero-description {
    font-size: calc(28px * var(--font-scale));
    color: #4b5563;
    margin-bottom: 28px;
    text-align: center;
}
.hero-panel{
    background-color: black;
    position: relative;
    overflow: hidden;
    height: calc(100vh - var(--header-height) - 4px); /* 헤더/프로그레스바 제외 */
    min-height: 520px; /* 너무 낮은 화면에서도 보호 */
}

.hero-full-image{
    display: block;
    width: 100%;
    height: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.7;
}

/* 텍스트 오버레이 레이어 */
.hero-overlay{
  position: absolute;
  inset: 0;                /* top/right/bottom/left:0 */
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  text-align: center;
  padding: 48px 24px;
  padding-top: clamp(80px, 12vh, 180px);
  padding-bottom: 48px;

  /* 글자 가독성용(원하면 강도 조절) */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.35)
  );
}

/* 오버레이 안에서 글자 색 변경 */
.hero-overlay .hero-label{ color: #cfe0ff; }
.hero-overlay .hero-title{ color: #ffffff; }
.hero-overlay .hero-description{ color: rgba(255,255,255,0.92); }
.hero-overlay .hero-description strong{ color: #ffffff; }

/* 오른쪽 예시 일러스트 카드 */

.hero-visual-card {
    flex: 1 1 45%;
    background-color: #cde3ff;
    border-radius: 24px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-soft);
}

.hero-visual-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(34px * var(--font-scale));
    font-weight: 700;
    color: var(--color-main);
}

.hero-visual-content {
    flex: 1;
}

.hero-visual-title {
    font-size: calc(18px * var(--font-scale));
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.hero-visual-desc {
    font-size: calc(14px * var(--font-scale));
    color: #374151;
}

/* ===== 세무 서비스 섹션 ===== */

.section-services {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.service-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.service-text {
    flex: 1 1 50%;
}

.service-title {
    font-size: calc(20px * var(--font-scale));
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.service-desc {
    font-size: calc(14px * var(--font-scale));
    color: #4b5563;
}

/* 오른쪽 컬러 카드 */

.service-card {
    flex: 0 0 360px;
    height: 190px;
    border-radius: 24px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

/* 카드별 색상 */
.service-card-blue {
    background-color: #9cc4ff;
}

.service-card-purple {
    background-color: #b8b5ff;
}

.service-card-violet {
    background-color: #8d8dff;
}

.service-card-green {
    background-color: #30c98b;
}

/* ===== 컨설팅 서비스/성공사례 섹션 ===== */

.section-consulting {
    background-color: var(--color-section-bg);
    border-bottom: 1px solid #e5e7eb;
}

.consulting-tag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 56px;
}

.consulting-tag-card {
    background-color: #edeff8ce;
    border-radius: 18px;
    padding: 18px 20px;
    font-size: 14px;
    color: #111827;
}

.consulting-tag-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.consulting-tag-card ul {
    list-style: none;
}

.consulting-tag-card li {
    font-size: 13px;
    color: #747e8a;
    text-align: center;
}

/* 하단 성공사례 영역 */

.consulting-bottom-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
}

.consulting-bottom-text {
    flex: 1 1 50%;
}

.case-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.case-button {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    font-size: calc(14px * var(--font-scale));
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.case-button-primary {
    border-color: var(--color-main);
    background-color: var(--color-main);
    color: #ffffff;
}

.case-button:hover {
    transform: translateY(-1px);
    border-color: var(--color-main);
    color: var(--color-main);
    background-color: #eef2ff;
}

.case-button-primary:hover {
    background-color: var(--color-main-dark);
    color: #ffffff;
}

/* 오른쪽 예시 이미지 카드 */

.consulting-visual-card {
    flex: 0 0 360px;
    border-radius: 24px;
    background-color: #ffe5cf;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 28px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.consulting-visual-icon {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(40px * var(--font-scale));
}

.consulting-visual-text {
    font-size: calc(14px * var(--font-scale));
    color: #374151;
}

/* ===== 오시는 길 섹션 ===== */

.section-location {
    background-color: var(--color-section-bg);
}

.location-card {
    margin-top: 24px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    padding: 28px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.naver-map-iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 14px;
}

/* ===== 하단 푸터 (기존 유지) ===== */

.site-footer {
    background-color: #103771;
    color: #ffffff;
    padding: 48px 16px 32px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo-block {
    margin-bottom: 12px;
}

.footer-logo {
    height: 160px;
    width: auto;
}

.footer-info-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.footer-column {
    font-size: calc(14px * var(--font-scale));
    line-height: 1.8;
    text-align: left;
}

.footer-copy {
    font-size: calc(12px * var(--font-scale));
    color: #d8e2f5;
}

/* ===== 우측 하단 상담 / 블로그 버튼 ===== */

.consult-button,
.blog-button {
    position: fixed;
    right: 24px;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* 상담 버튼 (위) */
.consult-button {
    bottom: 112px;
    background-color: var(--color-main);
    color: #ffffff;
    font-size: calc(15px * var(--font-scale));
    font-weight: 700;
}

.consult-button:hover {
    background-color: var(--color-main-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

/* 블로그 버튼 (아래) */
.blog-button {
    bottom: 24px;
    background-color: #ffffff;
}

.blog-logo {
    width: 70%;
    height: 70%;
    object-fit: contain;
    pointer-events: none;
}

.blog-button:hover {
    background-color: #00b036;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

/* ===== 반응형 ===== */
@media (max-width: 1000px) {
    #siteRoot{
        width: 100%;
        overflow: hidden;
    }
    :root{
        --font-scale: 0.7;
        --service-scale: 1;
    }
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .logo {
        height: 82px;
    }

    .brand-en {
        display: none;
    }

    .brand-ko{
        display: none;
    }

    .sub-navbar {
        padding: 0 16px;
    }

    .nav-menu {
        gap: 25px;
    }

    .section {
        padding: 72px 16px;
    }

    .hero-section{
        padding: 0 0;
        background-color: black;
    }

    .hero-full-image{
        width: 100%;
        height: 720px;
    }

    .service-row {
        flex-direction: column;     /* 가로 → 세로 */
        align-items: center;        /* 가운데 정렬 */
        justify-content: flex-start;
        gap: 16px;                  /* 간격 줄이기(원하면 조절) */
    }

    .service-text {
        flex: none;
        width: 100%;
        max-width: 520px;           /* 너무 넓어지면 보기 안 좋아서 제한(원하면 수정/삭제) */
        text-align: left;         /* 텍스트도 가운데 */
    }

    .service-text h3 {
        text-align: center;
        font-size: 20px;
    }

    .service-card {
        flex: none;
        width: min(360px, 92vw);    /* 모바일 화면에 맞게 줄어들게 */
        height: 190px;              /* 유지 (원하면 170px 등으로) */
        margin-top: 0;              /* 세로로 쌓이면 margin-top 필요 없음 */
    }

    .footer-info-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-column {
        text-align: center;
    }

    .consulting-visual-card {
        transform: scale(0.8);
    }

    .consult-button,
    .blog-button {
        right: 24px;
        width: 72px;
        height: 72px;
        border-radius: 24px;
    }

    .consult-button {
        bottom: 120px;
    }

    .blog-button {
        bottom: 20px;
    }

    .global-menu {
        font-size: 15px;
        gap: 15px;
    }

    .global-cta {
        display: none; /* 화면이 좁으면 상단 CTA 버튼은 숨김 */
    }

    .consulting-tag-grid {
        grid-template-columns: 1fr;
    }

    .pricing-hero-inner {
        flex-direction: column;
        align-items: center;
    }

    .pricing-hero-card {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 요금안내 전용 섹션 ===== */

.pricing-hero {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border-soft);
}

.pricing-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.pricing-hero-text {
    flex: 1 1 50%;
}

.pricing-hero-card {
    flex: 0 0 420px;
    max-width: 460px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pricing-hero-card-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
    margin-bottom: 8px;
}

.pricing-plan-label {
    font-size: calc(14px * var(--font-scale));
    color: #6b7280;
    margin-bottom: 4px;
}

.pricing-plan-price {
    font-size: calc(28px * var(--font-scale));
    font-weight: 800;
    color: #111827;
}

.pricing-plan-price-sub {
    font-size: calc(22px * var(--font-scale));
    font-weight: 700;
    color: #6b7280;
}

.pricing-plan-notes {
    list-style: none;
    font-size: calc(13px * var(--font-scale));
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 버튼 공통 (기존 스타일과 맞추기용) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    background-color: var(--color-main);
    color: #ffffff;
    font-size: calc(14px * var(--font-scale));
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease,
        box-shadow 0.15s ease;
    box-shadow: 0 10px 25px rgba(20, 85, 255, 0.35);
}

.btn-primary:hover {
    background-color: var(--color-main-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(20, 85, 255, 0.4);
}

.btn-full {
    width: 100%;
}

/* 두 번째 섹션 */

.features {
    background-color: var(--color-section-bg);
}

.feature-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 22px 22px 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.feature-title {
    font-size: calc(18px * var(--font-scale));
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.feature-list {
    list-style: none;
    font-size: calc(13px * var(--font-scale));
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-more {
    margin-top: 4px;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    font-size: calc(13px * var(--font-scale));
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.feature-more:hover {
    border-color: var(--color-main);
    color: var(--color-main);
    background-color: #eef2ff;
}

/* ===== 상담 패널 & 오버레이 ===== */

.consult-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: stretch;
    justify-content: flex-end;
    z-index: 1100;
}

.consult-overlay.open {
    display: flex;
}

.consult-panel {
    width: 420px;
    max-width: 100%;
    background-color: #f9fafb;
    box-shadow: -12px 0 35px rgba(15, 23, 42, 0.25);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    overflow-y: auto;
}

.consult-panel.open {
    transform: translateX(0);
}

.consult-close {
    border: none;
    background: none;
    font-size: calc(24px * var(--font-scale));
    line-height: 1;
    align-self: flex-end;
    cursor: pointer;
    color: #6b7280;
}

.consult-close:hover {
    color: #111827;
}

.consult-panel-title {
    font-size: calc(22px * var(--font-scale));
    font-weight: 800;
    color: #111827;
}

.consult-panel-subtitle {
    font-size: calc(13px * var(--font-scale));
    color: #4b5563;
    margin-bottom: 4px;
}

.consult-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consult-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: calc(13px * var(--font-scale));
}

.consult-form-group label,
.consult-label {
    font-weight: 600;
    color: #111827;
}

.consult-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
}

.consult-input-wrap input {
    border: none;
    outline: none;
    flex: 1;
    font-size: calc(14px * var(--font-scale));
    background: transparent;
}

.consult-input-icon {
    font-size: calc(16px * var(--font-scale));
}

.consult-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: calc(13px * var(--font-scale));
    color: #374151;
}

.consult-radio-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: calc(13px * var(--font-scale));
    color: #374151;
}

.consult-radio-col label,
.consult-radio-row label {
    cursor: pointer;
}

.consult-form textarea {
    resize: vertical;
    min-height: 90px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: calc(13px * var(--font-scale));
}

/* ===== 상담 폼 추가 영역 ===== */

#businessExtraFields {
    border-top: 1px dashed #e5e7eb;
    padding-top: 12px;
    margin-top: 4px;
}

#bizNumberInputWrap {
    margin-top: 6px;
}

.consult-privacy-group {
    font-size: calc(12px * var(--font-scale));
    color: #4b5563;
}

.consult-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.consult-privacy-label input[type="checkbox"] {
    margin-top: 2px;
}

.consult-privacy-label a {
    color: var(--color-main);
    text-decoration: underline;
}

/* ===== 모바일 햄버거 메뉴 ===== */
.mobile-menu-toggle {
  display: none; /* 기본은 숨김 (PC) */
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  color: #111827;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);

  /* 내려오는 애니메이션 */
  transform: translateY(-110%);
  transition: transform 0.25s ease;
  padding: 16px 16px 18px;
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-menu-overlay.open .mobile-menu-panel {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-title {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #111827;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  gap: 10px;
}

.mobile-menu-link {
  display: block;
  text-align: left;
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 10px;
  border-radius: 12px;
  font: inherit;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
}

.mobile-menu-link:hover {
  background: #f3f4ff;
  color: var(--color-main);
}

.mobile-menu-link.active {
    color: var(--color-main);
    font-weight: 600;
}

.mobile-menu-group {
  padding: 6px 0 2px;
}

.mobile-menu-group-title {
  padding: 6px 10px 2px;
  font-size: 13px;
  color: #6b7280;
}

/* ✅ 모바일에서만: global-menu 숨기고 햄버거 버튼 보이기 */
@media (max-width: 1000px) {
  .global-menu {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* =========================
   대표 소개 섹션(2개)
========================= */
.ceo-hero {
  background-color: var(--color-section-bg);
  border-bottom: 1px solid #e5e7eb;
}

.ceo-hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas: "img text";
  gap: 48px;
  align-items: start;
}

.ceo-quote-mark {
  font-size: calc(92px * var(--font-scale));
  line-height: 1;
  color: rgba(17, 24, 39, 0.377);
  margin-bottom: 5px;
}

.ceo-hero-title {
  font-size: calc(34px * var(--font-scale));
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 18px;
}

.ceo-hero-sub {
  font-size: calc(22px * var(--font-scale));
  color: #374151;
  line-height: 1.35;
  margin-bottom: 14px;
}
.ceo-accent,
.ceo-accent strong {
  color: #2d5899;
}

.ceo-hero-sub strong {
  font-weight: 900;
}

.ceo-name {
  margin-top: 10px;
  font-size: calc(16px * var(--font-scale));
  color: #374151;
  margin-bottom: 20px;
}

.ceo-hero-desc {
  font-size: calc(14px * var(--font-scale));
  color: #4b5563;
  line-height: 1.9;
}

.ceo-hero-image {
  display: flex;
  justify-content: flex-start;
  grid-area: img;
}

.ceo-hero-text {
  grid-area: text;
}

.ceo-hero-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* PROFILE */
.ceo-profile {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.ceo-profile-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.ceo-profile-title h2 {
  font-size: calc(28px * var(--font-scale));
  font-weight: 900;
  color: #111827;
  letter-spacing: 0.02em;
}

.ceo-profile-title p {
  margin-top: 6px;
  font-size: calc(14px * var(--font-scale));
  font-weight: 700;
  color: #6b7280;
}

.ceo-profile-list ul {
  list-style: none;
  padding-left: 0;
}

.ceo-profile-list li {
  font-size: calc(15px * var(--font-scale));
  color: #111827;
  padding: 10px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

/* 모바일 */
@media (max-width: 1000px){
  .ceo-profile-inner {
    grid-template-columns: 1fr;
  }

  .ceo-hero-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "img";
  }
  .ceo-hero-image{ justify-content: center; }

  .feature-grid.service-bg-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   포함 서비스: 배경 이미지 카드 + 반투명 패널
========================= */
.service-bg-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 22px;
  padding: 0; /* 기존 feature-card padding 무시 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 카드별 배경 */
.service-bg-1 { background-image: url("../data/Service1.jpg"); }
.service-bg-2 { background-image: url("../data/Service2.jpg"); }
.service-bg-3 { background-image: url("../data/Service3.jpg"); }

/* 세로로 절반 크기(가로 50%) 반투명 검은 패널 */
.service-bg-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  
  height: 50%;
  width: 100%;

  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;     /* 가운데 정렬 */
  justify-content: center; /* 가운데 정렬 */
  text-align: center;
  padding: 18px 16px;
  gap: 5px;
}

/* 텍스트(흰/회색) */
.service-bg-title {
  font-size: calc(18px * var(--service-scale));
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 5px;
}

.service-bg-desc {
  font-size: calc(14px * var(--service-scale));
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 5px;
}

/* 하단 가운데 버튼 */
.service-bg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  text-decoration: none;
  font-size: calc(13px * var(--font-scale));
  font-weight: 700;
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

.service-bg-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.75);
}

/* 모바일: 패널이 너무 좁으면 100%로 */
@media (max-width: 1000px) {
  .service-bg-card { min-height: 380px; }
  .service-bg-overlay { width: 100%; }
}

/* ===== 참고사이트 마퀴 섹션 (푸터 위) ===== */
.ref-marquee-section{
  background: #ffffff;
  border-top: 1px solid #eef2ff;
  padding: 56px 16px 48px;
}

.ref-marquee-inner{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.ref-marquee-title{
  font-size: calc(44px * var(--font-scale));
  font-weight: 800;
  margin-bottom: 8px;
}

.ref-marquee-sub{
  font-size: calc(16px * var(--font-scale));
  color: #6b7280;
  margin-bottom: 28px;
}

/* 실제 마퀴 영역 */
.ref-marquee{
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 18px 0;
}

/* 트랙: 왼쪽으로 계속 이동 */
.ref-marquee-track{
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: refMarqueeMove 100s linear infinite;
  will-change: transform;
}

/* 아이템 */
.ref-item{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ref-item img{
  height: auto;
  width: 104px;
  display: block;
  opacity: 0.9;
}

.ref-item span{
  font-size: calc(14px * var(--font-scale));
  color: #374151;
}

/* 호버 시 살짝 강조 */
.ref-item:hover img{
  filter: none;
  opacity: 1;
}

/* 마우스 올리면 잠시 멈춤(PC) */
.ref-marquee:hover .ref-marquee-track{
  animation-play-state: paused;
}

@keyframes refMarqueeMove{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* JS에서 트랙을 2배로 복제할 거라 -50%가 깔끔 */
}

/* 모션 최소화 설정 사용자는 애니메이션 끔 */
@media (prefers-reduced-motion: reduce){
  .ref-marquee-track{ animation: none; }
}
