@font-face {
    font-family: 'SchoolSafetyRoundedSmile';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimDunggeunmisoTTF-R.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SchoolSafetyRoundedSmile';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimDunggeunmisoTTF-B.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

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

:root {
    --primary-color: #4C5863;
    --primary-dark: #3a4449;
    --primary-light: #6b7a87;
    --secondary-color: #B6D5F0;
    --accent-color: #99B3C9;
    --text-color: #2c2c2c;
    --text-light: #555;
    --bg-color: #B6D5F0;
    --card-bg: #ffffff;
    --border-color: #99B3C9;
    --input-bg: #f5f9fc;
    --shadow: 0 4px 15px rgba(76, 88, 99, 0.15);
    --shadow-hover: 0 6px 25px rgba(76, 88, 99, 0.25);
    --shadow-soft: 0 2px 8px rgba(153, 179, 201, 0.2);
}

body {
    font-family: 'GMarketSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #B6D5F0 0%, #99B3C9 50%, #B6D5F0 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    padding-top: 100px;
    font-weight: 500;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* 네비게이션 메뉴 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(76, 88, 99, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(76, 88, 99, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-family: 'GMarketSans', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'GMarketSans', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(76, 88, 99, 0.1);
}

.nav-link:active {
    color: var(--primary-color);
}

/* 드롭다운 메뉴 스타일 */
.nav-item.has-dropdown > .nav-link::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 5px;
}

.nav-item.has-dropdown.active > .nav-link::after {
    content: ' ▲';
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(76, 88, 99, 0.2);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 5px;
    z-index: 1000;
    list-style: none;
}

.nav-item.has-dropdown.active .submenu {
    display: block;
}

.submenu .nav-link {
    padding: 12px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 0;
    white-space: nowrap;
}

.submenu .nav-link:hover {
    background: rgba(76, 88, 99, 0.1);
    color: var(--primary-color);
}

/* 반응형: 모바일에서 드롭다운 메뉴 */
@media (max-width: 768px) {
    .submenu {
        position: static;
        box-shadow: none;
        background: rgba(76, 88, 99, 0.05);
        margin-top: 0;
        padding-left: 20px;
    }
    
    .nav-item.has-dropdown.active .submenu {
        display: block;
    }
    
    .submenu .nav-link {
        padding: 10px 20px;
    }
}

/* 햄버거 메뉴 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

header {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

header h1 {
    font-family: 'GMarketSans', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-family: 'GMarketSans', sans-serif;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.calculator-card,
.info-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(153, 179, 201, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    letter-spacing: 0.3px;
    font-family: 'GMarketSans', sans-serif;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--input-bg);
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-color);
}

input[type="date"]:hover,
input[type="number"]:hover {
    border-color: var(--primary-light);
    background: #ffffff;
}

input[type="date"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(76, 88, 99, 0.12);
    transform: translateY(-1px);
}

.currency {
    position: absolute;
    right: 18px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="number"] {
    padding-right: 50px;
}

.help-text {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    font-weight: 500;
}

.btn-today {
    margin-left: 10px;
    padding: 10px 18px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-today:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-today:active {
    transform: translateY(0);
}

.btn-calculate {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(76, 88, 99, 0.3);
    letter-spacing: 0.5px;
}

.btn-calculate:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 88, 99, 0.4);
}

.btn-calculate:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(76, 88, 99, 0.3);
}

.result-section {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 3px solid var(--accent-color);
    animation: fadeIn 0.6s ease;
}

.result-section.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header h2 {
    font-family: 'GMarketSans', sans-serif;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.result-content {
    background: linear-gradient(135deg, #f5f9fc 0%, #B6D5F0 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(153, 179, 201, 0.4);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(153, 179, 201, 0.5);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 88, 99, 0.3);
}

.result-item.highlight .result-label {
    color: white;
    font-weight: 600;
}

.result-label {
    font-family: 'GMarketSans', sans-serif;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.result-value {
    font-family: 'GMarketSans', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.15rem;
}

.result-value.large {
    font-size: 2rem;
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.result-breakdown {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(153, 179, 201, 0.5);
}

.result-breakdown h3 {
    font-family: 'GMarketSans', sans-serif;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 600;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.holiday-list {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(153, 179, 201, 0.5);
}

.holiday-list h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 600;
}

/* 홈 페이지 스타일 */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.calculator-link {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 30px;
}

.calculator-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.calculator-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

.calculator-link h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.calculator-link p {
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.link-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.calculator-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* 직장인 커뮤니티 페이지 스타일 */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.community-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(153, 179, 201, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.community-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.community-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.community-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    font-weight: 500;
}

.community-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 88, 99, 0.3);
}

.community-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 88, 99, 0.4);
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.result-notice {
    margin-top: 25px;
    padding: 20px;
    background: rgba(76, 88, 99, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 500;
}

.description-text {
    margin-top: 15px;
    padding: 0 5px;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 500;
}

.btn-secondary {
    flex: 1;
    padding: 14px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.info-card {
    background: var(--card-bg);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 500;
}

.info-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    color: var(--primary-color);
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(76, 88, 99, 0.15);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 5px 0;
    }

    .nav-link {
        padding: 15px 20px;
        width: 100%;
        display: block;
        border-radius: 0;
    }

    .nav-link:hover {
        background: rgba(76, 88, 99, 0.1);
    }

    header h1 {
        font-size: 2rem;
    }

    .calculator-card,
    .info-card {
        padding: 20px;
    }

    .result-actions {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }

    input[type="date"],
    input[type="number"] {
        font-size: 16px; /* 모바일에서 줌 방지 */
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .calculator-card,
    .info-card {
        padding: 15px;
    }

    .result-value.large {
        font-size: 1.5rem;
    }
}

/* 인쇄 스타일 */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .btn-calculate,
    .btn-secondary,
    .btn-today,
    footer,
    .info-card {
        display: none;
    }

    .calculator-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

