/* ========================================
   ジャンルtaxonomyページ CSS（page-spot-search.phpと共通デザイン）
======================================== */
* { box-sizing: border-box; }
:root {
    --pink: #E8436A; --pink-light: #F06B8A; --pink-pale: #FFF0F3;
    --navy: #1A1F36; --navy-mid: #2D3557; --gray: #6B7280;
    --gray-light: #F4F5F7; --border: #E8EAED;
    --yellow: #F59E0B; --green: #10B981; --blue: #3B82F6;
}
body.tax-genre .site-content,
body.tax-genre .ast-container,
body.tax-genre #content,
body.tax-genre .ast-separate-container,
body.tax-genre .ast-article-single,
body.tax-genre .entry-content { padding: 0 !important; max-width: 100% !important; }
body.tax-genre { overflow-x: hidden !important; }
html { overflow-x: hidden !important; overflow-y: scroll !important; }

/* ===== スタッツバー ===== */
.tg-stats-bar { background: var(--navy); padding: 8px 20px; }
.tg-stats-bar-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; overflow: hidden; }
.tg-stats-title { font-size: 12px; font-weight: 700; color: white; white-space: nowrap; margin-right: auto; }
.tg-stats-item { font-size: 11px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.tg-stats-num { font-size: 13px; font-weight: 800; color: white; }
.tg-stats-div { width: 1px; height: 12px; background: rgba(255,255,255,0.2); flex-shrink: 0; }


/* ===== メインレイアウト ===== */
.tg-top { background: var(--gray-light); padding: 0; min-height: calc(100vh - 120px); }
.tg-main { max-width: 1400px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.tg-content { min-width: 0; }
.tg-sidebar { display: flex; flex-direction: column; gap: 12px; }

/* ===== ブロック ===== */
.tg-block { background: white; border-radius: 10px; padding: 16px; border: 1px solid var(--border); margin-bottom: 12px; }
.tg-block:last-child { margin-bottom: 0; }
.tg-section-title { font-size: 14px; font-weight: 900; color: var(--navy); margin: 0 0 14px; display: flex; align-items: center; gap: 6px; }
.tg-section-title::before { content: ''; display: block; width: 4px; height: 14px; background: var(--pink); border-radius: 2px; flex-shrink: 0; }

/* ===== サブカテゴリタブ ===== */
.tg-subtab-wrap { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.tg-subtab-btn {
    padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 20px;
    background: white; font-size: 12px; font-weight: 600; color: var(--gray);
    cursor: pointer; transition: all 0.15s; white-space: nowrap; font-family: inherit;
    outline: none !important; box-shadow: none !important;
}
.tg-subtab-btn:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-pale); }
.tg-subtab-btn.active { background: var(--pink); border-color: var(--pink); color: white; }
.tg-subtab-count { display: inline-block; background: rgba(255,255,255,0.25); font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 8px; margin-left: 3px; }
.tg-subtab-btn:not(.active) .tg-subtab-count { background: var(--gray-light); color: var(--gray); }

/* ===== スポットカードグリッド ===== */
.tg-results-count { font-size: 12px; color: var(--gray); margin-bottom: 12px; font-weight: 600; }
.tg-spot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tg-spot-card { background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: all 0.2s; }
.tg-spot-card:hover { border-color: var(--pink); box-shadow: 0 4px 12px rgba(232,67,106,0.1); transform: translateY(-2px); }
.tg-spot-card[style*="display:none"] { display: none !important; }
.tg-spot-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.tg-spot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tg-spot-body { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.tg-spot-title { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.tg-spot-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tg-spot-tag { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 3px; }
.tg-tag-genre { background: var(--pink-pale); color: var(--pink); }
.tg-tag-area { background: #EFF6FF; color: var(--blue); }
.tg-spot-meta { font-size: 10px; color: var(--gray); display: flex; align-items: center; gap: 6px; margin-top: auto; }
.tg-rating-badge { color: var(--yellow); font-weight: 700; }

/* 空状態 */
.tg-empty { text-align: center; padding: 60px 20px; }
.tg-empty-icon { font-size: 48px; margin-bottom: 16px; }
.tg-empty-text { font-size: 14px; color: var(--gray); font-weight: 600; margin: 0; }

/* ===== サイドバー共通 ===== */
.tg-sb-card { background: white; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.tg-sb-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--gray-light); }
.tg-sb-title { font-size: 12px; font-weight: 800; color: var(--navy); }
.tg-sb-more { font-size: 10px; color: var(--gray); text-decoration: none; }
.tg-sb-more:hover { color: var(--pink); }

/* ①人気スポットTOP5 */
.tg-popular-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background 0.2s; }
.tg-popular-item:last-child { border-bottom: none; }
.tg-popular-item:hover { background: var(--gray-light); }
.tg-popular-rank { font-size: 13px; font-weight: 800; width: 20px; text-align: center; flex-shrink: 0; }
.tg-popular-thumb { width: 34px; height: 34px; border-radius: 5px; overflow: hidden; background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.tg-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tg-popular-info { flex: 1; min-width: 0; }
.tg-popular-name { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); }
.tg-popular-meta { font-size: 9px; color: var(--gray); margin-top: 1px; }
.tg-popular-star { font-size: 11px; color: var(--yellow); font-weight: 700; flex-shrink: 0; }

/* ②エリア別スポット数 */
.tg-area-list { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tg-area-item { display: flex; flex-direction: column; gap: 3px; }
.tg-area-label-row { display: flex; align-items: center; justify-content: space-between; }
.tg-area-name { font-size: 11px; font-weight: 700; color: var(--navy); }
.tg-area-num { font-size: 10px; font-weight: 700; color: var(--gray); }
.tg-area-bar-bg { height: 5px; background: var(--gray-light); border-radius: 3px; overflow: hidden; }
.tg-area-bar-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--pink-light)); border-radius: 3px; transition: width 0.6s ease; }

/* ③最新レビュー */
.tg-rv-item { display: flex; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background 0.2s; }
.tg-rv-item:last-child { border-bottom: none; }
.tg-rv-item:hover { background: var(--gray-light); }
.tg-rv-thumb { width: 36px; height: 36px; border-radius: 5px; overflow: hidden; background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.tg-rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tg-rv-info { flex: 1; min-width: 0; }
.tg-rv-spot { font-size: 11px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-rv-rating { font-size: 9px; color: var(--yellow); font-weight: 700; }
.tg-rv-text { font-size: 10px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
    .tg-main { grid-template-columns: 1fr; }
    .tg-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .tg-main { padding: 8px; gap: 10px; }
    .tg-block { padding: 12px; }
    .tg-spot-grid { grid-template-columns: repeat(2, 1fr); }
    .tg-sidebar { grid-template-columns: 1fr; }
}
