/* ==========================================================================
   KL PET-FRIENDLY CAFES - 最終確定スタイルシート
   ========================================================================= */

body { 
    background-color: #f4eee1; 
    color: #3d3531;            
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
.main-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; box-sizing: border-box; }

/* 1. ヘッダー（言語ボタンを右上へ絶対配置） */
.main-header {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('images/fc-back.jpg') center/cover no-repeat;
    min-height: 180px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* 🌐 言語セレクトボックスを完全に右上に固定 */
.lang-container { 
    position: absolute !important; 
    right: 20px !important; 
    top: 20px !important; 
    z-index: 100 !important; 
}
.lang-container select {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #c8bfae !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    color: #3d3531 !important;
    outline: none;
    cursor: pointer;
}

#txt-title {
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
#header-subtitle {
    color: #e2e8f0 !important; 
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.2); 
    padding: 4px 12px;
    border-radius: 4px;
}

/* 2. 検索 & フィルター（3列最適化） */
.search-container { display: flex; gap: 10px; margin: 30px 0 20px 0; }
#search-input { flex: 1; padding: 14px 16px; border: 1px solid #c8bfae; border-radius: 8px; font-size: 1rem; background: #fdfbf7; outline: none; }
#near-me-btn { background: #3a4f3b; color: #fff; border: none; padding: 0 24px; border-radius: 8px; font-weight: bold; cursor: pointer; }

.filter-wrapper { background: #ebdcb9; padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.filters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.filters-grid label { color: #5a4f4a; font-size: 0.75rem; font-weight: 800; display: block; margin-bottom: 6px; letter-spacing: 0.5px; }
.filters-grid select { width: 100%; padding: 10px; background: #fdfbf7; border: 1px solid #c8bfae; border-radius: 6px; font-weight: 600; color: #3d3531; outline: none; }

.results-counter { color: #5a4f4a; font-size: 0.9rem; font-weight: 800; margin: 15px 0 5px 0; text-align: right; }

/* 3. カフェ情報グリッド */
.grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; margin-bottom: 40px; }
.michelin-card { background: #fdfbf7; border: 1px solid #dcd1bd; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 6px 18px rgba(90, 79, 74, 0.06); }

.card-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.card-header-row h2 { font-size: 1.25rem; font-weight: 800; margin: 0; color: #2c2523; line-height: 1.3; }
.distance-badge { background: #e3f2fd; color: #1e88e5; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; white-space: nowrap; }

.meta-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.badge-cuisine { background: #ebdcb9; color: #5a4f4a; }
.badge-price { background: #e2e8f0; color: #4a5568; }
.badge-card { background: #3a4f3b; color: #ffffff; }

.status-row { font-size: 0.85rem; margin-bottom: 12px; }
.status-open { color: #15803d; }
.status-closed { color: #b91c1c; }
.hours-sub { color: #718096; font-size: 0.8rem; font-weight: 500; }

.desc-box { background: #f4eee1; padding: 12px; border-radius: 8px; font-size: 0.85rem; border-left: 3px solid #ebdcb9; margin-bottom: 15px; }
.desc-box strong { display: block; margin-bottom: 4px; color: #5a4f4a; font-size: 0.75rem; letter-spacing: 0.3px; }
.desc-box p { margin: 0; color: #4a403c; line-height: 1.4; }

.card-footer-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.map-buttons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-maps, .btn-waze, .btn-web { display: block; text-align: center; padding: 10px; font-size: 0.85rem; font-weight: 700; border-radius: 6px; text-decoration: none; }

.btn-maps { background-color: #f4eee1; color: #3a4f3b; border: 1px solid #3a4f3b; }
.btn-waze { background-color: #3a4f3b; color: #ffffff; }
.btn-web { background-color: #4a5568; color: #ffffff !important; }

.btn-instagram {
    display: block; text-align: center; padding: 10px; font-size: 0.85rem; font-weight: 700; border-radius: 6px; text-decoration: none;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.25);
}

/* 4. フッター（センター寄せ＆オールグリーンボタン） */
.main-footer {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 50px 20px !important;
    background: #ebdcb9;
    margin-top: 40px;
    border-radius: 12px 12px 0 0;
}
.disclaimer { font-size: 0.8rem; color: #6e615c; max-width: 700px; margin: 0 0 20px 0; font-weight: 500; line-height: 1.4; }

.footer-share-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 10px auto 20px auto !important;
    width: 100%;
    max-width: 600px;
}
.footer-share-container button {
    display: inline-block !important;
    min-width: 120px;
    padding: 11px 22px !important;
    background-color: #2ec4b6 !important; 
    color: #ffffff !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(46, 196, 182, 0.15) !important;
    transition: background-color 0.2s, transform 0.1s;
}
.footer-share-container button:hover {
    background-color: #23a99d !important;
    transform: translateY(-1px);
}
.copyright { font-size: 0.85rem; color: #5a4f4a; margin-top: 15px; font-weight: 700; }

/* ==========================================================================
   5. レスポンシブ対応 (スマホ用の調整)
   ========================================================================= */
@media screen and (max-width: 1024px) { 
    .grid-container { grid-template-columns: repeat(2, 1fr); } 
}

@media screen and (max-width: 768px) {
    .grid-container { grid-template-columns: 1fr; gap: 20px; }
    .filters-grid { grid-template-columns: 1fr; }
    
    /* 👇 スマホ表示のときだけヘッダーの余白を上に広げる */
    .main-header { 
        padding: 60px 16px 40px 16px !important; /* 上側に少し余裕を持たせる */
        min-height: 140px; 
    }
    
    /* 👇 スマホ表示のときだけ言語ボタンの位置をさらに右上に寄せる */
    .lang-container {
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
    }
    .lang-container select {
        padding: 4px 8px !important; /* スマホ用にセレクトボックスを少しコンパクトに */
        font-size: 0.8rem !important;
    }

    #txt-title { font-size: 1.6rem; }
    #header-subtitle { font-size: 0.75rem; }
}