@charset "utf-8";

/* ============================================
   検索結果の店舗マップ（Leaflet + OpenStreetMap）
   ＋ Googleマップリンク付き一覧
   parts/result_map.php / assets/js/result_map.js と対
   企画提案書 05-8「『食べる、買う』を店舗に辿り着きやすくする」
============================================ */

.resultMap_note {
	margin-bottom: 20px;
}

.resultMap_frame {
	border: 1px solid var(--t-border, #dcdcdc);
	border-radius: 8px;
	overflow: hidden;
}

.resultMap_canvas {
	width: 100%;
	height: 480px;
	/* Leaflet の初期化前も高さを保ち、レイアウトのガタつきを防ぐ */
	background: #e8e8e4;
}

.resultMap_empty {
	padding: 24px;
	text-align: center;
	border: 1px solid var(--t-border, #dcdcdc);
	border-radius: 8px;
	background: var(--t-green-light, #eef4f0);
}

/* ---- ポップアップ ---- */

.resultMap_popup {
	line-height: 1.6;
}

.resultMap_popupTitle {
	font-size: 15px;
	font-weight: bold;
}

.resultMap_popupAddress,
.resultMap_popupTel {
	font-size: 13px;
	margin-top: 2px;
}

.resultMap_popupLinks {
	margin-top: 8px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.resultMap_popupLinks a {
	font-size: 13px;
	text-decoration: underline;
}

/* Leaflet のポップアップがテーマの行間設定を引き継がないようにする */
.leaflet-container .leaflet-popup-content {
	margin: 12px 16px;
	min-width: 180px;
}

/* ---- 対象店舗一覧 ---- */

.resultMap_listWrap {
	margin-top: 24px;
	/* 横に長い表はこの中だけでスクロールさせ、ページ本体を横スクロールさせない */
	overflow-x: auto;
}

.resultMap_list {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.resultMap_listCaption {
	text-align: left;
	font-weight: bold;
	padding-bottom: 8px;
}

.resultMap_list th,
.resultMap_list td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--t-border, #dcdcdc);
	text-align: left;
	vertical-align: middle;
}

.resultMap_list thead th {
	background: var(--t-green-light, #eef4f0);
	border-bottom-width: 2px;
	white-space: nowrap;
	font-size: 14px;
}

.resultMap_list tbody tr.is-pinned {
	cursor: pointer;
}

.resultMap_list tbody tr.is-pinned:hover {
	background: var(--t-green-light, #eef4f0);
}

.resultMap_list_name {
	font-weight: bold;
	min-width: 10em;
}

.resultMap_list_name a {
	text-decoration: underline;
}

.resultMap_list_address {
	min-width: 14em;
}

.resultMap_list_tel {
	white-space: nowrap;
}

.resultMap_list_map {
	white-space: nowrap;
	width: 1%;
}

.resultMap_gmap {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--t-border, #dcdcdc);
	border-radius: 4px;
	background: #f4f4f4;
	font-size: 13px;
	line-height: 1.4;
	color: var(--t-text, #333);
	white-space: nowrap;
}

.resultMap_gmap:hover {
	background: var(--t-green, #104533);
	border-color: var(--t-green, #104533);
	color: #fff;
}

.resultMap_srOnly {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media screen and (max-width: 767px) {
	.resultMap_canvas {
		height: 360px;
	}

	/* SPでは表組みをやめてカード状に積む（横スクロールを避ける） */
	.resultMap_list,
	.resultMap_list tbody,
	.resultMap_list tr,
	.resultMap_list td,
	.resultMap_list th {
		display: block;
	}

	.resultMap_list thead {
		display: none;
	}

	/* table 自体を block にすると caption の幅が潰れて1文字ずつ折り返すため */
	.resultMap_listCaption {
		display: block;
		width: 100%;
	}

	.resultMap_list tbody tr {
		border: 1px solid var(--t-border, #dcdcdc);
		border-radius: 6px;
		padding: 12px;
		margin-bottom: 12px;
	}

	.resultMap_list th,
	.resultMap_list td {
		border-bottom: 0;
		padding: 2px 0;
	}

	.resultMap_list_address::before {
		content: '住所：';
	}

	.resultMap_list_tel::before {
		content: 'TEL：';
	}

	.resultMap_list_map {
		width: auto;
		padding-top: 10px;
	}
}
