.happyell-usj-map-trigger {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: .42em;
	min-height: 36px;
	margin: 4px 0;
	padding: 7px 12px;
	border: 1px solid #d8dce3;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(14, 30, 55, .08);
	color: #165da8;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.happyell-usj-map-trigger:hover,
.happyell-usj-map-trigger:focus-visible {
	border-color: #165da8;
	box-shadow: 0 4px 14px rgba(14, 55, 100, .16);
	transform: translateY(-1px);
}
.happyell-usj-map-trigger__icon {
	position: relative;
	display: inline-block;
	width: 14px;
	height: 17px;
	flex: 0 0 14px;
	border: 2px solid currentColor;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
}
.happyell-usj-map-trigger__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 25%;
	width: 4px;
	height: 4px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}
html.happyell-usj-map-is-open,
body.happyell-usj-map-is-open { overflow: hidden !important; }
.happyell-usj-map-overlay[hidden] { display: none !important; }
.happyell-usj-map-overlay {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
	box-sizing: border-box;
}
.happyell-usj-map-overlay *,
.happyell-usj-map-overlay *::before,
.happyell-usj-map-overlay *::after { box-sizing: border-box; }
.happyell-usj-map-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 16, 28, .76);
	backdrop-filter: blur(3px);
}
.happyell-usj-map-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(900px, 100%);
	max-height: min(92vh, 920px);
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
	opacity: 0;
	transform: translateY(12px) scale(.985);
	transition: opacity .18s ease, transform .18s ease;
}
.happyell-usj-map-dialog.is-visible { opacity: 1; transform: none; }
.happyell-usj-map-dialog__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px 12px;
	border-bottom: 1px solid #e5e8ed;
	background: #fff;
}
.happyell-usj-map-dialog__eyebrow { margin: 0 0 2px; color: #1671c5; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.happyell-usj-map-dialog__header h2 { margin: 0; padding: 0; border: 0; background: none; color: #172033; font-size: clamp(17px, 2.2vw, 24px); line-height: 1.35; font-weight: 800; }
.happyell-usj-map-dialog__close {
	appearance: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef1f5;
	color: #172033;
	font: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.happyell-usj-map-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid #e5e8ed;
	background: #f7f8fa;
}
.happyell-usj-map-toolbar__count { margin-right: auto; color: #4e596b; font-size: 12px; font-weight: 700; }
.happyell-usj-map-toolbar__buttons { display: flex; align-items: center; gap: 6px; }
.happyell-usj-map-toolbar button,
.happyell-usj-map-filter-toggle {
	appearance: none;
	min-width: 38px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #d5dae2;
	border-radius: 7px;
	background: #fff;
	color: #233047;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.happyell-usj-map-filter-toggle[hidden] { display: none !important; }
.happyell-usj-map-filter-toggle { display: inline-flex; align-items: center; gap: 6px; min-width: auto; }
.happyell-usj-map-filter-toggle b { display: inline-block; padding: 2px 6px; border-radius: 999px; background: #1671c5; color: #fff; font-size: 11px; }
.happyell-usj-map-layout { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.happyell-usj-map-sidebar {
	position: relative;
	z-index: 6;
	width: 310px;
	flex: 0 0 310px;
	padding: 14px;
	overflow-y: auto;
	border-right: 1px solid #dfe4ea;
	background: #fff;
}
.happyell-usj-map-sidebar[hidden] { display: none !important; }
.happyell-usj-map-sidebar__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #172033; }
.happyell-usj-map-sidebar__head strong { font-size: 15px; font-weight: 800; }
.happyell-usj-map-sidebar__head button { display: none; appearance: none; border: 0; background: transparent; font-size: 25px; line-height: 1; cursor: pointer; }
.happyell-usj-map-switches[hidden] { display: none !important; }
.happyell-usj-map-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 16px; }
.happyell-usj-map-switch {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	min-width: 0;
	min-height: 42px;
	padding: 7px 9px;
	border: 1px solid #d8dee7;
	border-radius: 9px;
	background: #fff;
	color: #26344b;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}
.happyell-usj-map-switch span { min-width: 0; overflow-wrap: anywhere; }
.happyell-usj-map-switch b { flex: 0 0 auto; min-width: 22px; padding: 2px 5px; border-radius: 999px; background: #eef2f7; color: #596579; font-size: 10px; text-align: center; }
.happyell-usj-map-switch:hover,
.happyell-usj-map-switch:focus-visible,
.happyell-usj-map-switch.is-active { border-color: #1671c5; background: #edf6ff; color: #0e4f8c; }
.happyell-usj-map-switch.is-active b { background: #1671c5; color: #fff; }
.happyell-usj-map-search[hidden] { display: none !important; }
.happyell-usj-map-search label { display: block; margin-bottom: 6px; color: #38465a; font-size: 12px; font-weight: 800; }
.happyell-usj-map-search input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #bfc8d4;
	border-radius: 8px;
	background: #fff;
	color: #172033;
	font: inherit;
	font-size: 16px;
}
.happyell-usj-map-search__results { display: grid; gap: 6px; margin-top: 8px; }
.happyell-usj-map-search__item {
	appearance: none;
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid #dde2e9;
	border-radius: 8px;
	background: #fff;
	color: #223047;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}
.happyell-usj-map-search__item:hover,
.happyell-usj-map-search__item:focus-visible { border-color: #1671c5; background: #edf6ff; }
.happyell-usj-map-search__empty { margin: 0; padding: 14px 6px; color: #687386; font-size: 12px; text-align: center; }
.happyell-usj-map-filter-backdrop[hidden] { display: none !important; }
.happyell-usj-map-maparea { position: relative; display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; }
.happyell-usj-map-viewport {
	position: relative;
	flex: 1 1 auto;
	min-height: 280px;
	overflow: auto;
	overscroll-behavior: contain;
	touch-action: pan-x pan-y;
	background: #dfe5ec;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
}
.happyell-usj-map-viewport.is-dragging { cursor: grabbing; user-select: none; }
.happyell-usj-map-stage { position: relative; width: 100%; min-width: 100%; margin: 0 auto; }
.happyell-usj-map-image { display: block; width: 100%; height: auto; max-width: none; margin: 0; user-select: none; -webkit-user-drag: none; }
.happyell-usj-map-pins { position: absolute; inset: 0; pointer-events: none; }
.happyell-usj-map-pin-wrap {
	position: absolute;
	z-index: 2;
	width: 36px;
	height: 45px;
	transform: translate(-50%, -100%);
	pointer-events: auto;
	--happyell-map-pin-color: #d92d3a;
}
.happyell-usj-map-pin {
	appearance: none;
	position: absolute;
	inset: 0;
	width: 36px;
	height: 45px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.happyell-usj-map-pin__pulse {
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: -3px;
	width: 34px;
	height: 14px;
	border: 3px solid var(--happyell-map-pin-color);
	border-radius: 50%;
	opacity: .65;
	transform: translateX(-50%);
	animation: happyell-usj-map-pulse 1.35s ease-out infinite;
}
.happyell-usj-map-pin.is-cluster .happyell-usj-map-pin__pulse { display: none; }
.happyell-usj-map-pin__icon { position: absolute; inset: 0; display: block; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.happyell-usj-map-pin__icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.happyell-usj-map-pin-shape { fill: var(--happyell-map-pin-color); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.happyell-usj-map-pin-symbol { color: #fff; fill: currentColor; stroke: currentColor; }
.happyell-usj-map-pin-symbol text { fill: currentColor; stroke: none; }
.happyell-usj-map-pin__badge[hidden] { display: none !important; }
.happyell-usj-map-pin__badge {
	position: absolute;
	right: -8px;
	top: -7px;
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #151923;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}
.happyell-usj-map-pin__label {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 7px);
	display: none;
	width: max-content;
	max-width: min(260px, calc(100vw - 48px));
	padding: 0;
	border-radius: 7px;
	background: rgba(20, 28, 42, .95);
	box-shadow: 0 3px 10px rgba(0,0,0,.24);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	transform: translateX(-50%);
}
.happyell-usj-map-pin__name { display: block; max-width: inherit; padding: 7px 10px; color: #fff; font: inherit; text-decoration: none; }
.happyell-usj-map-pin__name.is-link::after { content: ' ↗'; }
.happyell-usj-map-pin__name.is-link:hover,
.happyell-usj-map-pin__name.is-link:focus-visible { color: #fff; text-decoration: underline; }
.happyell-usj-map-pin-wrap:hover,
.happyell-usj-map-pin-wrap:focus-within,
.happyell-usj-map-pin-wrap.is-active { z-index: 20; }
.happyell-usj-map-pin-wrap:hover .happyell-usj-map-pin__label,
.happyell-usj-map-pin-wrap:focus-within .happyell-usj-map-pin__label,
.happyell-usj-map-pin-wrap.is-active .happyell-usj-map-pin__label { display: block; }
.happyell-usj-map-pin-wrap.is-active .happyell-usj-map-pin__icon { transform: scale(1.12); transform-origin: 50% 100%; filter: drop-shadow(0 4px 5px rgba(0,0,0,.48)); }
.happyell-usj-map-pin-wrap.is-edge-left .happyell-usj-map-pin__label { left: -4px; transform: none; text-align: left; }
.happyell-usj-map-pin-wrap.is-edge-right .happyell-usj-map-pin__label { left: auto; right: -4px; transform: none; text-align: right; }
.happyell-usj-map-pin-wrap.is-edge-top .happyell-usj-map-pin__label { top: calc(100% + 6px); bottom: auto; }
.happyell-usj-map-cluster-detail[hidden] { display: none !important; }
.happyell-usj-map-cluster-detail {
	position: absolute;
	z-index: 30;
	left: 14px;
	bottom: 14px;
	display: flex;
	flex-direction: column;
	width: min(360px, calc(100% - 28px));
	max-height: 45%;
	overflow: hidden;
	padding: 0;
	border: 1px solid #d8dee7;
	border-radius: 12px;
	background: rgba(255,255,255,.97);
	box-shadow: 0 12px 30px rgba(17, 28, 45, .22);
}
.happyell-usj-map-cluster-detail__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
	min-height: 42px;
	padding: 5px;
	border-bottom: 1px solid #e5e8ed;
	background: rgba(248,250,252,.98);
}
.happyell-usj-map-cluster-detail__list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 12px 12px;
	-webkit-overflow-scrolling: touch;
}
.happyell-usj-map-cluster-detail__close {
	appearance: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef1f5;
	color: #172033;
	font-size: 21px;
	line-height: 1;
	cursor: pointer;
	touch-action: manipulation;
}
.happyell-usj-map-cluster-detail__item { border-top: 1px solid #e5e8ed; }
.happyell-usj-map-cluster-detail__item:first-child { border-top: 0; }
.happyell-usj-map-cluster-detail__name { display: block; padding: 10px 4px; color: #223047; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.happyell-usj-map-cluster-detail__name.is-link::after { content: ' ↗'; color: #1671c5; }
.happyell-usj-map-cluster-detail__name.is-link:hover,
.happyell-usj-map-cluster-detail__name.is-link:focus-visible { color: #0e5d9f; text-decoration: underline; }
.happyell-usj-map-dialog__help { margin: 0; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); background: #fff; color: #5a6474; font-size: 12px; line-height: 1.5; text-align: center; }
@keyframes happyell-usj-map-pulse { 0% { opacity: .9; transform: translateX(-50%) scale(.5); } 100% { opacity: 0; transform: translateX(-50%) scale(1.45); } }
@media (max-width: 767px) {
	.happyell-usj-map-overlay { align-items: stretch; padding: 0; }
	.happyell-usj-map-dialog { width: 100%; max-height: 100dvh; border-radius: 0; }
	.happyell-usj-map-dialog__header { padding-top: max(11px, env(safe-area-inset-top)); }
	.happyell-usj-map-layout { display: block; }
	.happyell-usj-map-maparea { height: 100%; }
	.happyell-usj-map-sidebar {
		position: absolute;
		z-index: 50;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 76dvh;
		padding: 14px 12px calc(18px + env(safe-area-inset-bottom));
		border: 0;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -12px 34px rgba(0,0,0,.22);
		transform: translateY(100%);
		transition: transform .18s ease;
	}
	.happyell-usj-map-sidebar.is-open { transform: translateY(0); }
	.happyell-usj-map-sidebar__head button { display: inline-block; }
	.happyell-usj-map-switches { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.happyell-usj-map-filter-backdrop { position: absolute; z-index: 45; inset: 0; background: rgba(8,16,28,.55); }
	.happyell-usj-map-viewport { min-height: 0; height: 100%; }
	.happyell-usj-map-pin-wrap { width: 34px; height: 43px; }
	.happyell-usj-map-pin { width: 34px; height: 43px; }
	.happyell-usj-map-pin__label { max-width: min(220px, calc(100vw - 32px)); font-size: 12px; }
	.happyell-usj-map-cluster-detail { left: 10px; bottom: 10px; width: calc(100% - 20px); max-height: 42%; }
}
@media (prefers-reduced-motion: reduce) {
	.happyell-usj-map-dialog,
	.happyell-usj-map-trigger,
	.happyell-usj-map-sidebar { transition: none; }
	.happyell-usj-map-pin__pulse { animation: none; }
}

/* v1.6.2: 件数は「絞り込み」ボタン内だけに表示する。 */
.happyell-usj-map-toolbar__buttons {
	margin-left: auto;
}

/* 切替ボタン名は常に1行。長い名称は末尾を省略する。 */
.happyell-usj-map-switch span {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 名称ラベルは固定幅内で最大3行。JSが表示中の画面端に合わせて横位置を補正する。 */
.happyell-usj-map-pin__label,
.happyell-usj-map-pin-wrap.is-edge-left .happyell-usj-map-pin__label,
.happyell-usj-map-pin-wrap.is-edge-right .happyell-usj-map-pin__label {
	left: 50%;
	right: auto;
	width: min(260px, calc(100vw - 32px));
	max-width: min(260px, calc(100vw - 32px));
	text-align: center;
	transform: translateX(calc(-50% + var(--happyell-map-label-shift-x, 0px)));
}

.happyell-usj-map-pin__name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.happyell-usj-map-pin-wrap.is-label-below .happyell-usj-map-pin__label,
.happyell-usj-map-pin-wrap.is-edge-top .happyell-usj-map-pin__label {
	top: calc(100% + 6px);
	bottom: auto;
}

.happyell-usj-map-guide[hidden] {
	display: none !important;
}

.happyell-usj-map-guide {
	position: absolute;
	z-index: 42;
	left: 50%;
	top: 25%;
	width: min(430px, calc(100% - 34px));
	padding: 10px 14px;
	border-radius: 9px;
	background: rgba(15, 23, 36, .78);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -45%);
	transition: opacity .2s ease, transform .2s ease;
}

.happyell-usj-map-guide.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.happyell-usj-map-guide small {
	font-size: 11px;
	font-weight: 500;
}

.happyell-usj-map-attribution {
	position: absolute;
	z-index: 25;
	left: 4px;
	bottom: 34px;
	width: min(76%, 650px);
	color: #000;
	font-size: 6px;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	text-shadow: 0 0 2px rgba(255, 255, 255, .95), 0 0 4px rgba(255, 255, 255, .95);
	pointer-events: none;
}

@media (max-width: 767px) {
	.happyell-usj-map-pin__label,
	.happyell-usj-map-pin-wrap.is-edge-left .happyell-usj-map-pin__label,
	.happyell-usj-map-pin-wrap.is-edge-right .happyell-usj-map-pin__label {
		width: min(220px, calc(100vw - 24px));
		max-width: min(220px, calc(100vw - 24px));
	}
	.happyell-usj-map-guide {
		position: fixed;
		left: 50%;
		top: 50%;
		width: min(360px, calc(100vw - 30px));
		max-width: calc(100vw - 30px);
		font-size: 12px;
		text-align: center;
		transform: translate(-50%, -50%);
	}

	.happyell-usj-map-guide.is-visible {
		transform: translate(-50%, -50%);
	}
	.happyell-usj-map-attribution {
		left: 3px;
		bottom: calc(33px + env(safe-area-inset-bottom, 0px));
		width: calc(100% - 6px);
	}
}


@media (max-width: 767px) {
	.happyell-usj-map-pin__label {
		box-sizing: border-box;
		max-width: calc(100vw - 10px);
	}
}

/* v1.6.6: パソコンは検索欄を拡大縮小ボタンの左へ移し、カテゴリを細い縦メニューにする。 */
@media (min-width: 768px) {
	.happyell-usj-map-toolbar {
		position: relative;
		z-index: 25;
	}

	.happyell-usj-map-toolbar__search-slot {
		display: flex;
		flex: 1 1 auto;
		justify-content: flex-end;
		min-width: 0;
	}

	.happyell-usj-map-toolbar__search-slot:empty {
		display: none;
	}

	.happyell-usj-map-toolbar__buttons {
		flex: 0 0 auto;
		margin-left: 0;
	}

	.happyell-usj-map-search.is-toolbar {
		position: relative;
		width: min(320px, 44vw);
		margin-left: auto;
	}

	.happyell-usj-map-search.is-toolbar label {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}

	.happyell-usj-map-search.is-toolbar input {
		height: 38px;
		padding: 7px 11px;
		font-size: 14px;
	}

	.happyell-usj-map-search.is-toolbar .happyell-usj-map-search__results {
		position: absolute;
		z-index: 80;
		top: calc(100% + 6px);
		left: 0;
		right: 0;
		display: grid;
		max-height: 280px;
		overflow-y: auto;
		margin: 0;
		padding: 7px;
		border: 1px solid #d8dee7;
		border-radius: 9px;
		background: #fff;
		box-shadow: 0 10px 28px rgba(20, 32, 48, .18);
	}

	.happyell-usj-map-search.is-toolbar .happyell-usj-map-search__results:empty {
		display: none;
	}

	.happyell-usj-map-sidebar {
		width: 190px;
		flex: 0 0 190px;
		padding: 12px 10px;
	}

	.happyell-usj-map-sidebar__head {
		margin-bottom: 9px;
	}

	.happyell-usj-map-sidebar__head strong {
		font-size: 13px;
	}

	.happyell-usj-map-switches {
		grid-template-columns: 1fr;
		gap: 6px;
		margin-bottom: 0;
	}

	.happyell-usj-map-switch {
		min-height: 40px;
		padding: 7px 8px;
		font-size: 12px;
	}
}
