
.pref-hero{
	margin-bottom:50px;
}

/* --- レイアウト基盤 --- */
.section-prefs {
	max-width: 1000px;
	margin: 0 auto 100px;
	padding: 0 20px;
}

.section-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 40px;
	padding-bottom: 15px;
	border-bottom: 2px solid #1a1a1a;
}

/* --- データカード：横並び設定 --- */
.datas-grid {
	display: flex;
	flex-direction: column;
	gap: 80px;
}

.data-card {
	border: none;
	background: transparent;
}

.card-body {
	display: flex;
	gap: 50px;
	align-items: flex-start;
}

/* 左側：統計数値（固定幅） */
.data-card-left {
	flex: 0 0 280px;
}

/* 右側：解説文章（可変幅） */
.data-card-right {
	flex: 1;
}

@media (max-width: 850px) {
	.card-body {
		flex-direction: column;
		gap: 30px;
	}
	.data-card-left {
		flex: none;
		width: 100%;
	}
}

/* --- カテゴリラベル --- */
.card-header {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 4px 12px;
	color: #fff;
	border-radius: 3px;
	margin-bottom: 20px;
	letter-spacing: 0.1em;
}

.earthquake .card-header { background: #e03131; }
.tsunami .card-header { background: #1971c2; }
.landslide .card-header { background: #f08c00; }

/* --- 数値強調 --- */
.data-card-left strong {
	font-size: 2.8rem;
	font-weight: 700;
	color: #1a1a1a;
	display: block;
	line-height: 1;
}

.data-card-left .label {
	font-size: 0.8rem;
	color: #868e96;
	margin-bottom: 5px;
	display: block;
}

.stat-sub {
	font-size: 0.8rem;
	color: #adb5bd;
	margin: 10px 0 25px;
}

/* --- リストデザイン --- */
.data-list {
	list-style: none;
	padding: 0;
	margin-top: 20px;
}

.data-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	font-size: 0.9rem;
	border-bottom: 1px solid #f1f3f5;
}

.data-list li strong {
	font-size: 1rem;
	display: inline;
}

.list-total {
	border-top: 2px solid #1a1a1a !important;
	border-bottom: none !important;
	padding-top: 15px !important;
	margin-top: 10px;
}

/* --- テキスト装飾 --- */
.data-card-right p {
	font-size: 0.95rem;
	line-height: 1.9;
	color: #333;
	margin-bottom: 1.5rem;
}

.data-card-right a {
	color: #5BC8AC;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- 河川情報（縦並びへの修正） --- */
/* --- 河川専用のカテゴリカラー --- */
.rivers .card-header { background: #228be6; }

/* --- 河川セクション内の見出し (h3) --- */
.data-card-left h3 {
	font-size: 0.9rem;
	font-weight: 700;
	color: #495057;
	margin: 25px 0 12px;
	padding-left: 8px;
	border-left: 3px solid #228be6; /* 河川カラーのアクセント */
}

.data-card-left h3:first-child {
	margin-top: 0;
}

/* --- リスト表示の最適化 --- */
.data-card-left ul {
	list-style: none;
	padding: 0;
	margin-bottom: 20px;
}

.data-card-left li {
	font-size: 0.9rem;
	padding: 8px 0;
	border-bottom: 1px solid #f1f3f5;
	color: #1a1a1a;
}

/* --- 定義リスト（ランク説明）のスタイリッシュ化 --- */
.data-card-right p br + br {
	display: block;
	content: "";
	margin-top: 10px;
}

/* ランクの数値を少し強調 */
.data-card-right p {
	position: relative;
}

/* ランク表の部分だけ文字を小さくして、等幅フォント風に整理 */
.data-card-right p:has(br) {
	font-size: 0.85rem;
	background: #f8f9fa;
	padding: 15px;
	border-radius: 6px;
	line-height: 1.6;
	color: #666;
}

/* --- レスポンシブの微調整 --- */
@media (max-width: 850px) {
	.data-card-left h3 {
		margin-top: 20px;
	}
}

/* --- 市区町村ナビ --- */
.city-nav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 15px;
	list-style: none;
	padding: 0;
}

.city-nav-grid li {
	font-size: 0.85rem;
	color: #555;
	padding: 10px;
	border: 1px solid #eee;
	text-align: center;
	border-radius: 4px;
}