/* ============================================================
   style.css - 最終完成版（おばあちゃん・右手操作配慮デザイン）
   ============================================================ */

/* 1. 全体設定 ＆ リンクの青色撃退 */
body { background: #fffbf2; margin: 0; padding: 0; font-family: sans-serif; color: #5c4b41; }
.container { max-width: 600px; margin: 0 auto; padding: 0 10px 10px; }
button, .m-btn, .btn, #v-filter, input { -webkit-appearance: none; appearance: none; outline: none; }

/* リンクを茶色に統一（!importantで青色を上書き） */
a, a:visited { color: #5c4b41 !important; text-decoration: underline; }
a:hover { color: #e67e6e !important; }

/* 2. TOPバナー */
.banner-wrapper { max-width: 640px; margin: 5px auto 0; padding: 0 10px; box-sizing: border-box; }
.top-banner-img { width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 auto; }

/* 3. 検索窓・フィルター（11px・スリム・100%幅） */
.search-box, #v-filter { 
    display: block; width: 100%; box-sizing: border-box; text-align: center; 
    font-size: 11px; margin-left: auto; margin-right: auto; 
}
.search-box { padding: 3px 10px; border-radius: 12px; border: 1px solid #f0e6d6; margin-top: 5px; margin-bottom: 4px; background: #fff; }
#v-filter { padding: 3px; border-radius: 10px; border: 1px solid #8ebad9; background: #fff; color: #8ebad9; font-weight: bold; margin-bottom: 6px; cursor: pointer; }

/* 4. カテゴリボタン（高密度） */
.major-btn-container { display: flex; gap: 6px; margin-bottom: 6px; }
.m-btn { flex: 1; border: none; border-radius: 18px; cursor: pointer; padding: 4px 2px; font-weight: bold; background: #fff; color: #5c4b41; box-shadow: 0 2px 5px rgba(0,0,0,0.05); font-size: 11px; line-height: 1.2; }
.m-btn-active { background: #5c4b41 !important; color: #fff !important; }

#subCatContainer { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.sub-btn { padding: 3px 10px; border-radius: 12px; border: none; background: #fff; color: #666; font-size: 11px; font-weight: bold; cursor: pointer; margin: 1px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* 5. 広告枠（リンク色も茶色に固定） */
.ad-box { margin: 5px auto 8px; max-width: 400px; text-align: center; border: 1px solid #f0e6d6; border-radius: 12px; padding: 6px; background: #fff; }
.ad-label { font-size: 8px; color: #ccc; margin: 0 0 3px 0; }
.ad-content { font-size: 11px; color: #a09080; line-height: 1.3; }
.ad-content a { color: #5c4b41 !important; font-weight: bold; }

/* 6. 並び替え（9px） */
.sort-container { text-align: right; margin-bottom: 10px; font-size: 9px; color: #a09080; }
.sort-link { cursor: pointer; text-decoration: underline; margin: 0 3px; }
.sort-active { font-weight: bold; color: #e67e6e !important; }

/* 7. 店舗カード（スマホ4.5件表示の高密度設定） */
.shop-card { 
    background: #fff; border-radius: 16px; padding: 12px 16px; 
    margin-bottom: 8px; box-shadow: 0 4px 10px rgba(180,160,140,0.05); border: 1px solid #f0e6d6; 
}
.shop-name { font-size: 16px; margin: 0 0 4px 0; font-weight: bold; line-height: 1.3; }
.shop-info-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; gap: 6px; }

/* 左側：メタ情報（⭐数値など） */
.shop-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; flex: 1; }
.star-score { font-weight: bold; color: #f39c12; font-size: 14px; }
.review-count { font-size: 10px; color: #8a8075; }
.minor-tag { font-size: 9px; color: #8a8075; background: #fffbf2; padding: 1px 6px; border-radius: 8px; }

/* 右側：バッジ（横並び死守） */
.shop-info-row > div:last-child { display: flex; flex-wrap: nowrap; flex-shrink: 0; gap: 3px; }
.v-badge { display: inline-block; padding: 2px 6px; border-radius: 20px; font-weight: bold; font-size: 9px; color: #fff; white-space: nowrap; }
.badge-common { background: #e67e6e; }
.badge-local { background: #8ebad9; }

/* 地図・予約ボタン */
.btn-row { display: flex; margin-top: 4px; gap: 6px; }
.btn { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; font-weight: bold; font-size: 12px; color: white; border: none; text-decoration: none; cursor: pointer; }
.btn-map { background: #f2994a; }
.btn-reserve { background: #dcb35c; }
.btn-disabled { background: #f0f0f0 !important; color: #ccc !important; pointer-events: none; }

/* 8. ボタン類：おばあちゃん配慮設定 */
/* もっと見る（ピンクで目立たせる） */
#loadMoreBtn { 
    display: block; width: 100%; padding: 16px; background: #e67e6e; 
    color: #fff; border: none; border-radius: 20px; font-size: 16px; 
    font-weight: bold; margin: 15px 0; cursor: pointer; 
    box-shadow: 0 4px 0 #c56658;
}
#loadMoreBtn:active { transform: translateY(3px); box-shadow: none; }

/* ------------------------------------------------------------
   上に戻るボタン：白背景 ＆ 見上げる猫ちゃんイラスト仕様
   ------------------------------------------------------------ */
#scrollTopBtn {
    position: fixed; 
    bottom: 25px; 
    left: 20px;               /* 左側配置を維持 */
    width: 70px;              /* イラストを入れるため少し大きく */
    height: 70px;
    background: #ffffff;      /* ★背景を白に */
    color: #5c4b41;           /* 文字色は茶色 */
    border: 2px solid #f0e6d6; /* 薄いベージュの枠線で上品に */
    border-radius: 50%;
    font-size: 11px;          /* 文字サイズ */
    font-weight: bold;
    cursor: pointer; 
    display: none;            /* JSで表示制御 */
    box-shadow: 0 4px 15px rgba(180,160,140,0.2); 
    z-index: 9999; 
    opacity: 0.95;            /* 白背景なので不透明度を高く */
    line-height: 1.2;
    padding: 0;               /* パディングをリセット */
    display: flex;            /* 中身を上下中央寄せに */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ------------------------------------------------------------
   上に戻るボタン：白背景 ＆ ドット絵猫イラスト仕様
   ------------------------------------------------------------ */
#scrollTopBtn {
    position: fixed; 
    bottom: 25px; 
    left: 20px;               /* 左側配置を維持 */
    width: 66px;              /* イラストを入れるため少し大きく */
    height: 66px;
    background: #ffffff;      /* ★背景を白に */
    color: #5c4b41;           /* 文字色は茶色 */
    border: 2px solid #f0e6d6; /* 薄いベージュの枠線で上品に */
    border-radius: 50%;
    font-size: 10px;          /* 文字サイズ */
    font-weight: bold;
    cursor: pointer; 
    display: none;            /* JSで表示制御 */
    box-shadow: 0 4px 15px rgba(180,160,140,0.2); 
    z-index: 9999; 
    opacity: 0.95;            /* 白背景なので不透明度を高く */
    line-height: 1.1;
    padding: 0;               /* パディングをリセット */
    display: flex;            /* 中身を上下中央寄せに */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ドット絵猫アイコン部分のスタイル */
.cat-dot-icon {
    display: inline-block;
    width: 28px;              /* アイコンの表示サイズ */
    height: 28px;
    background-image: url('images/cat_ebi_dot.png'); /* ★ここにドット絵画像を設置 */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 2px;       /* 文字との隙間 */
}
/* 9. フッター：整理整頓版 */
.footer { text-align: center; margin: 40px 10px 10px; border-top: 1px solid #f0e6d6; padding-top: 20px; }
.footer-links a, .footer-text, .footer-cheer { font-size: 10px !important; color: #8a8075; margin-bottom: 8px; line-height: 1.5; }

/* 免責事項の白枠 */
.disclaimer-box {
    background: #ffffff; border: 1px solid #f0e6d6; padding: 10px; 
    border-radius: 8px; margin: 10px 0; text-align: left;
}
.disclaimer-text { font-size: 9px; color: #aaa; line-height: 1.5; margin: 0; }

/* コピーライト：最小化 */
.footer-copy { font-size: 8px !important; color: #ccc !important; margin-top: 15px; }

/* PayPayボタン：控えめサイズ */
.paypay-btn { display: inline-block; padding: 6px 15px; background: #fff; border: 1px solid #eee; color: #999; border-radius: 10px; font-size: 10px; cursor: pointer; }