/* 기본 초기화 */
* { margin:0; padding:0; box-sizing:border-box; }
html, body { width:100%; overflow-x:hidden; font-family:'Malgun Gothic', 'Noto Sans KR', sans-serif; color:#333; font-size:14px; background-color:#ffffff; }
ul, li { list-style:none; }
a { text-decoration:none; color:inherit; }

/* 💡 공통 레이아웃 (PC 최대 1200px 제한) */
.inner { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-sizing: border-box; 
    padding: 0 15px; 
}

/* 이미지 반응형 기본 설정 */
#wrap img, .inner img, img {
    max-width: 100%;
    height: auto;
}

/* 최상단 유틸리티 메뉴 */
.top-util-menu {
    width: 100%;
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 13px;
}

/* 헤더 */
#header { width:100%; border-bottom:1px solid #ddd; padding:20px 0; background:#fff; }
.logo a { font-size:24px; font-weight:bold; color:#e04f4f; display:inline-block; }
.gnb ul { display:flex; list-style:none; }
.gnb ul li { margin-left:50px; text-align:center; }
.gnb ul li a { font-weight:bold; font-size:15px; display:block; }

/* PC 메인 배너 슬라이더 (450px 규격 고정) */
#main-slider { width:100%; max-width:1200px; height:450px; margin:0 auto; position:relative; overflow:hidden; background:#ffffff; }
.slider-wrapper { width:100%; height:100%; position:relative; }
.slide { width:100%; height:100%; position:absolute; top:0; left:0; opacity:0; transition:opacity 0.8s ease-in-out; display:flex; align-items:center; justify-content:center; }
.slide.active { opacity:1; z-index:1; }

.slide-content { text-align:center; width:100%; height:100%; }
.slide-content a { display:block; width:100%; height:100%; }
.slide-content img { width:100%; height:450px; object-fit:cover; display:block; }

.slider-dots { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); z-index:10; }
.slider-dots .dot { display:inline-block; width:12px; height:12px; background:rgba(255,255,255,0.5); border-radius:50%; margin:0 5px; cursor:pointer; }
.slider-dots .dot.active { background:#eb5f47; width:30px; border-radius:10px; transition: all 0.3s; }

/* 아이콘 메뉴 영역 (PC 기본) */
.category-section { width:100%; max-width:1200px; margin: 20px auto; }
.category-section .icon-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 20px 0;
    padding: 0;
    gap: 25px;
}
.category-section .icon-list li { display: inline-block; }
.category-section .icon-list li img { display: block; max-width: 100%; height: auto; }

/* PC 모드: 모바일 전용 아이콘 숨김 */
.mobile-icon { display: none !important; }
.pc-icon { display: block; }

/* 메인 콘텐츠 (4대 샘플) */
#main-content { padding: 10px 0; text-align: center; }
#main-content .inner { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
#main-content .inner a { width: calc(25% - 12px); display: block; text-decoration: none; }
#main-content .inner img { 
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-sizing: border-box;
    display: block;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
}

