:root {
    --primary-color: #a8e6cf;
    --primary-dark: #8cd4b8;
    --secondary-color: #ffd3b6;
    --text-color: #555;
    --bg-color: #f9fbf9;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(224, 235, 224, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 235, 224, 0.5) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 1.5rem;
    color: #444;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--primary-color);
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

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

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #666;
}

select, input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.btn {
    display: inline-block;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #4a7c6a;
    margin-top: 20px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: #4a7c6a;
}

.btn-remove {
    background: #ff8b94;
    color: white;
    width: auto;
    padding: 5px 10px;
    font-size: 0.8rem;
}

#city-search-container {
    position: relative;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background: #f0fdf4;
}

#results {
    display: none;
    background: #fff;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a7c6a;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #4a7c6a;
    font-weight: bold;
}

.sub-section {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.sub-section legend {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0 10px;
    color: #888;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 10px;
}

.result-table th, .result-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.result-table th {
    background-color: #f9fbf9;
    color: #4a7c6a;
}

.disclaimer {
    font-size: 0.75rem;
    color: #999;
    margin-top: 20px;
    line-height: 1.4;
}

.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin: 40px 0 20px;
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
