/* イロイロぐるぐる 店舗マップ */

/* ==================================================================
 * トークン / リセット
 * ================================================================ */

.sm-app,
.sm-oshi,
.sm-fg,
.sm-modal {
	--sm-ink: #333f44;
	--sm-text: #231815;
	--sm-sub: #555;
	--sm-line: #a8a8a8;
	--sm-fold-color: #a8a8a8; /* 未選択の色ボタンの枠(切り欠きの縁も) */
	--sm-line-soft: #dedede;
	--sm-cream: #f1ebdd;
	--sm-white: #fff;
	--sm-gray-btn: #e9e9e9;
	--sm-seg: #5f5856;
	--sm-radius: clamp(6px, 1vw, 12px);
	--sm-dur: .24s;
	--sm-ease: cubic-bezier(.2, .7, .2, 1);
	--sm-spring: cubic-bezier(.34, 1.4, .64, 1);
	color: var(--sm-text);
	line-height: 1.6;
	box-sizing: border-box;
}

.sm-app *,
.sm-oshi *,
.sm-fg *,
.sm-modal *,
.sm-app *::before,
.sm-modal *::before {
	box-sizing: border-box;
}

.sm-app [hidden],
.sm-oshi [hidden],
.sm-fg [hidden],
.sm-modal [hidden],
.sm-modal[hidden] {
	display: none !important;
}

/* リセットは :where() で詳細度0にし、各部品のクラス指定を優先させる */
:where(.sm-app, .sm-oshi, .sm-fg, .sm-modal) button {
	appearance: none;
	margin: 0;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* テーマの見出し装飾を打ち消す */
:where(.sm-app, .sm-modal) :where(h2, h3) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	letter-spacing: normal;
}

.sm-app :is(h2, h3)::before,
.sm-app :is(h2, h3)::after,
.sm-modal :is(h2, h3)::before,
.sm-modal :is(h2, h3)::after {
	content: none;
	display: none;
}

:where(.sm-app, .sm-modal, .sm-oshi, .sm-fg) ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.sm-app, .sm-modal) p {
	margin: 0;
}

.sm-icon {
	display: inline-flex;
	flex: none;
	width: 1.15em;
	height: 1.15em;
}

.sm-icon svg {
	width: 100%;
	height: 100%;
}

.sm-icon--img {
	object-fit: contain;
}

.sm-chevron {
	transition: transform var(--sm-dur) var(--sm-ease);
}

[aria-expanded="true"] .sm-chevron,
[aria-expanded="true"] > .sm-chevron {
	transform: rotate(180deg);
}

.sm-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5em;
	height: 1.5em;
	padding: 0 .4em;
	border-radius: 999px;
	background: var(--sm-ink);
	color: #fff;
	font-size: .75em;
	font-weight: 700;
	line-height: 1;
	animation: sm-pop .3s var(--sm-spring);
}

.sm-pre .sm-info__text,
.sm-pre {
	white-space: pre-line;
}

.sm-dot {
	display: inline-block;
	flex: none;
	width: .7em;
	height: .7em;
	border-radius: 50%;
	background: var(--sm-color);
}

.sm-textbtn {
	padding: .5em .25em;
	border: 0;
	background: none;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 40px;
	padding: 0 1.2em;
	border: 1px solid transparent;
	border-radius: var(--sm-radius);
	font-weight: 700;
	transition: background-color var(--sm-dur), transform .12s;
}

.sm-btn:active,
.sm-route:active,
.sm-colorbtn:active,
.sm-sortbtn:active,
.sm-locate:active {
	transform: scale(.97);
}

.sm-btn--dark {
	background: var(--sm-ink);
	color: #fff !important;
}

.sm-btn--dark:hover {
	background: #4a3c38;
}

.sm-loading,
.sm-empty {
	padding: 3em 1em;
	text-align: center;
	color: var(--sm-sub);
}

/* チェックボックス(黒) */
.sm-cb {
	appearance: none;
	flex: none;
	width: 17px;
	height: 17px;
	margin: 0;
	border: 1.5px solid #555;
	border-radius: 2px;
	background: #fff center / 12px no-repeat;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, transform .15s var(--sm-spring);
}

.sm-cb:checked {
	border-color: var(--sm-ink);
	background-color: var(--sm-ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5L19.5 6.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	animation: sm-pop .25s var(--sm-spring);
}

.sm-cb:indeterminate {
	border-color: var(--sm-ink);
	background-color: var(--sm-ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.sm-cb:focus-visible {
	outline: 2px solid var(--sm-ink);
	outline-offset: 2px;
}

/* 開閉(高さアニメーション) */
.sm-collapse {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition: grid-template-rows .32s var(--sm-ease), opacity .24s var(--sm-ease);
}

.sm-collapse.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
}

.sm-collapse__inner {
	min-height: 0;
	overflow: hidden;
}

/* ==================================================================
 * 上部バー
 * ================================================================ */

.sm-app {
	position: relative;
    margin: 0 0 4em 0 !important;
}

.sm-bar {
	position: relative;
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
    padding: 16px 0;
	/* background: #fff;*/
}

.sm-bar__label {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.sm-bar__colors {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sm-colorbtns {
	display: flex;
	gap: 12px;
}

.sm-bar__seg {
	order: 1;
	margin-left: auto;
}

/* PC: 条件検索の開閉はなく、中身をそのままバーに並べる */
.sm-bar__head,
.sm-bar__tools,
.sm-bar__tools-inner,
.sm-bar__tools-body {
	display: contents;
}

.sm-toolsbtn {
	display: none;
}

/* チケット色ボタン */
.sm-colorbtn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 42px;
	--sm-notch: 5px;
	--sm-cb-pl: 8px;
	--sm-cb-pr: 18px;
	--sm-tk-line: var(--sm-color); /* 切り欠きの縁の色(未選択はグレー) */
	padding: 0 var(--sm-cb-pr) 0 var(--sm-cb-pl);
	border: 2px solid var(--sm-color);
	background-color: var(--sm-color);
	/* 切り欠きの縁: 枠と同じ色の細い円弧(mask で抜いた穴のすぐ外側に描く) */
	background-image: radial-gradient(circle at 100% 50%, transparent var(--sm-notch), var(--sm-tk-line) var(--sm-notch), var(--sm-tk-line) calc(var(--sm-notch) + 1.5px), transparent calc(var(--sm-notch) + 1.5px));
	background-origin: border-box;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	transition: background-color var(--sm-dur) var(--sm-ease), color var(--sm-dur) var(--sm-ease), border-color var(--sm-dur) var(--sm-ease), transform .12s;
}

.sm-colorbtn__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 2px solid #fff;
	border-radius: 2px;
	background: #fff;
	color: var(--sm-color);
	transition: border-color var(--sm-dur);
}

.sm-colorbtn__box svg {
	width: 21px;
	height: 21px;
	transform: scale(1);
	transition: transform .28s var(--sm-spring), opacity .2s;
}

.sm-colorbtn[aria-pressed="false"] {
	/* 未選択: 枠はグレーの1px(切り欠きの縁も)。細くした分は余白で補い、幅を変えない */
	--sm-tk-line: var(--sm-fold-color);
	padding: 1px calc(var(--sm-cb-pr) + 1px) 1px calc(var(--sm-cb-pl) + 1px);
	border-width: 1px;
	border-color: var(--sm-fold-color);
	background-color: #fff;
	color: var(--sm-color) !important;
}

.sm-colorbtn[aria-pressed="false"] .sm-colorbtn__box {
	border-color: var(--sm-color);
}

.sm-colorbtn[aria-pressed="false"] .sm-colorbtn__box svg {
	transform: scale(0);
	opacity: 0;
}

/* mask で外側の枠は切れるため、内側に出す */
.sm-colorbtn:focus-visible {
	outline: 2px solid var(--sm-ink);
	outline-offset: -6px;
}

/* 売場ボタン + パネル */
.sm-bar__floor {
	position: relative;
}

.sm-floorbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 190px;
	height: 42px;
	padding: 0 14px 0 20px;
	border: 1px solid var(--sm-line);
	border-radius: 3px;
	background: #fff;
	font-size: 15px;
	font-weight: 700;
	transition: border-color var(--sm-dur);
}

.sm-floorbtn:hover,
.sm-floorbtn[aria-expanded="true"] {
	border-color: var(--sm-ink);
}

.sm-floorbtn__text {
	white-space: nowrap;
}

.sm-floorbtn .sm-chevron {
	width: 22px;
	height: 22px;
	margin-left: auto;
}

.sm-floorpanel {
	position: absolute;
	z-index: 41;
	top: calc(100% + 8px);
	left: -150px;
	width: 340px;
	border-radius: var(--sm-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(.98);
	transform-origin: top center;
	transition: opacity var(--sm-dur) var(--sm-ease), transform var(--sm-dur) var(--sm-ease), visibility 0s linear var(--sm-dur);
}

.sm-floorpanel.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

/* 売場は全件表示する(一覧内のスクロールは気づかれにくいため高さの上限を設けない) */
.sm-floorpanel__list {
	max-height: none;
}

.sm-fgroup {
	border-bottom: 1px solid var(--sm-line-soft);
}

.sm-fgroup__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px 0 12px;
}

.sm-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.sm-check--parent {
	flex: 1;
	min-height: 34px;
	font-size: 13px;
}

/* 一部だけ選んでいる売場の選択数(例: 2/6) */
.sm-fgroup__count {
	flex: none;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--sm-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	animation: sm-pop .25s var(--sm-spring);
}

.sm-fgroup__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: none;
}

