@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { max-width: 100%; height: auto; }

/* ========== COMMON ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .en { font-size: 16px; color: #007894; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.section-title h2 { font-size: 36px; font-weight: 700; color: #222; }
.btn-primary-custom { display: inline-block; padding: 12px 32px; background: #007894; color: #fff; border-radius: 4px; font-size: 15px; font-weight: 500; transition: background 0.3s; }
.btn-primary-custom:hover { background: #005f75; }

/* ========== HEADER ========== */
.header-wrap {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: transparent; transition: all 0.3s;
}
.header-wrap.scrolled { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-wrap.scrolled .header .logo a { color: #222; }
.header-wrap.scrolled .gnb > li > a { color: #333; }
.header { display: flex; align-items: center; justify-content: space-between; height: 80px; max-width: 1400px; margin: 0 auto; padding: 0 30px; }
.header-wrap.scrolled .header { height: 60px; }
.header .logo a { font-size: 22px; font-weight: 700; color: #fff; white-space: nowrap; }
.gnb { display: flex; gap: 0; }
.gnb > li { position: relative; }
.gnb > li > a { display: block; padding: 0 24px; line-height: 80px; font-size: 15px; font-weight: 500; color: #fff; transition: color 0.3s; }
.header-wrap.scrolled .gnb > li > a { line-height: 60px; }
.gnb > li:hover > a { color: #007894; }
.gnb > li .depth2 { position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 0 0 4px 4px; display: none; }
.gnb > li:hover .depth2 { display: block; }
.gnb > li .depth2 li a { display: block; padding: 10px 20px; font-size: 14px; color: #555; transition: all 0.2s; }
.gnb > li .depth2 li a:hover { color: #007894; background: #f5f9fa; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }
.header-wrap.scrolled .mobile-toggle span { background: #333; }

/* ========== SUB PAGE HEADER ========== */
.sub-header { background: #007894; color: #fff; }
.sub-header.has-bg { position: relative; background-size: cover; background-position: center; min-height: 300px; display: flex; align-items: center; }
.sub-header.has-bg::before { content:''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.sub-header .container { position: relative; z-index: 1; }
.sub-visual { padding: 140px 0 60px; text-align: center; }
.sub-visual h2 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.sub-visual p { font-size: 16px; opacity: 0.9; }
.sub-nav { background: #f8f8f8; border-bottom: 1px solid #e0e0e0; }
.sub-nav ul { display: flex; justify-content: center; gap: 0; }
.sub-nav ul li a { display: block; padding: 16px 28px; font-size: 14px; color: #666; font-weight: 500; border-bottom: 2px solid transparent; transition: all 0.3s; }
.sub-nav ul li a:hover, .sub-nav ul li a.active { color: #007894; border-bottom-color: #007894; }

/* ========== HERO SLIDER ========== */
.hero-slider { position: relative; height: 100vh; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-slide::before { content:''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.hero-slide .content { position: relative; z-index: 1; color: #fff; max-width: 1200px; margin: 0 auto; padding: 0 30px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.hero-slide h1 { font-size: 48px; font-weight: 700; margin-bottom: 16px; }
.hero-slide p { font-size: 20px; font-weight: 300; }
.hero-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.hero-dots span.active { background: #fff; }

/* ========== MAIN SECTIONS ========== */
/* Section 1 - About */
.main-about { background: #f9fafb; }
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.about-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.about-card img { width: 100%; height: 200px; object-fit: cover; }
.about-card .card-body { padding: 24px; }
.about-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.about-card p { font-size: 14px; color: #666; line-height: 1.7; }
.about-card .card-link { display: block; text-align: center; padding: 14px; border-top: 1px solid #eee; color: #007894; font-size: 14px; font-weight: 500; }

/* Section 2 - Business */
.main-business { background: #fff; }
.business-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.business-card { position: relative; border-radius: 8px; overflow: hidden; min-height: 280px; background-size: cover; background-position: center; }
.business-card::before { content:''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); transition: background 0.3s; }
.business-card:hover::before { background: rgba(0,120,148,0.7); }
.business-card .card-body { position: relative; z-index: 1; color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.business-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.business-card p { font-size: 14px; opacity: 0.9; }

/* Section 3 - Value */
.main-value { background: #f9fafb; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.value-card-large { border-radius: 8px; overflow: hidden; position: relative; min-height: 400px; background-size: cover; background-position: center; }
.value-card-large::before { content:''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.value-card-large .card-body { position: relative; z-index: 1; color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.value-card-large h3 { font-size: 24px; margin-bottom: 12px; }
.value-card-large p { font-size: 14px; opacity: 0.9; line-height: 1.7; }
.value-right { display: flex; flex-direction: column; gap: 24px; }
.value-card-small { background: #fff; border-radius: 8px; padding: 30px; flex: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.3s; }
.value-card-small:hover { transform: translateY(-2px); }
.value-card-small h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: #222; }
.value-card-small p { font-size: 14px; color: #666; line-height: 1.7; }

/* ========== SUB PAGE CONTENT ========== */
.content-section { padding: 80px 0; }
.content-section:nth-child(even) { background: #f9fafb; }
.content-block { margin-bottom: 60px; }
.content-block:last-child { margin-bottom: 0; }
.content-block h3 { font-size: 24px; font-weight: 600; color: #222; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #007894; display: inline-block; }
.content-block p { font-size: 15px; color: #555; line-height: 1.8; }
.ceo-name { font-size: 18px; font-weight: 600; color: #007894; margin-top: 20px; text-align: right; }

/* Table */
.table-custom { width: 100%; border-collapse: collapse; margin-top: 20px; }
.table-custom th, .table-custom td { padding: 12px 16px; border: 1px solid #e0e0e0; font-size: 14px; text-align: center; }
.table-custom th { background: #007894; color: #fff; font-weight: 500; }
.table-custom td { color: #555; }
.table-custom tr:nth-child(even) { background: #f9fafb; }
.table-custom td:first-child { font-weight: 500; color: #333; }

/* Info Table (회사 정보) */
.info-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.info-table th, .info-table td { padding: 14px 20px; border-bottom: 1px solid #e0e0e0; font-size: 14px; text-align: left; }
.info-table th { width: 120px; background: #f5f5f5; color: #333; font-weight: 600; }
.info-table td { color: #555; }

/* Cards Grid */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: transform 0.3s; text-align: center; }
.card-item:hover { transform: translateY(-4px); }
.card-item img { width: 100%; height: 200px; object-fit: cover; }
.card-item .card-body { padding: 20px; }
.card-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #222; }
.card-item p { font-size: 13px; color: #666; }

/* Icon Cards */
.icon-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.icon-card { text-align: center; padding: 40px 20px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.icon-card .icon { font-size: 40px; color: #007894; margin-bottom: 16px; }
.icon-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.icon-card p { font-size: 13px; color: #666; }

/* Vision Cards */
.vision-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.vision-card { background: #007894; color: #fff; border-radius: 8px; padding: 30px 20px; text-align: center; }
.vision-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.vision-card p { font-size: 13px; opacity: 0.9; line-height: 1.6; }

/* Management Cards */
.mgmt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.mgmt-card { background: #fff; border-left: 4px solid #007894; padding: 24px; border-radius: 0 8px 8px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.mgmt-card h4 { font-size: 16px; font-weight: 600; color: #007894; margin-bottom: 8px; }
.mgmt-card p { font-size: 13px; color: #666; line-height: 1.6; }

/* Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content:''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: #007894; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before { content:''; position: absolute; left: -33px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #007894; border: 3px solid #fff; box-shadow: 0 0 0 2px #007894; }
.timeline-item .year { font-size: 24px; font-weight: 700; color: #007894; margin-bottom: 8px; }
.timeline-item ul { padding-left: 20px; }
.timeline-item ul li { font-size: 14px; color: #555; margin-bottom: 6px; position: relative; padding-left: 12px; }
.timeline-item ul li::before { content:''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #999; }

/* Image Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery-item { border-radius: 8px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; padding: 16px; font-size: 15px; font-weight: 500; }

/* Contact Form */
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #333; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 14px; font-family: inherit; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #007894; }
.form-group textarea { height: 150px; resize: vertical; }

/* Map */
.map-wrap { border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
.map-wrap iframe { width: 100%; height: 400px; border: 0; }

/* ========== FOOTER ========== */
.footer { background: #222; color: #aaa; padding: 40px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer .logo { font-size: 18px; font-weight: 700; color: #fff; }
.footer-info p { font-size: 13px; line-height: 1.8; }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 20px; border-top: 1px solid #333; font-size: 12px; }
.family-site { position: relative; }
.family-site select { padding: 8px 12px; background: #333; color: #aaa; border: 1px solid #444; border-radius: 4px; font-size: 13px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .about-grid, .business-grid, .icon-cards { grid-template-columns: repeat(2, 1fr); }
    .cards-4, .cards-5 { grid-template-columns: repeat(2, 1fr); }
    .vision-cards { grid-template-columns: repeat(2, 1fr); }
    .hero-slide h1 { font-size: 36px; }
}
@media (max-width: 768px) {
    .gnb { display: none; }
    .mobile-toggle { display: block; }
    .about-grid, .business-grid, .value-grid, .gallery-grid { grid-template-columns: 1fr; }
    .cards-3, .cards-4, .cards-5, .icon-cards, .vision-cards, .mgmt-cards { grid-template-columns: 1fr; }
    .hero-slide h1 { font-size: 28px; }
    .hero-slide p { font-size: 16px; }
    .section-title h2 { font-size: 26px; }
    .sub-visual h2 { font-size: 28px; }
    .header { padding: 0 16px; }
    .sub-nav ul { flex-wrap: wrap; }
    .sub-nav ul li a { padding: 12px 16px; font-size: 13px; }
    .info-table th { width: 80px; }
    .info-table, .table-custom { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .content-block h3 { font-size: 20px; }
    .content-block p { font-size: 14px; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .gallery-item img { height: 200px; }
    .value-card-large { min-height: 280px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .hero-slide h1 { font-size: 22px; }
    .section-padding { padding: 60px 0; }
    .sub-visual { padding: 100px 0 40px; }
    .sub-visual h2 { font-size: 22px; }
    .mgmt-cards { grid-template-columns: 1fr; }
    .vision-cards { grid-template-columns: 1fr; }
    .archive-item { flex-wrap: wrap; }
}

/* Mobile Nav */
.mobile-nav { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: #fff; z-index: 2000; transition: right 0.3s; overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,0.1); }
.mobile-nav.open { right: 0; }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav .close-btn { display: block; text-align: right; padding: 16px; font-size: 24px; cursor: pointer; }
.mobile-nav ul { padding: 0 20px; }
.mobile-nav > ul > li { border-bottom: 1px solid #eee; }
.mobile-nav > ul > li > a { display: block; padding: 14px 0; font-size: 15px; font-weight: 600; color: #333; }
.mobile-nav .mobile-depth2 { padding-left: 16px; display: none; }
.mobile-nav .mobile-depth2.open { display: block; }
.mobile-nav .mobile-depth2 li a { display: block; padding: 10px 0; font-size: 14px; color: #666; }

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ========== HERO TEXT ANIMATION ========== */
.hero-slide .content h1,
.hero-slide .content p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}
.hero-slide .content p { transition-delay: 0.5s; }
.hero-slide.active .content h1,
.hero-slide.active .content p {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #007894;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,120,148,0.3);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: #005f75;
}

/* ========== ARCHIVE PAGE ========== */
.archive-search { display: flex; gap: 8px; margin-bottom: 30px; justify-content: flex-end; }
.archive-search input {
    padding: 10px 16px; border: 1px solid #ddd; border-radius: 4px;
    font-size: 14px; font-family: inherit; width: 250px; transition: border-color 0.3s;
}
.archive-search input:focus { outline: none; border-color: #007894; }
.archive-search button {
    padding: 10px 20px; background: #007894; color: #fff; border: none;
    border-radius: 4px; font-size: 14px; cursor: pointer; transition: background 0.3s;
}
.archive-search button:hover { background: #005f75; }

.archive-list { border-top: 2px solid #222; }
.archive-item {
    display: flex; align-items: center; padding: 18px 16px;
    border-bottom: 1px solid #e0e0e0; transition: background 0.2s; gap: 16px;
}
.archive-item:hover { background: #f9fafb; }
.archive-item .num { width: 50px; text-align: center; font-size: 14px; color: #999; flex-shrink: 0; }
.archive-item .title { flex: 1; font-size: 15px; color: #333; font-weight: 500; }
.archive-item .title a { transition: color 0.2s; }
.archive-item .title a:hover { color: #007894; }
.archive-item .date { width: 100px; text-align: center; font-size: 13px; color: #999; flex-shrink: 0; }
.archive-item .download {
    width: 80px; text-align: center; flex-shrink: 0;
}
.archive-item .download a {
    display: inline-block; padding: 6px 14px; background: #f0f0f0; color: #555;
    border-radius: 4px; font-size: 12px; transition: all 0.2s;
}
.archive-item .download a:hover { background: #007894; color: #fff; }
.archive-header {
    display: flex; align-items: center; padding: 14px 16px;
    background: #f5f5f5; border-bottom: 1px solid #e0e0e0; font-size: 13px; font-weight: 600; color: #555; gap: 16px;
}
.archive-header .num { width: 50px; text-align: center; flex-shrink: 0; }
.archive-header .title { flex: 1; }
.archive-header .date { width: 100px; text-align: center; flex-shrink: 0; }
.archive-header .download { width: 80px; text-align: center; flex-shrink: 0; }
.archive-empty { text-align: center; padding: 60px 20px; color: #999; font-size: 15px; }

/* ========== CONTACT INFO CARDS ========== */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.contact-info-card {
    text-align: center; padding: 30px 20px; background: #f9fafb;
    border-radius: 8px; border: 1px solid #e0e0e0;
}
.contact-info-card .icon { font-size: 28px; color: #007894; margin-bottom: 12px; }
.contact-info-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #222; }
.contact-info-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* ========== FORM SUCCESS ========== */
.form-success {
    display: none; text-align: center; padding: 60px 20px;
}
.form-success .icon { font-size: 48px; color: #007894; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; color: #222; }
.form-success p { font-size: 15px; color: #666; }

@media (max-width: 768px) {
    .contact-info-grid { grid-template-columns: 1fr; }
    .archive-item .num, .archive-header .num { display: none; }
    .archive-item .date, .archive-header .date { width: 80px; }
    .archive-search { flex-direction: column; }
    .archive-search input { width: 100%; }
}
