/* === 1. 기본 설정 (Reset & Common) === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 박스 크기 계산을 쉽게 만듦 */
}

body {
    font-family: '맑은 고딕', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none; /* 링크 밑줄 제거 */
    color: inherit; /* 부모 색상 상속 */
}

ul {
    list-style: none; /* 리스트 점 제거 */
}

/* 중앙 정렬을 위한 공통 컨테이너 클래스 */
.container {
    width: 90%;
    max-width: 1200px; /* 최대 너비 제한 */
    margin: 0 auto; /* 가운데 정렬 */
}

/* 이미지 placeholder 스타일 (실제 이미지 넣을 땐 삭제해도 됨) */
.image-placeholder, .image-placeholder-large {
    background-color: #ddd;
    color: #666;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-placeholder { height: 200px; }
.image-placeholder-large { height: 400px; }


/* === 2. 헤더 영역 스타일 === */
/* === 2. 헤더 영역 스타일 (수정됨) === */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 50px;
}

/* .menu 바로 아래에 있는 a 태그만 선택합니다 */
.menu > li > a {
    position: relative; /* 밑줄 위치 기준 */
    font-size: 21px;
    font-weight: 800; /* 굵게 */
    color: #222;
    padding-bottom: 5px; /* 글자와 밑줄 사이 간격 */
    display: block;
}

/* 메인 메뉴 밑줄 애니메이션 */
.menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%; /* 처음엔 길이 0 */
    height: 3px; /* 밑줄 두께 */
    background-color: #0056b3; /* 파란색 */
    transition: width 0.3s; /* 스르륵 늘어나는 효과 */
}

.menu > li > a:hover {
    color: #0056b3;
}

.menu > li > a:hover::after {
    width: 100%; /* 마우스 올리면 꽉 차게 */
}

/* === 3. 메인 비주얼 배너 스타일 === */
.main-visual {
    height: 500px; /* 배너 높이 지정 */
    background-color: #777; /* 이미지가 없을 때 보일 임시 배경색 */
    
    /* ▼▼▼ [이미지 지정] 여기에 배경 이미지를 넣으세요 ▼▼▼ */
    /* background-image: url('images/main_banner.jpg'); */
    background-size: cover; /* 배경 이미지 꽉 채우기 */
    background-position: center; /* 배경 이미지 중앙 정렬 */
    /* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff; /* 글자색 흰색 */
}

.visual-text h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.visual-text p {
    font-size: 18px;
}


