﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

body {
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 헤더 영역 */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    padding: 0px 0;
}

.logo {
    text-align: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    background-color: white;
    border-top: 1px solid #eee;
    position: relative;
    padding-left: 180px; /* company-icon 공간 확보 */
}

.nav-menu ul {
    display: flex;
    width: 100%; /* 가능한 모든 공간 사용 */
    justify-content: space-between; /* 항목 간격 균등 분배 */
}

.nav-menu li {
    padding: 15px 15px; /* 간격 조정 (필요시) */
    font-size: 16px;
    font-weight: 500;
}

.company-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.company-icon img {
    height: 30px;
}

/* 모바일 메뉴 */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 105;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    font-size: 18px;
    color: #333;
    text-decoration: none;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 메인 배너 */
.main-banner {
    background-color:#341001;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}


.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image {
    width: 100%;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
}

.banner-text h2 {
    color: #ff4184;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.banner-text p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.banner-image {
    width: 100%;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
}

/* 서비스 카테고리 */
.service-category {
    margin: 40px auto;
}

.category-header {
    background-color:#341001;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 5px 5px 0 0;
}

.category-content {
    display: flex;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
}

.category-text {
    padding: 20px;
    flex: 1;
    border-right: 1px solid #eee;
}

.category-icons {
    display: flex;
    flex: 3;
}

.icon-item {
    flex: 1;
    text-align: center;
    padding: 20px 10px;
    transition: all 0.3s;
}

.icon-item:hover {
    background-color: #f3f3f3;
}

.icon-item i {
    font-size: 30px;
    color: #555;
    margin-bottom: 10px;
    display: block;
}

.icon-item.car {
    background-color: #ff4589;
    color: white;
}

.icon-item.taxi {
    background-color: #ff6ba9;
    color: white;
}

.icon-item.help {
    background-color: #9e005d;
    color: white;
}

.icon-item.call {
    background-color: #333;
    color: white;
}

.call-number {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: right;
    color: #ff4589;
    font-size: 24px;
    font-weight: 700;
}

/* 서비스 소개 카드 */
.service-cards {
    display: flex;
    gap: 1px;
    margin-bottom: 40px;
}

.service-card {
    flex: 1;
    background-color: white;
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:nth-child(2) {
    flex: 5;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
}

.card-overlay h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.card-content {
    padding: 15px;
    font-size: 14px;
    color: #555;
}

.more-btn {
    display: block;
    text-align: center;
    background-color: #333;
    color: white;
    padding: 8px 0;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.more-btn:hover {
    background-color: #555;
}

/* 푸터 영역 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff4589;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #555;
    font-size: 12px;
    color: #999;
}

.banner-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 9;
    width: 100%;
    text-align: center;
    display: none;
}

.cstcol {
    background-color: transparent;
    text-align: center;
    width: 100%;
    padding: 10px;
    font-size:110%;
    border:1px solid white;
    color:yellow;
    font-weight:bolder;
}

/* 반응형 */
@media (max-width: 768px) {
    .banner-footer {
        display: flex;
        color:white;
     }

    .banner-content {
        padding: 0;
    }

    .banner-image {
        width: 90%;
        padding: 0;
    }

    .service-cards {
        display: flex;
    }

    .service-card {
        flex: 1;
    }

    .service-card:nth-child(1) {
        display: none;
    }

    .category-content {
        flex-direction: column;
    }

    .category-icons {
        flex-wrap: wrap;
    }

    .icon-item {
        flex: 1 0 50%;
    }

    .footer-content {
        flex-direction: column;
        padding-left: 10px;
    }

    /* 모바일 메뉴 표시 */
    .mobile-menu-toggle {
        display: block;
        color:white;
    }

    .nav-menu {
        display: none;
    }

    .header-top {
        position: relative;
    }

    section{
       padding-left:10px;
       padding-right:10px;
    }
}

/* 모바일 메뉴 열릴 때 */
body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu {
    display: block;
}