.sm-fgroup__toggle svg {
	width: 20px;
	height: 20px;
	transition: transform var(--sm-dur) var(--sm-ease);
}

.sm-fgroup__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.sm-fgroup__children {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
	padding: 0 12px 8px 33px;
}

.sm-floorpanel__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px 10px 18px;
	border-top: 1px solid var(--sm-line-soft);
}

.sm-floorpanel__foot .sm-textbtn {
	text-decoration: none;
	font-size: 14px;
}

/* 検索 */
.sm-bar__search {
	flex: 0 1 240px;
	min-width: 180px;
}

.sm-search {
	position: relative;
}

.sm-search__icon {
	position: absolute;
	left: 12px;
	top: 50%;
	width: 18px;
	height: 18px;
	color: #888;
	transform: translateY(-50%);
	pointer-events: none;
}

.sm-search__input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 40px 0 32px; /* 右は×ボタンの分 */
	border: 1px solid var(--sm-line);
	border-radius: 3px;
	background: #fff;
	color: var(--sm-text);
	font-size: 16px; /* iOSのズーム防止 */
	box-shadow: none;
	transition: border-color var(--sm-dur), box-shadow var(--sm-dur);
}

/* ブラウザ標準の×は隠し、自前の×(.sm-search__clear)を使う */
.sm-search__input::-webkit-search-cancel-button {
	display: none;
	-webkit-appearance: none;
}

.sm-search__clear {
	position: absolute;
	top: 50%;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #666;
	transform: translateY(-50%);
	transition: background-color var(--sm-dur), color var(--sm-dur);
}

.sm-search__clear svg {
	width: 18px;
	height: 18px;
}

@media (hover: hover) {
	.sm-search__clear:hover {
		background: #f1f1f1;
		color: var(--sm-ink);
	}
}

.sm-search__input::placeholder {
	color: #a0a0a0;
}

.sm-search__input:focus {
	border-color: var(--sm-ink);
	outline: none;
	box-shadow: 0 0 0 3px rgba(35, 24, 21, .12);
}

.sm-suggest {
	position: absolute;
	z-index: 42;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	padding: 6px 0 !important;
	border-radius: var(--sm-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s var(--sm-ease), transform .18s var(--sm-ease), visibility 0s linear .18s;
}

.sm-suggest.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.sm-suggest__item {
	display: flex;
	align-items: flex-start; /* 色の丸は1段目(店名)に合わせる */
	gap: .6em;
	padding: 10px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color .12s;
}

.sm-suggest__item:hover,
.sm-suggest__item.is-active {
	background: #f4f1ea;
}

/* 2段: 1段目=店名、2段目=カテゴリ(小さめのグレー) */
.sm-suggest__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sm-suggest__item > .sm-dot {
	margin-top: calc((1.45em - .7em) / 2); /* 店名の1行目の中央 */
}

.sm-suggest__name {
	font-weight: 700;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.sm-suggest__sub {
	font-size: 12px;
	line-height: 1.4;
	color: var(--sm-sub);
}

/* リスト|マップ切替(PC/SP共通。PCは白いバーの上なので枠つき) */
.sm-seg {
	--sm-seg-pad: 4px;
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: var(--sm-seg-pad);
	border: 1px solid var(--sm-line);
	border-radius: 6px;
	background: #fff;
}

.sm-seg__thumb {
	position: absolute;
	top: var(--sm-seg-pad);
	bottom: var(--sm-seg-pad);
	left: var(--sm-seg-pad);
	width: calc(50% - var(--sm-seg-pad));
	border-radius: 4px;
	background: var(--sm-ink);
	transition: transform .32s var(--sm-ease);
}

.sm-app[data-sm-current="map"] .sm-seg__thumb {
	transform: translateX(100%);
}

.sm-seg__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 112px;
	height: 32px; /* 枠・余白を足して他のボタンと同じ42px */
	padding: 0 16px;
	border: 0;
	background: none;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: color .25s;
}

.sm-seg__btn .sm-icon {
	width: 20px;
	height: 20px;
}

.sm-seg__btn[aria-selected="true"] {
	color: #fff !important;
}

/* SPの背景(売場パネル表示中) */
.sm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 39;
	background: rgba(70, 64, 58, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--sm-dur), visibility 0s linear var(--sm-dur);
}

/* ==================================================================
 * 表示エリア共通
 * ================================================================ */

/* 地図内の要素(読み込み表示など)が上部バーのパネルより上に出ないよう重なりを閉じる */
.sm-views {
	position: relative;
	z-index: 1;
}

.sm-view.is-entering {
	animation: sm-fade .35s var(--sm-ease);
}

.sm-toast {
	position: absolute;
	left: 50%;
	top: 16px;
	z-index: 8;
	max-width: calc(100% - 32px);
	padding: .7em 1.2em;
	border-radius: 6px;
	background: rgba(35, 24, 21, .92);
	color: #fff;
	font-size: 13px;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -8px);
	transition: opacity var(--sm-dur), transform var(--sm-dur) var(--sm-ease), visibility 0s linear var(--sm-dur);
	pointer-events: none;
}

.sm-toast.is-show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition-delay: 0s;
}

/* ==================================================================
 * マップ
 * ================================================================ */

.sm-view--map {
	position: relative;
}

/* タッチ端末「タップで操作」: 操作中の表示と、普段の操作の案内 */
.sm-mapmode {
	position: absolute;
	z-index: 7;
	top: 12px;
	left: 50%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 5px 5px 14px;
	border-radius: 6px;
	background: rgba(35, 24, 21, .9);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	transform: translateX(-50%);
	animation: sm-fade-in .2s var(--sm-ease);
}

.sm-mapmode__done {
	padding: 6px 16px;
	border: 0;
	border-radius: 4px;
	background: #fff;
	color: var(--sm-ink) !important;
	font-size: 14px;
	font-weight: 700;
}

.sm-mapguide {
	position: absolute;
	z-index: 6;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .8);
	color: var(--sm-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	pointer-events: none;
	transition: opacity .3s var(--sm-ease), visibility 0s linear 0s;
}

/* 操作中はフェードアウト */
.sm-mapguide.is-hidden {
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s var(--sm-ease), visibility 0s linear .3s;
}

/* タブレット幅(768px〜)は左上に位置情報の案内が出るので、案内は左下へ */
@media (min-width: 768px) {
	.sm-mapguide {
		top: auto;
		bottom: 36px;
	}
}

.sm-map {
	width: 100%;
	height: clamp(480px, 78vh, 800px);
	background: #eceae5;
}

.sm-map canvas {
	opacity: 0;
	transition: opacity .5s var(--sm-ease);
}

.sm-map.is-ready canvas {
	opacity: 1;
}

/* 位置情報の案内 */
.sm-geonotice {
	position: absolute;
	z-index: 6;
	top: 24px;
	left: 28px;
	display: flex;
	align-items: stretch;
	max-width: calc(100% - 100px);
	border: 1px solid var(--sm-ink);
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity .35s var(--sm-ease), transform .35s var(--sm-ease), visibility 0s linear .35s;
}

.sm-geonotice.is-show {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: .4s, .4s, 0s;
}

