﻿/* =========================================================
   LPComSolution - Site.css 정리본
   - 중복 CSS 제거
   - Header / Main Menu / Footer 규칙 통합
   - Desktop 선택메뉴(is-active) 표시 정상화
   - 기존 현재 화면 배치를 최대한 유지
========================================================= */

/* =========================================================
   1. Root / Reset
========================================================= */
:root {
    --ink: #172033;
    --muted: #667085;
    --line: #e6eaf0;
    --soft: #f6f8fb;
    --primary: #246bfd;
    --primary-dark: #164fc8;
    --navy: #101828;
    --white: #ffffff;
    --footer-height: 68px;
    --footer-gap: 2px;
    /* 상단 주메뉴 시작위치 */
    --header-menu-offset: 72px;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding-bottom: calc(var(--footer-height) + var(--footer-gap));
    overflow-x: hidden;
    color: var(--ink);
    background: var(--white);
    font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
    line-height: 1.65;
}

form#mainForm {
    width: 100%;
    min-height: 100vh;
    margin: 0;
}

button,
a,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   2. Header
========================================================= */
.top-strip-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 20px;
    margin: 0 auto;
    background-image: url('../_Images/LPComSolutionTop.gif');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    overflow: visible;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

    /* Header 1행 : 로고 / 언어 / 포탈 */
    .site-header .header-main-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        min-height: 48px;
        padding-top: 2px;
        padding-bottom: 2px;
    }

        .site-header .header-main-row .brand {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex: 0 0 auto;
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.035em;
        }

    .site-header .brand-logo-link {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        text-decoration: none;
    }

    .site-header .brand-logo {
        display: block;
        width: auto;
        height: 44px;
        max-width: 190px;
        object-fit: contain;
        border: 0;
    }

    .site-header .brand-name {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: -5px;
        padding: 3px 12px;
        color: #ffffff;
        background-color: #2f80ed;
        border-radius: 9px;
        font-size: 21px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -1px;
        white-space: nowrap;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .site-header .header-tools {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        margin-left: auto;
        flex: 0 0 auto;
    }

        /* Korea / English */
        .site-header .header-tools .language-picker {
            position: relative !important;
            top: auto !important;
            right: auto !important;
            display: inline-flex;
            align-items: center;
            margin: 0;
            padding: 0;
            transform: none !important;
            z-index: auto;
        }

        .site-header .header-tools .language-icon {
            position: absolute;
            left: 8px;
            top: 50%;
            z-index: 1;
            transform: translateY(-50%);
            pointer-events: none;
            font-size: 12px;
            line-height: 1;
        }

        .site-header .header-tools .language-select {
            width: 102px;
            min-width: 102px;
            height: 27px;
            margin: 0;
            padding: 0 22px 0 27px;
            color: #344054;
            background-color: #ffffff;
            border: 1px solid #d0d5dd;
            border-radius: 5px;
            outline: none;
            cursor: pointer;
            font-size: 11px;
            font-weight: 400;
            line-height: 25px;
        }

            .site-header .header-tools .language-select:focus {
                border-color: var(--primary);
                box-shadow: 0 0 0 3px rgba(36, 107, 253, 0.13);
            }

    /* 포탈사이트 이미지 버튼 */
    .site-header .portal-site-image-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 25px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        text-decoration: none;
        line-height: 0;
    }

    .site-header .portal-site-image {
        display: block;
        width: 72px;
        height: 25px;
        margin: 0;
        padding: 0;
        border: 0;
        object-fit: contain;
        transition: transform .15s ease, filter .15s ease;
    }

    .site-header .portal-site-image-button:hover .portal-site-image,
    .site-header .portal-site-image-button:focus .portal-site-image {
        transform: translateY(-1px);
        filter: brightness(1.08);
    }


    /* =========================================================
   3. Header 2행 : Main Menu
========================================================= */
    .site-header .header-nav-row {
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(230, 234, 240, 0.70);
        border-bottom: 1px solid #e6eaf0;
    }

        .site-header .header-nav-row .header-nav-container {
            display: flex;
            align-items: center;
            min-height: 37px;
            padding-left: var(--header-menu-offset);
        }

        .site-header .header-nav-row .main-nav {
            display: flex !important;
            align-items: center;
            justify-content: flex-start;
            width: auto;
            margin: 0 !important;
            padding: 0;
            gap: 28px;
            color: #344054;
            font-size: 15px;
            font-weight: 700;
            white-space: nowrap;
        }

            .site-header .header-nav-row .main-nav a {
                position: relative;
                display: inline-flex;
                align-items: center;
                min-height: 36px;
                padding: 0 1px;
                color: #344054;
                border-bottom: 2px solid transparent;
                text-decoration: none;
            }

                .site-header .header-nav-row .main-nav a:hover,
                .site-header .header-nav-row .main-nav a:focus {
                    color: var(--primary);
                    border-bottom-color: var(--primary);
                }

                /* 현재 선택된 상단 메뉴
   Desktop / Tablet / Mobile 모두 동일하게 적용 */
                .site-header .header-nav-row .main-nav a.is-active {
                    color: var(--primary) !important;
                    font-weight: 800 !important;
                    border-bottom: 2px solid var(--primary) !important;
                }

                    .site-header .header-nav-row .main-nav a.is-active::after {
                        content: none !important;
                    }

                    .site-header .header-nav-row .main-nav a.is-active:hover,
                    .site-header .header-nav-row .main-nav a.is-active:focus {
                        color: var(--primary-dark) !important;
                        border-bottom-color: var(--primary-dark) !important;
                    }


