body {
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    padding-top: 100px;
}

header {
    position: fixed;
    top: 20px;
    left: 20px;
}

.text-logo {
    text-decoration: none;
    color: #4f46e5;
    font-size: 22px;
    font-weight: bold;
}

.container {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    color: #4f46e5;
}

.search-box {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
}

button {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #4f46e5;
    color: white;
    cursor: pointer;
}

#weatherResult {
    margin-top: 25px;
    text-align: center;
    font-size: 18px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .search-box {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

/* カード下部のデータがopen-meteoの表示 */
.data-source {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

.data-source a {
    color: inherit;
    text-decoration: none;
}

.data-source a:hover {
    text-decoration: underline;
}