/* === 4. 주요 비즈니스 소개 스타일 === */
.business-section {
    padding: 80px 0; /* 위아래 여백 */
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.business-grid {
    display: flex; /* Flexbox로 3단 구성 */
    justify-content: space-between; /* 균등 배치 */
    gap: 20px; /* 아이템 사이 간격 */
}

.biz-item {
    flex: 1; /* 동일한 너비 가져가기 */
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.biz-item h3 {
    margin: 20px 0 10px;
    font-size: 20px;
}


/* === 5. 회사 소개 배너 스타일 === */
.about-banner {
    background-color: #e9ecef; /* 연한 회색 배경 */
    padding: 80px 0;
}

.about-content {
    display: flex; /* Flexbox로 좌우 배치 */
    align-items: center; /* 세로 중앙 정렬 */
    gap: 40px; /* 좌우 간격 */
}

.about-text {
    flex: 1; /* 너비 1 비율 */
}

.about-image {
    flex: 1; /* 너비 1 비율 (좌우 5:5) */
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text .sub-txt {
    font-size: 20px;
    color: #0056b3;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-more {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 25px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-more:hover {
    background: #0056b3;
}


/* === 6. 푸터 스타일 === */
footer {
    background: #222; /* 어두운 배경 */
    color: #aaa; /* 연한 회색 글씨 */
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
    color: #aaa;/* 연한 회색 글씨 로고 밑 글자색 */
    margin-bottom: 20px;
}

/* 푸터 로고 안에 있는 이미지의 크기를 조절합니다 */
.footer-logo img {
    height: 50px; /* 높이를 50px로 고정 (원하는 크기로 숫자를 조절해보세요!) */
    width: auto;  /* 너비는 높이에 맞춰 자동으로 비율 유지 */
    display: block; /* 이미지를 블록 요소로 만들어 안정적으로 배치 */
    margin: 0 auto; /* 혹시 모를 정렬 문제를 위해 자체적으로도 가운데 정렬 선언 */
}

address {
    /* 1. Address 태그를 블록 요소로 확실하게 지정 */
    display: block; 
    
    /* 2. 위쪽 여백을 50px 줌 (원하는 만큼 숫자를 늘리세요) */
    margin-top: 50px !important; 
    
    /* 기존 줄간격 설정 (선택사항) */
    font-style: normal;
    line-height: 1.6;
    font-style: normal; /* 이탤릭체 제거 */
    font-size: 14px;
}
/* === 드롭다운 메뉴 스타일 === */

/* 1. 기준점 잡기 */
/* 하위 메뉴가 이 메뉴(부모)를 기준으로 위치를 잡도록 설정 */
.dropdown-parent {
    position: relative; 
}

/* 2. 하위 메뉴 디자인 (평소에는 안 보이게) */
.dropdown {
    display: none; /* 평소에는 숨김! */
    position: absolute; /* 부모 기준으로 둥둥 띄움 */
    top: 100%; /* 부모 메뉴 바로 아래에 위치 */
    left: 0;
    
    background-color: #fff; /* 배경은 흰색 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* 그림자 효과로 입체감 주기 */
    min-width: 160px; /* 최소 너비 지정 */
    z-index: 1000; /* 다른 요소보다 위에 보이도록 */
    padding: 10px 0; /* 위아래 여백 */
    border-radius: 4px; /* 모서리 둥글게 */
}

/* 3. 마우스를 올렸을 때 나타나게 하기 (핵심!) */
/* .dropdown-parent에 마우스가 올라가면(:hover) .dropdown을 보여라(block) */
.dropdown-parent:hover .dropdown {
    display: block;
}

/* 4. 하위 메뉴 내부 링크 스타일 */
.dropdown li {
    display: block; /* 세로로 나열 */
    margin: 0; /* 기존 메뉴의 마진 제거 */
}

.dropdown li a {
    display: block; /* 박스 전체가 클릭되도록 */
    padding: 10px 20px; /* 내부 여백 */
    color: #333;
    font-size: 14px; /* 글씨 크기는 조금 작게 */
    font-weight: normal; /* 굵기 빼기 */
    white-space: nowrap; /* 줄바꿈 방지 */
}

/* 하위 메뉴 마우스 올렸을 때 색상 변경 */
.dropdown li a:hover {
    background-color: #f1f1f1; /* 연한 회색 배경 */
    color: #0056b3; /* 파란색 글씨 */
}

/* === 드롭다운 메뉴 스타일 (수정완료) === */

/* 1. 기준점 잡기 */
.dropdown-parent {
    position: relative; 
}

/* 2. 하위 메뉴 박스 디자인 */
.dropdown {
    display: none; /* 평소에는 숨김 */
    position: absolute;
    top: 100%;
    left: 0;
    
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 160px; /* 박스 최소 너비 */
    z-index: 1000;
    
    padding: 15px 20px; /* 박스 내부 여백을 넉넉히 줌 */
    border-radius: 4px;
    text-align: left; /* 텍스트 왼쪽 정렬 */
}

/* 3. 마우스 올리면 나타나기 */
.dropdown-parent:hover .dropdown {
    display: block;
}

/* 4. 리스트 아이템 간격 */
.dropdown li {
    margin: 0;
    margin-bottom: 12px; /* 메뉴 사이 간격 벌리기 */
}

.dropdown li:last-child {
    margin-bottom: 0; /* 마지막 메뉴는 간격 없음 */
}

/* 5. 링크 텍스트 스타일 (여기가 핵심!) */
.dropdown li a {
    /* ★중요: block이 아니라 inline-block을 써야 글자 크기만큼만 잡힙니다 */
    display: inline-block; 
    position: relative; /* 밑줄 기준 */
    
    font-size: 16px;
    color: #555;
    font-weight: normal;
    text-decoration: none;
    padding: 0; /* 패딩 제거 */
}

/* 6. 밑줄 애니메이션 효과 */
.dropdown li a::after {
    content: '';
    position: absolute;
    bottom: -2px; /* 글자 바로 아래 */
    left: 0;
    width: 0%; /* 처음엔 0 */
    height: 2px; /* 밑줄 두께 */
    background-color: #0056b3; /* 파란색 */
    transition: width 0.3s; /* 스르륵 */
}

/* 7. 마우스 올렸을 때 동작 */
.dropdown li a:hover {
    color: #0056b3; /* 글자색 파랗게 */
}

.dropdown li a:hover::after {
    width: 100%; /* 밑줄이 글자 너비만큼 꽉 참 */
}

/**********************************SUPPORT*************************/
/* === 고객지원 페이지 스타일 === */

/* 서브 페이지 배너 공통 스타일 */
.sub-banner {
    background-color: #333;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}
.sub-banner h2 { font-size: 32px; margin-bottom: 10px; }

/* 고객지원 전체 레이아웃 */
.support-container {
    padding-bottom: 100px;
}

/* 1. 공지사항 게시판 스타일 */
.notice-board {
    margin-bottom: 80px;
}
.notice-board h3, .contact-form h3 {
    font-size: 24px;
    border-left: 5px solid #0056b3;
    padding-left: 15px;
    margin-bottom: 20px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse; /* 테두리 겹침 방지 */
    border-top: 2px solid #333;
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f9f9f9;
    font-weight: bold;
    color: #555;
}

td.title {
    text-align: left; /* 제목은 왼쪽 정렬 */
    color: #333;
}


/* 2. 문의 폼 스타일 */
.contact-form {
    max-width: 800px; /* 구글 폼은 조금 넓은 게 보기 좋습니다 (700 -> 800) */
    margin: 0 auto;
    background: #fff; /* 구글 폼 배경이 흰색이라 박스도 흰색이 자연스럽습니다 */
    padding: 20px; /* 여백을 조금 줄여도 됩니다 */
    border: 1px solid #ddd; /* 테두리를 살짝 줘서 깔끔하게 */
    border-radius: 10px;
}

/* 설명 글씨 아래 여백 */
.form-desc {
    margin-bottom: 20px;
    color: #666;
    text-align: center; /* 설명 글씨 가운데 정렬 */
}

.form-desc {
    margin-bottom: 30px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

/* 입력창 디자인 */
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit; /* 폰트 상속 */
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3; /* 클릭하면 파란 테두리 */
}

/* 전송 버튼 디자인 */
.btn-submit {
    width: 100%;
    background-color: #0056b3;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #004494; /* 마우스 올리면 진해짐 */
}

/**************************************찾아오시는길*********************/
/* === 찾아오시는 길 페이지 스타일 === */

.map-container {
    padding-bottom: 100px;
}

/* 지도 박스 디자인 */
.map-view {
    border: 1px solid #ddd; /* 지도 테두리 */
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* 살짝 그림자 */
}

/* 텍스트 정보 디자인 */
.map-info {
    display: flex; /* 가로로 배치 (모바일은 세로로 바뀜) */
    justify-content: space-between;
    gap: 30px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.info-item {
    flex: 1; /* 너비 균등 분배 */
}

.info-item h3 {
    font-size: 18px;
    color: #0056b3;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.info-item ul {
    list-style: disc; /* 리스트 점 표시 */
    padding-left: 20px;
}

.info-item li {
    margin-bottom: 5px;
}

/* 모바일 화면에서는 세로로 보이게 (반응형) */
@media (max-width: 768px) {
    .map-info {
        flex-direction: column; /* 세로 배치 */
    }
    
    .map-view iframe {
        height: 300px; /* 모바일에서 지도 높이 줄임 */
    }
}

/************** === 메인 페이지 이미지 슬라이드쇼 스타일 === */

/* 1. 슬라이드 틀 잡기 */
.about-image {
    position: relative; /* 자식(이미지)들의 기준점이 됩니다 */
    width: 100%;
    height: 400px; /* 높이를 고정해야 이미지가 안 찌그러집니다 */
    overflow: hidden; /* 삐져나온 이미지 자르기 */
    border-radius: 8px; /* 모서리 둥글게 (선택사항) */
}

/* 2. 이미지 겹치기 */
.slide {
    position: absolute; /* 겹쳐지게 만듭니다 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 찌그러지지 않고 꽉 차게 */
    
    /* 핵심: 투명도 조절로 애니메이션 효과 */
    opacity: 0; /* 기본적으로 안 보임 */
    transition: opacity 1s ease-in-out; /* 1초 동안 부드럽게 변함 */
}

/* 3. 활성화된(보이는) 이미지 */
.slide.active {
    opacity: 1; /* 보이게 함 */
}
/************************** 비즈니스 아이템 이미지 스타일 */
.biz-icon {
    width: 100%; /* 박스 너비에 맞춰 꽉 차게 */
    height: 400px; /* 높이는 기존 placeholder와 동일하게 고정 (원하는 대로 조절 가능) */
    object-fit: cover; /* 이미지가 비율을 유지하며 꽉 차게 (잘릴 수 있음) */
    /* object-fit: contain; */ /* 이미지가 잘리지 않고 다 보이게 (여백 생길 수 있음) */
    border-radius: 4px; /* 모서리 살짝 둥글게 */
    margin-bottom: 15px; /* 제목과의 간격 */
}
/* === 비즈니스 슬라이드쇼 스타일 === */

.biz-slider-box {
    position: relative; /* 자식(이미지)들의 기준점 */
    width: 100%;
    height: 350px; /* ★여기서 이미지 높이를 결정합니다! 원하는 만큼 조절하세요 */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px; /* 제목과의 간격 */
}

/* === 인사말 페이지 스타일 (수정본) === */

.greeting-section {
    padding: 80px 0 120px;
}

.greeting-box {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* 2. 왼쪽 사진 디자인 (여기가 겹침을 방지하는 핵심입니다) */
.greeting-photo {
    flex: 1;
    position: relative;
    /* 사진이 밀려나지 않도록 여백 확보 */
    padding: 20px 0 0 20px; 
}

.greeting-photo img {
    width: 100%;
    /* 모서리를 더 부드럽게(20px), 그림자는 더 은은하게 변경 */
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

/* 사진 뒤에 있는 파란색 장식 테두리 */
.photo-deco {
    position: absolute;
    /* 사진보다 살짝 뒤로 밀어서 겹쳐 보이게 설정 */
    top: 0;
    left: 0;
    width: 90%; /* 사진보다 약간 작게 해서 세련되게 */
    height: 95%;
    border: 2px solid #0056b3; 
    border-radius: 20px;
    z-index: 1;
    opacity: 0.4;
}

/* 3. 오른쪽 텍스트 디자인 (기존 유지) */
.greeting-txt {
    flex: 1.2;
    padding-top: 10px;
}

.greeting-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 20px;
}

.greeting-slogan {
    font-size: 20px;
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.txt-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    word-break: keep-all;
}

/* 4. 서명 영역 (기존 유지) */
.greeting-sign {
    margin-top: 50px;
    text-align: right;
}

.greeting-sign .sign-name {
    font-size: 28px;
    font-family: 'Batang', serif;
    font-weight: bold;
    color: #333;
}

/* 5. 모바일 반응형 (기존 유지) */
@media (max-width: 768px) {
    .greeting-box {
        flex-direction: column;
        gap: 40px;
    }
    .greeting-photo {
        width: 100%;
        padding: 0 20px;
    }
    .photo-deco { display: none; } /* 모바일에선 장식 숨기기 (깔끔함) */
}
/**************************************** === 회사 개요 페이지 스타일 === */

.company-container {
    padding: 60px 0 100px;
}

/* 공통 섹션 제목 */
.section-head {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    border-left: 5px solid #0056b3;
    padding-left: 15px;
}

/* 각 섹션 간격 */
.overview-section, .vision-section, .org-section {
    margin-bottom: 80px;
}

/* 1. 일반 현황 테이블 디자인 */
.info-table {
    width: 100%;
    border-top: 2px solid #333;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    background-color: #f7f7f7; /* 회색 배경 */
    color: #333;
    width: 15%; /* 제목 칸 너비 */
    font-weight: bold;
}

.info-table td {
    color: #555;
}

/* 2. 경영 이념 (동그라미 3개) */
.vision-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
}

.vision-item {
    flex: 1;
    background: #f9f9f9;
    padding: 40px 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.vision-item:hover {
    transform: translateY(-5px); /* 마우스 올리면 살짝 뜸 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.circle-icon {
    width: 80px;
    height: 80px;
    line-height: 80px; 
    background-color: #0056b3;
    color: #fff;
    font-size: 15px; /* 한자일 땐 30px이었지만, 영어 단어니까 15px 정도로 줄임 */
    font-weight: bold;
    font-family: 'Verdana', sans-serif; /* 명조체(Batang) 대신 깔끔한 고딕체 계열로 변경 */
    border-radius: 50%;
    margin: 0 auto 20px;
}

.vision-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.vision-item p {
    color: #666;
    font-size: 15px;
}

/* 3. 조직도 (CSS로 그린 박스) */
.org-chart {
    text-align: center;
    padding: 20px;
}

.org-box {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #0056b3;
    border-radius: 50px; /* 둥근 버튼 모양 */
    background: #fff;
    font-weight: bold;
    color: #333;
    min-width: 150px;
}

.org-box.ceo {
    background: #0056b3;
    color: #fff; /* 대표이사는 파란 배경 */
}

.org-line-vertical {
    width: 2px;
    height: 30px;
    background: #ccc;
    margin: 0 auto;
}

.org-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap; /* 화면 좁으면 줄바꿈 */
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .info-table th { width: 30%; } /* 모바일에서 제목 칸 좀 더 넓게 */
    
    .vision-grid {
        flex-direction: column; /* 세로로 배치 */
    }
    
    .org-row {
        flex-direction: column; /* 조직도도 세로로 */
        align-items: center;
    }
    
    /* 모바일에서 테이블이 너무 좁으면 깨지므로 block으로 변경하는 기법도 있지만,
       여기서는 간단하게 글자 크기를 줄입니다. */
    .info-table { font-size: 14px; }
}

/*************************************************** === 제품 소개 페이지 (공통) === */

.product-container {
    padding: 60px 0 100px;
}

/* 1. 상단 소개 문구 */
.product-intro {
    text-align: center;
    margin-bottom: 60px;
}

.product-intro h3 {
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 15px;
    font-weight: bold;
}

.product-intro p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* 2. 제품 그리드 (바둑판 배열) */
.product-grid {
    display: grid;
    /* 화면 크기에 따라 1줄에 3개, 좁으면 2개, 더 좁으면 1개 배치 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; /* 제품 사이 간격 */
}

/* 3. 개별 제품 카드 디자인 */
.product-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden; /* 이미지가 둥근 모서리 밖으로 나가는 것 방지 */
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 마우스 올렸을 때 효과 */
.product-item:hover {
    transform: translateY(-10px); /* 위로 붕 뜨는 효과 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* 그림자 진하게 */
    border-color: #0056b3; /* 테두리 파란색 */
}

/* 이미지 박스 */
.product-item .img-box {
    width: 100%;
    height: 250px; /* 사진 높이 고정 (중요) */
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 사진 비율 유지하며 꽉 채우기 */
    transition: transform 0.5s; /* 줌 효과 애니메이션 */
}

/* 마우스 올리면 사진 확대 */
.product-item:hover .img-box img {
    transform: scale(1.1); /* 1.1배 확대 */
}

/* 텍스트 박스 */
.product-item .txt-box {
    padding: 25px;
    text-align: left;
}

.product-item h4 {
    font-size: 20px;
    color: #222;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
/* === 제품 슬라이드쇼 부드러운 전환 효과 === */

/* 1. 이미지 박스 기준점 설정 */
.product-item .img-box {
    position: relative; 
    width: 100%;
    height: 250px; 
    overflow: hidden; 
    background-color: #f0f0f0;
}

/* 2. 슬라이드 사진 설정 (여기가 핵심입니다!) */
.product-item .img-box .slide {
    position: absolute; /* 사진 겹치기 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* ▼▼▼ 여기가 부드러운 효과를 만드는 부분입니다 ▼▼▼ */
    opacity: 0; /* 평소엔 투명함 */
    transition: opacity 1s ease-in-out; /* 1.5초 동안 천천히 변해라 (숫자가 클수록 느림) */
    /* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */
    
    z-index: 1;
}

/* 3. 현재 보이는 사진 */
.product-item .img-box .slide.active {
    opacity: 1; /* 불투명하게 변함 (보임) */
    z-index: 2;
}

/* 4. 슬라이드 아닌 일반 사진 */
.product-item .img-box img:not(.slide) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/***************************************************** === 3D LASER 페이지 스타일 === */

/* 특장점 섹션 (아이콘 3개 나열) */
.laser-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 80px; /* 갤러리와의 간격 */
    text-align: center;
}

.feature-box {
    flex: 1; /* 너비 균등 분배 */
    background: #f9faff; /* 아주 연한 파란색 배경 */
    padding: 40px 20px;
    border-radius: 10px;
    border: 1px solid #e1e8f0;
}

.f-icon {
    font-size: 40px; /* 이모지 아이콘 크기 */
    margin-bottom: 15px;
}

.feature-box h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-box p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* 갤러리 섹션 제목 */
.gallery-title {
    font-size: 24px;
    color: #333;
    border-left: 5px solid #0056b3;
    padding-left: 15px;
    margin-bottom: 30px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .laser-features {
        flex-direction: column; /* 모바일에서 세로로 */
    }
}
/************************************ === 3D 기계 스펙 섹션 디자인 === */

.spec-section {
    background-color: #333; /* 진한 회색 배경 */
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 80px; /* 아래 갤러리와 간격 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* 그림자 */
}

.spec-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #555; /* 헤더 아래 얇은 줄 */
    padding-bottom: 15px;
}

.spec-header h3 {
    font-size: 24px;
    color: #fff; /* 흰색 글씨 */
    margin-bottom: 5px;
    font-weight: bold;
    letter-spacing: 1px; /* 자간 넓힘 */
}

.spec-header p {
    color: #aaa; /* 연한 회색 설명 */
    font-size: 14px;
    margin: 0;
}

/* 스펙 그리드 (가로 배치) */
.spec-grid {
    display: flex;
    justify-content: space-around; /* 간격 균등 배치 */
    text-align: center;
    gap: 20px;
}

.spec-card {
    flex: 1;
    padding: 10px;
}

/* 스펙 항목 이름 (라벨) */
.spec-label {
    display: block;
    color: #00bcd4; /* 형광 하늘색 (포인트 컬러) */
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase; /* 대문자로 변환 */
}

/* 스펙 숫자 (값) */
.spec-value {
    display: block;
    font-size: 36px; /* 숫자를 아주 크게 */
    font-weight: 700;
    color: #fff;
}

.spec-value .unit {
    font-size: 16px; /* 단위(mm, M)는 작게 */
    color: #ccc;
    font-weight: normal;
}

/* 모바일 반응형 (좁아지면 세로로) */
@media (max-width: 768px) {
    .spec-grid {
        flex-direction: column; /* 세로 배치 */
        gap: 30px;
    }
    
    .spec-card {
        border-bottom: 1px dashed #555; /* 모바일엔 점선 구분선 */
        padding-bottom: 20px;
    }
    
    .spec-card:last-child {
        border-bottom: none;
    }
}
/************************************** === 이미지 확대 모달 (라이트박스) 스타일 === */

/* 1. 모달 배경 (검은 막) */
.modal {
    display: none; /* 평소에는 숨김 */
    position: fixed; /* 스크롤해도 화면에 고정 */
    z-index: 9999; /* 제일 위에 띄우기 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 검은색 90% 불투명 */
    
    /* 내용물 가운데 정렬 */
    justify-content: center;
    align-items: center;
}

/* 2. 확대된 이미지 스타일 */
.modal-content {
    max-width:60%; /* 화면 너비의 90%까지만 */
    max-height: 60%; /* 화면 높이의 90%까지만 */
    object-fit: contain; /* 비율 유지 */
    box-shadow: 0 0 20px rgba(255,255,255,0.2); /* 은은한 흰색 그림자 */
    animation: zoom 0.3s; /* 줌 효과 애니메이션 */
}


/* 3. 닫기 버튼 (X) */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #bbb;
}

/* 4. 제품 이미지에 마우스 올리면 '클릭 가능' 표시 */
.product-item .img-box img {
    cursor: pointer; /* 마우스 커서가 손가락 모양으로 변함 */
}

/* (선택) 팝업 열릴 때 줌 애니메이션 효과 */
@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/*************************************** 메인페이지 ABOUT 섹션 '자세히 보기' 버튼 스타일 */
.btn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    border: 1px solid #bbb;
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.btn-more:hover {
    background-color: #0056b3; /* 마우스 올리면 파란색 배경 */
    border-color: #0056b3;
    color: #fff; /* 글자 흰색 */
}
/************************************************* === 메인 비주얼 배너 스타일 === */
.main-visual {
    width: 100%;
    height: 600px; /* 배너 높이 (화면을 꽉 채우려면 100vh로 변경 가능) */
    
    /* 배경 이미지 설정 + 어둡게 처리(0.5) */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('images/mainim.JPG'); 
        
    background-size: cover; /* 이미지가 찌그러지지 않고 꽉 차게 */
    background-position: center center; /* 이미지 중앙 정렬 */
    background-repeat: no-repeat;
    
    /* 글씨를 정가운데 오게 하는 설정 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 배너 안의 큰 글씨 (소재의 가능성...) */
.visual-text h2 {
    color: #ffffff; /* 흰색 */
    font-size: 48px; /* 글자 크기 큼직하게 */
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 그림자로 잘 보이게 */
    letter-spacing: -1px; /* 자간 살짝 좁게 */
}

/* 배너 안의 작은 영어 글씨 */
.visual-text p {
    color: #eeeeee; /* 살짝 연한 흰색 */
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase; /* 대문자로 변환 */
}

/* 모바일 화면에서는 높이와 글자를 조금 줄여줌 */
@media (max-width: 768px) {
    .main-visual {
        height: 400px;
    }
    .visual-text h2 {
        font-size: 32px;
        padding: 0 20px; /* 양옆 여백 */
    }
    .visual-text p {
        font-size: 14px;
    }
}