/* =========================================================
   4. Main Content
========================================================= */
.main-content {
    position: relative;
    width: 100%;
    padding-bottom: calc(var(--footer-height) + var(--footer-gap));
}


/* =========================================================
   5. Slide / Guide
========================================================= */
.slide-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 30px 20px 42px;
    gap: 18px;
    background: #ffffff;
}

.slide-viewer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #ffffff;
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.13);
}

    .slide-viewer.has-no-images {
        width: min(900px, 100%);
        min-height: 380px;
    }

.slide-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 650px;
    object-fit: contain;
    object-position: center center;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
}

    .slide-image.is-visible {
        opacity: 1;
    }

.slide-empty {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 380px;
    padding: 40px;
    gap: 10px;
    color: #475467;
    text-align: center;
    line-height: 1.7;
}

    .slide-empty.is-visible {
        display: flex;
    }

    .slide-empty strong {
        font-size: 22px;
    }

    .slide-empty span {
        color: #667085;
    }

.slide-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    min-width: 70px;
    padding: 7px 13px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.slide-counter-divider {
    margin: 0 4px;
    color: rgba(255, 255, 255, .65);
}

.guide-image-area {
    display: flex;
    justify-content: center;
    width: min(1200px, 100%);
    background: #ffffff;
}

.guide-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #ffffff;
}


