/* css/style.css */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* ヘッダー画像の縦幅を拡張し、中の要素の位置を調整 */
#hero-banner {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/back.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 70px 20px 50px 20px;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#hero-banner h1 { margin: 0; font-size: 2.8rem; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
#hero-banner p { margin: 10px 0 30px 0; font-size: 1.15rem; opacity: 0.9; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* 既存の .lang-switcher を修正 */
.lang-switcher {
    position: absolute;
    top: 0;           /* topからマージンなしに変更 */
    right: 15px;      /* スマホで見やすいよう少し右端から浮かせる */
    font-size: 0.8rem; /* 少し小さくして邪魔にならないように */
    font-weight: bold;
    padding-top: 10px; /* 上端から少しだけ離す */
}

/* モバイル用背景画像の設定 (back2.jpg) */
@media screen and (max-width: 768px) {
    #hero-banner {
        /* back2.jpgを優先的に適用 */
        background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/back2.jpg') no-repeat center center/cover;
        min-height: 200px;
        padding: 30px 15px 20px 15px;
    }
}
.lang-switcher span { cursor: pointer; margin: 0 5px; opacity: 0.8; transition: opacity 0.2s; }
.lang-switcher span:hover { text-decoration: underline; opacity: 1; }

/* ヘッダー画像に馴染む半透明のガラス調フィルターバー */
.filter-bar {
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15); 
    padding: 15px 25px; 
    border-radius: 12px; 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

.filter-bar select, .filter-bar button { 
    padding: 12px 20px; 
    border-radius: 6px; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    font-size: 0.95rem; 
    outline: none; 
    background: white; 
    color: #333;
}

.filter-bar select {
    cursor: pointer;
    min-width: 180px;
}

/* Sort by Near Me ボタンの調整 */
.filter-bar button { 
    background-color: #8b0000; 
    color: white; 
    border: none; 
    cursor: pointer; 
    font-weight: bold;
    transition: background 0.2s, transform 0.1s; 
}
.filter-bar button:hover { background-color: #a30000; }
.filter-bar button:active { transform: scale(0.98); }

/* カウンターボックスのスタイル */
.counter-box {
    font-size: 0.95rem;
    color: #555;
    margin-top: 10px;
    margin-bottom: 25px;
    padding: 8px 16px;
    background-color: #fff;
    display: inline-block;
    border-radius: 4px;
    border-left: 4px solid #8b0000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.counter-box strong {
    color: #8b0000;
    font-size: 1.15rem;
}

/* ショップカードグリッド */
.shop-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 25px; 
}

