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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.table-btn {
    padding: 20px 15px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.table-btn.active {
    border-color: #e67e22;
    color: #e67e22;
}

.table-btn .table-name {
    font-size: 18px;
}

.table-btn .table-info {
    font-size: 13px;
    font-weight: normal;
    opacity: 0.7;
}

.table-btn .table-price {
    font-size: 16px;
}

.table-btn:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
}

.table-btn:hover .table-info {
    opacity: 1;
}

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

.empty-text {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #999;
    grid-column: 1 / -1;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #2ecc71;
    color: white;
}

.notification.error {
    background: #e74c3c;
    color: white;
}

.notification.warning {
    background: #f39c12;
    color: white;
}

.loading-text,
.error-text {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
    grid-column: 1 / -1;
}

.error-text {
    color: #e74c3c;
}

/* タブレット対応 */
@media (max-width: 768px) {
    .table-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .table-btn {
        padding: 25px 15px;
        font-size: 16px;
    }
}
