@charset "utf-8";

/* ==========================================
   PRODUCTS PAGE STYLE
   (용도: 제품 안내(products.html) 전용 디자인)
   ========================================== */

/* --- 서브 비주얼 --- */
.sub-visual {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/products/product_bg.webp');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    margin-top: -80px; padding-top: 120px; height: 340px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: var(--white); position: relative;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);     
    }
    to {
        opacity: 1;
        transform: translateY(0);        
    }
}

.sub-visual h1 {
    font-size: 3rem;
    margin-bottom: 10px;    
    text-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.9),   /* 글자 윤곽을 진하게 */
        0 5px 30px rgba(0, 0, 0, 0.8);  /* 배경과 분리되는 깊은 그림자 */
    opacity: 0;
    animation: fadeInDown 0.5s ease-out forwards;    
}

.sub-visual p {
    font-size: 1.2rem;   
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9), 
        0 4px 15px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeInDown 0.5s ease-out forwards;
    animation-delay: 0.15s;    
}


/* --- 메인 컨테이너 (공통 배경 이미지 및 공통 스타일) --- */
.product-container {
    position: relative;
    overflow: hidden; 
}

/* [추가] product-container에 붙은 section-padding으로 생기는 상단 공백 제거 */
.product-container.section-padding {
    padding-top: 0;
    padding-bottom: 0;
}

/* --- 제품 상세 섹션 공통 --- */
.product-content { display: none; }

/* --- [추가] 섹션별 배경 (about 방식) --- */
#product_main {
    padding: 80px 0;
    position: relative;
    background: #fcfcfc url('../img/products/bg_products.webp') center top / cover no-repeat fixed;   
} 

#product1 {
    padding: 80px 0;
    position: relative;
    background: #fcfcfc url('../img/products/bm_atm.webp') center center / cover no-repeat fixed;
} 

#product2 {
    padding: 80px 0;
    position: relative;
    background: #fcfcfc url('../img/products/bm_kiosk.jpg') center center / cover no-repeat fixed;
} 

#product3 {
    padding: 80px 0;
    position: relative;
    background: #fcfcfc url('../img/products/bm_pos.webp') center center / cover no-repeat fixed;
} 

#product4 {
    padding: 80px 0;
    position: relative;
    background: #fcfcfc url('../img/products/bm_fa.webp') center center / cover no-repeat fixed;
} 
#product5 {
    padding: 80px 0;
    position: relative;
    background: #fcfcfc url('../img/products/bm_cctv.jpg') center center / cover no-repeat fixed;
}
#product6 {
    padding: 80px 0;
    position: relative;
    background: #fcfcfc url('../img/products/bm_re.jpg') center -150px / cover no-repeat fixed;
}

/* 오버레이(about의 ::before와 동일 역할) */
#product_main::before, 
#product1::before, 
#product2::before, 
#product3::before,
#product4::before, 
#product5::before, 
#product6::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.90);
    z-index: 1;
}

/* 컨텐츠를 오버레이 위로 */
#product_main > *, 
#product1 > .container, 
#product2 > .container, 
#product3 > .container,
#product4 > .container, 
#product5 > .container, 
#product6 > .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    #product_main, #product1, #product2, #product3, #product4, #product5, #product6 {background-attachment: scroll;}
}