/* =========================================================
   6. Hero
========================================================= */
.hero {
    overflow: hidden;
    padding: 92px 0 84px;
    background: radial-gradient( circle at 82% 20%, rgba(36, 107, 253, 0.18), transparent 31% ), linear-gradient( 145deg, #f8fbff 0%, #ffffff 54%, #f1f5ff 100% );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 72px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.hero h1,
.section-heading h2,
.test-grid h2,
.contact-box h2 {
    margin: 0;
    letter-spacing: -0.055em;
    line-height: 1.15;
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(32px, 6vw, 68px);
}

.hero-copy > p {
    max-width: 690px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}


/* =========================================================
   7. Common Buttons
========================================================= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

    .button:hover {
        transform: translateY(-1px);
    }

.button-primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 12px 30px rgba(36, 107, 253, .22);
}

    .button-primary:hover {
        background: var(--primary-dark);
    }

.button-secondary {
    color: #344054;
    background: var(--white);
    border-color: #d0d5dd;
}

.button-light {
    flex: 0 0 auto;
    color: var(--primary);
    background: var(--white);
}


/* =========================================================
   8. Hero Panel
========================================================= */
.hero-panel {
    padding: 34px;
    color: var(--white);
    background: var(--navy);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(16, 24, 40, .2);
}

.status-dot {
    width: 12px;
    height: 12px;
    margin-bottom: 28px;
    background: #46d38a;
    border: 3px solid rgba(70, 211, 138, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(70, 211, 138, .12);
}

.panel-label {
    margin: 0;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.hero-panel h2 {
    margin: 4px 0 22px;
    font-size: 32px;
}

.hero-panel ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-panel li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

    .hero-panel li span {
        color: #98a2b3;
    }

    .hero-panel li strong {
        text-align: right;
        font-size: 14px;
    }


/* =========================================================
   9. Sections / Cards
========================================================= */
.section {
    padding: 92px 0;
}

.section-soft {
    background: var(--soft);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

    .section-heading h2,
    .test-grid h2,
    .contact-box h2 {
        font-size: clamp(28px, 4.5vw, 46px);
    }

    .section-heading p,
    .test-grid p,
    .contact-box p {
        margin: 18px 0 0;
        color: var(--muted);
        font-size: 17px;
    }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    min-height: 240px;
    padding: 30px;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(16, 24, 40, .06);
}

.card-number {
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .08em;
}

.feature-card h3 {
    margin: 42px 0 10px;
    font-size: 20px;
    letter-spacing: -.035em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

.test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.test-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 230px;
    padding: 34px;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.server-button {
    border: 0;
}

.server-status {
    display: block;
    color: #475467;
    font-size: 15px;
}


/* =========================================================
   10. Contact
========================================================= */
.contact-section {
    padding-top: 28px;
    padding-bottom: 28px;
    background: var(--primary);
}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-height: 0;
    color: var(--white);
}

    .contact-box .eyebrow,
    .contact-box p {
        color: rgba(255, 255, 255, .82);
    }

.contact-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    margin: 0 auto;
}

    .contact-actions .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        min-width: 100px;
        min-height: 46px;
        padding: 0 12px;
        white-space: nowrap;
    }


/* =========================================================
   11. Policy Pages
========================================================= */
.policy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 38px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(16, 24, 40, 0.06);
}

    .policy-page h1 {
        margin: 0 0 22px;
        font-size: clamp(28px, 4vw, 42px);
        line-height: 1.2;
        letter-spacing: -0.045em;
    }

    .policy-page p {
        margin: 12px 0;
        color: var(--muted);
    }

.policy-list {
    margin: 22px 0 0;
    padding-left: 22px;
}

    .policy-list a {
        color: var(--primary);
        text-decoration: underline;
        text-underline-offset: 3px;
    }


/* =========================================================
   12. Fixed Footer
========================================================= */
.site-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block !important;
    width: 100%;
    height: var(--footer-height) !important;
    min-height: var(--footer-height) !important;
    overflow: visible;
    z-index: 99999;
    color: #aebbd0;
    background-color: #101a2d;
    border-top: 1px solid #27344a;
}

    .site-footer .footer-inner {
        display: grid;
        grid-template-rows: auto auto auto;
        align-content: center;
        width: min(1180px, calc(100% - 40px));
        height: 100%;
        min-height: 0;
        margin: 0 auto;
        padding: 0 !important;
        row-gap: 0 !important;
    }

        .site-footer .footer-inner > * {
            margin: 0;
        }

    .site-footer .footer-links {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        width: 100%;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        gap: 7px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.05;
        text-align: center;
    }

        .site-footer .footer-links a {
            display: inline-flex;
            align-items: center;
            padding: 1px 2px;
            color: #ffffff;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.15s ease, opacity 0.15s ease;
        }

            .site-footer .footer-links a:hover,
            .site-footer .footer-links a:focus {
                color: #7db1ff;
                text-decoration: underline;
                text-underline-offset: 3px;
            }

.footer-link-separator {
    color: #667085;
    user-select: none;
}

/* 회사정보 */
.site-footer .footer-links2 {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
}

    .site-footer .footer-links2 p,
    .site-footer .footer-company-info p {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.05;
    }

.site-footer .footer-company-info {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: #aebbd0;
    font-size: 13px;
    line-height: 1.05;
    text-align: center;
}