@media screen and (min-width: 1024px) {
    .shop-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

.shop-card { 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 3px 12px rgba(0,0,0,0.05); 
    padding: 24px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    border-top: 5px solid #8b0000; 
}

.card-header h3 { margin: 0; font-size: 1.35rem; color: #111; line-height: 1.3; }
.zh-name-sub { margin: 4px 0 12px 0; font-size: 1rem; color: #555; font-weight: bold; }
.distance-badge { display: inline-block; background: #e6f4ea; color: #137333; padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; margin-bottom: 12px; }
.specialty { font-size: 0.95rem; color: #8b0000; margin-bottom: 14px; line-height: 1.4; }
.address, .phone { font-size: 0.9rem; color: #555; margin: 6px 0; line-height: 1.4; }
.meta-tags { margin: 18px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 0.8rem; padding: 5px 10px; border-radius: 4px; font-weight: 500; }
.area-tag { background: #eee; color: #555; }
.parking-tag { background: #fff3cd; color: #856404; }

.action-buttons-group { display: flex; gap: 12px; margin-top: 15px; }
.btn-action { flex: 1; text-align: center; padding: 11px; border-radius: 6px; text-decoration: none; font-size: 0.9rem; font-weight: bold; transition: opacity 0.2s; }
.btn-action:hover { opacity: 0.9; }
.maps-btn { background-color: #4285F4; color: white; }
.web-btn { background-color: #333; color: white; }
.fb-btn { background-color: #1877F2; color: white; }

/* フッターデザイン */
footer { background-color: #222; color: #aaa; padding: 40px 20px; font-size: 0.85rem; text-align: center; margin-top: auto; border-top: 3px solid #8b0000; }
.footer-content { max-width: 800px; margin: 0 auto; line-height: 1.6; }

.footer-share-section { 
    margin-bottom: 25px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
}
.share-title { font-size: 0.95rem; color: #fff; font-weight: bold; letter-spacing: 1px; }
.share-icons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.share-icon { 
    display: inline-block; 
    font-size: 0.85rem; 
    font-weight: bold; 
    padding: 8px 16px; 
    border-radius: 6px; 
    text-decoration: none; 
    cursor: pointer; 
    color: white; 
    min-width: 90px;
    transition: opacity 0.2s; 
}
.share-icon.wa { background-color: #25D366; }
.share-icon.wc { background-color: #07C160; }
.share-icon.lk { background-color: #444; border: 1px solid #666; }
.share-icon.cp { background-color: #666; }
.share-icon:hover { opacity: 0.85; }

#footer-disclaimer { color: #cc8888; font-weight: 300; margin-top: 15px; margin-bottom: 10px; font-size: 0.8rem; }
#footer-copyright { font-size: 0.8rem; opacity: 0.7; }

/* モーダル */
.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: white; margin: 15% auto; padding: 25px; border-radius: 8px; width: 220px; text-align: center; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.modal-content p { font-size: 0.85rem; margin-bottom: 15px; color: #333; }
.close-btn { position: absolute; top: 5px; right: 10px; font-size: 24px; cursor: pointer; color: #aaa; }
#qrcode { display: inline-block; }

/* css/style.css - 最終調整版 */

/* 背景画像のパスを正しく設定 */
#hero-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/back.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 70px 20px 50px 20px;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* 背景画像を全体に最適化 */
    background-size: cover;
    background-position: center center;
}

/* その他の既存スタイル（変更なし） */
body { margin: 0; font-family: 'Helvetica Neue', Arial, sans-serif; background-color: #f8f9fa; color: #333; display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; flex: 1; }
#hero-banner h1 { margin: 0; font-size: 2.8rem; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
#hero-banner p { margin: 10px 0 30px 0; font-size: 1.15rem; opacity: 0.9; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.lang-switcher { position: absolute; top: 20px; right: 25px; font-size: 0.95rem; font-weight: bold; }
.lang-switcher span { cursor: pointer; margin: 0 5px; opacity: 0.8; }

.filter-bar {
    display: flex; gap: 15px; flex-wrap: wrap; justify-content: center;
    background: rgba(255, 255, 255, 0.15); padding: 15px 25px; border-radius: 12px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%; max-width: 800px; box-sizing: border-box;
}
.filter-bar select, .filter-bar button { padding: 12px 20px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.95rem; background: white; color: #333; }
.filter-bar button { background-color: #8b0000; color: white; border: none; cursor: pointer; font-weight: bold; }

.counter-box { font-size: 0.95rem; color: #555; margin: 20px 0; padding: 8px 16px; background-color: #fff; display: inline-block; border-radius: 4px; border-left: 4px solid #8b0000; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.shop-grid { display: grid; grid-template-columns: 1fr; gap: 25px; }
@media screen and (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-card { background: white; border-radius: 8px; box-shadow: 0 3px 12px rgba(0,0,0,0.05); padding: 24px; border-top: 5px solid #8b0000; }
.btn-action { display: block; text-align: center; padding: 10px; margin-top: 10px; border-radius: 5px; text-decoration: none; color: white; font-weight: bold; }
.maps-btn { background-color: #4285F4; }
.web-btn { background-color: #333; }
.fb-btn { background-color: #1877F2; }

/* css/style.css 追記用 */

/* @media (max-width: 768px) から最後の「}」までをこれに差し替え */
@media (max-width: 768px) {
    
    /* 1. ヘッダーを短くし、モバイル用の画像(back2.jpg)に変更 */
    #hero-banner {
        min-height: 180px !important;
        padding: 30px 15px 15px 15px !important;
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/back2.jpg') no-repeat center center/cover !important;
    }

    /* タイトルとサブタイトルを小さく */
    #hero-banner h1 {
        font-size: 1.8rem !important;
        margin-top: 15px !important;
        margin-bottom: 5px !important;
    }
    #hero-banner p {
        font-size: 0.85rem !important;
    }

    /* 2. 言語ボタンを上端に寄せて被りを回避 */
    .lang-switcher {
        top: 5px !important;
        right: 15px !important;
        margin: 0 !important;
    }
    .lang-switcher span {
        font-size: 0.8rem !important;
    }

    /* 3. フィルターバー自体のサイズと余白を小さく調整 */
    .filter-bar {
        gap: 8px !important;
        padding: 10px !important;
    }

    /* セレクトボックスとボタンをスマホ用に少し小さく */
    .filter-bar select, 
    .filter-bar button {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        width: 100% !important; /* スマホ画面でボタンや選択肢を押しやすく広げる */
    }
}