/* ==========================================================================
   🎨 共通変数 & 基本リセット（エレガントパティスリーテーマ）
   ========================================================================== */
:root {
    --primary-color: #d63031;   /* 高級感あるストロベリーラズベリーピンクレッド */
    --accent-color: #e1b12c;    /* スイーツを引き立てる上品なクリーミーゴールド */
    --bg-light: #fffaf7;        /* ケーキの台座のような温かみのある超極淡ミルクピンクホワイト */
    --text-dark: #2c3e50;
    --card-bg: #ffffff;
    --border-radius: 14px;      /* ケーキのような少し丸みのあるマイルドなエッジ */
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   🌐 言語切り替え & 🔲 ヒーローヘッダー
   ========================================================================== */
.lang-switch {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 6px;
}
.btn-lang {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}
.btn-lang.active, .btn-lang:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

header {
    text-align: center;
    padding: 130px 20px 90px 20px; /* 上下の余白を少し広げて、生成したホールケーキが綺麗に見えるように調整 */
    color: #fff;
    position: relative;
    
    /* 🔴 ここを修正・強化しました */
    /* 背景画像の上に薄いグラデーションマスクを重ねることで、画像の明るさに左右されず文字の視認性を100%保ちます */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%), 
                url('../images/back.jpg') center/cover no-repeat;
    background-attachment: scroll; /* モバイルでの表示バグを防ぐためscrollに固定 */
}

header h1 {
    font-size: 2.8rem; /* 少しだけ大きくして存在感をアップ */
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    
    /* 🔴 文字の輪郭に柔らかな影（シャドウ）を二重で入れ、フルーツのハイライトと重なっても文字が読めるように補正 */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

header p {
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 500;
    
    /* 🔴 ディスクリプション（説明文）にも同様に視認性向上のシャドウを追加 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}/* ==========================================================================
   📦 メインレイアウト & 🔍 フィルターセクション
   ========================================================================== */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.search-filter-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.04);
    margin-bottom: 30px;
    border: 1px solid rgba(214, 48, 49, 0.03);
}

#btn-nearme {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(214, 48, 49, 0.2);
}
#btn-nearme:hover { opacity: 0.95; transform: translateY(-0.5px); }

.filter-group { margin-bottom: 20px; }
.filter-group h3 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-left: 2px;
    font-weight: 700;
}

.area-flex { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-area {
    background: #fdf1f1;
    border: none;
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}
.btn-area.active, .btn-area:hover { background: var(--accent-color); color: white; }

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    background: #fffcfb;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #f9ece5;
}
.filter-options label { font-size: 0.95rem; display: flex; align-items: center; gap: 6px; cursor: pointer; color: #4a5568; }
.filter-options input { accent-color: var(--primary-color); width: 16px; height: 16px; }

#search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    background: #fcfcfc;
    transition: var(--transition);
}
#search-input:focus { border-color: var(--primary-color); background: #fff; box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.08); }

.results-header { font-size: 1.25rem; margin-bottom: 20px; color: var(--text-dark); font-weight: 700; }
#count-num { color: var(--primary-color); font-weight: 800; }

/* ==========================================================================
   🎴 パティスリーカードグリッド
   ========================================================================== */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.store-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(214, 48, 49, 0.07); }