/* 하단 3단 섹션 */
#info-section { padding: 40px 0; border-top: 1px solid #ddd; background: #fafafa; border-bottom: 3px solid #ef8560; }
#info-section .inner { align-items: flex-start; gap: 20px; }
.info-box { width: 31%; background: #fff; border: 1px solid #e1e1e1; padding: 20px; min-height: 290px; box-sizing: border-box; }

/* 시안확인 게시판 */
.proof-main-list { list-style: none; margin: 0; padding: 5px 0; display: flex; flex-direction: column; gap: 2px; }
.proof-main-list li { width: 100%; border-bottom: 1px dotted #e1e1e1; padding: 5px 2px; box-sizing: border-box; }
.proof-main-item { display: flex; align-items: center; justify-content: space-between; width: 100%; text-decoration: none; color: #333; cursor: pointer; }
.proof-main-list .p-date { color: #eb5f47; font-weight: bold; font-size: 11pt; width: 65px; flex-shrink: 0; }
.proof-main-list .p-memo { flex: 1; text-align: center !important; padding: 0 10px; font-size: 11pt; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #222; }
.proof-main-list .p-name { color: #555; font-size: 11pt; width: 65px; text-align: center !important; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 🔒 비밀번호 입력 레이어 모달 */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 99999; 
    justify-content: center; 
    align-items: center; 
}
.modal-box { background: #fff; padding: 30px; border-radius: 10px; width: 90%; max-width: 380px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); text-align: center; }
.modal-box h3 { font-size: 18px; margin-top: 0; color: #111; margin-bottom: 15px; }
.modal-box input[type="password"] { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; box-sizing: border-box; margin-bottom: 8px; }
.pw-guide-text { color: #eb5f47; font-size: 13px; font-weight: bold; margin-bottom: 20px; text-align: left; }
.modal-btn-group { display: flex; gap: 10px; }
.btn-modal-submit { flex: 1; background: #eb5f47; color: #fff; border: none; padding: 12px; border-radius: 6px; font-weight: bold; cursor: pointer; }
.btn-modal-close { flex: 1; background: #6c757d; color: #fff; border: none; padding: 12px; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* 📱 📱 📱 모바일 스마트폰 전용 반응형 레이아웃 (768px 이하) */
@media screen and (max-width: 768px) {
    html, body { width: 100% !important; min-width: 100% !important; overflow-x: hidden !important; }
    #wrap, .inner, #header, #main-slider, #main-content, #info-section { 
        width: 100% !important; 
        min-width: 0 !important; 
        max-width: 100% !important; 
        box-sizing: border-box !important; 
    }

    /* 1. 헤더 모바일 정렬 */
    #header { padding: 10px 0 !important; }
    #header .inner { flex-direction: column !important; justify-content: center !important; text-align: center !important; }
    #header .logo { margin-bottom: 10px !important; }
    #header .logo img { max-width: 150px !important; height: auto !important; }

    #header .gnb { width: 100% !important; }
    #header .gnb ul { display: grid !important; grid-template-columns: repeat(6, 1fr) !important; gap: 2px !important; padding: 0 !important; margin: 0 !important; }
    #header .gnb ul li { margin-left: 0 !important; }
    #header .gnb ul li img { max-width: 40px !important; height: auto !important; }

    /* 2. 모바일 메인 배너 슬라이더 */
    #main-slider { height: 180px !important; }
    .slide-content img { height: 180px !important; object-fit: cover !important; }

    /* 3. 💡 모바일 커스텀 지정 색상 (배경 M80% Y50% / 선 M60% Y50% 1pt) 5x2 격자 레이아웃 */
    .category-section {
        background-color: #e64d6c !important; /* M80%, Y50% 배경색 */
        padding: 0 !important;
        margin: 10px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .category-section .icon-list {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important; /* 가로 5개 균등 배치 */
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
        border-top: 1pt solid #ea736d !important; /* M60%, Y50% 1pt 상단선 */
    }

    .category-section .icon-list li {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 2px !important;
        box-sizing: border-box !important;
        border-right: 1pt solid #ea736d !important; /* M60%, Y50% 1pt 우측선 */
        border-bottom: 1pt solid #ea736d !important; /* M60%, Y50% 1pt 하단선 */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* 5번째마다 우측 선 제거 */
    .category-section .icon-list li:nth-child(5n) {
        border-right: none !important;
    }

    /* 11번째 아이콘 모바일 숨김 (10개 깔끔한 5x2 정렬) */
    .category-section .icon-list li:nth-child(11) {
        display: none !important;
    }

    .category-section .icon-list li a {
        display: block !important;
        width: 100% !important;
    }

    /* 모바일 아이콘 전환 제어 */
    .pc-icon { display: none !important; }
    .mobile-icon { display: block !important; max-width: 45px !important; width: 100% !important; height: auto !important; margin: 0 auto !important; }

    /* 4. 모바일 샘플 4개 2열 정렬 */
    #main-content .inner { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; padding: 0 10px !important; }
    #main-content .inner a { width: calc(50% - 5px) !important; }
    #main-content .inner img { 
        width: 100% !important; 
        height: 150px !important; 
        object-fit: cover !important; 
        border-radius: 12px !important; 
    }

    /* 5. 하단 3단 세로 1열 정렬 */
    #info-section { padding: 20px 10px !important; }
    #info-section .inner { flex-direction: column !important; gap: 15px !important; }
    .info-box { width: 100% !important; min-height: auto !important; }
}

/* ==========================================================================
   🏢 거래처 / 파트너사 무한 롤링 로고 슬라이더 (1200px 고정, 200x60px 무한 루프)
   ========================================================================== */
#partner-section {
    width: 100% !important;
    padding: 30px 0 !important;
    background: #ffffff !important;
    border: none !important;
    /*margin: 30px 0 !important;*/
    overflow: hidden !important;
}

/* 1200px 내부 롤링 컨테이너 */
.logo-marquee-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    position: relative !important;
    white-space: nowrap !important;
}

/* 좌우 자연스러운 페이드 효과 */
.logo-marquee-container::before,
.logo-marquee-container::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    width: 40px !important;
    height: 100% !important;
    z-index: 2 !important;
    pointer-events: none !important;
}
.logo-marquee-container::before {
    left: 0 !important;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)) !important;
}
.logo-marquee-container::after {
    right: 0 !important;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)) !important;
}

/* 3세트 연속 무한 흐름 트랙 */
.logo-marquee-track {
    display: inline-flex !important;
    align-items: center !important;
    animation: marquee 20s linear infinite !important;
    will-change: transform;
}

/* 마우스 올렸을 때 정지 */
.logo-marquee-container:hover .logo-marquee-track {
    animation-play-state: paused !important;
}

/* 개별 로고 스타일 (200x60px 원본 유지) */
.logo-item {
    padding: 0 25px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.logo-item img {
    width: 150px !important;
    height: 50px !important;
    object-fit: contain !important;
    display: block !important;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.3s ease !important;
}

.logo-item img:hover {
    transform: scale(1.06) !important;
}

/* 3세트 중 1세트(33.333%) 이동 시 지체 없이 무한 연결되는 키프레임 */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-33.3333%);
    }
}