.sm-geonotice__text {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

.sm-geonotice__text .sm-icon {
	width: 24px;
	height: 24px;
}

.sm-geonotice__btn {
	flex: none;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: var(--sm-ink);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color var(--sm-dur);
}

.sm-geonotice__btn:hover {
	background: #4a3c38;
}

.sm-locate {
	position: absolute;
	z-index: 6;
	right: 10px;
	top: 140px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--sm-ink);
	box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
	transition: transform .12s, box-shadow var(--sm-dur);
}

.sm-locate:hover {
	box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
}

.sm-locate svg {
	width: 28px;
	height: 28px;
}

/* 商業施設ピン(.sm-fpin の transform は地図が使うので触らない) */
.sm-fpin {
	position: relative;
	display: block;
	width: var(--sm-fpin-size, 45px); /* 設定「商業施設のマーカー」 */
	height: var(--sm-fpin-size, 45px);
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	transition: opacity .25s, visibility 0s;
}

.sm-fpin {
	z-index: 2; /* 個店ピン・店名より前面 */
}

.sm-fpin:hover {
	z-index: 3;
}

.sm-fpin.is-hidden {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition: opacity .25s, visibility 0s linear .25s;
}

.sm-fpin__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--sm-color);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
	transition: transform .25s var(--sm-spring);
}

.sm-fpin:hover .sm-fpin__dot {
	transform: scale(1.06);
}

.sm-fpin.is-pop .sm-fpin__dot,
.sm-fpin.is-pop .sm-fpin__label {
	animation: sm-pin-pop .45s var(--sm-spring);
}

/* 件数: 20pxを基準に、マーカーの大きさと桁数に合わせて円からはみ出さないよう縮める */
.sm-fpin__num {
	font-size: min(20px, calc(var(--sm-fpin-size, 45px) * .44));
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
}

.sm-fpin__num[data-digits="3"] {
	font-size: min(20px, calc(var(--sm-fpin-size, 45px) * .32));
}

.sm-fpin__num[data-digits="4"] {
	font-size: min(20px, calc(var(--sm-fpin-size, 45px) * .25));
}

/* ------------------------------------------------------------------
 * 重なった個店ピンを放射状に広げる(スパイダリファイ)
 * .sm-spider の transform は地図が使うので、動きは内側の要素に付ける
 * ---------------------------------------------------------------- */
.sm-spider {
	z-index: 4; /* 商業施設ピンより前面 */
	width: 0;
	height: 0;
}

.sm-spider__body {
	position: relative;
	width: 0;
	height: 0;
}

.sm-spider__legs {
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	overflow: visible;
	pointer-events: none;
}

.sm-spider__legs line {
	stroke: #231815;
	stroke-width: 1.5;
	stroke-linecap: round;
	opacity: 0;
	transition: opacity .25s var(--sm-ease);
	transition-delay: calc(var(--i, 0) * 20ms + 60ms);
}

.sm-spider.is-open .sm-spider__legs line {
	opacity: .55;
}

.sm-spider__center {
	position: absolute;
	left: -5px;
	top: -5px;
	width: 10px;
	height: 10px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #231815;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.sm-spider__pin {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	opacity: 0;
	transform: translate(-12px, -12px) scale(.3);
	transform-origin: 12px 12px;
	transition: transform .38s var(--sm-spring), opacity .2s var(--sm-ease);
	transition-delay: calc(var(--i, 0) * 20ms);
}

/* 左側に広がったピンは店名を左に出す */
.sm-spider__pin.is-left {
	flex-direction: row-reverse;
	transform: translate(calc(-100% + 12px), -12px) scale(.3);
	transform-origin: calc(100% - 12px) 12px;
}

.sm-spider.is-open .sm-spider__pin {
	opacity: 1;
	transform: translate(calc(var(--x) - 12px), calc(var(--y) - 12px));
}

.sm-spider.is-open .sm-spider__pin.is-left {
	transform: translate(calc(var(--x) - 100% + 12px), calc(var(--y) - 12px));
}

.sm-spider__dot {
	flex: none;
	width: 24px;
	height: 24px;
	border: 2.5px solid #fff;
	border-radius: 50%;
	background: var(--sm-color);
	box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
	transition: transform .2s var(--sm-spring);
}