/* 저작권 / 시스템정보 */
.site-footer .footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    gap: 24px;
    color: #aebbd0;
    font-size: 13px;
    line-height: 1.05;
}

.footer-copyright {
    flex: 0 0 auto;
    white-space: nowrap;
}

.footer-description {
    flex: 1 1 auto;
    text-align: right;
}

.footer-copyright,
.footer-description {
    margin: 0;
    padding: 0;
}


/* =========================================================
   13. Tablet
========================================================= */
@media screen and (max-width: 960px) {
    :root {
        --footer-height: 58px;
        --footer-gap: 2px;
        --header-menu-offset: 50px;
    }

    .site-header .brand-name {
        display: none;
    }

    .site-header .header-main-row {
        gap: 10px;
    }

    .site-header .header-tools {
        gap: 6px;
    }

    .site-header .header-nav-row .main-nav {
        gap: 22px;
        font-size: 14px;
    }

    .hero-grid,
    .test-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

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

    .feature-card {
        min-height: auto;
    }

        .feature-card h3 {
            margin-top: 26px;
        }

    /* 회사정보는 Tablet/Mobile에서 숨김 */
    body .site-footer .footer-links2 {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .site-footer .footer-inner {
        grid-template-rows: auto auto;
    }
}


/* =========================================================
   14. Mobile
========================================================= */
@media screen and (max-width: 720px) {
    :root {
        --header-menu-offset: 0px;
    }

    .container {
        width: min(100% - 28px, 1180px);
    }

    /* Header 1행 */
    .site-header .header-main-row {
        min-height: 46px;
        gap: 5px;
        padding-top: 2px;
        padding-bottom: 2px;
    }

        .site-header .header-main-row .brand-name {
            display: none;
        }

        .site-header .header-main-row .brand-logo {
            height: 33px;
            max-width: 126px;
        }

    .site-header .header-tools {
        gap: 5px;
    }

        .site-header .header-tools .language-select {
            width: 90px;
            min-width: 90px;
            height: 26px;
            padding-left: 25px;
            padding-right: 19px;
            font-size: 10px;
        }

        .site-header .header-tools .language-icon {
            left: 7px;
            font-size: 11px;
        }

    .site-header .portal-site-image-button,
    .site-header .portal-site-image {
        width: 72px;
        height: 25px;
    }

    /* Header 2행 : 메뉴 유지 + 가로스크롤 */
    .site-header .header-nav-row {
        overflow: hidden;
    }

        .site-header .header-nav-row .header-nav-container {
            overflow-x: auto;
            padding-left: 0;
            scrollbar-width: none;
        }

            .site-header .header-nav-row .header-nav-container::-webkit-scrollbar {
                display: none;
            }

        .site-header .header-nav-row .main-nav {
            display: flex !important;
            width: max-content;
            min-width: max-content;
            gap: 18px;
            padding-right: 14px;
            font-size: 13px;
        }

            .site-header .header-nav-row .main-nav a {
                min-height: 34px;
            }

    /* Slide */
    .slide-stage {
        padding: 16px 14px 28px;
    }

    .slide-viewer {
        border-radius: 14px;
    }

    .slide-image {
        max-height: 70vh;
    }

    .slide-counter {
        right: 10px;
        bottom: 10px;
    }

    .guide-image {
        max-height: none;
    }

    /* Main Sections */
    .hero {
        padding: 64px 0;
    }

    .section {
        padding: 68px 0;
    }

    .hero-panel,
    .test-box {
        padding: 26px;
        border-radius: 20px;
    }

    /* Contact */
    .contact-actions {
        flex-wrap: wrap;
    }

    /* Footer */
    .site-footer .footer-inner {
        width: min(100% - 28px, 1180px);
        height: 100%;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        line-height: 1.45;
    }

    .site-footer .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 6px;
        font-size: 11px;
        line-height: 1.15;
    }

    .site-footer .footer-meta {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        text-align: center;
    }

    .site-footer .footer-description {
        text-align: center;
    }

    /* Policy */
    .policy-page {
        padding: 24px 20px;
        border-radius: 14px;
    }
}
