@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 스무스 스크롤 */
html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', sans-serif; color: #333; line-height: 1.6; background-color: #ffffff; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 30px 10px; }

/* 우측 고정 플로팅 TOP 버튼 */
.floating-top-btn {
    position: fixed; right: 30px; bottom: 30px; width: 50px; height: 50px;
    background-color: #00204a; color: #ffffff; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center;
    text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999; transition: all 0.3s ease;
}
.floating-top-btn:hover { background-color: #FF5A4A; transform: translateY(-5px); }

/* 1. 메인 헤더 영역 */
.hero { display: flex; align-items: center; background-color: #ffffff; padding: 20px 0 0 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.hero-content { width: 100%; padding: 0 5%; display: flex; flex-direction: column; justify-content: center; }

.logo-text-row { display: flex; align-items: center; margin-bottom: 25px; }
.logo-wrapper { display: flex; flex-direction: column; align-items: flex-start; margin-right: 40px; margin-left: 20px; }
.logo-image { max-width: 250px; height: auto; display: block; }
.tagline { font-size: 0.8rem; color: #777; font-weight: 900; margin-bottom: 0px; letter-spacing: -0.5px; margin-top: 5px; margin-left: 20px; }

.header-text-group { display: flex; flex-direction: column; gap: 6px; }
.keywords { list-style: none; display: flex; gap: 10px; color: #FF5A4A; font-size: 1rem; font-weight: 800; }
.keywords li { border-left: 2px solid #FF5A4A; padding-left: 10px; line-height: 1.1; }
.keywords li:first-child { border-left: none; padding-left: 0; }
.subtitle { font-size: 1.05rem; color: #333; font-weight: 800; margin: 0; }

/* =========================================================
   다국어 (한/영) 전환 토글 버튼 디자인 (신규)
========================================================= */
.lang-toggle {
    margin-left: auto; /* 우측 끝으로 밀어내기 */
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f4f6f9;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}
.lang-toggle a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: #999;
    transition: color 0.3s;
}
.lang-toggle a.active {
    color: #00204a; /* 활성화된 언어는 진한 남색 */
    font-weight: 900;
}
.lang-toggle a:hover {
    color: #DE4F38; /* 마우스 오버 시 다홍색 포인트 */
}
.lang-toggle span {
    color: #ddd;
    font-size: 0.8rem;
}

.main-nav { width: 100%; }
.main-nav ul { list-style: none; display: flex; width: 100%; gap: 8px; }
.main-nav li { flex: 1; display: flex; }
.main-nav a {
    width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; 
    text-decoration: none; color: #555; font-size: 0.85rem; font-weight: 800; padding: 7px 5px; 
    border: 1px solid #dcdcdc; border-bottom: none; border-radius: 15px 15px 0 0; background-color: #ffffff;
    transition: all 0.3s ease; white-space: nowrap; 
}
.main-nav a:hover { border-color: #00204a; color: #ffffff; background-color: #00204a; }
.menu-icon { width: 14px; height: 14px; margin-bottom: 0; }

.main-video { display: flex; justify-content: center; align-items: center; padding: 40px 20px; background-color: #ffffff; }
.main-video video { width: 100%; max-width: 1000px; }

/* 공통 상세 섹션 텍스트 구조 */
.biz-detail-section { background-color: #ffffff; padding-top: 80px; scroll-margin-top: 150px; }
.biz-main-title { font-size: 2.2rem; color: #00204a; font-weight: 800; margin-bottom: 20px; }
.biz-main-subtitle { font-size: 1.3rem; color: #333; font-weight: 700; line-height: 1.5; margin-bottom: 50px; }
.biz-bottom-banner { background-color: #00204a; color: #ffffff; text-align: center; padding: 50px 20px; font-size: 1.1rem; font-weight: 700; line-height: 1.6; margin-top: 20px; } 
.section-top-text { margin-bottom: 20px; } 
.dark-blue-title { font-size: 2.2rem; color: #00204a; font-weight: 800; margin-bottom: 10px; }
.section-top-text p { font-size: 1.2rem; color: #555; font-weight: 600; line-height: 1.5; }

/* =========================================================
   ABOUT GIANEST 상세 스타일 
========================================================= */
.about-section { scroll-margin-top: 150px; }
.bg-navy { background-color: #00204a; color: #ffffff; padding: 25px 0; text-align: center; }
.about-subtitle { font-size: 1.4rem; font-weight: 700; line-height: 1.4; margin-bottom: 15px; color: #f4f6f9; }
.about-desc { font-size: 1rem; line-height: 1.6; opacity: 0.9; margin-bottom: 0; }

/* OUR VISION 영역 */
.about-vision { padding: 50px 20px; } 
.vision-header { margin-bottom: 40px; } 
.vision-header h2 { font-size: 2.5rem; font-weight: 900; color: #00204a; margin-bottom: 15px; }
.text-orange { color: #DE4F38; }
.vision-header p { font-size: 1.2rem; color: #333; font-weight: 600; line-height: 1.5; }

.vision-keywords { display: flex; justify-content: space-around; text-align: center; margin-bottom: 20px; }
.vk-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.vk-title { 
    font-size: 2.2rem; color: #00204a; font-weight: 800; margin-bottom: 15px; 
    border-bottom: 4px solid #DE4F38; 
    padding-bottom: 5px;
    display: inline-block;
}
.vk-desc { font-size: 1.1rem; color: #333; font-weight: 600; line-height: 1.5; }

/* CURRENT PROJECTS 영역 */
.bg-light { background-color: #f8f9fc; }
.about-projects { padding-top: 40px; } 
.project-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; margin-bottom: 20px; }
.pg-item { text-align: center; }
.pg-item img { width: 100%; height: 220px; object-fit: contain; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.pg-item p { font-size: 1.15rem; color: #333; font-weight: 800; word-break: keep-all; margin-top: 10px; }

/* BUSINESS PROJECTS 영역 */
.about-business { padding-top: 30px; padding-bottom: 10px; background-color: #ffffff; } 
.business-icons-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 30px; align-items: center; justify-items: center; }
.business-icons-row img { width: 100%; max-width: 120px; height: 75px; object-fit: contain; }
.business-photos-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 10px; }
.bp-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bp-item img { width: 100%; height: 150px; object-fit: contain; border-radius: 8px; margin-bottom: 8px; }
.bp-item p { font-size: 1.15rem; color: #333; font-weight: 800; word-break: keep-all; margin-top: 5px; }


/* =========================================================
   01. AI HYBRID PRODUCTION 상세 스타일 
========================================================= */
.process-flow { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 80px; }
.process-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.process-icon { width: 100px; height: 100px; margin-bottom: 25px; display: flex; justify-content: center; align-items: center; }
.process-icon img { max-width: 100%; height: auto; object-fit: contain; }
.process-title { font-size: 1.15rem; color: #000000; font-weight: 800; margin-bottom: 15px; }
.process-desc { font-size: 0.95rem; color: #555; line-height: 1.6; font-weight: 500; }
.process-arrow { display: flex; align-items: center; justify-content: center; margin-top: 35px; padding: 0 10px; }

/* =========================================================
   02. IP BUSINESS MANAGEMENT 다이어그램 스타일 
========================================================= */
.ip-diagram-bg { background-color: #0A1C3F; padding: 80px 0; margin-top: 30px; width: 100%; }
.ip-diagram-container { position: relative; max-width: 900px; margin: 0 auto; }
.ip-diagram-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, auto); gap: 40px 20px; justify-items: center; align-items: center; position: relative; z-index: 2; }
.ip-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.ip-node { display: flex; align-items: center; justify-content: flex-start; padding: 12px 20px; border-radius: 50px; width: 100%; max-width: 250px; gap: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.ip-node.bg-pink { background-color: #FFE5E5; }
.ip-node.bg-white { background-color: #F4F6F9; }
.ip-node.bg-blue { background-color: #E8F0FE; }
.ip-node-icon { width: 28px; height: 28px; flex-shrink: 0; color: #0A1C3F; }
.ip-node-text { display: flex; flex-direction: column; text-align: left; }
.ip-node-text strong { font-size: 1rem; color: #0A1C3F; font-weight: 900; line-height: 1.1; margin-bottom: 2px; }
.ip-node-text span { font-size: 0.8rem; color: #333; font-weight: 700; }
.ip-center-circle { background-color: #ffffff; width: 180px; height: 180px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 5px 25px rgba(0,0,0,0.3); }
.ip-title { font-size: 2rem; color: #0A1C3F; font-weight: 900; letter-spacing: 5px; margin-left: 5px; }
.ip-subtitle { font-size: 1.1rem; color: #0A1C3F; font-weight: 800; letter-spacing: 2px; margin-top: 5px; }
.ip-underline { width: 45px; height: 3px; background-color: #DE4F38; margin-top: 8px; }

/* =========================================================
   03. GLOBAL BUSINESS 상세 스타일 
========================================================= */
.global-map-area { text-align: center; margin: 40px 0 60px 0; width: 100%; }
.map-bg-image { max-width: 100%; height: auto; object-fit: contain; }
.global-items-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 80px; }
.global-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.global-item img { width: 80px; height: 80px; margin-bottom: 18px; object-fit: contain; }
.global-item h4 { font-size: 1.15rem; color: #00204a; font-weight: 800; margin-bottom: 8px; }
.global-item p { font-size: 1.05rem; color: #555; line-height: 1.5; font-weight: 500; word-break: keep-all; }

/* =========================================================
   04. MERCHANDISING & OEM 상세 스타일 
========================================================= */
.merch-icons-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-bottom: 30px; }
.merch-icon-box { background-color: #f4f6f9; border-radius: 12px; padding: 30px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid #e9ecef; }
.merch-img-icon { width: 65px; height: 65px; margin-bottom: 15px; object-fit: contain; }
.merch-icon-box span { font-size: 1.1rem; font-weight: 800; color: #0A1C3F; word-break: keep-all; }
.merch-photos-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 80px; }
.merch-photo { width: 100%; height: auto; object-fit: contain; border-radius: 8px; background-color: transparent; }

/* =========================================================
   05. CHARACTER COMMERCE 상세 스타일
========================================================= */
.commerce-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 40px; }
.commerce-left { flex: 1.2; display: flex; flex-direction: column; }
.commerce-right { flex: 0.8; display: flex; justify-content: flex-end; }
.mockup-img { max-width: 100%; height: auto; object-fit: contain; }
.commerce-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.feature-box { display: flex; align-items: center; padding: 15px 20px; border: 1px solid #e9ecef; border-radius: 12px; background-color: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.02); gap: 15px; }
.feature-icon { width: 32px; height: 32px; flex-shrink: 0; }
.feature-text { display: flex; flex-direction: column; }
.feature-text strong { font-size: 1.05rem; color: #0A1C3F; font-weight: 900; line-height: 1.2; margin-bottom: 4px; }
.feature-text span { font-size: 0.85rem; color: #555; font-weight: 600; word-break: keep-all; }
.commerce-flow { display: flex; align-items: center; justify-content: space-between; background-color: #FCF4F4; padding: 15px 25px; border-radius: 50px; margin-top: 10px; }
.flow-item { font-weight: 900; color: #0A1C3F; font-size: 0.95rem; }
.flow-arrow { color: #DE4F38; font-weight: 900; font-size: 1.1rem; }

/* 5. 하단 영역 */
footer { background-color: #1a1a1a; color: #aaaaaa; text-align: center; padding: 50px 20px; font-size: 0.9rem; }
footer p { margin-bottom: 8px; }
footer strong { color: #ffffff; font-size: 1.1rem; }

/* 모바일 및 태블릿 화면 대응 */
@media (max-width: 1024px) {
    .main-nav a { font-size: 0.75rem; padding: 6px 2px; gap: 4px; }
    
    .vision-keywords { flex-direction: column; gap: 30px; }
    .project-gallery { grid-template-columns: repeat(3, 1fr); }
    .business-icons-row { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .business-photos-row { grid-template-columns: repeat(3, 1fr); }
    .global-items-row { grid-template-columns: repeat(3, 1fr); }
    .merch-icons-row { grid-template-columns: repeat(3, 1fr); }
    .merch-photos-row { grid-template-columns: repeat(2, 1fr); }

    .ip-diagram-grid { gap: 20px 10px; }
    .ip-node { max-width: 200px; padding: 10px 15px; }
    .ip-node-text strong { font-size: 0.85rem; }
    .ip-node-text span { font-size: 0.7rem; }
    .ip-center-circle { width: 140px; height: 140px; }
    .ip-title { font-size: 1.5rem; }
    .ip-subtitle { font-size: 0.9rem; }

    .global-item img { width: 65px; height: 65px; }
    .global-item h4 { font-size: 1rem; }
    .global-item p { font-size: 0.9rem; }
    
    .merch-img-icon { width: 55px; height: 55px; }
    
    .commerce-container { flex-direction: column; gap: 30px; }
    .commerce-left, .commerce-right { width: 100%; }
    .mockup-img { max-width: 60%; }
}

@media (max-width: 768px) {
    .hero { position: relative; padding-top: 20px; } 
    .logo-text-row { flex-direction: column; align-items: flex-start; margin-bottom: 15px; }
    .logo-wrapper { margin-right: 0; margin-left: 0; margin-bottom: 15px; }
    .tagline { margin-left: 0; } 
    .main-nav ul { overflow-x: auto; white-space: nowrap; padding-bottom: 5px; }
    .main-nav li { flex: 0 0 auto; }
    .main-nav a { padding: 5px 15px; }
    .floating-top-btn { right: 15px; bottom: 15px; width: 40px; height: 40px; } 
    
    /* 모바일 환경 다국어 버튼 위치 조정 */
    .lang-toggle { position: absolute; top: 20px; right: 20px; margin-left: 0; }
    
    .bg-navy { padding: 20px 15px; }
    .about-subtitle { font-size: 1.1rem; margin-bottom: 10px; }
    .about-desc { font-size: 0.95rem; }
    
    .about-vision { padding: 30px 20px; }

    .project-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .business-icons-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .business-photos-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .global-items-row { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .merch-icons-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .merch-photos-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .merch-icon-box { padding: 20px 5px; }
    
    .pg-item img { height: auto; } 
    .pg-item p, .bp-item p { font-size: 1.05rem; } 
    
    .biz-detail-section { padding-top: 40px; scroll-margin-top: 20px; }
    .biz-main-title { font-size: 1.8rem; text-align: center; }
    .biz-main-subtitle { font-size: 1.1rem; text-align: center; margin-bottom: 40px; }
    
    .process-flow { flex-direction: column; align-items: center; gap: 20px; }
    .process-arrow { margin-top: 0; transform: rotate(90deg); }

    .ip-diagram-bg { padding: 40px 0; }
    .ip-diagram-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 15px; }
    .ip-lines { display: none; }
    .ip-center-circle { grid-row: 1; margin-bottom: 20px; }
    .ip-node { max-width: 100%; justify-content: center; } 
    .ip-node-text { align-items: center; text-align: center; }

    .commerce-features { grid-template-columns: 1fr; }
    .mockup-img { max-width: 90%; }
    .commerce-flow { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 15px; }
}