.sm-spider__name {
	max-width: 11em;
	overflow: hidden;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
	color: var(--sm-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sm-spider__pin:hover .sm-spider__dot,
.sm-spider__pin:focus-visible .sm-spider__dot {
	transform: scale(1.12);
}

.sm-spider__pin:focus-visible {
	outline: none;
}

.sm-spider__pin:focus-visible .sm-spider__name {
	box-shadow: 0 0 0 2px var(--sm-ink);
}

.sm-fpin__label {
	position: absolute;
	top: calc(100% + 4px);
	left: 50%;
	padding: 3px 10px;
	border-radius: 999px;
	/* 2026-11: 帯はマーカーと同じ色、文字は個店の店名(12px)より2割大きく */
	background: var(--sm-color);
	color: #fff;
	font-size: 14.4px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transform: translateX(-50%);
	/* 設定「店名を出すズーム」未満では隠す(.show-labels は JS が付ける) */
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s var(--sm-ease), visibility 0s linear .25s;
}

/* 明るい色(黄色など)の帯は文字を黒っぽい色に(.is-light は JS が付ける) */
.sm-fpin.is-light .sm-fpin__label {
	color: var(--sm-ink);
}

.sm-map.show-labels .sm-fpin__label {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.sm-me {
	display: block;
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #1a73e8;
	box-shadow: 0 0 0 0 rgba(26, 115, 232, .4);
	animation: sm-pulse 2s infinite;
}

/* ==================================================================
 * リスト
 * ================================================================ */

.sm-view--list {
	position: relative;
	padding: 20px 26px 48px;
	/* background: var(--sm-cream); */
    background: rgba(255, 255, 255, 0.7)
}

.sm-listhead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.sm-count {
	font-size: 17px;
}

.sm-count-num{
    font-size: 20px;
    font-weight: 700;
    margin: 0 4px
}

.sm-sortbtns {
	display: flex;
	gap: 22px;
}

.sm-sortbtn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 42px;
	padding: 0 18px;
	border: 1px solid var(--sm-line);
	border-radius: 3px;
	background: #fff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color var(--sm-dur) var(--sm-ease), color var(--sm-dur), border-color var(--sm-dur), transform .12s;
}

.sm-sortbtn[aria-pressed="true"] {
	border-color: var(--sm-ink);
	background: var(--sm-ink);
	color: #fff !important;
}

.sm-sortbtn .sm-icon {
	width: 20px;
	height: 20px;
}

.sm-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 1100px) {
	.sm-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.sm-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sm-card {
	border: 1px solid var(--sm-line);
	border-radius: var(--sm-radius);
	background: #fff;
	overflow: hidden;
	animation: sm-rise .4s var(--sm-ease) both;
	animation-delay: calc(var(--i, 0) * 28ms);
	transition: box-shadow var(--sm-dur), transform var(--sm-dur) var(--sm-ease), border-color var(--sm-dur);
}

@media (hover: hover) {
	.sm-card:hover {
		border-color: #777;
		box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
		transform: translateY(-2px);
	}
}

.sm-card__head {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	width: 100%;
	height: 100%;
	padding: 16px 18px;
	border: 0;
	background: none;
	text-align: left;
}

.sm-card__title {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex: 1;
    padding-bottom: 8px;
}

.sm-card__name {
	flex: 1;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.sm-card__title .sm-chevron {
	display: none;
	width: 22px;
	height: 22px;
	margin-top: 2px;
}

/* 所属(施設名 / 専門店街)。売場とは分けて目立たせる */
.sm-card__belong {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.sm-card__belong .sm-icon {
	width: 18px;
	height: 18px;
}

.sm-card__meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	font-weight: 400;
}

.sm-card__dist {
	white-space: nowrap;
}

.sm-card__body {
	padding: 0 20px 20px;
}

/* スマホの簡易カード用の小さなチケット(PCは出さない) */
.sm-card__mark {
	display: none;
	--sm-notch: 2.5px;
	flex: none;
	width: 22px;
	height: 15px;
	margin-top: .3em;
	background-color: var(--sm-color);
}

/* スマホ五十音順の頭文字索引(PCは出さない) */
.sm-kanaindex {
	display: none;
}

.sm-list__sentinel {
	height: 1px;
}

/* ==================================================================
 * チケット形状(共通): 角丸 + 右辺の中央に半円の切り欠き(2026-10-18 変更)。
 * 元は ticket.svg(960×480。角は 76.8×60、切り欠きは半径60 = 高さの12.5%)。
 * 各要素の --sm-notch に切り欠きの半径(高さの約12.5%)を入れる。角丸もこの値から決める。
 * 切り欠きは mask で抜くので、縦横比が変わっても半円のまま
 * ================================================================ */

.sm-ticket,
.sm-colorbtn,
.sm-oshi-card::after,
.sm-fg__mark--ticket,
.sm-card__mark {
	border-radius: calc(var(--sm-notch) * 1.28) / var(--sm-notch);
	-webkit-mask: radial-gradient(circle at 100% 50%, transparent var(--sm-notch), #000 calc(var(--sm-notch) + .5px));
	mask: radial-gradient(circle at 100% 50%, transparent var(--sm-notch), #000 calc(var(--sm-notch) + .5px));
}

/* ==================================================================
 * チケットバッジ
 * ================================================================ */

.sm-ticket {
	display: inline-flex;
	align-items: baseline;
	gap: .35em;
	--sm-notch: 3px;
	padding: .2em .9em .25em .65em;
	background-color: var(--sm-color);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.sm-ticket__label {
	font-size: 11px;
}

.sm-ticket__color {
	font-size: 15px;
}

.sm-detail .sm-ticket {
	--sm-notch: 4px;
	padding: .25em 1.05em .3em .8em;
}

.sm-detail .sm-ticket__label {
	font-size: 13px;
}

.sm-detail .sm-ticket__color {
	font-size: 19px;
}

/* ==================================================================
 * 店舗詳細(モーダル/アコーディオン共通)
 * ================================================================ */

.sm-detail__badges {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.sm-detail__name {
	font-size: 28px !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	overflow-wrap: anywhere;
}

.sm-detail__floor {
	margin: 4px 0 18px !important;
	font-size: 14px;
	font-weight: 700;
}

.sm-photo {
	margin: 0 0 18px;
	overflow: hidden;
	background: #d6d3cd;
}

.sm-photo img {
	display: block;
	width: 100%;
	height: auto;
	/* aspect-ratio: 3 / 2; */
	object-fit: cover;
	opacity: 0;
	transform: scale(1.03);
	transition: opacity .45s var(--sm-ease), transform .6s var(--sm-ease);
}

.sm-photo.is-loaded img {
	opacity: 1;
	transform: none;
}

.sm-photo--shop img {
    aspect-ratio: 3 / 2;
}

.sm-photo--oshi img {
	/* aspect-ratio: 3 / 2; */
}

.sm-info {
	display: grid;
	gap: 2px;
	margin: 0 0 22px !important;
}

.sm-info__row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.5;
}

.sm-info__row .sm-icon {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--sm-ink);
}

.sm-info__text {
	min-width: 0;
	overflow-wrap: anywhere;
}

.sm-info a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sm-info a[href^="tel:"] {
    text-decoration: none !important;
}

.sm-route {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 54px;
	margin: 0 0 0;
	padding: 10px 16px;
	border-radius: 6px;
	background: var(--sm-ink);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color var(--sm-dur), transform .12s, box-shadow var(--sm-dur);
}

.sm-route:hover {
	background: #3d2d29;
	box-shadow: 0 6px 16px rgba(35, 24, 21, .25);
}

.sm-route__icon {
	width: 26px;
	height: 26px;
	transition: transform .3s var(--sm-spring);
}

.sm-route:hover .sm-route__icon {
	transform: translate(2px, -2px) rotate(-8deg);
}

.sm-route + .sm-oshi-block {
    margin-top: 18px;
}

.sm-oshi-block__label {
	margin: 0 0 4px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.sm-oshi-block__item {
	margin: 0 0 16px !important;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.45;
}

.sm-oshi-block .sm-photo {
	margin-bottom: 20px;
}

.sm-oshi-block__reason {
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-line;
}

.sm-notice-inline {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 16px !important;
	padding: 10px 12px;
	border-radius: 4px;
	background: #f4f1ea;
	font-size: 14px;
	font-weight: 700;
}

.sm-notice-inline .sm-icon {
	width: 20px;
	height: 20px;
}

.sm-edit {
	margin-top: 20px !important;
	padding-top: 12px;
	border-top: 1px dashed var(--sm-line-soft);
	font-size: 13px;
	text-align: right;
}

.sm-edit a {
	color: var(--sm-sub);
}

/* 開いたときに上から順にふわっと出す */
.sm-modal.is-open .sm-stagger > * {
	animation: sm-rise .42s var(--sm-ease) both;
}

.sm-modal.is-open .sm-stagger > :nth-child(2) { animation-delay: .03s; }
.sm-modal.is-open .sm-stagger > :nth-child(3) { animation-delay: .06s; }
.sm-modal.is-open .sm-stagger > :nth-child(4) { animation-delay: .09s; }
.sm-modal.is-open .sm-stagger > :nth-child(5) { animation-delay: .12s; }
.sm-modal.is-open .sm-stagger > :nth-child(6) { animation-delay: .15s; }
.sm-modal.is-open .sm-stagger > :nth-child(n+7) { animation-delay: .18s; }

/* アコーディオン本体 */
.sm-acc {
	padding-top: 18px;
	border-top: 1px solid var(--sm-line-soft);
}

.sm-acc__main.has-photo {
	display: grid;
	grid-template-columns: 46% 1fr;
	gap: 16px;
	align-items: start;
	margin-bottom: 22px;
}

.sm-acc__main.has-photo .sm-photo {
	margin: 0;
}

.sm-acc__main.has-photo .sm-photo img {
	aspect-ratio: 4 / 3;
}

.sm-acc__main.has-photo .sm-info {
	margin: 0 !important;
}

.sm-acc .sm-info__row {
	font-size: 14px;
}

.sm-acc .sm-info__row .sm-icon {
	width: 17px;
	height: 17px;
}

.sm-acc .sm-route {
	min-height: 48px;
	font-size: 15px;
}

.sm-acc .sm-oshi-block__item {
	font-size: 19px;
}

/* 施設モーダル: テナント一覧 */
.sm-tenants {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--sm-line-soft);
}

.sm-tenants__head {
	margin-bottom: 8px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
}

.sm-tenants__group {
	border-bottom: 1px solid var(--sm-line-soft);
}

.sm-tenants__group-head {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 0 2px;
	border: 0;
	background: none;
	font-weight: 700;
	text-align: left;
}

.sm-tenants__group-head .sm-chevron {
	width: 20px;
	height: 20px;
	margin-left: auto;
}

.sm-tenants__list {
	padding-bottom: 8px !important;
}

.sm-tenant {
	border-top: 1px dashed var(--sm-line-soft);
}

.sm-tenant__head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0 8px;
	width: 100%;
	min-height: 48px;
	padding: 8px 2px 8px 12px;
	border: 0;
	background: none;
	text-align: left;
	transition: background-color .15s;
}

.sm-tenant__head:hover {
	background: #faf8f4;
}

.sm-tenant__name {
	font-weight: 700;
}

.sm-tenant__meta {
	grid-column: 1;
	font-size: 12px;
	color: var(--sm-sub);
}

.sm-tenant__head .sm-chevron {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 20px;
	height: 20px;
}

.sm-tenant__body {
	padding: 0 4px 16px 12px;
}

.sm-tenant__body .sm-acc {
	padding-top: 12px;
}

/* ==================================================================
 * モーダル
 * ================================================================ */

html.sm-modal-open {
	overflow: hidden;
}

.sm-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.sm-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(60, 56, 52, .5);
	opacity: 0;
	transition: opacity .28s var(--sm-ease);
}

.sm-modal__dialog {
	position: relative;
	width: min(420px, 100%);
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 30px 28px 32px;
	border-radius: var(--sm-radius);
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	outline: none;
	opacity: 0;
	transform: translateY(16px) scale(.97);
	transition: opacity .26s var(--sm-ease), transform .32s var(--sm-ease);
}

.sm-modal.is-open .sm-modal__overlay {
	opacity: 1;
}

.sm-modal.is-open .sm-modal__dialog {
	opacity: 1;
	transform: none;
}

.sm-modal__close {
	position: sticky;
	top: -14px;
	float: right;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -16px -14px 0 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	transition: background-color .15s, transform .25s var(--sm-ease);
}

.sm-modal__close:hover {
	background: #f1f1f1;
	transform: rotate(90deg);
}

.sm-modal__close svg {
	width: 26px;
	height: 26px;
}

/* ==================================================================
 * [oshi]
 * ================================================================ */

/* 列数は [oshi col="PC,タブレット,スマホ"](JS が --oshi-cols-* に入れる) */
.sm-oshi__list {
	display: grid;
	grid-template-columns: repeat(var(--oshi-cols-pc, 4), minmax(0, 1fr));
	gap: 24px;
}

/* 件数は [oshi count="PC,タブレット,スマホ"]。超えた分は幅ごとに隠す */
@media (min-width: 1024px) {
	.sm-oshi__item.is-hide-pc {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.sm-oshi__list {
		grid-template-columns: repeat(var(--oshi-cols-tab, 2), minmax(0, 1fr));
	}

	.sm-oshi__item.is-hide-tab {
		display: none;
	}
}

.sm-oshi__item {
	animation: sm-rise .45s var(--sm-ease) both;
	animation-delay: calc(var(--i, 0) * 40ms);
}

/* カード: 全周16pxの角丸 + 影。チケット色は右下の小さなチケット(文字なし) */
.sm-oshi-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 16px 16px 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
	text-align: left;
	overflow: hidden;
	transition: box-shadow var(--sm-dur), transform var(--sm-dur) var(--sm-ease);
}

.sm-oshi-card::after {
	content: "";
	position: absolute;
	right: 16px;
	bottom: 22px;
	width: var(--oshi-ticket-w, 66px);
	height: calc(var(--oshi-ticket-w, 66px) / 3);
	--sm-notch: max(3px, calc(var(--oshi-ticket-w, 66px) / 24));
	background-color: var(--sm-color);
	pointer-events: none;
}

/* PC のみ: 浮き上がり */
@media (hover: hover) and (pointer: fine) {
	.sm-oshi-card:hover {
		box-shadow: 0 16px 28px rgba(0, 0, 0, .18);
		transform: translateY(-6px);
	}
}

/*
 * 左上の「推し」マーク(12°傾ける)
 * 色はチケットと同じ(--sm-color)。SVG は白いフチ(oshi-mark-base.svg)と色の部分の形(oshi-mark-color.svg)の2枚
 * 白いフチを背景に敷き、その上の ::before をチケットの色で塗って、色の部分の形で切り抜く(文字は形の抜きなので白いフチが見える)
 */
.sm-oshi-card__mark {
	position: absolute;
	z-index: 2;
	top: 9px;
	left: 8px;
	width: 22%;
	min-width: 56px;
	max-width: 74px;
	aspect-ratio: 1280 / 738;
	background: url(../img/oshi-mark-base.svg) no-repeat center / contain;
	transform: rotate(-12deg);
	pointer-events: none;
}

.sm-oshi-card__mark::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--sm-color, #a40018);
	/* ?v=2: 一度壊れたファイルをブラウザが覚えていても、読み込み直させるため(SVG を作り直したら数字を上げる) */
	-webkit-mask: url(../img/oshi-mark-color.svg?v=2) no-repeat center / contain;
	mask: url(../img/oshi-mark-color.svg?v=2) no-repeat center / contain;
}

/* 写真: 3/2 で切り抜き、ちぎれた縁のマスク */
.sm-oshi-card__photo {
	margin: 0;
	background: none;
	-webkit-mask: url(../img/oshi-mask.svg) no-repeat center / 103% 103%;
	mask: url(../img/oshi-mask.svg) no-repeat center / 103% 103%;
}

.sm-oshi-card__photo img {
	aspect-ratio: 3 / 2;
}

.sm-oshi-card__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 14px 0 24px;
}

/* 写真なし: マークの下から店名を始める */
.sm-oshi-card.is-nophoto .sm-oshi-card__text {
	padding-top: 60px;
}

.sm-oshi-card__item {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
}

.sm-oshi-card__reason {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.7;
	letter-spacing: .04em;
	white-space: pre-line;
}

.sm-oshi-card__more {
	margin-top: auto;
	padding: 12px calc(var(--oshi-ticket-w, 66px) + 12px) 0 0;
	font-size: 12px;
	font-weight: 700;
}

/*
 * PC・タブレット(768px以上): 鉛筆で書いた格子(2026-10-26 変更)
 * カードの角丸・影・隙間をやめ、カードの境目に鉛筆の線(SVG フィルター #sm-pencil-line、front.js が入れる)。
 * 線は各カード(li)の疑似要素で描く。::before = 横線(下。1行目は上も)、::after = 縦線(右。左端の列は左も)。
 * 線はカードより手前(z-index)、かつ自分のマスの内側に描く(カードに背景色を付けても、自分や隣のカードに隠れない)。
 * 外周の線は端から少しはみ出す(--oshi-line-over)。端の判定は front.js が付ける is-row-first などのクラス。
 * hover はカード全体に反応(従来どおり)。浮き上がりをやめ、ちぎれた縁のマスクの中で写真だけを少し拡大。
 * スマホ(767px以下)は従来のまま
 */
@media (min-width: 768px) {
	.sm-oshi {
		--oshi-line-color: #7a7a7a; /* 線の色 */
		--oshi-line-over: 14px;     /* 外周の線のはみ出し */
	}

	.sm-oshi__list {
		gap: 0;
	}

	.sm-oshi__item {
		position: relative;
	}

	.sm-oshi-card {
		border-radius: 0;
		background: rgba(255, 255, 255, .5);
		box-shadow: none;
	}

	.sm-oshi__item::before,
	.sm-oshi__item::after {
		content: "";
		position: absolute;
		z-index: 1;
		inset: 0;
		border: 0 solid var(--oshi-line-color);
		filter: url(#sm-pencil-line);
		pointer-events: none;
	}

	/* 横線 */
	.sm-oshi__item::before {
		border-bottom-width: 1px;
	}

	.sm-oshi__item.is-row-first::before {
		border-top-width: 1px;
	}

	.sm-oshi__item.is-col-first::before {
		left: calc(-1 * var(--oshi-line-over));
	}

	.sm-oshi__item.is-col-last::before {
		right: calc(-1 * var(--oshi-line-over));
	}

	/* 縦線 */
	.sm-oshi__item::after {
		border-right-width: 1px;
	}

	.sm-oshi__item.is-col-first::after {
		border-left-width: 1px;
	}

	.sm-oshi__item.is-row-first::after {
		top: calc(-1 * var(--oshi-line-over));
	}

	.sm-oshi__item.is-row-last::after {
		bottom: calc(-1 * var(--oshi-line-over));
	}

	/* hover: 写真だけを拡大(マスクの外にははみ出さない) */
	.sm-oshi-card__photo img {
		transition: transform var(--sm-dur) var(--sm-ease);
	}
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
	.sm-oshi-card:hover {
		box-shadow: none;
		transform: none;
	}

	.sm-oshi-card:hover .sm-oshi-card__photo img {
		transform: scale(1.06);
	}
}

/* ==================================================================
 * スマホ
 * ================================================================ */

/* ==================================================================
 * 施設パネル(マップ表示: PC=地図の左 / SP=下から出るシート)
 * ================================================================ */

.sm-panel {
	position: absolute;
	z-index: 7;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(400px, 42%);
	background: #fff;
	box-shadow: 6px 0 24px rgba(0, 0, 0, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-24px);
	transition: opacity .28s var(--sm-ease), transform .32s var(--sm-ease), visibility 0s linear .32s;
}

.sm-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.sm-panel__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 28px 26px 32px;
}

.sm-panel__close {
	position: absolute;
	z-index: 2;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	transition: background-color .15s, transform .25s var(--sm-ease);
}

.sm-panel__close:hover {
	background: #f1f1f1;
	transform: rotate(90deg);
}

.sm-panel__close svg {
	width: 26px;
	height: 26px;
}

.sm-panel__expand {
	display: none;
}

/* 開いている間は位置情報の案内を下げる(パネルと重なるため) */
.sm-view--map.has-panel .sm-geonotice {
	opacity: 0;
	visibility: hidden;
}

.sm-panel .sm-detail__name {
	padding-right: 44px;
}

/* テナント行(モーダルで開く) */
.sm-tenant__head--link {
	position: relative;
	transition: background-color .15s;
}

.sm-tenant__head--link::before {
	content: "";
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 0;
	width: 3px;
	border-radius: 2px;
	background: var(--sm-ink);
	transform: scaleY(0);
	transition: transform .2s var(--sm-ease);
}

.sm-tenant__head--link.is-active {
	background: #f4f1ea;
}

.sm-tenant__head--link.is-active::before {
	transform: none;
}

.sm-chevron--right {
	transform: rotate(-90deg);
}

.sm-tenant__head--link:hover .sm-chevron--right {
	transform: rotate(-90deg) translateY(2px);
}

@media (max-width: 767px) {
	/* 施設パネル → 下から出るシート */
	.sm-panel {
		position: fixed;
		z-index: 9000;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		height: 58svh;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
		transform: translateY(40px);
		transition: opacity .28s var(--sm-ease), transform .34s var(--sm-ease), height .34s var(--sm-ease), visibility 0s linear .34s;
	}

	.sm-panel.is-open {
		transform: none;
	}

	.sm-panel.is-expanded {
		height: calc(100svh - 24px);
	}

	/* シートの分だけページ下に余白を足し、地図を画面上端まで上げられるようにする */
	.sm-view--map.has-panel {
		margin-bottom: 58svh;
	}

	.sm-panel__expand {
		display: flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 26px;
		padding: 0;
		border: 0;
		background: none;
	}

	.sm-panel__grip {
		width: 44px;
		height: 5px;
		border-radius: 999px;
		background: #c9c9c9;
		transition: background-color .2s, width .2s var(--sm-ease);
	}

	.sm-panel__expand:hover .sm-panel__grip,
	.sm-panel__expand[aria-expanded="true"] .sm-panel__grip {
		width: 56px;
		background: #999;
	}

	.sm-panel__close {
		top: 18px;
		right: 12px;
	}

	.sm-panel__body {
		padding: 6px 20px calc(24px + env(safe-area-inset-bottom));
	}

	.sm-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px;
		/* background: var(--sm-cream); */
        background: rgba(210, 210, 210, 0.5);
	}

	/* 1段目: リスト|マップ + 条件検索ボタン */
	.sm-bar__head {
		display: flex;
		gap: 10px;
	}

    .sm-seg {
        padding: 0;
    }

	.sm-bar__seg {
		order: 0;
		flex: 1;
		min-width: 0;
		margin-left: 0;
	}

	.sm-seg__btn {
		min-width: 0;
		padding: 0 8px;
        gap: 4px;
	}

	.sm-toolsbtn {
		display: inline-flex;
		flex: none;
		align-items: center;
		gap: 6px;
		height: 44px;
		padding: 0 14px;
		border: 0;
		border-radius: 8px;
		background: var(--sm-ink);
		color: #fff !important;
		font-size: 15px;
		font-weight: 700;
		white-space: nowrap;
		transition: background-color var(--sm-dur);
	}

	.sm-toolsbtn .sm-chevron {
		width: 20px;
		height: 20px;
	}

	.sm-toolsbtn .sm-num {
		background: #fff;
		color: var(--sm-ink);
	}

	/* 絞り込み中(閉じていても分かるように) */
	.sm-toolsbtn.is-filtered {
		background: var(--sm-ink);
	}

	/* 2段目以降: 色・売場・キーワード(開閉。高さアニメーション) */
	.sm-bar__tools {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows .32s var(--sm-ease);
	}

	.sm-bar__tools.is-open {
		grid-template-rows: 1fr;
	}

	.sm-bar__tools-inner {
		display: block;
		min-height: 0;
		overflow: hidden;
	}

	/* 開き終えたら売場パネル・検索候補がはみ出せるように */
	.sm-bar__tools.is-settled .sm-bar__tools-inner {
		overflow: visible;
	}

	.sm-bar__tools-body {
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding-top: 10px;
	}

	/* [shop type="map"]: 切替が無いので条件検索ボタンは右端 */
	.sm-app[data-sm-view="map"] .sm-bar__head {
		justify-content: flex-end;
	}

	/* [shop type="list"]: 条件検索ボタンなし。色・売場・キーワードは常に表示 */
	.sm-app[data-sm-view="list"] .sm-bar__head {
		display: none;
	}

	.sm-app[data-sm-view="list"] .sm-bar__tools-body {
		padding-top: 0;
	}

	.sm-seg {
		--sm-seg-pad: 6px;
		border: 0;
		border-radius: 8px;
	}

	.sm-seg__thumb {
		border-radius: 6px;
	}

	.sm-seg__btn {
		height: 44px;
	}

	.sm-bar__search {
		/* order: -1; */
		flex: none;
		min-width: 0;
	}

	.sm-bar__label {
		display: none;
	}

	.sm-search__input {
		height: 44px;
		border-color: var(--sm-ink);
		border-radius: 6px;
	}

	.sm-colorbtns {
		flex: 1;
		gap: 14px;
	}

	.sm-bar__colors {
		gap: 0;
	}

	.sm-colorbtn {
		flex: 1;
		min-width: 0;
		gap: 0;
		height: 44px;
		--sm-cb-pr: 8px;
		padding: 0 var(--sm-cb-pr) 0 var(--sm-cb-pl);
		--sm-notch: 5.5px;
	}

	.sm-colorbtn__box {
		width: 28px;
		height: 28px;
	}

	/* 名前はチェックボックスを除いた残りの中央に置く */
	.sm-colorbtn__name {
		flex: 1;
		text-align: center;
	}

	.sm-floorbtn {
		width: 100%;
		height: 44px;
		justify-content: center;
		border-color: var(--sm-ink);
		border-radius: 6px;
		font-size: 17px;
	}

	.sm-floorbtn .sm-chevron {
		position: absolute;
		right: 16px;
	}

	.sm-floorbtn {
		position: relative;
	}

	.sm-floorpanel {
		left: 0;
		right: 0;
		width: auto;
		top: calc(100% + 18px);
		border-radius: 6px;
	}

	.sm-fgroup__head {
		padding: 0 6px 0 14px;
	}

	.sm-check {
		min-height: 36px;
		gap: 8px;
		font-size: 13px;
		line-height: 1.35;
	}

	.sm-check--parent {
		min-height: 40px;
		font-size: 15px;
	}

	.sm-cb {
		width: 20px;
		height: 20px;
		background-size: 14px;
	}

	.sm-fgroup__toggle {
		width: 44px;
		height: 40px;
	}

	.sm-fgroup__children {
		padding: 0 10px 10px 42px;
		gap: 0 10px;
	}

	.sm-floorpanel__foot {
		gap: 12px;
		padding: 12px 12px 12px 20px;
	}

	.sm-floorpanel__foot .sm-textbtn {
		font-size: 15px;
		white-space: nowrap;
	}

	.sm-floorpanel__foot .sm-btn {
		min-height: 46px;
		font-size: 15px;
		white-space: nowrap;
	}

	.sm-app.is-floor-open .sm-backdrop {
		opacity: 1;
		visibility: visible;
		transition-delay: 0s;
	}

	/* 閉じたバー + マップ = 画面の高さ(--sm-bar-h はJSで測った閉じたバーの高さ) */
	.sm-map {
		height: max(440px, calc(100svh - var(--sm-bar-h, 300px)));
	}

	.sm-geonotice {
		top: auto;
		bottom: 22px;
		left: 12px;
		width: calc(100% - 90px);
		max-width: none;
		transform: translateY(10px);
	}

	.sm-geonotice__text {
		flex: 1;
		min-width: 0;
	}

	.sm-geonotice__text {
		gap: 6px;
		padding: 8px 10px;
		font-size: 11px;
	}

	.sm-geonotice__text .sm-icon {
		width: 18px;
		height: 18px;
	}

	.sm-geonotice__btn {
		padding: 0 10px;
		font-size: 12px;
	}

	.sm-locate {
		right: 12px;
		bottom: 22px;
	}

	.sm-view--list {
		padding: 16px 8px 40px;
        background: none;
	}

	/* 件数と並び替え2つを1行に収める(とても狭い画面では折り返す) */
	.sm-listhead {
		gap: 8px;
	}

	.sm-count {
		font-size: 15px;
		white-space: nowrap;
	}

	.sm-sortbtns {
		gap: 6px;
	}

	.sm-sortbtn {
		gap: 4px;
		height: 36px;
		padding: 0 9px;
		font-size: 12px;
	}

	.sm-sortbtn .sm-icon {
		width: 16px;
		height: 16px;
	}

	.sm-cards {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	/*
	 * 簡易カード: チケットの色(小さなチケット)・店名・売場・距離だけ。
	 * 所属(商業施設/専門店街)とチケットのバッジは開いたときの本文で見せる
	 */
	.sm-card__badges,
	.sm-card__belong {
		display: none;
	}

	.sm-card__mark {
		display: block;
	}

	.sm-card__title {
		padding-bottom: 0;
	}

	.sm-card__meta {
		padding-left: 30px;
		color: var(--sm-sub);
	}

	/* 頭文字索引: 一覧の上部に固定(テーマの固定ヘッダー分は --sm-list-top-sp) */
	.sm-kanaindex {
		position: sticky;
		z-index: 5;
		top: calc(var(--sm-list-top-sp, 0px) + var(--sm-ios-gap, 0px));
		display: flex;
		justify-content: space-between;
		gap: 2px;
		margin: 0 0 12px;
		padding: 0;
		/* background: var(--sm-cream); */
	}

	.sm-kanaindex[hidden] {
		display: none;
	}

	.sm-kanaindex__btn {
		flex: 1;
		min-width: 0;
		height: 34px;
		padding: 0;
		border: 0;
		border-radius: 4px;
		background: #fff;
		font-size: 14px;
		font-weight: 700;
		transition: background-color var(--sm-dur), color var(--sm-dur);
	}

	.sm-kanaindex__btn.is-wide {
		flex: 1.6;
		font-size: 12px;
	}

	.sm-kanaindex__btn:active {
		background: var(--sm-ink);
		color: #fff !important;
	}

	.sm-kanaindex__btn:disabled {
		opacity: .35;
		cursor: default;
	}

	.sm-card {
		transition: box-shadow var(--sm-dur), border-color var(--sm-dur);
	}

	.sm-card.is-open {
		border-color: #777;
		box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	}

	/* 開いた本文の分まで見出しが伸びないように(高さ揃えはPCのみ) */
	.sm-card__head {
		height: auto;
		gap: 4px;
		padding: 12px 16px;
	}

	.sm-card__name {
		font-size: 17px;
	}

	.sm-card__title .sm-chevron {
		display: inline-flex;
	}

	.sm-modal {
		align-items: flex-start;
		padding: 24px 20px;
	}

	.sm-modal__dialog {
		width: 100%;
		max-height: calc(100% - 8px);
		padding: 28px 24px 30px;
	}

	.sm-detail__name {
		font-size: 24px !important;
	}

	.sm-route,
	.sm-acc .sm-route {
		gap: 10px;
		font-size: 14px;
		white-space: nowrap;
	}

	.sm-route__icon {
		width: 22px;
		height: 22px;
	}

	/* スマホ: 既定はスライダー(次のカードの端が見える幅)。sp="grid" ならグリッド */
	.sm-oshi__list {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: calc((88% - (var(--oshi-cols-sp, 1) - 1) * 12px) / var(--oshi-cols-sp, 1));
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
	}

	.sm-oshi__item {
		scroll-snap-align: start;
	}

	.sm-oshi-card {
		--oshi-ticket-w: 48px;
	}

	.sm-oshi--sp-grid .sm-oshi__list {
		grid-template-columns: repeat(var(--oshi-cols-sp, 1), minmax(0, 1fr));
		grid-auto-flow: row;
		grid-auto-columns: auto;
		overflow-x: visible;
		scroll-snap-type: none;
		padding-bottom: 0;
	}

	.sm-oshi__item.is-hide-sp {
		display: none;
	}
}

/*
 * iOS Safari(26〜): アドレスバーの下端から白いぼかしがページに重なるため、
 * 上部に固定する索引・フロアガイドのメニューは、固定したときだけ少し下げる(通常の配置は変えない)。
 * -webkit-touch-callout は iOS の Safari/WebKit だけが対応するので、iPhone・iPad だけに効く
 */
@supports (-webkit-touch-callout: none) {
	@media (max-width: 767px) {
		.sm-app,
		.sm-fg {
			--sm-ios-gap: 28px;
		}
	}
}

/* ==================================================================
 * ガラポン実施内容(左パネル / 施設モーダル / フロアガイド。設定画面で施設ごとに選ぶ)
 * ================================================================ */

.sm-garapon {
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 2px solid var(--sm-ink);
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	line-height: 1.7;
}

.sm-garapon__title {
	margin: 0 0 6px !important;
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.4;
}

.sm-garapon__body > :first-child {
	margin-top: 0;
}

.sm-garapon__body > :last-child {
	margin-bottom: 0;
}

.sm-garapon__body p {
	margin: 0 0 .5em;
}

/* ==================================================================
 * [floorguide]
 * 上部固定の位置はテーマの固定ヘッダーに合わせて --sm-fg-top で調整する
 * (例: .sm-fg { --sm-fg-top: 80px; })
 * ================================================================ */

/* メニューの白い背景の内側の余白(一覧の左右もそろえる)。スマホは左右を別々に指定する */
.sm-fg {
	--sm-fg-pad: 24px;
	--sm-fg-pad-l: var(--sm-fg-pad);
	--sm-fg-pad-r: var(--sm-fg-pad);
}

.sm-fg__nav {
	position: sticky;
	z-index: 30;
	top: var(--sm-fg-top, 0px);
	padding: 16px var(--sm-fg-pad-r) 16px var(--sm-fg-pad-l); */
	background: var(--sm-fg-nav-bg, #fff);
    padding: 16px;
    background: rgba(255, 255, 255, 0.85);
}

/* タブ */
.sm-fg__tabs {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.sm-fg__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 8px 24px;
	border: 1px solid var(--sm-line);
	border-radius: 4px;
	background: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	transition: background-color var(--sm-dur), color var(--sm-dur), border-color var(--sm-dur);
}

.sm-fg__tab-sub {
	margin-left: 2px;
	font-size: .7em;
	font-weight: 500;
}

.sm-fg__tab[aria-selected="true"] {
	border-color: #3c3c3c;
	background: #3c3c3c;
	color: #fff !important;
}

/* 商業施設のタブ: 選んだときはその施設のチケットの色(--sm-tab-color はJSで指定) */
.sm-fg__tab.has-color[aria-selected="true"] {
	border-color: var(--sm-tab-color);
	background: var(--sm-tab-color);
}

/* 黄色など明るい色は、文字を押す前と同じ色のまま */
.sm-fg__tab.has-color.is-light[aria-selected="true"] {
	color: var(--sm-text) !important;
}

@media (hover: hover) {
	.sm-fg__tab[aria-selected="false"]:hover {
		background: #f1f1f1;
	}
}

.sm-fg__tab:focus-visible,
.sm-fg__floor:focus-visible,
.sm-fg__item:focus-visible {
	outline: 2px solid var(--sm-ink);
	outline-offset: 2px;
}

/* タブの横スクロール位置(スマホ。はみ出すときだけJSで表示) */
.sm-fg__scroll {
	display: none;
}

/* 売場メニュー */
.sm-fg__menu {
	margin-top: 18px;
}

.sm-fg__floors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
}

.sm-fg__floor {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	border: 0;
	background: none;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	transition: color var(--sm-dur);
}

.sm-fg__floor-icon {
	width: 20px;
	height: 20px;
	transition: transform var(--sm-dur) var(--sm-ease);
}

.sm-fg__floor.is-current {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

@media (hover: hover) {
	.sm-fg__floor:hover .sm-fg__floor-icon {
		transform: translateY(2px);
	}
}

.sm-fg__selectwrap {
	position: relative;
	display: none;
}

.sm-fg__select {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 48px 0 18px;
	border: 1px solid var(--sm-line);
	border-radius: 4px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 17px;
	appearance: none;
	-webkit-appearance: none;
}

.sm-fg__select-icon {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	pointer-events: none;
}

/* 一覧 */
@media (min-width: 768px) {
    .sm-fg__panel {
        /* padding: 32px var(--sm-fg-pad-r) 0 var(--sm-fg-pad-l); */
        padding: 48px 0;
    }
}


.sm-fg__panel.is-entering {
	animation: sm-fade .35s var(--sm-ease);
}

.sm-fg__sec + .sm-fg__sec {
	margin-top: 64px;
}

.sm-fg__panel > .sm-garapon {
	margin-bottom: 40px;
}

.sm-fg .sm-fg__head {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: normal;
}

.sm-fg .sm-fg__head::before {
	content: none;
	display: none;
}

.sm-fg .sm-fg__head::after {
	content: "";
	display: block;
	flex: 1;
	height: 1px;
	background: var(--sm-line);
}

/* 店名の長さで崩れないよう列幅を固定(長い名前は折り返す) */
.sm-fg__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 24px;
	margin-top: 26px !important;
	padding-left: clamp(0px, 10%, 200px) !important;
}

.sm-fg__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.sm-fg__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sm-fg__name {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.45;
	overflow-wrap: anywhere;
	text-underline-offset: 3px;
}

@media (hover: hover) {
	.sm-fg__item:hover .sm-fg__name {
		text-decoration: underline;
	}
}

.sm-fg__sub {
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--sm-sub);
	overflow-wrap: anywhere;
}

