/* =============================
   Astra全幅・余白リセット
============================= */
body.page-template-page-station-list .site-content,
body.page-template-page-station-list .ast-container,
body.page-template-page-station-list #content,
body.page-template-page-station-list .ast-separate-container,
body.page-template-page-station-list .ast-article-single,
body.page-template-page-station-list .entry-content { padding: 0 !important; max-width: 100% !important; }
body.page-template-page-station-list { overflow-x: hidden !important; }
*, *::before, *::after { box-sizing: border-box; }

/* CSS変数（サイト共通） */
: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;
}

/* =============================
   スタッツバー（サイト共通）
============================= */
.sl-stats-bar { background: var(--navy); padding: 8px 20px; }
.sl-stats-bar-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sl-stats-title { font-size: 13px; font-weight: 700; color: white; }
.sl-stats-sub { font-size: 11px; color: rgba(255,255,255,0.6); }

/* =============================
   メインラッパー
============================= */
.sl-top { background: var(--gray-light); padding: 0; min-height: calc(100vh - 120px); }
.sl-wrapper { max-width: 1400px; margin: 0 auto; padding: 20px 16px 60px; }

/* 2カラムレイアウト */
.sl-layout { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.sl-content { min-width: 0; }

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

/* 路線ランキング */
.sl-rank-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sl-rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.sl-rank-num { font-size: 11px; font-weight: 800; color: var(--pink); width: 18px; text-align: center; flex-shrink: 0; }
.sl-rank-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sl-rank-name { font-size: 12px; font-weight: 700; color: var(--navy); flex: 1; }
.sl-rank-count { font-size: 10px; color: var(--gray); white-space: nowrap; }

/* 最近レビューされたスポット */
.sl-recent-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background 0.15s; }
.sl-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.sl-recent-item:hover { opacity: 0.75; }
.sl-recent-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; }
.sl-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sl-recent-name { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.sl-recent-meta { font-size: 10px; color: var(--gray); margin-top: 2px; }

/* ジャンル別スポット数 */
.sl-genre-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.sl-genre-item:last-child { border-bottom: none; }
.sl-genre-name { font-size: 12px; font-weight: 600; color: var(--navy); }
.sl-genre-bar-wrap { flex: 1; margin: 0 8px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.sl-genre-bar { height: 100%; background: var(--pink); border-radius: 2px; }
.sl-genre-count { font-size: 10px; color: var(--gray); white-space: nowrap; }

/* 使い方ガイド */
.sl-guide-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.sl-guide-item:last-of-type { border-bottom: none; }
.sl-guide-step { width: 20px; height: 20px; background: var(--pink); color: white; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sl-guide-text { font-size: 12px; color: var(--navy); font-weight: 600; }
.sl-guide-note { font-size: 11px; color: var(--gray); margin-top: 10px; line-height: 1.6; }
.sl-guide-note a { color: var(--pink); text-decoration: none; font-weight: 700; }
.sl-guide-note a:hover { text-decoration: underline; }

/* =============================
   ブロック共通（検索ページと同一）
============================= */
.sl-block { background: white; border-radius: 10px; padding: 16px; border: 1px solid var(--border); margin-bottom: 12px; }
.sl-block:last-child { margin-bottom: 0; }
.sl-section-title { font-size: 14px; font-weight: 900; color: var(--navy); margin: 0 0 14px 0; display: flex; align-items: center; gap: 6px; }
.sl-section-title::before { content: ''; display: block; width: 4px; height: 14px; background: var(--pink); border-radius: 2px; flex-shrink: 0; }
.sl-section-label { font-size: 11px; font-weight: 700; color: var(--gray); margin: 0 0 12px; letter-spacing: 0.08em; }

/* =============================
   主要駅グリッド（2列）
============================= */
.sl-major-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.sl-major-link {
    display: flex; align-items: center; gap: 12px;
    background: var(--pink-pale); border: 1.5px solid #F5A3B5;
    border-radius: 8px; padding: 14px 16px;
    text-decoration: none; transition: all 0.2s; color: var(--navy);
}
.sl-major-link:hover {
    background: var(--pink); border-color: var(--pink);
    color: white; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232,67,106,0.25);
    text-decoration: none;
}
.sl-major-icon { font-size: 22px; flex-shrink: 0; }
.sl-major-name { font-size: 16px; font-weight: 800; line-height: 1.3; }
.sl-major-sub { font-size: 11px; color: var(--pink); margin-top: 2px; font-weight: 600; }
.sl-major-link:hover .sl-major-sub { color: rgba(255,255,255,0.8); }

/* =============================
   路線ヘッダー
============================= */
.sl-line { margin-bottom: 12px; }
.sl-line-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.sl-line-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.sl-line-dot--tozai   { background: #F57C00; }
.sl-line-dot--nanboku { background: #38A169; }
.sl-line-dot--toho    { background: #3182CE; }
.sl-line-name { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0; }
.sl-line-count { font-size: 11px; color: var(--gray); margin-left: auto; }

/* =============================
   駅カードグリッド（5列→スマホ2列）
============================= */
.sl-stations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.sl-station-card {
    display: flex; align-items: center; gap: 8px;
    border: 1.5px solid; border-radius: 8px;
    padding: 10px 12px; text-decoration: none;
    transition: all 0.2s; color: var(--navy);
}
.sl-station-card-icon { font-size: 16px; flex-shrink: 0; }
.sl-station-card-name { font-size: 12px; font-weight: 700; line-height: 1.3; }
.sl-station-card-sub { font-size: 10px; margin-top: 2px; font-weight: 600; }
.sl-station-card:hover { transform: translateY(-2px); text-decoration: none; }
.sl-station-card:hover .sl-station-card-sub { color: rgba(255,255,255,0.8); }

/* 東西線（オレンジ） */
.sl-station-card--tozai { background: #FFF8F1; border-color: #FBBD72; }
.sl-station-card--tozai .sl-station-card-sub { color: #974A00; }
.sl-station-card--tozai:hover { background: #F57C00; border-color: #E65100; color: white; box-shadow: 0 4px 12px rgba(245,124,0,0.25); }

/* 南北線（グリーン） */
.sl-station-card--nanboku { background: #F0FFF4; border-color: #68D391; }
.sl-station-card--nanboku .sl-station-card-sub { color: #276749; }
.sl-station-card--nanboku:hover { background: #38A169; border-color: #276749; color: white; box-shadow: 0 4px 12px rgba(56,161,105,0.25); }

/* 東豊線（ブルー） */
.sl-station-card--toho { background: #EBF8FF; border-color: #63B3ED; }
.sl-station-card--toho .sl-station-card-sub { color: #1E4276; }
.sl-station-card--toho:hover { background: #3182CE; border-color: #2C5282; color: white; box-shadow: 0 4px 12px rgba(49,130,206,0.25); }

/* =============================
   CTAブロック
============================= */
.sl-cta {
    background: var(--navy); color: white;
    border-radius: 10px; padding: 24px 20px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sl-cta-text h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: white; }
.sl-cta-text p { font-size: 12px; color: rgba(255,255,255,0.7); margin: 0; }
.sl-cta-btn {
    background: var(--pink); color: white; padding: 10px 24px;
    border-radius: 8px; text-decoration: none; font-weight: 700;
    font-size: 13px; white-space: nowrap; transition: all 0.2s; flex-shrink: 0;
}
.sl-cta-btn:hover { background: var(--pink-light); color: white; transform: translateY(-1px); text-decoration: none; }

/* =============================
   レスポンシブ
============================= */
@media (max-width: 900px) {
    .sl-layout { grid-template-columns: 1fr; }
    .sl-sidebar { flex-direction: row; flex-wrap: wrap; }
    .sl-sb-card { flex: 1; min-width: 260px; }
    .sl-stations-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .sl-wrapper { padding: 10px 10px 40px; }
    .sl-layout { grid-template-columns: 1fr; }
    .sl-sidebar { flex-direction: column; }
    .sl-sb-card { min-width: unset; }
    .sl-major-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sl-major-link { padding: 12px; gap: 8px; }
    .sl-major-name { font-size: 14px; }
    .sl-major-icon { font-size: 18px; }
    .sl-stations-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .sl-station-card { padding: 10px 10px; }
    .sl-cta { flex-direction: column; text-align: center; }
    .sl-cta-btn { width: 100%; text-align: center; }
}
