:root {
    --primary: #27ae60;    /* 公園向けに鮮やかなグリーンへ変更 */
    --secondary: #2980b9;  /* 湖や水辺向けの爽やかなブルー */
    --accent: #e67e22;     /* ペットや注目情報向けのアクセントオレンジ */
    --bg: #f5f7f6;         /* 少し緑みがかった優しいオフホワイト */
    --text: #2c3e50;
    --card-bg: #ffffff;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ==================== Topbar & Navigation ==================== */
.topbar {
    background: linear-gradient(135deg, #1e824c, #27ae60);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: table; /* 横並びの安全な代替 */
    width: 100%;
    box-sizing: border-box;
}

.brand {
    display: table-cell;
    vertical-align: middle;
}

.brand-mark {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.brand-text {
    display: inline-block;
    vertical-align: middle;
}

.brand-title {
    font-size: 16pt;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.lang-switcher {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
}

.lang-switcher select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 10pt;
    cursor: pointer;
    outline: none;
}

.lang-switcher select option {
    color: #333;
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1519331379826-f10be5486c6f?auto=format&fit=crop&q=80&w=1200') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 26pt;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 12pt;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ==================== Controls (Search & Filter) ==================== */
.controls-wrapper {
    max-width: 1200px;
    margin: -30px auto 20px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.search-bar-row {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: table;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

#searchInput {
    display: table-cell;
    width: 100%;
    border: none;
    padding: 12px 15px;
    font-size: 11pt;
    outline: none;
}

.locate-btn {
    display: table-cell;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.locate-btn:hover {
    background-color: #1e824c;
}

.filter-container {
    text-align: center;
    margin-top: 15px;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    margin: 4px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 10pt;
    transition: all 0.2s;
    color: var(--text);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* ==================== Status Bar ==================== */
.status-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 10pt;
    color: #7f8c8d;
}

/* ==================== Grid Layout & Cards ==================== */
/* parkGrid と 以前の condoCard のズレを修正 */
.grid-container, #parkGrid {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* 横並び用（CSS Grid風）*/
@media (min-width: 600px) {
    .grid-container, #parkGrid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 25px;
        padding: 0 20px;
    }
}

/* 公園カードの共通スタイル */
.park-card, .condo-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px; /* スマホ用フォールバック */
}

@media (min-width: 600px) {
    .park-card, .condo-card {
        margin-bottom: 0;
    }
}

.park-card:hover, .condo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* カード内イメージ（ダミーや写真用） */
.card-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #a29bfe, #74b9ff);
    position: relative;
}

/* カード本体 */
.card-body {
    padding: 20px;
    box-sizing: border-box;
}

.card-body h3 {
    margin: 0 0 10px 0;
    font-size: 14pt;
    color: #2c3e50;
}

.area-badge {
    display: inline-block;
    background-color: #e8f8f5;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 9pt;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.park-meta {
    font-size: 9.5pt;
    color: #555;
    margin-bottom: 8px;
}

.park-meta i {
    width: 18px;
    color: #7f8c8d;
}

.description {
    font-size: 10pt;
    color: #7f8c8d;
    margin: 12px 0;
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* アメニティ・設備タグ */
.amenities-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f2f6;
}

.amenity-tag {
    display: inline-block;
    background: #f1f2f6;
    color: #333;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9pt;
    margin: 3px;
}

/* ペットフレンドリー特別強調バッジ */
.pet-friendly-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9pt;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* ==================== Footer Share Bar Styles ==================== */
.share-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f2f6;
}

.share-title {
    font-size: 11pt;
    font-weight: bold;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.share-buttons {
    text-align: center;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 6px;
    font-size: 10pt;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border: none;
    color: white;
    transition: background 0.2s, transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* --- Waze & Google Maps ボタンのスタイル（KLPARK用追加分） --- */
.market-card-footer, .park-card-footer, .card-footer {
    padding: 12px 16px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #fffcf8; /* 背景色はサイトに合わせて適宜調整してください */
    border-top: 1px solid #f5ebe0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s;
}
.nav-btn.waze { background: #33ccff; color: white; }
.nav-btn.gmaps { background: #4285f4; color: white; }
.nav-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* スマホ表示での調整 */
@media (max-width: 480px) {
    .nav-btn {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
}

/* 各ブランド固有のオフィシャルカラー */
.share-btn.whatsapp {
    background-color: #25D366; /* WhatsAppグリーン */
}

.share-btn.line {
    background-color: #06C755; /* LINEグリーン */
}

.share-btn.wechat {
    background-color: #07C160; /* WeChatグリーン */
}

.share-btn.copy-link {
    background-color: #7f8c8d; /* シックなグレー */
}

.copyright {
    margin: 0;
    font-size: 9pt;
    color: #b2bec3;
}
/* ===================================================
   🚗 Waze & 🗺️ Google Maps ボタン化（横並び1列・完成版）
   =================================================== */

/* 1. ボタンが配置されている親要素（pタグやdivなど何であっても）を強制的に横並び2列にする */
.park-card p:has(a[href*="waze"]),
.park-card p:has(a[href*="maps"]),
.park-card-footer, 
.market-card-footer, 
.card-footer {
    display: flex !important;
    flex-direction: row !important; /* 絶対に横並び */
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 12px 14px 14px !important;
    background: #fafdfb !important;
    border-top: 1px solid #e2ece6 !important;
    margin: 10px 0 0 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. リンクそのものを50%幅のきれいなボタンに変形させる */
.park-card a[href*="waze"], 
.park-card a[href*="maps"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 4px !important; /* モバイルで収まるよう内側の余白を調整 */
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: white !important;
    transition: 0.2s !important;
    flex: 1 !important; /* 左右均等に50%ずつ広がる */
    width: 48% !important; /* 念のための幅固定 */
    box-sizing: border-box !important;
}

/* 3. Wazeボタンの色（水色） */
.park-card a[href*="waze"] {
    background: #33ccff !important;
}

/* 4. Google Mapsボタンの色（青色） */
.park-card a[href*="maps"] {
    background: #4285f4 !important;
}

/* タップ・ホバー時のエフェクト */
.park-card a[href*="waze"]:hover, 
.park-card a[href*="maps"]:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* スマホ極小画面用のフォント微調整 */
@media (max-width: 360px) {
    .park-card a[href*="waze"], 
    .park-card a[href*="maps"] {
        font-size: 0.8rem !important;
    }
}