/*!
 * SOLBOY Food Map 1.2.0（24店。当店：紫のひし形「S」）
 * 本文の店舗一覧と、JSで追加する地図の見た目。色だけに頼らず、番号・大きさ・「この記事」の表示でも区別する。
 */

/* --- 移動先（地図を表示する9記事だけ）が固定ヘッダーに隠れない余白 --- */
.solboy-article__content #location,
.solboy-article__content #map,
.solboy-article__content [id^="shop-"] {
	scroll-margin-top: 96px;
}

/* --- 本文の一覧（JSが無くても使える部分） --- */
.solboy-food-map {
	margin: 20px 0 28px;
}
.solboy-food-map .solboy-food-map__lead {
	margin: 0 0 12px;
}
.solboy-food-map .solboy-food-map__list {
	margin: 0;
	padding-left: 1.6em;
}
.solboy-food-map .solboy-food-map__list li {
	margin: 0 0 6px;
	line-height: 1.7;
}
/* 1.2.0：一覧の下の地域別の記事への案内（JSが無くても使える） */
.solboy-food-map .solboy-food-map__more {
	margin: 10px 0 0;
	line-height: 1.7;
}

/* JSで番号の丸を付けたとき（地図の印と同じ番号・色） */
.solboy-food-map .sfm-list {
	list-style: none;
	padding-left: 0;
}
.solboy-food-map .sfm-list li {
	position: relative;
	padding: 4px 6px 4px 36px;
	border-radius: 6px;
}
.solboy-food-map .sfm-list li.is-hl {
	background: #fdecea;
}
.solboy-food-map .sfm-num {
	position: absolute;
	left: 4px;
	top: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #1a6fa8;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}
.solboy-food-map .sfm-num--current {
	background: #c62828;
}

/* --- 凡例・地図・注記 --- */
.solboy-food-map .sfm-figure {
	margin: 0 0 16px;
}
.solboy-food-map .sfm-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.6;
}
.solboy-food-map .sfm-legend li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.solboy-food-map .sfm-key {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #8a99a6;
	flex: 0 0 auto;
}
.solboy-food-map .sfm-key--current {
	background: #c62828;
}
.solboy-food-map .sfm-key--other {
	background: #1a6fa8;
}
.solboy-food-map .sfm-key--home {
	background: #6a1b9a;
	border-radius: 2px;
	transform: rotate(45deg);
}
.solboy-food-map .sfm-legend__link {
	margin-left: 6px;
	color: #6a1b9a;
	font-weight: 700;
	white-space: nowrap;
}
.solboy-food-map .sfm-key--landmark {
	background: #6b7480;
	border-radius: 3px;
}
.solboy-food-map .sfm-map {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 420px;
	border: 1px solid #d5dee6;
	border-radius: 8px;
	background: #e9eef2;
}
.solboy-food-map .sfm-note {
	margin: 8px 0 0;
	padding: 8px 12px;
	background: #fff6e5;
	border-left: 4px solid #d18b00;
	font-size: 14px;
}
.solboy-food-map .sfm-caption {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #55636e;
}

/* --- 地図の印 --- */
.solboy-food-map .sfm-icon {
	background: none;
	border: 0;
}
.solboy-food-map .sfm-pin {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
	color: #fff;
	font: 700 14px/1 sans-serif;
	text-decoration: none;
	cursor: pointer;
}
.solboy-food-map .sfm-pin--other {
	background: #1a6fa8;
}
.solboy-food-map .sfm-pin--current {
	background: #c62828;
	border-width: 3px;
	font-size: 16px;
}
.solboy-food-map .sfm-pin--home {
	width: 24px;
	height: 24px;
	margin: 3px;
	border-radius: 3px;
	background: #6a1b9a;
	transform: rotate(45deg);
}
.solboy-food-map .sfm-pin--home span {
	transform: rotate(-45deg);
	font-size: 14px;
}
.solboy-food-map .sfm-pin--landmark {
	background: #6b7480;
	border-radius: 4px;
	font-size: 12px;
	cursor: default;
}
.solboy-food-map .sfm-pin--group {
	gap: 3px;
	padding: 0 4px;
	border: 2px solid #1a6fa8;
	border-radius: 15px;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
}
.solboy-food-map .sfm-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #1a6fa8;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}
.solboy-food-map .sfm-chip--current {
	background: #c62828;
}
/* 1.2.0：まとめた印の「+残りの数」と、この記事の店を含むまとめた印 */
.solboy-food-map .sfm-chip--more {
	width: auto;
	min-width: 20px;
	padding: 0 1px; /* 1.4.0：「+11」など2桁でも1行に収め、ほかの番号の丸を縮めない */
	letter-spacing: -1px;
	white-space: nowrap;
	flex-shrink: 0;
	border-radius: 10px;
	background: #55636e;
}
.solboy-food-map .sfm-pin--group-current {
	border-color: #c62828;
}
/* 比較記事：一覧で選んでいる店の印を赤で強調 */
.solboy-food-map .sfm-figure--compare .sfm-pin--other.is-hl,
.solboy-food-map .sfm-figure--compare .sfm-chip.is-hl {
	background: #c62828;
}
.solboy-food-map .sfm-pin.is-hl,
.solboy-food-map .sfm-chip.is-hl {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #c62828;
}
.solboy-food-map .sfm-pin:focus-visible,
.solboy-food-map .sfm-reset:focus-visible,
.solboy-food-map .sfm-zoom:focus-visible,
.solboy-food-map .sfm-pop-list a:focus-visible {
	outline: 3px solid #111;
	outline-offset: 2px;
}

/* --- 店名の表示（常時） --- */
.solboy-food-map .sfm-tip {
	padding: 2px 6px;
	border: 1px solid #b9c6d0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: none;
	color: #1c2b33;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}
.solboy-food-map .sfm-tip::before {
	display: none;
}
.solboy-food-map .sfm-tip--hidden {
	display: none;
}
.solboy-food-map .sfm-tip--home {
	border: 2px solid #6a1b9a;
	color: #4a126f;
}
.solboy-food-map .sfm-tip--current {
	border-color: #c62828;
	color: #9f1d1d;
}

/* --- 「全体」ボタン・一覧の吹き出し --- */
.solboy-food-map .sfm-reset {
	display: block;
	min-width: 44px;
	height: 32px;
	margin: 0;
	padding: 0 8px;
	border: 2px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	background: #fff;
	color: #1c2b33;
	font: 700 13px/1 sans-serif;
	cursor: pointer;
}
.solboy-food-map .sfm-pop .leaflet-popup-content {
	margin: 12px 14px;
	font-size: 14px;
	line-height: 1.6;
}
.solboy-food-map .sfm-pop-ttl {
	margin: 0 0 6px;
	font-weight: 700;
}
.solboy-food-map .sfm-pop-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.solboy-food-map .sfm-pop-list li {
	margin: 0 0 8px;
}
.solboy-food-map .sfm-pop-list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	color: #1a6fa8;
	font-weight: 700;
}
.solboy-food-map .sfm-pop-sub {
	display: block;
	color: #55636e;
	font-size: 12px;
}
.solboy-food-map .sfm-zoom {
	margin: 4px 0 0;
	padding: 6px 10px;
	border: 1px solid #1a6fa8;
	border-radius: 4px;
	background: #fff;
	color: #1a6fa8;
	font-size: 13px;
	cursor: pointer;
}

@media (max-width: 600px) {
	.solboy-food-map .sfm-map {
		height: 340px;
	}
	.solboy-food-map .sfm-legend {
		font-size: 13px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.solboy-food-map .leaflet-fade-anim .leaflet-popup {
		transition: none;
	}
}
