.ip-lookup-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    overflow: hidden;
}

.ip-lookup-header {
    background: linear-gradient(135deg, #00a78b 0%, #008c74 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    font-size: 28px;
    font-weight: 500;
}

.ip-lookup-content {
    background: white;
    padding: 40px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.ip-lookup-search {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.ip-lookup-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.ip-lookup-input:focus {
    outline: none;
    border-color: #00a78b;
}

.ip-lookup-button {
    padding: 15px 40px;
    background: #00a78b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.ip-lookup-button:hover {
    background: #008c74;
}

.ip-lookup-button:active {
    transform: translateY(1px);
}

.ip-lookup-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    overflow: hidden;
}

.ip-lookup-info {
    border-radius: 8px;
    overflow: hidden;
}

.ip-lookup-table {
    width: 100%;
    border-collapse: collapse;
}

.ip-lookup-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.ip-lookup-table tr:last-child {
    border-bottom: none;
}

.ip-lookup-label {
    padding: 20px;
    font-weight: 700;
    color: #333;
    background: #fff;
    width: 40%;
    vertical-align: top;
    font-size: 16px;
}

.ip-lookup-value {
    padding: 20px;
    color: #333;
    background: #f8f9fa;
    font-weight: 400;
    font-size: 18px;
}

.ip-lookup-map {
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

#ip-lookup-map-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
    min-height: 400px;
}

#ip-lookup-map-container.has-map {
    color: inherit;
}

.ip-lookup-loading {
    text-align: center;
    padding: 40px;
    color: #00a78b;
    font-size: 16px;
}

.ip-lookup-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ip-lookup-content {
        padding: 20px;
    }
    
    .ip-lookup-search {
        flex-direction: column;
    }
    
    .ip-lookup-results {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ip-lookup-label {
        width: 35%;
        padding: 15px;
    }
    
    .ip-lookup-value {
        padding: 15px;
    }
    
    .ip-lookup-map {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .ip-lookup-header h2 {
        font-size: 22px;
    }
    
    .ip-lookup-label {
        font-size: 14px;
    }
    
    .ip-lookup-value {
        font-size: 14px;
    }
}