/* 店名の前の色の印: チケット形(既定) / 丸([floorguide mark="dot"]) */
.sm-fg__mark {
	flex: none;
	background-color: var(--sm-color);
}

.sm-fg__mark--ticket {
	--sm-notch: 2.5px;
	width: 22px;
	height: 15px;
	margin-top: .3em;
}

.sm-fg__mark--dot {
	width: 20px;
	height: 20px;
	margin-top: .2em;
	border-radius: 50%;
}

@media (max-width: 1023px) {
	.sm-fg__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding-left: 0 !important;
	}
}

@media (max-width: 767px) {
	.sm-fg__nav {
		top: var(--sm-fg-top-sp, var(--sm-fg-top, 0px));
		padding: 14px var(--sm-fg-pad-r) 12px var(--sm-fg-pad-l);
	}

	/*
	 * iOS Safari: 固定されている間だけ、メニュー自体の上の余白を増やして白いぼかしを避ける
	 * (メニューを下げると隙間に下の店名が透けるため)。増やした分は下の余白で打ち消し、一覧は動かさない
	 */
	.sm-fg__nav.is-stuck {
		/* padding-top: calc(14px + var(--sm-ios-gap, 0px)); */
		margin-bottom: calc(var(--sm-ios-gap, 0px) * -1);
	}

	/*
	 * スマホは画面幅いっぱい。左右の余白はテーマ(Snow Monkey)のコンテンツの余白に合わせる。
	 * --_container-margin-* は .c-container が持つテーマ内部の変数のため、無いときは16px
	 */
    .sm-app {
        margin-top: 4em;
        margin-bottom: 4em;
        margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		max-width: none !important; /* セクションブロックなど(.is-layout-constrained)の中でもコンテンツ幅に縮めない */
    }
	.sm-fg {
		--sm-fg-pad: 16px;
		--sm-fg-pad-l: var(--_container-margin-left, var(--sm-fg-pad));
		--sm-fg-pad-r: var(--_container-margin-right, var(--sm-fg-pad));
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		max-width: none !important; /* セクションブロックなど(.is-layout-constrained)の中でもコンテンツ幅に縮めない */
	}

	/* タブは横スクロール。選んだタブはJSで画面内に寄せる */
	.sm-fg__tabs {
		flex-wrap: nowrap;
		gap: 10px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.sm-fg__tabs::-webkit-scrollbar {
		display: none;
	}

	.sm-fg__tab {
		flex: none;
		min-height: 44px;
		padding: 8px 18px;
		font-size: 17px;
	}

	.sm-fg__scroll {
		display: block;
		height: 6px;
		margin-top: 8px;
		border-radius: 3px;
		background: #d6d6d6;
		overflow: hidden;
	}

	.sm-fg__scroll[hidden] {
		display: none;
	}

	.sm-fg__scroll-thumb {
		display: block;
		height: 100%;
		border-radius: 3px;
		background: var(--sm-fg-current, #aaaaaa); /* 選んだタブの色(専門店街などは既定の色) */
		transition: width .2s, background-color var(--sm-dur);
	}

	.sm-fg__menu {
		margin-top: 12px;
	}

	.sm-fg__floors {
		display: none;
	}

	.sm-fg__selectwrap {
		display: block;
	}

	.sm-fg__panel {
		padding-top: 20px;
        padding-left: var(--sm-fg-pad-l);
        padding-right: var(--sm-fg-pad-r);
	}

	/* タブは白い背景の端まで流す(途中で切れて見えないように) */
	.sm-fg__tabs {
		margin: 0 calc(var(--sm-fg-pad-r) * -1) 0 calc(var(--sm-fg-pad-l) * -1);
		padding: 0 var(--sm-fg-pad-r) 0 var(--sm-fg-pad-l);
		scroll-padding: 0 var(--sm-fg-pad-r) 0 var(--sm-fg-pad-l);
	}

	.sm-fg__sec + .sm-fg__sec {
		margin-top: 44px;
	}

	.sm-fg .sm-fg__head {
		font-size: 21px;
	}

	.sm-fg .sm-fg__head::after {
		content: none;
		display: none;
	}

	.sm-fg__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 16px;
		margin-top: 16px !important;
	}

	.sm-fg__name {
		font-size: 16px;
	}

	.sm-fg__sub {
		font-size: 12px;
	}
}

/* ==================================================================
 * キーフレーム
 * ================================================================ */

@keyframes sm-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@keyframes sm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sm-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

@keyframes sm-pop {
	0% { transform: scale(.6); }
	100% { transform: scale(1); }
}

@keyframes sm-pin-pop {
	0% { scale: .4; opacity: 0; }
	70% { scale: 1.08; opacity: 1; }
	100% { scale: 1; }
}

@keyframes sm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, .45); }
	70% { box-shadow: 0 0 0 14px rgba(26, 115, 232, 0); }
	100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.sm-app *,
	.sm-app *::before,
	.sm-modal *,
	.sm-modal,
	.sm-oshi *,
	.sm-fg * {
		animation: none !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
}


