/* Base Styles - Common styles for all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 400;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.5em;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    padding: 24px 30px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
}

.logo {
    font-size: 18px;
    font-weight: bold;
    width: 108px;
    height: 23px;
    opacity: 1;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-dark {
    filter: brightness(0);
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
}

nav a:hover::after {
    width: 100%;
}

.line {
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin-top: 4px;
}

.close-menu {
    display: none;
}

.mobile-menu-logo {
    display: none;
}

.mobile-menu-logo a {
    display: block;
    transition: opacity 0.3s ease;
}

.mobile-menu-logo a:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background-color: #000;
    margin: 2px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer Styles */
footer {
    background-color: #000;
    padding: 30px 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #666;
    font-size: 14px;
    margin: 20px;
}

.copyright img {
    width: 98px;
    height: 20px;
    margin-bottom: 10px;
}

.copyright a {
    color: #666;
    text-decoration: none;
}

.copyright a:hover {
    color: #666;
    text-decoration: none;
}

.tokusho-link {
    color: #666;
    text-decoration: none;
    margin: 0;
}

/* Utility Classes */
.ellipse-container {
    font-size: 20px;
}

.underline {
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
}

/* underline 클래스가 있는 링크는 ::after 애니메이션 제거 */
nav a.underline::after {
    display: none;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-30 {
    padding-bottom: 30px;
}

.pb-40 {
    padding-bottom: 40px;
}

/* Typography */
.poppins-semibold {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 48px;
    text-align: center;
}

.poppins-regular {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 48px;
    text-align: center;
}

/* Gap Utilities */
.gap-30 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 20px 20px;
        justify-content: flex-start;
        position: fixed;
    }

    .logo {
        font-size: 16px;
        width: auto;
        height: auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 16px;
    }

    .hamburger {
        display: flex;
        order: 1;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: left 0.3s ease;
        padding-top: 0;
        z-index: 1002;
    }

    nav.active {
        left: 0;
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 24px;
        left: 20px;
        background: none;
        border: none;
        font-size: 32px;
        color: #000;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        width: 32px;
        height: 32px;
        z-index: 1001;
    }

    .close-menu:hover {
        opacity: 0.7;
    }

    .mobile-menu-logo {
        display: block;
        padding: 80px 30px 30px 30px;
        text-align: left;
    }

    .mobile-menu-logo img {
        height: 20px;
        width: auto;
        filter: brightness(0);
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        padding: 0 30px;
    }

    nav li {
        width: 100%;
    }

    nav a {
        font-size: 18px;
        color: #000;
    }

    .line {
        display: none;
    }

    /* Footer */
    footer {
        padding: 30px 20px;
    }

    .copyright {
        font-size: 12px;
    }

    .copyright img {
        width: 80px;
        height: auto;
    }

    .poppins-semibold,
    .poppins-regular {
        font-size: 16px;
        line-height: 26px;
    }

    .gap-30 {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        align-items: center;
    }

    .gap-30 img {
        margin-top: 20px;
        height: 18px;
    }

    .ellipse-container {
        font-size: 16px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .poppins-semibold,
    .poppins-regular {
        font-size: 20px;
        line-height: 30px;
        /* padding: 0 10px; */
    }
}

/* Responsive - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet specific styles if needed */
}
