﻿@charset "utf-8";

/**************************************************************/
/* 공통 */
/**************************************************************/
html {
    font-family: 'Nanum Gothic', 'Malgun Gothic', Dotum, Gulim;
    height: 100%;
}

body {
    overscroll-behavior: none;
    width: 100%;
    height: 100%;
}

a, a:active, a:visited, a:hover {
    color: inherit;
    text-decoration: none;
}

    a.download, a.download:active, a.download:visited, a.download:hover {
        color: blue;
    }

div.clear {
    clear: both;
    float: none;
}

td {
    vertical-align: middle;
}

.center {
    align-items: center;
    display: flex;
    justify-content: center;
}


/*요소가 밑에서 위로 천천히 나타나는 효과*/
@keyframes fadeIn {
    from {
        opacity: 0; /* 완전 투명 */
        transform: translateY(10px); /* 아래로 10px 내려가 있음 */
    }

    to {
        opacity: 1; /* 불투명하게 */
        transform: translateY(0); /* 제자리로 이동 */
    }
}

/* 공통 레이아웃 스타일 (인사말, 위치 등) */
.section-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #f9fbfc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    .section-box h2 {
        text-align: center;
        font-size: 28px;
        margin-bottom: 40px;
        color: #00498c;
        position: relative;
    }

        .section-box h2::after {
            content: "";
            width: 60px;
            height: 4px;
            background-color: #00498c;
            display: block;
            margin: 12px auto 0;
            border-radius: 2px;
        }


/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 헤더 전체 - 기본 투명 */
.header_wrap {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    /* 스크롤되었을 때 배경 추가 */
    .header_wrap.scrolled {
        background-color: #00498c;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

/* 모바일에서는 항상 배경색 */
@media (max-width: 768px) {
    .header_wrap {
        background-color: #00498c;
        position: fixed;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
}

/* 로고 */
.header h1 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    font-family: 'Nanum Gothic', sans-serif;
}

/* 메뉴 */
#main-nav {
    display: flex;
    align-items: center;
}
    /* 메뉴 링크 */
    #main-nav a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-family: 'Nanum Gothic', sans-serif;
        padding: 10px 15px;
        border-radius: 0;
        transition: all 0.3s ease;
        border-bottom: 2px solid transparent;
    }

        #main-nav a:hover {
            font-weight: bold;
            border-bottom: 2px solid white;
            background-color: transparent; /* 기존 배경 제거 */
            color: white; /* 색 고정 */
        }

        #main-nav a.selected {
            font-weight: bold;
            border-bottom: 2px solid white;
        }

/* 햄버거 버튼 */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #00498c;
        padding: 10px 0;
    }

        #main-nav.show {
            display: flex;
        }

        #main-nav a {
            padding: 12px 20px;
            width: 100%;
            text-align: left;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            font-weight: normal;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
        }

            #main-nav a:hover {
                font-weight: bold;
                border-bottom: 2px solid white;
                background-color: transparent;
                color: white;
            }

            #main-nav a.selected {
                font-weight: bold;
                border-bottom: 2px solid white;
            }
}

/* 상단 제품소개 가로 배너 이미지와 텍스트 */
.header-banner {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 60px;
}

    .header-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        filter: brightness(0.6); /* 어둡게 해서 텍스트 대비 확보 */
    }

    .header-banner .banner-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-align: center;
        font-family: 'Nanum Gothic', sans-serif;
        padding: 0 20px;
        max-width: 600px;
    }

        .header-banner .banner-text h2 {
            font-size: 32px;
            margin-bottom: 12px;
        }

        .header-banner .banner-text p {
            font-size: 16px;
            line-height: 1.6;
            opacity: 0.95;
        }

@media (max-width: 768px) {
    /* 반응형일 때 텍스트 처리 */
    .header-banner {
        height: 160px;
    }

        .header-banner .banner-text h2 {
            font-size: clamp(20px, 4vw, 32px);
        }

        .header-banner .banner-text p {
            font-size: clamp(13px, 2vw, 16px);
            display: none; /* or 줄 수 제한: line-clamp 사용 */
        }
}


/* 이하 index */
.mainCenter {
    margin: 0 auto;
    max-width: 1200px;
    overflow: hidden;
    padding: 0 10px;
}

.mainCenter nav {
    border: 1px solid #cfdae5;
    padding: 5px;
    text-align: center;
}

    .mainCenter nav a {
        display: inline-block;
        padding: 5px 10px;
    }

        .mainCenter nav a:hover {
            color: #00498c;
            font-weight: bold;
        }

    .mainCenter nav > .selected {
        color: #00498c;
        font-weight: bold;
    }

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

    .products > a {
        display: block;
        flex: 1 1 0;
        min-width: 240px;
        max-width: 500px;
    }

        .products > a:hover {
            color: #00498c;
            font-weight: bold;
        }

    .products .image {
        border: 1px solid #cfdae5;
        display: flex;
        overflow: hidden;
        height: 240px;
    }

        .products .image img {
            object-fit: contain;
            width: 100%;
            height: 100%;
        }

    .products .title {
        text-align: center;
    }

.currentProduct {
    overflow: hidden;
    margin-top: 50px;
}

    .currentProduct .title {
        background-color: #00498c;
        color: white;
        line-height: 2em;
        margin: 0 auto;
        max-width: calc(1200px - 20px);
        padding: 10px 10px;
    }

    .currentProduct img {
        object-fit: contain;
        width: 100%;
    }

    .currentProduct .subTitle {
        color: #00498c;
    }

    .currentProduct table {
        margin-top: 10px;
        width: 100%;
    }

        .currentProduct table tr {
            border-bottom: 1px solid #cfdae5;
        }

            .currentProduct table tr:last-child {
                border-bottom: none;
            }

    .currentProduct td {
        padding: 5px;
        vertical-align: top;
    }

.supportTable {
    margin: 0 auto;
}

    .supportTable td {
        padding: 5px;
    }

footer {
    background-color: #00498c;
    bottom: 0;
    color: white;
    line-height: 1.6em;
    padding: 10px;
    /*position: fixed;*/
    text-align: center;
    width: calc(100% - 20px);
}

    footer div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 20px;
    }

        footer div p {
            display: inline-block;
            white-space: nowrap;
        }
