@charset "utf-8";

/* head.php */
/* 해더 & 모바일 네비게이션 */
@media (min-width: 1024px) {
    :root {
        --header-h: 138px; /* logo 90 + menu 48 */
    }
}

body.no-visual #header {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* 본문 바로가기 (키보드 포커스 시 노출) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    padding: 0.75rem 1rem;
    background: var(--primary, #003663);
    color: #fff;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.skip-link:focus,
.skip-link:active {
    left: 1rem;
    top: 1rem;
}

.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}

.menu-icon span {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    max-height: 5px;
    background: currentColor;
    transition: all ease 200ms;
}

.menu-icon .first {
    top: 0%;
    transition: transform 100ms;
}

.menu-icon .second {
    top: 50%;
}

.menu-icon .third {
    top: 100%;
}

.menu-icon.active .first {
    transform: translateY(13px) translateX(0) rotate(45deg);
    transition: all ease 200ms;
}

.menu-icon.active .second {
    opacity: 0;
    transition: all ease 200ms;
}

.menu-icon.active .third {
    transform: translateY(-11px) translateX(0) rotate(-45deg);
    transition: all ease 200ms;
}

.site-wrap {
    position: relative;
}

.site-wrap.active .menu-bg {
    height: var(--full-h);
    transition: 0.5s;
    opacity: 1;
    visibility: visible;
}

.site-wrap.active .menu-bg::before {
    opacity: 1;
    transition: 0.5s;
}

#header {
    z-index: 101;
}

/* 모바일 왼쪽 사이드 드로어 */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.main-nav.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    width: min(86vw, 320px);
    height: var(--full-h);
    padding: 0;
    background: #fff;
    color: #0f172a;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
    transform: translateX(-105%);
    visibility: hidden;
    opacity: 1;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.38s;
    overflow: hidden;
}

.main-nav.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-drawer__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mobile-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    color: #334155;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-drawer__close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.mobile-drawer__nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1rem;
}

.mobile-drawer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-drawer__item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mobile-drawer__row {
    display: flex;
    align-items: stretch;
}

.mobile-drawer__link {
    display: flex;
    flex: 1;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-drawer__link:hover {
    color: var(--primary, #003663);
    background: rgba(0, 54, 99, 0.04);
}

.mobile-drawer__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    color: #64748b;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-drawer__toggle:hover,
.mobile-drawer__item.is-open .mobile-drawer__toggle {
    color: var(--primary, #003663);
    background: rgba(0, 54, 99, 0.04);
}

.mobile-drawer__item.is-open .mobile-drawer__toggle i {
    transform: rotate(180deg);
}

.mobile-drawer__sub {
    margin: 0;
    padding: 0.25rem 0 0.75rem;
    list-style: none;
    background: #f8fafc;
}

.mobile-drawer__sublink {
    display: block;
    padding: 0.65rem 1.25rem 0.65rem 1.75rem;
    font-size: 0.9rem;
    color: #475569;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-drawer__sublink:hover {
    color: var(--primary, #003663);
    padding-left: 2rem;
}

.mobile-drawer__foot {
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.mobile-drawer__call {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: var(--primary, #003663);
    color: #fff;
    line-height: 1.25;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-drawer__call i {
    font-size: 1.25rem;
}

.mobile-drawer__call:hover {
    background: #1f3f8b;
}

/* index.php — 한국형 기업 메인 */
#main-about,
#main-products,
#main-projects,
#main-review,
#main-contact {
    word-break: keep-all;
}

#main-about .about-main-image img {
    transition: transform 0.8s ease;
}

#main-about .about-main-image:hover img {
    transform: scale(1.03);
}

#main-about .feature-number {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: #c5d7e4;
    transition: color 0.3s ease;
}

#main-about .about-feature:hover .feature-number {
    color: var(--primary, #003663);
}

#main-products .business-card {
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#main-products .business-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 45, 70, 0.08);
}

#main-products .business-image img {
    transition: transform 0.6s ease;
}

#main-products .business-card:hover .business-image img {
    transform: scale(1.04);
}

#main-products .business-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: var(--primary, #003663);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#main-products .business-card:hover .business-arrow {
    background: var(--primary, #003663);
    border-color: var(--primary, #003663);
    color: #fff;
}

#main-products .business-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary, #003663);
    transition: width 0.4s ease;
}

#main-products .business-card:hover .business-line {
    width: 100%;
}


/* Hero banner (mainbanner.10) — Tailwind로 표현하기 어려운 부분만 */
.hero-overlay {
    background:
        radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 30%, transparent 65%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-bullet-active .hero-bullet-dot {
    background: #fff;
    transform: scale(1.1);
}

.hero-bullet-active .hero-bullet-ring {
    opacity: 1;
}

.hero-bullet-ring-bar {
    stroke-dasharray: 100.531;
    stroke-dashoffset: 100.531;
}

.hero-bullet-active .hero-bullet-ring-bar {
    animation: heroBulletProgress var(--hero-autoplay, 10s) linear forwards;
}

.main_slide.is-paused ~ .hero-controls .hero-bullet-active .hero-bullet-ring-bar {
    animation-play-state: paused;
}

@keyframes heroBulletProgress {
    from {
        stroke-dashoffset: 100.531;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.scroll-line-bar {
    animation: heroScrollLine 1.8s ease-in-out infinite;
}

@keyframes heroScrollLine {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    35% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}

/* Main page — benefits sticky text */
#sk-benefits .sk-benefits-sticky {
    z-index: 1;
}

/* Main page — quality expand cards */
#sk-quality-grid .sk-quality-card {
    flex: 1 1 0;
    min-width: 0;
    transition: flex-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#sk-quality-grid .sk-quality-detail {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 1024px) {
    #sk-quality-grid .sk-quality-card.is-active {
        flex-grow: 2.15;
    }

    #sk-quality-grid .sk-quality-card:not(.is-active) .sk-quality-detail {
        opacity: 0;
        transform: translateY(12px);
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sk-quality-grid .sk-quality-card,
    #sk-quality-grid .sk-quality-detail {
        transition: none;
    }

    #sk-intro .sk-scroll-line {
        transform: scaleY(1);
    }
}

