/* =============================
   Astra全幅・余白リセット
============================= */
body.tax-area .site-content,
body.tax-area .ast-container,
body.tax-area #content,
body.tax-area .ast-separate-container,
body.tax-area .ast-article-single,
body.tax-area .entry-content { padding: 0 !important; max-width: 100% !important; }
body.tax-area { overflow-x: hidden !important; }
*, *::before, *::after { 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;
}

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

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

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

/* ジャンル別セクション */
.sa-genre-section { margin-bottom: 12px; }
.sa-genre-section:last-child { margin-bottom: 0; }
.sa-genre-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sa-genre-section-title { font-size: 15px; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.sa-genre-section-title::before { content: ''; display: block; width: 4px; height: 16px; background: var(--pink); border-radius: 2px; flex-shrink: 0; }
.sa-genre-count-badge { font-size: 11px; color: var(--gray); }
.sa-genre-more-link { font-size: 12px; font-weight: 700; color: var(--pink); text-decoration: none; white-space: nowrap; transition: opacity 0.2s; }
.sa-genre-more-link:hover { opacity: 0.7; text-decoration: none; }
.sa-genre-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* スポットカード（検索ページと統一） */
.sa-spots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sa-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; }
.sa-spot-card:hover { border-color: var(--pink); box-shadow: 0 4px 12px rgba(232,67,106,0.1); transform: translateY(-2px); text-decoration: none; }
.sa-spot-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.sa-spot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sa-spot-body { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sa-spot-title { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: calc(1.4em * 2); }
.sa-spot-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sa-spot-tag { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 3px; }
.sa-tag-genre { background: var(--pink-pale); color: var(--pink); }
.sa-spot-meta { font-size: 10px; color: var(--gray); display: flex; align-items: center; gap: 6px; }
.sa-spot-address { font-size: 10px; color: var(--gray); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sa-spot-rating { color: var(--yellow); font-weight: 700; }
.sa-pending-badge { font-size: 9px; font-weight: 700; color: #92400E; background: #FEF3C7; border: 1px solid #FCD34D; border-radius: 4px; padding: 2px 6px; }
.sa-no-spots { padding: 30px; text-align: center; color: var(--gray); font-size: 13px; }

/* こだわり条件サマリーチップ */
.sa-cond-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sa-cond-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: #F5F3FF; border: 1.5px solid #DDD6FE; border-radius: 20px; font-size: 11px; font-weight: 600; color: #6D28D9; text-decoration: none; transition: all 0.15s; white-space: nowrap; }
.sa-cond-chip:hover { background: #EDE9FE; border-color: #8B5CF6; color: #5B21B6; text-decoration: none; }
.sa-cond-chip-count { font-size: 10px; font-weight: 700; background: #8B5CF6; color: white; border-radius: 10px; padding: 0 5px; }

/* サイドバー */
.sa-sidebar { display: flex; flex-direction: column; gap: 12px; }
.sa-sb-card { background: white; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.sa-sb-header { padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--gray-light); }
.sa-sb-title { font-size: 12px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.sa-sb-title::before { content: ''; display: block; width: 3px; height: 12px; background: var(--pink); border-radius: 2px; }
.sa-sb-body { padding: 12px; }

/* 同じ路線の駅 */
.sa-line-station { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--navy); transition: opacity 0.15s; }
.sa-line-station:last-child { border-bottom: none; padding-bottom: 0; }
.sa-line-station:hover { opacity: 0.7; text-decoration: none; }
.sa-line-station.current { font-weight: 800; color: var(--pink); pointer-events: none; }
.sa-line-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sa-line-dot--tozai { background: #F57C00; }
.sa-line-dot--nanboku { background: #38A169; }
.sa-line-dot--toho { background: #3182CE; }
.sa-station-name { font-size: 12px; font-weight: 600; flex: 1; }
.sa-station-count { font-size: 10px; color: var(--gray); }

/* 人気スポット */
.sa-popular-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: opacity 0.15s; }
.sa-popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.sa-popular-item:hover { opacity: 0.75; text-decoration: none; }
.sa-popular-thumb { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.sa-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sa-popular-name { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.sa-popular-meta { font-size: 10px; color: var(--yellow); margin-top: 2px; font-weight: 700; }

/* CTA */
.sa-cta { background: var(--navy); color: white; border-radius: 10px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sa-cta-text h3 { font-size: 14px; font-weight: 700; margin: 0 0 3px; color: white; }
.sa-cta-text p { font-size: 11px; color: rgba(255,255,255,0.7); margin: 0; }
.sa-cta-btn { background: var(--pink); color: white; padding: 9px 20px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 12px; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; }
.sa-cta-btn:hover { background: var(--pink-light); color: white; text-decoration: none; }
.sa-cta-buttons { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.sa-cta-btn-sub { background: rgba(255,255,255,0.1); color: white; padding: 9px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 12px; white-space: nowrap; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.25); }
.sa-cta-btn-sub:hover { background: rgba(255,255,255,0.2); color: white; text-decoration: none; }

/* レスポンシブ */
@media (max-width: 1024px) {
    .sa-spots-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .sa-main { grid-template-columns: 1fr; }
    .sa-sidebar { flex-direction: row; flex-wrap: wrap; }
    .sa-sb-card { flex: 1; min-width: 260px; }
}
@media (max-width: 768px) {
    .sa-main { padding: 10px; gap: 10px; }
    .sa-spots-grid { grid-template-columns: repeat(2, 1fr); }
    .sa-sidebar { flex-direction: column; }
    .sa-sb-card { min-width: unset; }
    .sa-cta { flex-direction: column; text-align: center; }
    .sa-cta-buttons { width: 100%; flex-direction: column; }
    .sa-cta-btn, .sa-cta-btn-sub { width: 100%; text-align: center; }
}
