/* ---------------------------------------
   HEADER
---------------------------------------- */
#background {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 999;
    border-bottom: 1px solid #e5e5e5;
}

/* 로고 */
#main_logo {
    height: 45px;
    transition: 0.3s;
}
#main_logo:hover { transform: scale(1.08); }

/* ICONS */
#icon-container {
    display: flex;
    align-items: center;
    gap: 16px;
}
#icon-container img {
    height: 24px;
    transition: 0.25s ease;
    cursor: pointer;
}
#icon-container img:hover {
    transform: scale(1.15);
    opacity: 0.95;
}

/* MOBILE MENU BUTTON */
#menu-toggle {
    display: none;
    font-size: 35px;
    cursor: pointer;
}

/* MENU 기본 */
#menu {
    display: flex;
    gap: 35px;
    align-items: center;
}
#menu a {
    text-decoration: none;
    color: #333;
    font-size: 17px;
    transition: 0.3s;
}
#menu a:hover {
    color: #000;
    font-weight: 600;
    transform: scale(1.05);
}

/* MOBILE MENU */
@media (max-width: 900px) {
    #menu-toggle { display: block; }

    #menu {
        position: fixed;
        top: 0; right: -260px;
        width: 260px;
        height: 100vh;
        background: rgba(0,0,0,0.88);
        flex-direction: column;
        padding-top: 100px;
        gap: 25px;
        transition: right 0.4s ease;
        z-index: 9999;
    }
    #menu.active { right: 0; }
    #menu a { color: #fff; font-size: 20px; }

    #menu-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
    }

    #menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(0,0,0,0.45);
        z-index: 888;
    }
    #menu-overlay.active { display: block; }
}

/* PC 메뉴 중앙 정렬 */
@media (min-width: 900px) {
    #menu {
        position: static;
        justify-content: center;
        gap: 40px;
        background: none;
    }
    #menu a { color: #000; }

    #menu-close,
    #menu-overlay,
    #menu-toggle { display: none !important; }

    #background {
        justify-content: center;
        position: relative;
    }
    .logo-link { position: absolute; left: 20px; }
    #icon-container { right: 20px; position: absolute; }
}

/* ---------------------------------------
   SLIDER
---------------------------------------- */
#slider-container {
    margin-top: 100px;
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-img {
    width: 55%;
    height: 420px;
    object-fit: cover;
    position: absolute;
    top: 50%; left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: 0.8s;
    border-radius: 12px;
    filter: brightness(85%);
}

.slide-img.center {
    z-index: 3;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(100%);
}

.slide-img.left {
    opacity: 1;
    z-index: 2;
    transform: translate(calc(-50% - 330px), -50%) scale(0.75);
    filter: brightness(50%) blur(1px);
}
.slide-img.right {
    opacity: 1;
    z-index: 2;
    transform: translate(calc(-50% + 330px), -50%) scale(0.75);
    filter: brightness(50%) blur(1px);
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px; height: 55px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
}
#prevBtn { left: 25px; }
#nextBtn { right: 25px; }

/* 슬라이더 모바일 */
@media (max-width: 700px) {
    #slider-container { height: 320px; margin-top: 90px; }
    .slide-img { width: 80%; height: 260px; }
    .slide-img.left { transform: translate(calc(-50% - 150px), -50%) scale(0.65); }
    .slide-img.right { transform: translate(calc(-50% + 150px), -50%) scale(0.65); }
    .slide-btn { width: 38px; height: 38px; font-size: 22px; }
    #prevBtn { left: 10px; }
    #nextBtn { right: 10px; }
}

/* ---------------------------------------
   SECTION 기본 (중복 제거 후 정리)
---------------------------------------- */
.section {
    width: 100%;
    padding: 160px 50px;
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}
.section-title {
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: 600;
}
.section-text {
    font-size: 19px;
    line-height: 32px;
    max-width: 800px;
    margin: 0 auto;
    padding: 22px 28px;
    background: #fafafa;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    color: #444;
}

/* 모바일 */
@media (max-width: 700px) {
    .section { padding: 80px 25px; }
    .section-title { font-size: 27px; }
    .section-text {
        font-size: 16px;
        padding: 18px 22px;
        line-height: 28px;
    }
}

/* ---------------------------------------
   ABOUT
---------------------------------------- */
#about { background: #fafafa; }

.about-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.feature-box {
    width: 260px;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 4px 14px rgba(0,0,0,0.08);
}
.feature-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .feature-box {
        width: 100%;
        padding: 20px;
    }
}

/* ---------------------------------------
   GALLERY
---------------------------------------- */
#gallery { background: #ffffff;
margin-bottom: 90px;}

.gallery-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.gallery-container img {
    width: 30%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.35s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
.gallery-container img:hover { transform: translateY(-5px); }

@media (max-width: 700px) {
    .gallery-container img {
        width: 90%;
        height: 220px;
    }
}

/* ---------------------------------------
   STORY – 간격을 ABOUT과 동일하게 조절
---------------------------------------- */
#story { 
    background: #f4f4f4;
    padding-top: 40px;
    padding-bottom: 40px;
}

.story-box {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px 40px;
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.08);
}

.story-box h2 {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: 700;
}

.story-box p {
    font-size: 20px;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 20px;
}

/* 모바일 */
@media (max-width: 700px) {
    .story-box {
        padding: 28px 20px;
    }
    .story-box h2 {
        font-size: 28px;
    }
    .story-box p {
        font-size: 17px;
        line-height: 1.6;
    }
}


/* ---------------------------------------
   CONTACT
---------------------------------------- */
#contact { background: #ffffff; }

#contact iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 15px;
}
@media (max-width: 700px) {
    #contact iframe { height: 280px; }
}

/* ---------------------------------------
   CESCO SECTION – 간격 수정 + 텍스트박스 느낌 강화
---------------------------------------- */
#cesco {
    margin-top: 90px; /* 🔥 요청한 “조금 더 아래로” 반영 */
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cesco-box {
    max-width: 700px;
    text-align: center;
    padding: 38px 28px;
    border-radius: 18px;
    background: #f9f9f9;
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
    border: 1px solid #e7e7e7;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;   /* 🔥 로고랑 글 더 붙임 */
}

.cesco-logo {
    width: 115px;
    filter: drop-shadow(0px 3px 4px rgba(0,0,0,0.15));
}

#cesco h2 {
    font-size: 28px;
    margin: 4px 0;
    color: #0063b2;
}

#cesco p {
    font-size: 18px;
    line-height: 30px;
    color: #444;
    max-width: 650px;
}
#footer {
    background-color: #8b7a52;
}

@media (max-width: 700px) {
    .cesco-box { padding: 35px 20px; }
    .cesco-logo { width: 95px; }
    #cesco h2 { font-size: 24px; }
    #cesco p { font-size: 16px; line-height: 27px; }
}
