body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* padding: 20px; を削除しました */
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 800px; /* 最大幅を600pxから800pxに拡大しました */
    box-sizing: border-box;
    margin: 20px; /* bodyのpaddingの代わりにmarginで余白を確保します */
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
}

p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#map {
    height: 300px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    z-index: 0;
}

#loading {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #3498db;
    animation: spin 1s ease infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#result {
    margin-top: 30px;
}

.result-header {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 6px;
}

.result-header h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #2c3e50;
}

.result-header p {
    margin: 0;
    color: #7f8c8d;
    text-align: left;
}

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

.weather-table th, .weather-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.weather-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.weather-icon {
    font-size: 24px;
    vertical-align: middle;
}

.temp-max { color: #e74c3c; }
.temp-min { color: #3498db; }

