/* =================== 메가 메뉴 전용 스타일시트 (우선순위 최고) =================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* =================== 기본 리셋 및 변수 =================== */
* {
    box-sizing: border-box !important;
}

body, html {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

#way_container {
    margin-top: 0 !important; /* 헤더와 겹치지 않도록 여백 제거 */
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

/* 컨테이너 내부 */
#way_container_wr {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

/* =================== 기본 애니메이션 =================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* =================== 반응형 스타일 =================== */
/* 헤더 관련 1200px 미디어쿼리는 hd/top_menu/style.css로 이관됨 */

/* 헤더 관련 1024px 미디어쿼리는 hd/top_menu/style.css로 이관됨 */

/* 헤더 관련 768px 미디어쿼리는 hd/top_menu/style.css로 이관됨 */

/* =================== 로딩 애니메이션 =================== */
.loading {
        position: fixed;
    top: 0;
    left: 0;
        width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading_circle {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* addClass('hide') 대응: class로도 즉시 숨김 */
.loading.hide { display: none !important; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =================== 스킵 네비게이션 =================== */
#skip_to_container {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 10000;
}

#skip_to_container a {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 100px;
    height: 40px;
    line-height: 40px;
    background: #000;
    color: #fff;
        text-align: center;
    text-decoration: none;
}

#skip_to_container a:focus {
        left: 0;
    }
    
/* =================== 메인 페이지 섹션 스타일 =================== */

/* 메인 배너 (위치 고정) */
#main_bnr_area {
    position: relative !important;
    height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

.main_txt_box {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: white;
    max-width: 600px;
}

.main_txt_box h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main_txt {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.main_img_area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main_img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main_ctr_btn {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 20px;
}

.main_btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.main_btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 섹션 공통 스타일 */
.fullpage-section {
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
}

/* 섹션 1 - 제품 소개 */
#atc01 {
    background: #f8f9fa;
    padding: 100px 0;
}

.atc01_inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.atc01_top_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.atc01_top_title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.business-category-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.business-category-btn.active {
    border-color: #0066ff;
    background: #0066ff;
    color: white;
}

.business-card-list {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.business-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 300px;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.business-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.business-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.business-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.business-slide-btn {
    background: none;
    border: 2px solid #ddd;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.business-slide-btn:hover {
    border-color: #0066ff;
    color: #0066ff;
}

/* 섹션 2 - 회사 소개 */
#atc02 {
    background: white;
    padding: 100px 0;
}

.section_title {
    text-align: center;
    margin-bottom: 80px;
}

.section_title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.highlight-red {
    color: #e74c3c;
}

.section_title p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.core_values_container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
}

.core_value_item {
    text-align: center;
    flex: 1;
}

.circle_icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.circle_icon.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.circle_icon.gray {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.value_title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.value_subtitle {
    font-size: 14px;
    color: #0066ff;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 섹션 3 - 서비스 */
#atc03 {
    background: #f8f9fa;
    padding: 100px 0;
}

.service_title {
    text-align: center;
    margin-bottom: 80px;
}

.service_title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.service_title span {
    color: #0066ff;
}

.service_title p {
    font-size: 18px;
    color: #666;
}

.service_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.service_box {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.service_box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service_box.active {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service_icon img {
    width: 60px;
    height: 60px;
}

.service_box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.service_content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service_box.active .service_content {
    opacity: 1;
    max-height: 200px;
}

.content_inner {
    padding-top: 20px;
}

.content_inner p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.view_more {
    display: inline-flex;
    align-items: center;
    color: #0066ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view_more:hover {
    color: #004d99;
}

.view_more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view_more:hover i {
    transform: translateX(3px);
}

/* Footer logo: render at intrinsic size */
#way_ft .ft_logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: none !important; /* override global img { max-width:100% } */
}

/* Prevent overflow on very small screens */
@media (max-width: 480px) {
  #way_ft .ft_logo img { max-width: 85vw !important; height: auto !important; }
}

/* 반응형 스타일 */
@media (max-width: 1024px) {
    .atc01_top_row {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .business-card-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .core_values_container {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .core_value_item {
        flex: 1 1 calc(50% - 15px);
        min-width: 200px;
    }
    
    .service_container {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main_txt_box {
        left: 5%;
        right: 5%;
        max-width: 90%;
    }
    
    .main_txt_box h2 {
        font-size: 32px;
    }
    
    .main_txt {
        font-size: 16px;
    }
    
    .main_ctr_btn {
        bottom: 30px;
        right: 20px;
        left: 20px;
        justify-content: center;
    }
    
    .atc01_top_title {
        font-size: 28px;
    }
    
    .business-category-btn {
        font-size: 14px;
        padding: 8px 16px;
        margin: 5px;
    }
    
    .section_title h2 {
        font-size: 28px;
    }
    
    .service_title h2 {
        font-size: 28px;
    }
    
    .core_values_container {
        flex-direction: column;
        gap: 40px;
    }
    
    .core_value_item {
        flex: 1 1 100%;
    }
}