/* ============================================================
   list_card.css — heritage_list.php(遺産一覧)専用CSS(K-C / t_kadai No.204)
   heritage_list.php のみで読み込む。style.css には影響しない。

   方針:
   - style.css は一切編集しない。このファイルは heritage_list.php
     (将来的には heritage_search.php 等の一覧系ページ)専用に
     追加で読み込む(journey.css と同じ作法)。
   - 全セレクタに .hlist- プレフィックスを付与し、style.css の
     既存クラス・#g_navi 等の高詳細度セレクタと衝突しないようにする。
   - Bootstrap の .card / .btn / .collapse の「動作」は上書きしない。
     見た目の装飾のみをこのファイルで追加する。
   ============================================================ */

/* ---- エリア(地域)見出し ----
   .content h3 と同じセレクタは編集せず、見た目のみを新規クラスに
   コピーして再現する(journey.css の手法を踏襲) */
.hlist-area {
	margin-bottom: 14px;
}
.hlist-area__header {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background-color: #F6F6F6;
	border: none;
	border-radius: 10px;
	color: #036;
	font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "Sawarabi Mincho", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
	font-size: 20px;
	line-height: 1.4;
	padding: 12px 16px;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.hlist-area__header:hover {
	background-color: #eef4f6;
}
.hlist-area__chevron {
	display: inline-flex;
	color: #0085B2;
	transition: transform 0.2s ease;
}
.hlist-area__header[aria-expanded="true"] .hlist-area__chevron {
	transform: rotate(90deg);
}
.hlist-area__name {
	flex: 1 1 auto;
}
.hlist-area__count {
	flex: 0 0 auto;
	font-family: "游ゴシック", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Osaka, "ＭＳ ゴシック", "MS Gothic", sans-serif;
	font-size: 13px;
	color: #888;
	background-color: #fff;
	border: 1px solid #dde3e5;
	border-radius: 12px;
	padding: 2px 10px;
}
.hlist-area__body {
	padding: 12px 4px 4px;
}

/* ---- 国見出し(エリアより一段小さい) ---- */
.hlist-country {
	margin-bottom: 10px;
}
.hlist-country__header {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	text-align: left;
	background-color: #fafafa;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	color: #036;
	font-family: "游ゴシック", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Osaka, "ＭＳ ゴシック", "MS Gothic", sans-serif;
	font-size: 15px;
	font-weight: bold;
	padding: 8px 12px;
	cursor: pointer;
}
.hlist-country__header:hover {
	background-color: #f0f0f0;
}
.hlist-country__chevron {
	display: inline-flex;
	color: #0085B2;
	font-size: 0.85em;
	transition: transform 0.2s ease;
}
.hlist-country__header[aria-expanded="true"] .hlist-country__chevron {
	transform: rotate(90deg);
}
.hlist-country__name {
	flex: 1 1 auto;
}
.hlist-country__count {
	flex: 0 0 auto;
	font-size: 12px;
	color: #999;
}
.hlist-country__body {
	padding: 10px 2px 4px;
}

/* ---- 遺産カードグリッド ----
   最小幅は元150pxだったが、日本語の長い遺産名タイトルが単語の途中で
   不自然に折り返る(1文字ずつの改行)不具合がオーナー実機確認で判明したため、
   210pxへ拡幅(列数は減っても可読性を優先)。 */
.hlist-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
	margin-bottom: 8px;
}
.hlist-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hlist-card:hover {
	box-shadow: 0 4px 10px rgba(0,0,0,0.14);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}
/* a img に対するサイト共通の a:hover img{opacity:0.7} を、
   カード全体ホバー時にも自然に見えるよう明示的に上書きしておく
  (共通ルール自体は編集せず、このクラス配下でのみ無効化) */
.hlist-card:hover img {
	opacity: 1;
}

.hlist-card__img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: #ddd;
	overflow: hidden;
}
.hlist-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hlist-card__img-wrap--noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eef4f6 0%, #dce8ec 100%);
}
.hlist-card__noimage-label {
	font-size: 12px;
	color: #7a97a3;
	font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, serif;
	letter-spacing: 0.1em;
}

.hlist-card__body {
	padding: 8px 10px 10px;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hlist-card__title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #036;
	font-weight: bold;
	/* 2行で省略(対応ブラウザのみ。非対応でも折り返し表示されるだけで実害なし) */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hlist-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.hlist-badge {
	display: inline-block;
	font-size: 10px;
	line-height: 1.6;
	padding: 1px 7px;
	border-radius: 10px;
	color: #fff;
	white-space: nowrap;
}
.hlist-badge--cultural {
	background-color: #0085B2;
}
.hlist-badge--natural {
	background-color: #2e7d32;
}
.hlist-badge--crisis {
	background-color: #c0392b;
}
.hlist-badge--sub {
	background-color: #fff;
	color: #777;
	border: 1px solid #ccc;
}

/* ---- レスポンシブ ---- */
@media (max-width: 767px) {
	.hlist-area__header {
		font-size: 17px;
		padding: 10px 12px;
	}
	.hlist-card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.hlist-card__title {
		font-size: 0.85rem;
		line-height: 1.45;
	}
}
