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

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

#app {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

main {
    flex: 1;
    padding: 1rem;
}

.input-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

select, input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

select:focus, input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.result-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: none;
}

.result-section.show {
    display: block;
}

#coordinates-display {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

#coordinates-display h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#coordinates-display p {
    margin: 0.25rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #6c757d;
}

#map-container {
    position: relative;
}

#map {
    height: 300px;
    width: 100%;
}

#links-section {
    padding: 1.5rem;
}

#google-maps-link {
    margin-bottom: 1.5rem;
}

#google-maps-link a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #34a853;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#google-maps-link a:hover {
    background: #2d8f47;
}

#qr-code-container {
    text-align: center;
}

#qr-code-container h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1rem;
}

#qr-code canvas {
    max-width: 200px;
    height: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

@media (min-width: 768px) {
    #app {
        max-width: 600px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 2rem;
    }
    
    #map {
        height: 400px;
    }
    
    .btn-primary, .btn-secondary {
        width: auto;
        min-width: 200px;
        display: inline-block;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    main {
        padding: 0.75rem;
    }
    
    .input-section {
        padding: 1rem;
    }
    
    #map {
        height: 250px;
    }
}