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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

.comparison-area {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.product-slot {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.product-slot:hover {
    transform: translateY(-2px);
}

.drop-zone {
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed #ddd;
    margin: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone.drag-over {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.drop-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.drop-zone p {
    margin-bottom: 1rem;
    color: #666;
}

.url-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.product-info {
    padding: 1.5rem;
}

.product-card {
    display: flex;
    gap: 1rem;
}

.product-image {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.price-info {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e74c3c;
    margin-right: 0.5rem;
}

.unit-price {
    color: #666;
    font-size: 0.9rem;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.quantity-input label {
    font-weight: 500;
}

.quantity {
    width: 80px;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.unit {
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vs-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.2rem;
    align-self: center;
}

.comparison-result {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-result h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.result-cards {
    display: flex;
    justify-content: center;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    max-width: 400px;
    border: 2px solid #dee2e6;
}

.result-card.winner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.winner-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.result-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.result-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.total-price span {
    color: #e74c3c;
    font-weight: 600;
}

.unit-cost span {
    color: #3498db;
    font-weight: 600;
}

.savings span {
    color: #28a745;
    font-weight: 600;
}

@media (max-width: 768px) {
    .comparison-area {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vs-indicator {
        justify-self: center;
    }
    
    .product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .quantity-input {
        justify-content: center;
    }
}