/* コントロール全体の枠・位置調整 */
.maplibregl-ctrl-group {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  background-color: #ffffff !important;
  overflow: hidden;
}

/* 各ボタン（拡大・縮小など）のサイズや背景 */
.maplibregl-ctrl-group button {
  width: 54px !important;
  height: 54px !important;
  border-bottom: 1px solid #eee !important;
}

/* ボタン内のアイコン色を変更 */
.maplibregl-ctrl-icon {
  filter: brightness(0.2); /* 任意の色調調整 */
  background-size: 36px 36px !important;
}

/* 不要なコンパスボタン（方位アイコン）だけ非表示にする場合 */
.maplibregl-ctrl-compass {
  display: none !important;
}
/* ==================================================================
 * 地図コントロール(拡大・縮小)
 * ================================================================ */

/* コントロール全体の枠・位置調整 */
.maplibregl-ctrl-group {
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  background-color: #ffffff !important;
  overflow: hidden;
}

/* 各ボタン（拡大・縮小など）のサイズや背景 */
.maplibregl-ctrl-group button {
  width: 54px !important;
  height: 54px !important;
  border-bottom: 1px solid #eee !important;
}

/* ボタン内のアイコン色を変更 */
.maplibregl-ctrl-icon {
  filter: brightness(0.2); /* 任意の色調調整 */
  background-size: 36px 36px !important;

}

/* 不要なコンパスボタン（方位アイコン）だけ非表示にする場合 */
.maplibregl-ctrl-compass {
  display: none !important;
}


@media (max-width: 767px) {
    /* 各ボタン（拡大・縮小など）のサイズや背景 */
    .maplibregl-ctrl-group button {
    width: 40px !important;
    height: 40px !important;
    border-bottom: 1px solid #eee !important;
    }

    /* ボタン内のアイコン色を変更 */
    .maplibregl-ctrl-icon {
    filter: brightness(0.2); /* 任意の色調調整 */
    background-size: 27px 27px !important;
    }

    /* スマホは2本指で拡大・縮小できるので＋−ボタンは出さない */
    .sm-map .maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in) {
        display: none;
    }

    /* 現在地ボタンは＋−の代わりに右上へ */
    .sm-locate {
        right: 10px;
        top: 10px;
        width: 40px;
        height: 40px;
    }
}

.sm-oshi {
    margin-bottom: 6em;
}