/* ==========================================================================
   1. 초기 설정 및 공통 변수
   ========================================================================== */
:root {
    --kakao-yellow: #fee500;
    --primary-black: #111111;
    --text-gray: #666666;
    --bg-light: #f9f9fb;
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: var(--primary-black);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. 헤더 (고정형 화이트 레이아웃)
   ========================================================================== */
header {
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-black);
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

header nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

header nav ul li a:hover {
    color: var(--kakao-yellow);
}

/* ==========================================================================
   3. 메인 슬라이더 (헤더 아래에서 시작하도록 보정)
   ========================================================================== */
.main-slider {
    width: 100%;
    /* 전체 화면에서 헤더 높이(80px)만큼 제외 */
    height: calc(100vh - 80px); 
    margin-top: 80px; /* 헤더가 덮지 않도록 강제로 내림 */
    position: relative;
    overflow: hidden;
}

.mySwiper { width: 100%; height: 100%; }

/* 3. 슬라이드 내부 정렬 (가장 중요) */
.swiper-slide {
    display: flex !important; /* block 설정을 강제로 무시하고 flex 적용 */
    align-items: center;      /* 수직(위아래) 중앙 정렬 */
    justify-content: flex-start; /* 수평(좌우) 왼쪽 정렬 */
    width: 100% !important;
    height: 100% !important;
    background-size: cover;
    background-position: center;
}

/* 슬라이드 이미지 */
.slide1 { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),url('../images/gama_bg.png'); }
.slide2 { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),url('../images/hero_bg.png'); }

.slide-text {
    width: 100%;
    max-width: 1400px;
    color: #ffffff;
    margin: 0 auto;
    /* 기존 padding-left: 5%를 제거하고 아래 설정을 추가하세요 */
    padding-left: 0; 
    /* 바닥에서 적절히 띄우기 (숫자를 조절해 높이를 맞추세요) */
    padding-bottom: 50px; 
    /* 텍스트 줄바꿈 시에도 가운데 정렬 유지 */
    text-align: center;
}

/* 글자 크기 및 색상 */
.slide-text h2 {
font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;

    /* ▼▼▼ 수정할 부분 ▼▼▼ */
    color: #ffffff; /* 글자색을 흰색으로 설정 */
    /* 텍스트 그림자 추가: 가로2px, 세로2px, 번짐8px, 검은색(투명도 70%) */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.slide-text p {
font-size: 1.4rem;
    margin-top: 20px;

    /* ▼▼▼ 수정할 부분 ▼▼▼ */
    color: #ffffff; /* 글자색을 흰색으로 설정 */
    /* 제목보다 약간 더 부드러운 그림자 적용 */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.slide-text h2 strong { font-weight: 700; }

/* ==========================================================================
   Swiper 슬라이더 커스텀 스타일 (색상 및 크기)
   ========================================================================== */

/* 1. 화살표 색상 변경 (파란색 -> 화이트 또는 옐로우) */
.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
    color: #ffffff; /* 화살표 색상: 흰색 */
    /* 만약 노란색을 원하시면 #fee500 으로 변경하세요 */
    
    /* 화살표 뒤에 텍스트 그림자를 주면 가독성이 좋아집니다 */
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: 0.3s;
}

/* 마우스를 올렸을 때 강조색상 */
.main-slider .swiper-button-next:hover,
.main-slider .swiper-button-prev:hover {
    color: #fee500; /* 카카오 옐로우 */
}

/* 화살표 크기를 조금 더 작고 세련되게 조절 (기본은 너무 큼) */
.main-slider .swiper-button-next::after,
.main-slider .swiper-button-prev::after {
    font-size: 30px !important;
    font-weight: bold;
}

/* 2. 하단 페이지네이션(점) 색상 변경 */
/* 비활성화된 기본 점 */
.main-slider .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
}

/* 활성화된 현재 페이지 점 */
.main-slider .swiper-pagination-bullet-active {
    background: #fee500 !important; /* 활성 점 색상: 옐로우 */
    opacity: 1;
    width: 30px; /* 활성화된 점만 길게 만들어 세련미 추가 */
    border-radius: 5px;
}
/* ==========================================================================
   4. 브랜드 가치 및 인트로
   ========================================================================== */