.product-content.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header { 
    text-align: left; margin-bottom: 50px; 
    border-bottom: 2px solid var(--primary-color); padding-bottom: 20px; 
}
.section-header h2 { font-size: 3rem; color: var(--primary-dark); margin-bottom: 10px; }
.section-header p { font-size: 1.5rem; font-weight: 700; color: #000000; margin-bottom: 10px}

/* [레이아웃] 이미지/텍스트 그리드 */
.product-detail-grid {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; 
}
.product-content.reverse .product-detail-grid { flex-direction: row-reverse; }

/* 이미지 영역 */
.product-img { flex: 0 0 auto; width: auto; }
.product-img img {
    height: 600px; /* 높이 고정 */
    width: auto;   /* 너비 자동 (원본 비율 유지) */
    max-width: 100%; object-fit: contain;
    border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.img-placeholder {
    height: 600px; width: auto; min-width: 400px;
    background-color: #f4f4f4; display: flex; align-items: center; justify-content: center;
    color: #bbb; font-size: 1.2rem; font-weight: 700; border-radius: var(--border-radius);
}

/* 텍스트 영역 */
.product-desc { flex: 1; min-width: 300px; }
.product-desc h3 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 25px; line-height: 1.4; }
.product-desc .summary { font-size: 1.1rem; color: #555; margin-bottom: 40px; line-height: 1.8; }

@media (max-width: 1200px) { 
    .product-detail-grid { flex-direction: column; gap: 30px; }
    .product-content.reverse .product-detail-grid { flex-direction: column; }
    .product-img img, .img-placeholder { height: auto; width: 100%; }
    .product-img, .product-desc { width: 100%; flex: none; }
}


/* ==========================================
   [Product 1: BMGuard Landing] 전용 디자인
   ========================================== */

/* 전체 래퍼 */
.prod-landing-wrap { padding-bottom: 50px; }

/* Hero */
.prod-hero {
    text-align: center; padding: 60px 20px 80px 20px;
    background: linear-gradient(to bottom, #f9fbfd, #fff);
    margin-bottom: 60px; border-bottom: 1px solid #eee;
}

.prod-hero h2 { font-size: 2.5rem; color: var(--text-main); margin-bottom: 25px; line-height: 1.3; }
.prod-hero .highlight { color: #e74c3c; position: relative; display: inline-block; }
.prod-hero .highlight::after {
    content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 8px;
    background: rgba(231, 76, 60, 0.2); z-index: -1;
}
.prod-hero .hero-desc { font-size: 1.25rem; color: #555; max-width: 900px; text-align: center; margin: auto; margin-top: 50px; line-height: 1.8; }

/* product_main - 모바일 전용 PC 안내 (기본: 숨김) */
#product_main .prod-mobile-pcnotice { display: none; }

/* 공통 섹션 */
.prod-section { margin-bottom: 100px; }
.prod-section .section-title { text-align: center; margin-bottom: 50px; }
.prod-section .section-title h3 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.prod-section .section-title p { font-size: 1.25rem; color: #777; line-height: 1.6; }

/* Problem Area */
/* 경고 박스 설정 */
.problem-box {
    background: #000000;
    color: #ffffff;
    padding: 10px 40px 50px;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 100px; /* 기존 margin과 margin-bottom을 합침 */
    position: relative;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    letter-spacing: -1px;
}

/* 상단 아이콘 */
.prod-section .section-title .problem-box i {
    display: block;
    font-size: 8rem;
    color: #e74c3c;
    margin-bottom: 20px;
    font-style: normal;
}

/* 본문 텍스트 (p와 strong 통합 관리) */
.prod-section .section-title .problem-box p {
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 300; /* 부모에 있던 설정을 실제 텍스트가 있는 p로 이동 */
    
    word-break: keep-all;
}

/* 강조 텍스트 (중복 제거 및 병합) */
.prod-section .section-title .problem-box strong {
    color: #e74c3c;
    font-weight: 900;
    text-decoration: underline;
    font-size: 1.1em; /* p태그 크기의 1.1배 적용 */
}


/* Solution Area */
.process-steps { display: flex; align-items: stretch; justify-content: space-between; gap: 20px; }
.step-item {
    flex: 1; background: #fff; border: 1px solid var(--primary-color);
    border-radius: 12px; padding: 30px; position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.step-num {
    font-size: 3rem; font-weight: 900; color: rgba(0, 140, 149, 0.1);
    position: absolute; top: -10px; right: 10px;
}
.step-content h4 { font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 15px; text-align: left; }
.step-content h4 span { font-size: 0.9rem; color: #777; font-weight: 400; margin-left: 5px; text-align: left; }
.step-content p { font-size: 1.25rem; color: #555; line-height: 1.6; text-align: left; }
.step-arrow { display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.5rem; opacity: 0.5; }

/* Value Area */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-item {
    background: #f8f9fa; padding: 30px; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.check-icon {
    width: 60px; height: 60px; background: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.5rem; margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.value-item h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-main); }
.value-item p { font-size: 1.2rem; color: #666; line-height: 1.6; word-break: keep-all; }

/* =======================================================
   [수정] 다이어그램 타원형 배치 (좌3 / 우3)
   ======================================================= */

/* 전체 배경 및 컨테이너 스타일 */
.prod-family-diagram {
    background: linear-gradient(135deg, #003d44 0%, #001e26 100%);
    padding: 40px 20px 4px 20px; border-radius: 30px;
    text-align: center; color: #fff; position: relative; overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 61, 68, 0.5);
}
.prod-family-diagram::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 1000px; height: 800px; /* 타원형 배경 효과 */
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
}
.diagram-header { margin-bottom: 80px; position: relative; z-index: 100; }
.diagram-header h3 { font-size: 2.4rem; margin-bottom: 15px; color: #ffffff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.3);}
.diagram-header p { font-size: 1.2rem; opacity: 0.9; color: #ade8ff !important; font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

 }

/* 다이어그램 영역 (너비를 넓혀서 타원형 공간 확보) */
.diagram-container {
    width: 900px; /* 가로로 넓게 설정 */
    height: 500px;
    position: relative;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
}

/* =======================================================
   [수정] 중앙 코어 디자인 (테두리 추가 + 틈 주기)
   ======================================================= */

/* 1. 코어 컨테이너 (위치 및 크기) */
.hub-core { 
    position: absolute; 
    z-index: 20; 
    width: 170px; height: 190px; 
    display: flex; align-items: center; justify-content: center; 
}

/* 2. [신규] 흰색 육각형 테두리 (SVG 활용) */
.hub-core::before {
    content: '';
    position: absolute;
    /* 코어보다 살짝 크게 배치하여 '틈'을 만듦 */
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    
    /* SVG로 육각형 선 그리기 (깔끔한 라인) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50,1 100,26 100,74 50,99 0,74 0,26' fill='none' stroke='white' stroke-width='3' stroke-opacity='0.8' /%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    
    z-index: 1; /* 파란 방패 뒤에 위치 */
    animation: pulseBorder 3s infinite; /* 테두리 전용 애니메이션 */
}

/* 3. 내부 방패 (파란색 육각형) */
.shield-shape {
    /* 테두리 안쪽에 쏙 들어가도록 크기 조정 (틈 확보) */
    width: 94%; height: 94%; 
    
    background: linear-gradient(to bottom, #00e5ff, #008c95);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    
    /* 그림자 효과 강화 */
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.6); 
    z-index: 2; /* 테두리보다 위에 위치 */
    
    animation: pulseCore 3s infinite;
}

/* 텍스트 스타일 */
.shield-shape i { font-size: 3.5rem; margin-bottom: 8px; color: #fff; }
.shield-shape strong { font-size: 1.4rem; font-weight: 900; display: block; color: #fff; }
.shield-shape span { font-size: 0.9rem; color: rgba(255,255,255,0.9); }


/* [애니메이션] 코어: 둥실둥실 + 빛남 */
@keyframes pulseCore {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.8); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px 10px rgba(0, 229, 255, 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.8); }
}

/* [애니메이션] 테두리: 코어와 반박자로 움직여서 생동감 부여 */
@keyframes pulseBorder {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 0.4; } /* 커질 때 흐려짐 */
    100% { transform: scale(1); opacity: 0.8; }
}

/* 아이콘 노드 공통 스타일 */
.hub-node {
    position: absolute;
    top: 50%; left: 50%;
    margin-top: -65px; margin-left: -65px; /* 중앙 기준점 보정 */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 130px; height: 130px; z-index: 15;
}
.node-icon {
    width: 85px; height: 85px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    margin-bottom: 15px; transition: 0.3s; border: 4px solid transparent;
}
.node-icon img {
    width: 50px; height: 50px;
}
.hub-node:hover .node-icon {
    border-color: #00e5ff; transform: scale(1.1); color: #00e5ff; box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
}
.node-label {
    font-size: 1.1rem; font-weight: 700; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.5); padding: 6px 15px; border-radius: 20px;
}

/* [좌표 지정] 아이콘 위치 (가로로 긴 타원형 배치) */
/* 우측 상단 (CCTV) */
.hub-node[style*="--i:1"] { transform: translate(300px, -150px); }
/* 우측 중앙 (ATM) - 더 멀리 */
.hub-node[style*="--i:2"] { transform: translate(380px, 0px); }
/* 우측 하단 (KIOSK) */
.hub-node[style*="--i:3"] { transform: translate(300px, 150px); }

/* 좌측 하단 (POS) */
.hub-node[style*="--i:4"] { transform: translate(-300px, 150px); }
/* 좌측 중앙 (FA) - 더 멀리 */
.hub-node[style*="--i:5"] { transform: translate(-380px, 0px); }
/* 좌측 상단 (Remote) */
.hub-node[style*="--i:6"] { transform: translate(-300px, -150px); }


/* 연결선 (Rays) 스타일 */
.connection-rays { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.ray {
    position: absolute; top: 50%; left: 50%; height: 4px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(0, 229, 255, 1) 10%, rgba(0, 229, 255, 0) 100%);
    opacity: 0.6; filter: blur(2px);
}

/* [각도/길이 지정] 연결선 위치 */
.ray[style*="--i:1"] { width: 335px; transform: translateY(-50%) rotate(-26deg); } /* 우상단 */
.ray[style*="--i:2"] { width: 380px; transform: translateY(-50%) rotate(0deg);   } /* 우중앙 */
.ray[style*="--i:3"] { width: 335px; transform: translateY(-50%) rotate(26deg);  } /* 우하단 */

.ray[style*="--i:4"] { width: 335px; transform: translateY(-50%) rotate(154deg); } /* 좌하단 */
.ray[style*="--i:5"] { width: 380px; transform: translateY(-50%) rotate(180deg); } /* 좌중앙 */
.ray[style*="--i:6"] { width: 335px; transform: translateY(-50%) rotate(206deg); } /* 좌상단 */


/* 모바일 반응형 (화면 좁을 때 세로 정렬 복구) */
@media (max-width: 900px) {
    .diagram-container { width: 100%; height: auto; flex-direction: column; margin-top: 40px; }
    .connection-rays { display: none; } /* 선 숨김 */
    .hub-core { position: relative; margin-bottom: 60px; transform: none; }
    
    .hub-node { 
        position: relative; transform: none !important; /* PC용 좌표 무시 */
        top: auto; left: auto; margin: 0 auto 15px auto;
        flex-direction: row; justify-content: flex-start;
        width: 100%; max-width: 450px; height: auto;
        background: rgba(255,255,255,0.1); padding: 15px 30px; border-radius: 60px;
    }
    .node-icon { margin-bottom: 0; margin-right: 25px; width: 60px; height: 60px; font-size: 1.5rem; }
    .node-label { background: none; text-shadow: none; font-size: 1.2rem; padding: 0; }
}

/* ==========================================
   [추가] Transition Divider (Problem -> Solution)
   ========================================== */
.prod-transition-divider {
    text-align: center; position: relative; margin: -40px 0 80px 0; z-index: 10;
}
.prod-transition-divider .line {
    width: 2px; height: 80px; margin: 0 auto;
    background: linear-gradient(to bottom, #e0e0e0 0%, var(--primary-color) 100%);
}
.prod-transition-divider .divider-icon {
    width: 60px; height: 60px; background: var(--white);
    border: 2px solid var(--primary-color); border-radius: 50%;
    color: var(--primary-color); font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: -30px auto 10px auto; /* 라인 끝에 걸치게 배치 */
    box-shadow: 0 0 0 5px #fff, 0 5px 15px rgba(0, 140, 149, 0.2);
    animation: pulseIcon 2s infinite;
}
.prod-transition-divider .bridge-text {
    font-size: 0.9rem; font-weight: 700; color: var(--primary-color); letter-spacing: 1px;
}
@keyframes pulseIcon {
    0% { box-shadow: 0 0 0 0 rgba(0, 140, 149, 0.4), 0 0 0 5px #fff; }
    70% { box-shadow: 0 0 0 15px rgba(0, 140, 149, 0), 0 0 0 5px #fff; }
    100% { box-shadow: 0 0 0 0 rgba(0, 140, 149, 0), 0 0 0 5px #fff; }
}

/* =======================================================
   [(product_main 제외) 전체 제품 소개 페이지 스타일  
   ======================================================= */

/* 1. 상단: 소개글(좌) + 이미지(우) 레이아웃 */
.product_all-top-section {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

/* 소개 텍스트 */
.product_all-intro-text {
    flex: 1;
}
.product_all-intro-text .main-desc {
    font-size: 1.3rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 500;
    word-break: keep-all;
}
.product_all-intro-text .sub-desc {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.7;
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
}

/* 이미지 (우측, 3:2 비율) */
.product_all-visual {
    flex: 1;
    width: 100%;
    max-width: 550px; /* 적절한 최대 크기 제한 */
    aspect-ratio: 3 / 2; /* 가로3 : 세로2 비율 고정 */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative;
}
.product_all-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 비율 유지하며 꽉 채움 */
    transition: transform 0.5s ease;
}
.product_all-visual:hover img {
    transform: scale(1.05); /* 호버 시 살짝 확대 */
}


/* 2. 특징 그리드 (4개) */
.product_all-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.feat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.feat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 140, 149, 0.15);
    border-color: var(--primary-color);
}
.feat-card .icon-box {
    width: 60px; height: 60px;
    background: #f0fbfc;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}
.feat-card h4 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 700;
}
.feat-card p {
    font-size: 1.15rem;
    color: #777;
    line-height: 1.6;
    word-break: keep-all;
    text-align: center;
}


/* 3. 기능 그리드 (6개) */
.product_all-function-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3열 2행 */
    gap: 20px;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

/* 개별 기능 카드 (아이콘 좌측 + 텍스트 우측) */
.func-item {
    display: flex;
    align-items: flex-start; /* 위쪽 정렬 */
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.func-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 140, 149, 0.1);
    transform: translateY(-5px); /* 살짝 위로 뜸 */
}

/* 아이콘 영역 */
.func-item .func-icon {
    flex-shrink: 0; /* 크기 줄어듦 방지 */
    width: 50px; height: 50px;
    background-color: #f0fbfc;
    color: var(--primary-color);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-right: 15px;
}

/* 텍스트 영역 래퍼 */
.func-item .func-text {
    flex: 1; /* 남은 공간 차지 */
}

/* 기능 제목 */
.func-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0; /* 제목 아래 간격 */
    line-height: 1.3;
}

/* 기능 설명 */
.func-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all; /* 단어 단위 줄바꿈 */
}

/* 모바일 반응형 (ATM 섹션) */
@media (max-width: 900px) {
    /* 상단 영역 세로 배치 */
    .product_all-top-section {
        flex-direction: column-reverse; /* 이미지가 위로 가도록 하려면 column-reverse, 아니면 column */
        gap: 30px;
    }
    .product_all-visual {
        max-width: 100%; /* 모바일에서 꽉 채움 */
    }
    
    /* 그리드 조정 */
    .product_all-feature-grid {
        grid-template-columns: repeat(2, 1fr); /* 2열 */
    }
    .product_all-function-grid {
        grid-template-columns: 1fr; /* 1열 */
        padding: 20px;
    }
}
@media (max-width: 600px) {
    .product_all-feature-grid {
        grid-template-columns: 1fr; /* 1열 */
    }
}

/* ==========================================
   [긴급 수정] 배경 이미지 딜레이/크기 점프 방지
   (원인: fixed 배경과 transform 기반 등장 애니메이션 충돌)
   ========================================== */

/* 1) 배경이 있는 섹션(배경 레이어)에는 애니메이션/변형 금지 */
#product_main, #product1, #product2, #product3, #product4, #product5, #product6 {
    animation: none !important;
    transform: none !important;
}

/* 2) 대신 내용물에만 페이드인 적용 */
#product_main .prod-landing-wrap,
#product1 .container,
#product2 .container,
#product3 .container,
#product4 .container,
#product5 .container,
#product6 .container {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}


/* [assets/css/products_style.css] 추가 코드 */

/* 1. 문제 제기 영역 전체 여백 및 정렬 */
.prod-section.problem-area .section-title {
    text-align: center;    
    margin: 0 auto 40px auto;
}

/* 2. 제목 (H3) 디자인: 강렬하고 명확하게 */
.prod-section.problem-area h3 {
    font-size: 2rem;       /* 크기 확대 */
    font-weight: 800;      /* 두께 강조 */
    color: #222;           /* 진한 검정 */
    line-height: 1.4;
    margin-bottom: 30px;   /* 본문과의 간격 */
    letter-spacing: -0.5px;
}

/* 3. 본문 (P) 디자인: 가독성 중심 */
.prod-section.problem-area .problem-desc {
    font-size: 1.15rem;    /* 본문 폰트 약간 키움 */
    line-height: 1.8;      /* 줄 간격 넉넉하게 */
    color: #555;           /* 너무 까맣지 않은 회색 */
    word-break: keep-all;  /* 단어 끊김 방지 (한글 최적화) */
}

/* 4. [강조 1] 붉은색 포인트 (50만 개...) */
.highlight-point {
    color: #d32f2f;        /* 붉은색 텍스트 */
    font-weight: 700;
}

/* 5. [강조 2] 형광펜 밑줄 효과 ('최초의 피해자') */
.highlight-under {
    position: relative;
    font-weight: 800;
    color: #000;
    z-index: 1;
}

.highlight-under::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;          /* 밑줄 두께 */
    background-color: rgba(255, 213, 79, 0.5); /* 노란색 반투명 형광펜 */
    z-index: -1;           /* 글자 뒤로 보냄 */
}

/* 모바일 화면 조정 */
@media (max-width: 768px) {
    .prod-section.problem-area h3 {
        font-size: 1.5rem;
    }
    .prod-section.problem-area .problem-desc {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 15px;
    }
}

/* ==========================================
   [추가] Key Features 라벨 디자인
   ========================================== */
.features-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px; /* 그리드와의 간격 */
    margin-top: 80px;   /* 상단 이미지와의 간격 조절 (필요시 수정) */
}

/* 아이콘 원형 박스 */
.features-label .label-icon {
    width: 40px; height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 140, 149, 0.3);
    position: relative;
    z-index: 1;
}

/* 텍스트 스타일 */
.features-label .label-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px; /* 자간 넓게 */
    text-transform: uppercase;
    position: relative;
    padding: 0 15px;
}

/* 텍스트 양옆 장식 선 (선택사항) */
.features-label .label-text::before,
.features-label .label-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px; height: 1px;
    background-color: #ddd;
}
.features-label .label-text::before { left: -20px; }
.features-label .label-text::after { right: -20px; }

/* Floating submenu: 기본은 숨김 (모바일 @media에서만 표시) */
.floating-submenu { display: none; }


@media (max-width: 1024px) {

 .floating-submenu {
    display: block;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 1200;
    font-family: inherit;
  }

  .floating-submenu .fsm-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 999px;
    background: rgba(255,255,255,0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    color: var(--text-main);
    cursor: pointer;
  }

  .floating-submenu .fsm-toggle .fsm-label {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }
  .floating-submenu .fsm-toggle .fsm-icon {
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.85;
  }

  .floating-submenu .fsm-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 130px;
    max-width: calc(100vw - 32px);
    max-height: min(70vh, 520px);
    overflow: auto;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.16);
    display: none;
  }
  .floating-submenu.open .fsm-panel { display: block; }

  .floating-submenu .fsm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .floating-submenu .fsm-current {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .floating-submenu .fsm-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.65);
    cursor: pointer;
    line-height: 1;
    font-size: 1.1rem;
    color: var(--text-main);
  }

  .floating-submenu .fsm-list { padding: 8px; }
  .floating-submenu .fsm-list a {
    display: block;
    padding: 10px 10px;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    text-align: center;
  }
  .floating-submenu .fsm-list a:hover { background: rgba(0,0,0,0.05); }
  .floating-submenu .fsm-list a.active {
    background: rgba(0, 140, 149, 0.12);
    color: var(--primary-color);
  }


    .sub-visual {
        display: flex !important;
        
        /* [핵심 1] 상단 패딩 제거: 이것이 없으면 글자가 아래로 쏠립니다 */
        padding-top: 0 !important; 
        padding-bottom: 0 !important;
        
        /* [핵심 2] Flexbox로 가로/세로 강제 중앙 정렬 */
        align-items: center !important;      /* 세로 중앙 */
        justify-content: center !important;  /* 가로 중앙 */
        
        /* 높이 및 배경 설정 */
        height: 200px !important;          /* 고정 높이 해제 */
        margin-top: 70px !important;      /* 헤더 높이만큼만 살짝 내림 (헤더 겹침 방지) */
        
        background-size: cover !important; /* 가로 꽉 채우기 */
        background-position: center center !important;
    }

    /* 컨테이너도 높이를 꽉 채우지 않고 내용물만큼만 잡히게 하여 중앙 정렬 유도 */
    .sub-visual .container {
        height: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 !important; /* 컨테이너 자체 패딩도 제거 */
    }

    /* 텍스트 스타일 */
    .sub-visual h1 { 
        font-size: 2rem !important; /* 모바일에서 폰트 크기 조정 */
        line-height: 1.2;
        margin: 0 !important; /* 글자 주변 여백 제거 */
        padding: 0 !important;
        transform: none !important; /* 애니메이션 위치 이동 간섭 제거 */
    }

    /* 불필요한 요소 숨김 */
    .sub-visual p { display: none !important; }
    .sub-nav-bar { display: none !important; }


    #product_main, #product1, #product2, #product3, #product4, #product5, #product6 {
        background: none;
    }

    
    /* product_main - prod-hero: 상단 여백 제거(모바일 한정) */
    #product_main .prod-hero {
        padding-top: 0;
    }

    #product_main .prod-hero h2 { font-size: 1.9rem; }
    #product_main .prod-hero p { font-size: 0.9rem; }

    /* prod-hero 상단 2개 이미지(로고/슬로건) 모바일 정렬/사이즈 */
    #product_main .prod-hero .container > img {
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
        height: auto !important;
    }

    /* 1번째 이미지: bmguard_logo */
    #product_main .prod-hero .container > img:nth-of-type(1) {
        max-width: 240px !important;
        width: 70% !important;
        margin-bottom: 10px !important;
    }

    /* 2번째 이미지: bmguard_slogan */
    #product_main .prod-hero .container > img:nth-of-type(2) {
        max-width: 220px !important;
        width: 66% !important;
        margin-bottom: 18px !important;
    }

 /* 1) problem-area + divider 숨김 */
    #product_main .problem-area,
    #product_main .prod-transition-divider {
        display: none !important;
    }


    /* 2) solution-area 글씨 축소 (모바일 가독성 기준) */
    #product_main .solution-area .section-title br { display: inline; }
    #product_main .solution-area .section-title h3 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        line-height: 1.35;
    }
    #product_main .solution-area .section-title p {
        font-size: 1.0rem;
        line-height: 1.6;
    }

    #product_main .step-content h4 {
        font-size: 1.15rem;
        margin-bottom: 10px;
        line-height: 1.35;
    }
    #product_main .step-content h4 span {
        font-size: 0.85rem;
    }
    #product_main .step-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* 3) step-item 세로 나열 + step-arrow 숨김 */
    #product_main .process-steps {
        flex-direction: column;
        gap: 14px;
    }
    #product_main .step-arrow {
        display: none !important;
    }
    #product_main .step-item {
        padding: 20px;
    }
    #product_main .step-num {
        font-size: 2.4rem;
        top: -8px;
        right: 10px;
    }

    /* 4) value-area + prod-family-diagram 숨김 */
    #product_main .value-area,
    #product_main .prod-family-diagram {
        display: none !important;
    }

    /* 5) 모바일 전용 안내 문구(디자인 포함) 노출 */
    #product_main .prod-mobile-pcnotice {
        display: flex;
        align-items: center;
        gap: 12px;

        margin: 18px 0 0 0;
        padding: 14px 14px;

        border-radius: 14px;
        border: 1px solid rgba(0, 140, 149, 0.18);
        background: rgba(0, 140, 149, 0.06);
        box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    }

    #product_main .prod-mobile-pcnotice .pcnotice-ico {
        width: 44px;
        height: 44px;
        border-radius: 12px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.08);
        color: var(--primary-color);
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    #product_main .prod-mobile-pcnotice .pcnotice-text {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.55;
        color: var(--text-main);
        word-break: keep-all;
    }    

    /* ==========================================
   product1 ~ product6 모바일 타이포/정렬만 조정 (<=1024)
   ========================================== */

    /* 1) section-header: 텍스트 줄이고 가운데 정렬 */
    #product1 .section-header,
    #product2 .section-header,
    #product3 .section-header,
    #product4 .section-header,
    #product5 .section-header,
    #product6 .section-header {
        text-align: center;
    }

    #product1 .section-header h2,
    #product2 .section-header h2,
    #product3 .section-header h2,
    #product4 .section-header h2,
    #product5 .section-header h2,
    #product6 .section-header h2 {
        font-size: 2.2rem;   /* 기존 3rem -> 축소 */
        margin-bottom: 8px;
    }

    #product1 .section-header p,
    #product2 .section-header p,
    #product3 .section-header p,
    #product4 .section-header p,
    #product5 .section-header p,
    #product6 .section-header p {
        font-size: 1.1rem;   /* 기존 1.5rem -> 축소 */
        margin-bottom: 8px;
    }

    /* 2) product_all-top-section 내 텍스트: 줄이고 가운데 정렬 */
    #product1 .product_all-intro-text,
    #product2 .product_all-intro-text,
    #product3 .product_all-intro-text,
    #product4 .product_all-intro-text,
    #product5 .product_all-intro-text,
    #product6 .product_all-intro-text {
        text-align: center;
    }

    #product1 .product_all-intro-text .main-desc,
    #product2 .product_all-intro-text .main-desc,
    #product3 .product_all-intro-text .main-desc,
    #product4 .product_all-intro-text .main-desc,
    #product5 .product_all-intro-text .main-desc,
    #product6 .product_all-intro-text .main-desc {
        font-size: 1.05rem;  /* 기존 1.3rem -> 축소 */
        line-height: 1.7;
        margin-bottom: 18px;
    }

    #product1 .product_all-intro-text .sub-desc,
    #product2 .product_all-intro-text .sub-desc,
    #product3 .product_all-intro-text .sub-desc,
    #product4 .product_all-intro-text .sub-desc,
    #product5 .product_all-intro-text .sub-desc,
    #product6 .product_all-intro-text .sub-desc {
        font-size: 0.95rem;  /* 기존 1.15rem -> 축소 */
        line-height: 1.65;
    }
}

