:root {
    --color-main: #103771; /* 메인 네이비 */
    --color-text-main: #222222;
    --color-bg: #ffffff;
    --color-light-gray: #f5f5f7;
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.06);

    /* 슬로건 공통 그라데이션 */
    --hero-gradient: linear-gradient(to bottom, #ffffff 0%, #e3ebf7 45%, #bed2f3 100%);
    --sub-gradient: linear-gradient(45deg,rgba(255, 255, 255, 1) 0%, rgb(172, 188, 223) 50%, rgba(204, 246, 255, 1) 100%);
    --news-gradient: linear-gradient(177deg,rgba(158, 184, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
    --location-gradient: linear-gradient(0deg,rgba(122, 153, 196, 1) 0%, rgba(154, 189, 237, 1) 19%, rgba(255, 255, 255, 1) 100%);
}

* {
    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;
}

/* ===== 상단 네비게이션 바 ===== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 88px; /* 로고와 높이 맞게 조금 키움 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 로고 높이를 바와 거의 같게 */
.logo {
    height: 72px; /* 바(88px) 안에서 상하 여백 조금만 */
    width: auto;
}

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

.brand-ko {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-main);
}

.brand-en {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #888888;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #555555;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.nav-link:hover {
    color: var(--color-main);
    background-color: rgba(1, 59, 115, 0.06);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--color-main);
    background-color: transparent; /* 배경색 채우지 않음 */
}

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

#scroll-progress {
    position: fixed;
    top: 88px; /* 네비게이션 높이와 맞춤 */
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(1, 59, 115, 0.08);
    z-index: 999;
}

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

/* ===== 메인 구조 ===== */

main {
    margin-top: 88px; /* 네비게이션 높이 */
    padding-top: 0; /* 프로그레스 바 아래 여백 */
}

/* 공통 섹션 스타일 */

.section {
    padding: 80px 16px;
    scroll-margin-top: 100px;
}

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

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-main);
    margin-bottom: 24px;
}

.section-description {
    font-size: 15px;
    color: #444444;
    margin-bottom: 24px;
}

/* ===== 정성 소개 섹션 ===== */

.section-intro {
    /* 위아래 패딩만 주고, 배경을 슬로건 영역 전체에 깔기 */
    padding: 0 0 60px;
    background: var(--hero-gradient);
    scroll-margin-top: 120px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 380px;
    background: #000000;
    overflow: hidden;
}

.hero-slider-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

/* 어두운 반투명 오버레이 (이미지 위에 씌워지고, 그 위에 글자가 올라감) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.8)
    );
    pointer-events: none;
    z-index: 1; /* 이미지보다 위, 텍스트보다 아래 */
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

.hero-sub {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 18px;
}

/* 슬로건 전체 래퍼 (큰 따옴표 + 텍스트) */
.slogan-wrapper {
    position: relative;
    display: inline-block;
    text-align: center;
    padding: 32px 48px; /* 텍스트 주변 여백 (따옴표 들어갈 자리 확보) */
}

/* 가운데 텍스트 (파란색, 가운데 정렬, 애니메이션용 기본 상태) */
.slogan-text {
    display: inline-block;
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.15em;
    line-height: 1.25;
    text-align: center;

    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

/* 큰 따옴표 (66 / 99 스타일, 위/아래 배치) */
.slogan-quote {
    position: absolute;
    font-size: clamp(60px, 6vw, 80px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

/* 여는 따옴표: 66 → 위쪽 왼쪽 */
.slogan-quote-open {
    top: -10px;
    left: 0;
}

/* 닫는 따옴표: 99 → 아래쪽 오른쪽 */
.slogan-quote-close {
    bottom: -10px;
    right: 0;
}

/* 래퍼가 visible 되면 텍스트 + 따옴표 동시에 등장 */
.slogan-wrapper.visible .slogan-text,
.slogan-wrapper.visible .slogan-quote {
    opacity: 1;
    transform: translateY(0);
}

/* 인사말 + 프로필 2컬럼 레이아웃 */
.intro-greeting {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-top: 32px;
}

.intro-text {
    flex: 1 1 auto;
}

/* 프로필 이미지 슬라이드 인 기본 상태 (오른쪽에 숨어 있음) */
.intro-profile-image {
    flex: 0 0 auto;
    max-width: 260px;
    width: 26%;
    height: auto;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.18));
    border-radius: 16px; /* 원본에 맞게 필요하면 수정 */
    object-fit: cover;
}

/* 보일 때 (IntersectionObserver로 .visible 추가) */
.intro-profile-image.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 주요 업무 ===== */

.section-services {
    background: var(--sub-gradient);
}

.business-card {
    padding: 24px 28px;
    max-width: 780px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.business-card-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    flex: 1 1 260px;
}

.business-card-button {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--color-main);
    background-color: var(--color-main);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.business-card-button:hover {
    background-color: #ffffff;
    color: var(--color-main);
    transform: translateY(-1px);
}

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

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

.location-placeholder {
    margin-top: 16px;
    padding: 40px;
    border-radius: 16px;
    border: 1px dashed rgba(1, 59, 115, 0.3);
    text-align: center;
    color: #777777;
    background-color: #ffffff;
}

.naver-map-iframe {
    width: 100%;
    height: 360px;      /* 필요하면 320~420px 사이로 조절 */
    border: 0;
    border-radius: 12px; /* 기존 박스 느낌 살리기 */
}

/* ===== 소식 정보 섹션 ===== */

.section-news {
    background: var(--news-gradient);
}

.news-list {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 3em;
}

.news-date {
    font-size: 12px;
    color: #777777;
    margin-left: 4px;
}

.news-item {
    padding: 12px 16px;
    border-radius: 12px;
    background-color: var(--color-light-gray);
    font-size: 14px;
}

.news-item a {
    display: block;
    text-decoration: none;
    color: #333333;
}

.news-item a:hover {
    color: var(--color-main);
}

.news-item.error {
    font-style: italic;
    color: #666666;
}

/* ===== 네이버 블로그 버튼 (우측 하단 고정) ===== */

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

.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);
}

/* ===== 하단 푸터 ===== */

.site-footer {
    background-color: var(--color-main);
    color: #ffffff;
    padding: 48px 16px 32px;
    margin-top: 0;
}

.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: 14px;
    line-height: 1.8;
}

.footer-column-left,
.footer-column-right {
    text-align: left;
}

.footer-copy {
    font-size: 12px;
    color: #d8e2f5;
}

/* ===== 반응형 ===== */

/* 데스크톱 기준 프로필 이미지 위치/크기 조정 */
@media (min-width: 1024px) {
    .intro-greeting {
        align-items: stretch;
    }

    .intro-profile-image {
        height: 100%;
        width: auto;
        max-width: 380px;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 0 16px;
        height: 80px;
    }

    #scroll-progress {
        top: 80px;
    }

    .logo {
        height: 60px;
    }

    .brand-en {
        display: none;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .section {
        padding: 64px 12px;
    }

    .intro-greeting {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .intro-profile-image {
        width: 60%;
        max-width: none;
        align-self: center;
        transform: translateX(40px); /* 처음 위치 조금만 */
    }

    .business-card {
        align-items: flex-start;
    }

    .business-card-button {
        width: 100%;
        text-align: center;
    }

    .blog-button {
        width: 64px;
        height: 64px;
        right: 16px;
        bottom: 16px;
    }

    .footer-info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column-left,
    .footer-column-right {
        text-align: center;
    }

    .footer-logo {
        width: 140px;
    }
}
