/* 기본 폰트 설정 */
@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GmarketSansLight';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'GmarketSansMedium', sans-serif;
    background-color: #f8f9fa;
}

/* 네비게이션 바 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    padding: 0;
    margin-left: 0px;
}

.navbar-brand img {
    height: 35px;
    filter: brightness(0);
}

.nav-link {
    color: #666;
    font-weight: 300;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover {
    color: #455a64;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #607d8b;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-item {
    margin: 0 60px;
    position: relative;
    transition: all 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    min-width: 220px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    color: #333;
    background-color: transparent;
    letter-spacing: -0.3px;
}

.dropdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #005baa;
    padding-left: 2rem;
    font-weight: 500;
}

.dropdown-item:active {
    background-color: #f0f0f0;
    color: #005baa;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    margin: 0 auto;
}

/* 모바일 네비게이션 메뉴 스타일 */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        margin-top: 0px;
        padding-top: 0px;
        border-top: 1px solid #eee;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .nav-item {
        margin: 0px 0px 10px 20px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .navbar-brand {
        padding: 0;
        margin-left: 0px;
    }

    .navbar-brand img {
        height: 28px;
    }
}

@media (min-width: 1200px) {
    .navbar-brand {
        margin-left: 50px;
    }
}

/* 푸터 스타일 */
.footer {
    background-color: #2a2a2a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 40px;
    position: relative;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.footer-info {
    text-align: left;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff;
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
    font-weight: 300;
    font-family: 'GmarketSansLight', sans-serif;
}

.footer-info .address {
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    position: relative;
    margin: 0 -15px;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.copyright {
    font-size: 0.9rem;
    color: #999;
    position: relative;
    z-index: 1;
}

/* 반응형 스타일 */
@media (max-width: 767.98px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-info h3 {
        font-size: 1.3rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.85rem;
    }
}

/* 히어로 섹션 */
.hero-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    margin-top: 75px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-caption {
    position: absolute;
    bottom: 30px;
    right: 30px;
    text-align: right;
    color: #fff;
    width: auto;
    max-width: 80%;
}

.hero-caption p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'GmarketSansLight', sans-serif;
    margin: 0;
}

/* 탭 메뉴 스타일 */
.tab-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tab-container h2 {
    text-align: center;
    margin: 40px 0 40px;
}

.tab-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.tab-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.tab-button {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 120px;
    padding: 12px 0;
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'GmarketSansLight', sans-serif;
    position: relative;
    border-radius: 4px;
}

.tab-button:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.tab-button.active {
    color: #0d6efd;
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.1);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0d6efd;
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.history-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.history-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.history-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

.history-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

/* 메인 컨테이너 스타일 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-container h2 {
    text-align: center;
    margin: 80px 0 40px;
    font-size: 2.0rem;
    color: #2a2a2a;
    position: relative;
    padding: 15px 0;
}

.main-container h2::before,
.main-container h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background-color: #c7c1c1;
}

.main-container h2::before {
    top: 0;
}

.main-container h2::after {
    bottom: 0;
}

@media (min-width: 1200px) {
    .main-container h2 {
        font-size: 1.8rem;
    }
    
    .main-container h2::before,
    .main-container h2::after {
        width: 1800px;
    }
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .main-container {
        max-width: 960px;
    }
    
    .hero-caption p {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .main-container {
        max-width: 720px;
    }
    
    .hero-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .hero-caption p {
        font-size: 0.85rem;
    }

    .hero-caption {
        display: none;
    }

    .main h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .tab-button {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .tab-container h2 {
        font-size: 1.3rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .main-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-caption p {
        font-size: 0.6rem;
    }

    .main h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    .tab-button {
        font-size: 0.95rem;
        padding: 8px 0;
    }

    .tab-content.active {
        grid-template-columns: 1fr;
        gap: 40px !important;
    }

    .history-item {
        margin-bottom: 20px;
    }

    .hero-image {
        height: 250px;
        object-fit: cover;
    }

    .tab-container h2 {
        font-size: 1.3rem;
        text-align: center;
    }
}

/* 갤럭시 S8 가로보기 모드 대응 */
@media (min-width: 800px) and (max-width: 1200px) and (orientation: landscape) {
    .hero-container {
        width: 100%;
        overflow: hidden;
    }
    
    .hero-image {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }
    
    .hero-caption {
        bottom: 15px;
        right: 15px;
        max-width: 60%;
    }
    
    .hero-caption p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}