.store-desc { font-size: 0.9rem; color: #4a5568; margin-bottom: 14px; line-height: 1.45; }
.store-meta {
    font-size: 0.85rem;
    color: #64748b;
    background: #fffcfb;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px dashed #f5dbcf;
}
.store-meta strong { color: var(--primary-color); }
.card-tags-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.features-list { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-badge { font-size: 0.75rem; color: #946e19; background: #fef9e7; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.distance-badge-inline { font-size: 0.8rem; background: #fff1f2; color: var(--primary-color); padding: 2px 6px; border-radius: 4px; font-weight: bold; }

.card-body { padding: 20px; }
.card-header-flex { display: flex; justify-content: space-between; margin-bottom: 12px; }
.area-badge { background: #fff1f1; color: var(--primary-color); padding: 3px 8px; font-size: 0.75rem; font-weight: bold; border-radius: 4px; }
.price-badge { color: var(--accent-color); font-weight: bold; font-size: 0.95rem; }
.store-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: #1e293b; line-height: 1.3; }

.card-footer-actions { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid #fcf6f3; background: #faf8f7; }
.btn-action { flex: 1; text-align: center; text-decoration: none; font-size: 0.85rem; font-weight: bold; padding: 11px; border-radius: 6px; transition: var(--transition); }
.btn-visit { background: #fff; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-visit:hover { background: var(--primary-color); color: white; }
.btn-maps { background: #f1f5f9; color: #475569; border: 1px solid transparent; }
.btn-maps:hover { background: #fef2f2; color: var(--primary-color); }
.btn-disabled { background: #f1f5f9; color: #cbd5e1; border: 1px solid transparent; cursor: not-allowed; }

/* ==========================================================================
   🧦 フッター & 共有エリア
   ========================================================================== */
.site-footer { background-color: #f7eded; color: var(--text-dark); padding: 45px 20px; margin-top: 50px; border-top: 3px solid var(--primary-color); }
.footer-container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; text-align: center; }
.share-section h3 { font-size: 1.15rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 700; }
.share-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn-share { border: none; padding: 10px 20px; font-size: 0.9rem; font-weight: bold; border-radius: 6px; cursor: pointer; color: white; transition: var(--transition); min-width: 110px; }
.btn-share:hover { opacity: 0.88; transform: translateY(-0.5px); }
.btn-share.whatsapp { background-color: #25D366; }
.btn-share.wechat { background-color: #07C160; }
.btn-share.line { background-color: #06C755; }
.btn-share.copy { background-color: var(--primary-color); }

.disclaimer-section { max-width: 800px; margin: 0 auto; background: rgba(255, 255, 255, 0.7); padding: 15px 20px; border-radius: 8px; border: 1px dashed #e2e8f0; }
#disclaimer-text { font-size: 0.85rem; color: #64748b; line-height: 1.5; }
#disclaimer-text strong { color: var(--primary-color); }
.footer-bottom { font-size: 0.8rem; color: #94a3b8; border-top: 1px solid rgba(0, 0, 0, 0.04); padding-top: 15px; }

/* ==========================================================================
   📱 モバイル（スマホ）画面レスポンシブ最適化
   ========================================================================== */
@media (max-width: 768px) {
    header { padding: 55px 15px 35px 15px; }
    header h1 { font-size: 1.55rem; margin-bottom: 6px; }
    header p { font-size: 0.9rem; }
    .lang-switch .btn-lang { padding: 4px 10px; font-size: 0.8rem; }
    .main-container { padding: 15px 10px; }
    .search-filter-section { padding: 16px; margin-bottom: 20px; }
    #btn-nearme { padding: 10px 16px; font-size: 0.85rem; margin-bottom: 15px; }
    .filter-group { margin-bottom: 14px; }
    .filter-group h3 { font-size: 0.85rem; margin-bottom: 6px; }
    .btn-area { padding: 4px 12px; font-size: 0.8rem; }
    .filter-options { gap: 10px 16px; padding: 8px 12px; }
    .filter-options label { font-size: 0.85rem; }
    #search-input { padding: 10px 12px; font-size: 0.9rem; }
    .results-header { font-size: 1rem; margin-bottom: 14px; }
    .store-grid { gap: 16px; }
    .card-body { padding: 16px; }
    .store-name { font-size: 1.05rem; margin-bottom: 6px; }
    .store-desc { font-size: 0.85rem; margin-bottom: 10px; }
    .card-footer-actions { padding: 12px 16px; }
    .card-footer-actions a { padding: 8px; font-size: 0.8rem; }
    .share-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .btn-share { padding: 8px 10px; font-size: 0.8rem; min-width: unset; }
}