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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}

.subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.counter-display {
    margin-bottom: 0;
}

.current-count {
    margin-bottom: 20px;
}

.count-number {
    font-size: 4rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    transition: all 0.3s ease;
}

.count-label {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-left: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-text {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Status colors */
.status-empty {
    background: #27ae60;
}

.status-moderate {
    background: #f39c12;
}

.status-crowded {
    background: #e67e22;
}

.status-full {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.remaining-seats {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #7f8c8d;
}

.seats-number {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.3rem;
}

.seats-label {
    margin-left: 4px;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-height: 80px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.btn-icon {
    font-size: 1.5rem;
}

.btn-enter {
    background: #27ae60;
}

.btn-enter:hover {
    background: #229954;
}

.btn-exit {
    background: #e74c3c;
}

.btn-exit:hover {
    background: #c0392b;
}

.btn-settings {
    background: #9b59b6;
}

.btn-settings:hover {
    background: #8e44ad;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.btn-small {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: auto;
    flex-direction: row;
    gap: 0;
    background: #95a5a6;
}

.btn-small:hover {
    background: #7f8c8d;
}

.btn-add {
    background: #27ae60;
}

.btn-add:hover {
    background: #229954;
}

.btn-subtract {
    background: #e74c3c;
}

.btn-subtract:hover {
    background: #c0392b;
}

.btn-reset {
    background: #95a5a6;
}

.btn-reset:hover {
    background: #7f8c8d;
}

.history {
    border-top: 1px solid #ecf0f1;
    padding-top: 30px;
}

.history h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.controls-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 768px) {
    main {
        display: block;
    }
    
    .counter-display {
        margin-bottom: 40px;
    }
    
    .controls-section {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        max-width: 400px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .count-number {
        font-size: 3rem;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
}