.intro { padding: 100px 0; text-align: center; }
.sub-title { color: #ff5722; font-weight: bold; letter-spacing: 2px; }
.intro h3 { font-size: 2.5rem; margin: 20px 0 60px; }

.value-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.value-item { flex: 1; }
.value-item img { width: 400px; margin: 0 auto 20px; }

/* ==========================================================================
   5. 제품 섹션 & 카드 그리드
   ========================================================================== */
.main-products { padding: 100px 0; background-color: var(--bg-light); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-img { height: 260px; overflow: hidden; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 30px; }
.prod-title { font-size: 1.3rem; margin-bottom: 10px; font-weight: 700; }
.prod-text { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 20px; }

.btn-link, .btn-more {
    font-weight: bold;
    color: var(--primary-black);
    border-bottom: 2px solid var(--kakao-yellow);
}

/* ==========================================================================
   6. 서브 페이지 요소 (문의폼, 게시판 등)
   ========================================================================== */
/* 서브 비주얼 */
.sub-visual { height: 350px; display: flex; align-items: center; color: #fff; }
.company-bg { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/sub-bg.jpg') no-repeat center/cover; }

/* 게시판 */
.board-list table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--primary-black); }
.board-list th { padding: 20px; background: var(--bg-light); border-bottom: 1px solid #ddd; }
.board-list td { padding: 20px; border-bottom: 1px solid #eee; text-align: center; }

/* 문의 폼 */
.form-wrapper {
    max-width: 800px;
    margin: 80px auto;
    padding: 50px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.input-row { display: flex; gap: 20px; margin-bottom: 20px; }
.input-row input, textarea {
    flex: 1; padding: 15px; border: 1px solid #ddd; border-radius: 12px; outline: none;
}

.btn-submit {
    width: 100%; padding: 20px; background: var(--primary-black);
    color: #fff; border: none; border-radius: 12px; cursor: pointer; font-weight: bold;
}

/* ==========================================================================
   7. 푸터 (Footer)
   ========================================================================== */
#main-footer {
    background-color: var(--bg-light);
    padding: 60px 0 40px;
    color: var(--text-gray);
    font-size: 14px;
    border-top: 1px solid #eee;
}

.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-nav ul { display: flex; list-style: none; gap: 25px; }

.company-info span:not(:last-child)::after {
    content: "|";
    margin: 0 15px;
    color: #ccc;
}

/* ==========================================================================
   8. 반응형 디자인 (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .header-inner { padding: 0 15px; }
    header nav { display: none; } /* 모바일 메뉴는 별도 구현 필요 */

    .slide-text h2 { font-size: 2.2rem; }
    .value-grid { flex-direction: column; gap: 20px; }
    
    .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .input-row { flex-direction: column; }
}

/* 헤더 전체 스타일 */
#main-header {
    width: 100%;
    height: 80px;            /* 헤더 고정 높이 */
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* 내부 정렬 컨테이너 */
.header-inner {
    width: 100%;
    max-width: 100%;       /* 좌우 끝으로 더 넓게 벌리기 위해 최대 너비 확장 */
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;         /* 좌우 여백 */
    display: flex;
    justify-content: space-between; /* 양 끝 정렬 (로고 <-> 아이콘) */
    align-items: center;
    position: relative;      /* 중앙 메뉴 배치를 위한 기준점 */
}

/* 1. 로고 스타일 */
#main-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #111;
    font-size: 22px;
    font-weight: 800;
}

#main-header .logo img {
    height: 40px; /* 로고 높이 조절 */
    margin-right: 10px;
}

/* 2. 중앙 메뉴(GNB) 스타일 - 화면 정중앙 배치 */
#main-header .gnb {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#main-header .gnb ul {
    display: flex;
    list-style: none;
    gap: 40px; /* 메뉴 사이 간격 */
}

#main-header .gnb ul li a {
    text-decoration: none;
    color: #111;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

#main-header .gnb ul li a:hover {
    color: #fee500; /* 카카오 옐로우 포인트 */
}

/* 3. 우측 아이콘 영역 스타일 */
.header-util {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-util a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    transition: opacity 0.3s;
}

.header-util a:hover {
    opacity: 0.6;
}

/* 아이콘 폰트(FontAwesome 등) 미사용 시 임시 대체 텍스트 */
.icon-user::before { content: '👤'; }
.icon-cart::before { content: '👜'; }
.icon-search::before { content: '🔍'; }