/* ==============================================
   LTV Hokkaido – Public Styles v2
   ============================================== */
.ltv-chart-wrap,.ltv-compare-wrap,.ltv-timeseries-wrap,.ltv-ranking-wrap,.ltv-municipality-wrap,.ltv-hk-page{font-family:'Helvetica Neue',Arial,'Hiragino Sans','Noto Sans JP',sans-serif}

/* === HERO ======================================= */
.ltv-hk-hero{background:linear-gradient(135deg,#0d1f3c 0%,#1a3a5c 55%,#0b3060 100%);border-radius:14px;padding:56px 32px 48px;text-align:center;margin-bottom:40px;position:relative;overflow:hidden}
.ltv-hk-hero::before{content:'';position:absolute;top:-60px;right:-80px;width:320px;height:320px;background:rgba(255,255,255,.04);border-radius:50%;pointer-events:none}
.ltv-hk-hero::after{content:'';position:absolute;bottom:-80px;left:-50px;width:260px;height:260px;background:rgba(255,255,255,.03);border-radius:50%;pointer-events:none}
.ltv-hk-hero-eyebrow{display:inline-block;background:rgba(255,255,255,.12);color:#7ecfe3;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:5px 16px;border-radius:20px;margin-bottom:22px}
.ltv-hk-hero-title{color:#fff!important;font-size:clamp(26px,5vw,46px)!important;font-weight:800!important;line-height:1.25!important;margin:0 0 16px!important;background:none!important;border:none!important;padding:0!important;text-shadow:0 2px 12px rgba(0,0,0,.3)}
.ltv-hk-hero-sub{color:rgba(255,255,255,.72);font-size:15px;line-height:1.75;max-width:560px;margin:0 auto 36px}
.ltv-hk-stats{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.ltv-hk-stat{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:12px;padding:14px 28px;text-align:center;min-width:96px;backdrop-filter:blur(4px)}
.ltv-hk-stat strong{display:block;color:#fff;font-size:30px;font-weight:800;line-height:1}
.ltv-hk-stat small{color:rgba(255,255,255,.6);font-size:11px;margin-top:4px;display:block}

/* === CARD BASE (全shortcodeラッパー共通) ========= */
.ltv-chart-wrap,.ltv-compare-wrap,.ltv-timeseries-wrap{background:#fff;border-radius:14px;box-shadow:0 4px 24px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.04);margin:32px auto;overflow:hidden;max-width:960px}

/* === CHART – 棒グラフ ============================ */
.ltv-chart-wrap .ltv-ranking-title{font-size:16px;font-weight:700;color:#fff;background:linear-gradient(90deg,#0d1f3c 0%,#1e4070 100%);margin:0;padding:20px 24px 6px}
.ltv-chart-wrap .ltv-ranking-year{font-size:12px;color:rgba(255,255,255,.6);background:linear-gradient(90deg,#0d1f3c 0%,#1e4070 100%);margin:0;padding:0 24px 18px}
.ltv-chart-wrap .ltv-chart-container{padding:20px 16px 12px}
.ltv-chart-wrap .ltv-data-source{font-size:11px;color:#bbb;padding:12px 24px 16px;margin:0;border-top:1px solid #f2f2f2}

/* === TIMESERIES – 折れ線グラフ =================== */
.ltv-timeseries-wrap .ltv-muni-name{font-size:16px;font-weight:700;color:#fff;background:linear-gradient(90deg,#1a3a5c 0%,#2e6da4 100%);margin:0;padding:20px 24px 18px}
.ltv-timeseries-wrap .ltv-chart-container{padding:20px 16px 12px}

/* === COMPARE – 比較テーブル ====================== */
.ltv-compare-wrap .ltv-compare-year{font-size:16px;font-weight:700;color:#fff;background:linear-gradient(90deg,#1b5e20 0%,#2e7d32 100%);margin:0;padding:20px 24px 18px}
.ltv-compare-wrap .ltv-compare-table-wrap{overflow-x:auto}
.ltv-compare-table{width:100%;border-collapse:collapse;min-width:500px;font-size:13px}
.ltv-compare-table thead th{background:#f8fafb;font-weight:700;padding:11px 14px;border-bottom:2px solid #e4e4e4;text-align:center;white-space:nowrap;color:#333;font-size:13px}
.ltv-compare-table thead th.ltv-compare-metric-col{text-align:left;color:#888;font-weight:600;font-size:12px}
.ltv-compare-table tbody td{padding:9px 14px;border-bottom:1px solid #f0f0f0;text-align:right;color:#333}
.ltv-compare-table tbody tr:hover td{background:#f9fbff}
.ltv-compare-table .ltv-compare-row-header{text-align:left;font-size:12px;color:#666;background:#fafafa;white-space:nowrap;font-weight:500}
.ltv-compare-best{background:#e8f5e9!important;font-weight:700!important;color:#2e7d32!important}
.ltv-unit{font-size:10px;color:#bbb;margin-left:2px}
.ltv-na{color:#ccc}

/* === FOOTER NOTE ================================= */
.ltv-hk-footer{max-width:960px;margin:0 auto 40px;padding:14px 20px;background:#f8f9fa;border-radius:10px;font-size:11px;color:#999;line-height:1.7}
.ltv-hk-footer p{margin:0}

/* === RANKING TABLE (ltv_ranking shortcode) ========= */
.ltv-ranking-wrap{background:#fff;border-radius:14px;box-shadow:0 4px 24px rgba(0,0,0,.08);margin:32px auto;overflow:hidden;max-width:960px}
.ltv-ranking-card-header{background:linear-gradient(90deg,#0d1f3c 0%,#1e4070 100%);padding:20px 24px 18px}
.ltv-ranking-wrap .ltv-ranking-title{font-size:17px!important;font-weight:700!important;color:#fff!important;margin:0 0 4px!important;background:none!important;border:none!important;padding:0!important}
.ltv-ranking-wrap .ltv-ranking-year{font-size:12px;color:rgba(255,255,255,.6);margin:0}
.ltv-ranking-table-wrap{overflow-x:auto}
.ltv-ranking-table,.ltv-ranking-table-full,.ltv-data-table{width:100%;border-collapse:collapse;font-size:13px}
.ltv-ranking-table-full thead th{background:#f8fafb;padding:10px 14px;border-bottom:2px solid #e0e0e0;font-weight:700;color:#444;white-space:nowrap;position:sticky;top:0;z-index:1}
.ltv-ranking-table-full tbody tr:hover td{background:#f5f8ff}
.ltv-ranking-table-full td{padding:7px 14px;border-bottom:1px solid #f2f2f2;vertical-align:middle}
.ltv-ranking-table-full .ltv-top3 td{background:#fffbf0}
.ltv-ranking-table-full .ltv-top10 td{background:#fafff8}
.ltv-ranking-table-full .ltv-top3 .ltv-score-bar-fill{background:linear-gradient(90deg,#d4a017,#f5c518)}
.ltv-ranking-wrap .ltv-data-source{font-size:11px;color:#bbb;padding:12px 24px 16px;margin:0;border-top:1px solid #f2f2f2}
.ltv-rank-badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 5px;background:#eee;color:#555;font-size:12px;font-weight:700;border-radius:6px}
.ltv-rank-1{background:#f5c518!important;color:#333!important;min-width:32px}.ltv-rank-2{background:#c0c0c0!important;color:#fff!important}.ltv-rank-3{background:#cd7f32!important;color:#fff!important}
.ltv-score-bar-bg{background:#f0f0f0;border-radius:4px;height:8px;overflow:hidden}
.ltv-score-bar-fill{height:100%;background:linear-gradient(90deg,#0073aa,#1e90ff);border-radius:4px}
.ltv-muni-link{color:#1a3a5c;text-decoration:none;font-weight:600}
.ltv-muni-link:hover{color:#0073aa;text-decoration:underline}
.ltv-col-rank{width:56px;text-align:center}.ltv-col-name{text-align:left}.ltv-col-score{width:72px;text-align:right;font-weight:600;color:#333;font-variant-numeric:tabular-nums}.ltv-col-bar{width:120px;padding-right:20px!important}.ltv-col-actual{width:130px;text-align:right;white-space:nowrap}
.ltv-actual-val{font-weight:700;color:#1a3a5c;font-variant-numeric:tabular-nums}.ltv-actual-unit{font-size:11px;color:#888;margin-left:2px}
/* ランキングハブページ */
.ltv-rk-hub{max-width:960px;margin:0 auto}
.ltv-rk-hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin:24px 0}
.ltv-rk-hub-card{background:#fff;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.07);overflow:hidden;text-decoration:none;display:block;transition:transform .15s,box-shadow .15s}
.ltv-rk-hub-card:hover{transform:translateY(-3px);box-shadow:0 6px 24px rgba(0,0,0,.12)}
.ltv-rk-hub-card-head{padding:16px 20px 14px}
.ltv-rk-hub-card-title{font-size:15px;font-weight:800;color:#fff;margin:0 0 3px}
.ltv-rk-hub-card-count{font-size:11px;color:rgba(255,255,255,.7);margin:0}
.ltv-rk-hub-card-body{padding:14px 20px 16px}
.ltv-rk-hub-card-desc{font-size:13px;color:#555;margin:0 0 10px;line-height:1.6}
.ltv-rk-hub-card-cta{font-size:12px;color:#0073aa;font-weight:600}
/* ランキング個別ページ nav */
.ltv-rk-nav{display:flex;flex-wrap:wrap;gap:8px;margin:32px 0 0;padding:16px 20px;background:#f8f9fa;border-radius:10px}
.ltv-rk-nav-label{font-size:11px;color:#888;width:100%;margin-bottom:4px}
.ltv-rk-nav a{font-size:12px;color:#1a3a5c;text-decoration:none;background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:5px 12px;white-space:nowrap}
.ltv-rk-nav a:hover{background:#0073aa;color:#fff;border-color:#0073aa}
.ltv-rk-nav a.ltv-rk-nav-current{background:#0d1f3c;color:#fff;border-color:#0d1f3c;pointer-events:none}
/* 共通 */
.ltv-ranking-table th,.ltv-ranking-table td,.ltv-data-table th,.ltv-data-table td{padding:8px 12px;border:1px solid #e8e8e8}
.ltv-ranking-table thead th{background:#f5f7fa;font-weight:600}
.ltv-data-source-footer{margin-top:24px;padding-top:12px;border-top:1px solid #eee;font-size:11px;color:#aaa}
.ltv-section{margin:24px 0}
.ltv-section h3{font-size:1.05em;border-left:4px solid #0073aa;padding-left:8px;margin-bottom:8px}
.ltv-data-table th{background:#f9f9f9;width:50%;font-weight:normal}
.ltv-notice{padding:14px 20px;background:#f0f6ff;border-left:4px solid #0073aa;border-radius:0 6px 6px 0;font-size:14px;margin:8px 0}

/* === MUNICIPALITY HERO === */
.ltv-muni-hero{background:linear-gradient(135deg,#1a3a5c 0%,#2e6da4 100%);border-radius:14px;padding:32px 28px;margin-bottom:24px;color:#fff}
.ltv-muni-type-badge{display:inline-block;background:rgba(255,255,255,.2);color:#fff;font-size:11px;font-weight:700;padding:3px 12px;border-radius:12px;margin-bottom:12px;letter-spacing:.08em}
.ltv-muni-hero .ltv-muni-name{font-size:clamp(22px,4vw,36px)!important;font-weight:800!important;color:#fff!important;margin:0 0 4px!important;background:none!important;border:none!important;padding:0!important}
.ltv-muni-hero .ltv-muni-kana{color:rgba(255,255,255,.65);font-size:14px;margin:0 0 8px}
.ltv-muni-hero .ltv-muni-year{color:rgba(255,255,255,.55);font-size:12px;margin:0}
/* === STATGRID === */
.ltv-muni-statgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:24px}
.ltv-muni-stat-card{background:#fff;border-radius:10px;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,.06);text-align:center;border:1px solid #f0f0f0}
.ltv-muni-stat-label{font-size:11px;color:#888;margin-bottom:6px}
.ltv-muni-stat-value{font-size:20px;font-weight:800;color:#1a3a5c}
.ltv-muni-stat-unit{font-size:11px;color:#aaa;margin-left:2px}
.ltv-muni-stat-sub{font-size:11px;margin-top:4px;font-weight:600}
.ltv-pop-plus{color:#059669}
.ltv-pop-minus{color:#dc2626}
/* === SECTION CARDS === */
.ltv-muni-section{background:#fff;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.06);margin-bottom:20px;overflow:hidden;border:1px solid #f0f0f0}
.ltv-muni-section-header{padding:14px 20px;font-size:14px;font-weight:700;color:#fff;display:flex;align-items:center;gap:8px}
.ltv-muni-section-body{padding:0}
.ltv-muni-section-timeseries .ltv-muni-section-header{background:linear-gradient(90deg,#0d47a1,#1565c0)}.ltv-muni-section-it .ltv-muni-section-header{background:linear-gradient(90deg,#1b5e20,#2e7d32)}
.ltv-muni-section-climate .ltv-muni-section-header{background:linear-gradient(90deg,#1565c0,#1976d2)}
.ltv-muni-section-land .ltv-muni-section-header{background:linear-gradient(90deg,#4a148c,#7b1fa2)}
.ltv-muni-section-rankings .ltv-muni-section-header{background:linear-gradient(90deg,#b71c1c,#c62828)}
.ltv-muni-table{width:100%;border-collapse:collapse;font-size:13px}
.ltv-muni-table tr:not(:last-child) td,.ltv-muni-table tr:not(:last-child) th{border-bottom:1px solid #f5f5f5}
.ltv-muni-table th{padding:11px 20px;color:#666;font-weight:500;background:#fafafa;width:55%;text-align:left}
.ltv-muni-table td{padding:11px 20px;color:#333;font-weight:600;text-align:right}
.ltv-rank-item{display:flex;justify-content:space-between;align-items:center;padding:11px 20px;border-bottom:1px solid #f5f5f5}
.ltv-rank-item:last-child{border-bottom:none}
.ltv-rank-name{font-size:13px;color:#444}
.ltv-rank-pos{background:#0d1f3c;color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:12px}
.ltv-rank-pos-1{background:#d4a017}
.ltv-rank-pos-2{background:#888}
.ltv-rank-pos-3{background:#cd7f32}

/* === TOPIC ITEMS (Phase 3) === */
.ltv-muni-section-topics .ltv-muni-section-header{background:linear-gradient(90deg,#37474f,#546e7a)}.ltv-topics-body{padding:16px 20px}.ltv-topic-group{margin-bottom:18px}.ltv-topic-group:last-of-type{margin-bottom:8px}.ltv-topic-cat-title{font-size:13px!important;font-weight:700!important;color:#444!important;margin:0 0 8px!important;padding:0!important;background:none!important;border:none!important}.ltv-topic-list{margin:0;padding:0;list-style:none}.ltv-topic-item{padding:8px 12px;border-radius:8px;margin-bottom:6px;background:#fafafa;border:1px solid #f0f0f0;font-size:12.5px;line-height:1.5}.ltv-topic-item strong{display:block;color:#333;font-size:13px;margin-bottom:2px}.ltv-topic-summary{color:#666;display:block;font-size:12px;line-height:1.6}.ltv-topic-ai{border-left:3px solid #ff9800}.ltv-topic-ai-note{font-size:11px;color:#aaa;margin:8px 0 0;padding:0}
