.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
}

.logo i {
    font-size: 30px;
    color: #fbbf24;
}

/* 言語ボタン */
.lang-switcher {
    display: flex;
    gap: 6px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: #334155;
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
}

.lang-btn.active {
    background: #f59e0b;
    color: #1e2937;
    font-weight: 700;
}

/* モバイル対応 */
@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .lang-switcher {
        justify-content: center;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .tagline {
        font-size: 15px;
        text-align: center;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
    line-height: 1.6;
}

/* ==================== Header ==================== */
header {
    background: linear-gradient(135deg, #1e2937, #334155);
    color: white;
    padding: 16px 0 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    text-align: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
}

.logo i {
    font-size: 30px;
    color: #fbbf24;
}

.tagline {
    font-size: 15.5px;
    color: #fcd34d;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ==================== その他のスタイル ==================== */
.lang-switcher {
    display: flex;
    gap: 6px;
    margin: 12px 0;
    justify-content: center;
}

.lang-btn {
    padding: 7px 14px;
    border: none;
    background: #334155;
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.lang-btn.active {
    background: #f59e0b;
    color: #1e2937;
    font-weight: 700;
}

.category-nav {
    background: #1e2937;
    padding: 12px 0;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #475569;
}

.cat-btn {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    border: none;
    background: #334155;
    color: #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.cat-btn.active {
    background: #f59e0b;
    color: #1e2937;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 15px;
    padding: 0 5px;
}

.btn {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary { background: #f59e0b; color: #1e2937; }
.btn-secondary { background: #64748b; color: white; }

.search-box {
    flex: 1;
    min-width: 100%;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #475569;
    border-radius: 8px;
    background: #1e2937;
    color: white;
    font-size: 16px;
}

.area-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #475569;
    border-radius: 8px;
    background: #1e2937;
    color: white;
    font-size: 16px;
    margin: 10px 0;
}

.counter {
    text-align: center;
    padding: 12px;
    background: #1e2937;
    color: #fcd34d;
    font-weight: 700;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 16px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 10px;
}

.card {
    background: #1e2937;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    border: 1px solid #475569;
}

.card h3 {
    padding: 16px 18px 8px;
    font-size: 18px;
    color: #fcd34d;
}

.area {
    background: linear-gradient(90deg, #78350f, #b45309);
    padding: 9px 18px;
    font-weight: 700;
    font-size: 14.5px;
}

.info p {
    padding: 11px 18px;
    border-top: 1px solid #334155;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.card .btn {
    padding: 10px 14px;
    font-size: 14px;
}

.note {
    margin: 40px 0 30px;
    padding: 18px;
    background: #1e2937;
    border-radius: 10px;
    border-left: 5px solid #f59e0b;
    font-size: 15px;
}

/* ==================== Responsive ==================== */
@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
    .controls {
        flex-wrap: nowrap;
    }
    .search-box {
        min-width: 300px;
    }
}