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

body {
    font-family: 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 14px;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.main-content {
    background: white;
    margin: 30px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.calculator-section {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border: 2px solid #e1e5f7;
}

.calculator-title {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.update-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group input, .form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 200px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.unit {
    font-weight: bold;
    color: #666;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
    margin: 30px auto;
}

.calculate-btn:hover {
    transform: translateY(-2px);
}

.result-section {
    background: #e8f5e8;
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    text-align: center;
    border: 2px solid #4caf50;
}

.result-title {
    font-size: 20px;
    color: #2e7d32;
    margin-bottom: 15px;
}

.result-amount {
    font-size: 32px;
    font-weight: bold;
    color: #1b5e20;
}

.info-section {
    margin-top: 40px;
}

.info-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.info-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
}

.info-content ul {
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 10px;
}

.tax-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.tax-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    border: 2px solid #f0f0f0;
}

.tax-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.tax-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.ad-space {
    background: #f0f0f0;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    border-radius: 10px;
    border: 2px dashed #ccc;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
    font-size: 14px;
}

.share-btn:hover {
    transform: scale(1.05);
}

.twitter { background: #1da1f2; color: white; }
.facebook { background: #4267b2; color: white; }
.kakao { background: #fee500; color: #333; }
.naver { background: #03c75a; color: white; }
.band { background: #00c73c; color: white; }

.calendar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.calendar-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    color: #667eea;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-header {
    font-weight: bold;
    padding: 10px 5px;
    background: #f0f0f0;
}

.calendar-day {
    padding: 10px 5px;
    border: 1px solid #eee;
}

.today {
    background: #667eea;
    color: white;
    border-radius: 5px;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 15px;
    }
    
    .main-content {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .form-group input, .form-group select {
        width: 100%;
    }
    
    .input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
    }
}
