.mpg-app {
	--mpg-ink: #0f172a;
	--mpg-slate: #64748b;
	--mpg-line: #e2e8f0;
	--mpg-bg: #ffffff;
	--mpg-page-gutter: clamp(8px, 2vw, 24px);
	width: 100vw;
	max-width: 100vw;
	flex: 1 1 auto;
	box-sizing: border-box;
	font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
	color: var(--mpg-ink);
	margin: 0 calc(50% - 50vw);
	padding: 24px 0 64px;
	overflow: clip;
}

/* このアプリを表示するページだけ、Astraのコンテンツ幅制限を解除する。 */
body:has(#mpg-app) .site-content > .ast-container {
	width: 100vw !important;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	overflow: visible !important;
}

body:has(#mpg-app) .site-content #primary,
body:has(#mpg-app) .site-content .site-main,
body:has(#mpg-app) .site-content .ast-article-single,
body:has(#mpg-app) .site-content .entry-content {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	overflow: visible !important;
}

.mpg-app * {
	box-sizing: border-box;
}

/* どのテーマでも「〜さん」を完全排除 */
.mpg-auth-status,
[data-mpg-auth-status] {
	display: none !important;
}

/* ツールバー：余白を確保しつつボタン変形を防止 */
.mpg-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
	padding-inline: var(--mpg-page-gutter);
}

.mpg-app > .mpg-route-hint,
.mpg-app > .mpg-courses-wrap,
.mpg-app > .mpg-profile-banner,
.mpg-app > .mpg-profile-courses,
.mpg-app > .mpg-profile-liked {
	margin-left: var(--mpg-page-gutter);
	margin-right: var(--mpg-page-gutter);
}

.mpg-toolbar-title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.mpg-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ---------- 「みんなの写真」/「スポット・店舗」タブ ---------- */
.mpg-view-tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 16px;
	padding-inline: var(--mpg-page-gutter);
}

.mpg-view-tab {
	appearance: none;
	border: 1px solid var(--mpg-line);
	background: #fff;
	color: var(--mpg-slate);
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
}

.mpg-view-tab.is-active {
	background: var(--mpg-ink);
	border-color: var(--mpg-ink);
	color: #fff;
}

/* タブ切り替えで表裏だけ入れ替える(写真タブ専用要素 / スポットタブ専用要素)。
   既存要素の個別のhidden属性トグル(投稿0件時のコース欄など)とは独立させるため、
   個々のhidden属性を書き換えるのではなく#mpg-appのクラス1つで出し分ける。 */
#mpg-app.is-view-spots .mpg-photos-only {
	display: none !important;
}

#mpg-app .mpg-spots-only {
	display: none;
}

#mpg-app.is-view-spots .mpg-spots-only[data-mpg-spots-wrap] {
	display: block;
}

.mpg-btn {
	appearance: none;
	border: 1px solid var(--mpg-ink);
	background: var(--mpg-ink);
	color: #fff;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.mpg-btn:hover {
	opacity: 0.85;
}

.mpg-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mpg-btn-outline {
	background: #fff;
	color: var(--mpg-ink);
	border-color: var(--mpg-line);
}

.mpg-btn-block {
	width: 100%;
	margin-top: 8px;
}

.mpg-map {
	position: relative;
	z-index: 0;
	width: 100%;
	height: min(62dvh, 620px);
	min-height: 420px;
	border: none;
	border-radius: 0;
	margin-bottom: 32px;
	background: #f1f5f9;
}

.mpg-gallery-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 14px;
	padding-inline: var(--mpg-page-gutter);
}

.mpg-gallery-swipe-hint {
	display: none;
}

/* ギャラリー外枠：画面全幅フルブリード */
.mpg-app > .mpg-gallery-wrap {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ---------- PC用グリッド：全幅フル 6列 ---------- */
.mpg-gallery {
	display: grid !important;
	grid-template-columns: repeat(6, 1fr) !important;
	grid-template-rows: none !important;
	grid-auto-flow: row !important;
	gap: 2px !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mpg-gallery-empty {
	color: var(--mpg-slate);
	font-size: 14px;
	grid-column: 1 / -1;
	padding: 32px 0;
	text-align: center;
}

/* カード：完全な正方形タイル */
.mpg-card {
	position: relative !important;
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	border: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	background: #131722 !important;
	text-align: left;
}

.mpg-card-img-btn {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	padding: 0;
	margin: 0;
	background: none;
	cursor: pointer;
	font: inherit;
	overflow: hidden;
}

.mpg-card-img {
	width: 100% !important;
	height: 100% !important;
	display: block !important;
	object-fit: cover !important;
	transition: transform 0.35s ease;
}

.mpg-card:hover .mpg-card-img {
	transform: scale(1.05);
}

/* 写真の上にスポット名だけオーバーレイ */
.mpg-card-body {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 2 !important;
	padding: 24px 10px 10px !important;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%) !important;
	pointer-events: none;
}

.mpg-card-spot {
	font-weight: 600 !important;
	font-size: 13px !important;
	margin: 0 !important;
	line-height: 1.3 !important;
	color: #fff !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.mpg-card-comment,
.mpg-card-meta,
.mpg-card-actions {
	display: none !important;
}

/* ---------- タブレット用：4列 ---------- */
@media (max-width: 1024px) {
	.mpg-gallery {
		grid-template-columns: repeat(4, 1fr) !important;
	}
	.mpg-card-spot {
		font-size: 12px !important;
	}
}

/* ---------- スマホ用：全幅 3列 ＋ ツールバー横スクロール ---------- */
@media (max-width: 640px) {
	.mpg-map {
		height: 320px;
		min-height: 320px;
		margin-bottom: 20px;
	}

	.mpg-toolbar {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 8px !important;
		overflow-x: auto !important;
		white-space: nowrap !important;
		padding: 0 16px 12px !important;
		margin-inline: 0 !important;
		scrollbar-width: none !important;
		-webkit-overflow-scrolling: touch !important;
	}

	.mpg-toolbar::-webkit-scrollbar {
		display: none !important;
	}

	.mpg-toolbar-actions {
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		flex-shrink: 0 !important;
	}

	.mpg-btn,
	.mpg-toolbar .mpg-btn {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		height: 36px !important;
		padding: 0 16px !important;
		font-size: 13px !important;
		font-weight: 600 !important;
		line-height: 1 !important;
		white-space: nowrap !important;
		border-radius: 999px !important;
		flex-shrink: 0 !important;
		width: auto !important;
		min-width: 0 !important;
		aspect-ratio: auto !important;
		box-sizing: border-box !important;
	}

	.mpg-gallery-title {
		padding: 0 16px 8px;
		font-size: 16px;
	}

	/* スマホは3列ピチピチ正方形 */
	.mpg-gallery {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 1.5px !important;
	}

	.mpg-card-body {
		padding: 16px 6px 6px !important;
	}

	.mpg-card-spot {
		font-size: 11px !important;
	}
}

/* 写真タブの地図ピン自体はmpg-photo-explorer.js(MapLibre)側でスポット・店舗タブと同じ
   circle-layerクラスタリングとして描画するため、Leaflet時代のdivIcon用CSS(旧
   .custom-photo-pin / .pin-thumb-wrapper 等)は不要になり削除した。*/

/* ---------- スポット・店舗タブ(MapLibre版、全国版pilot-mapの地方限定版) ---------- */
.mpg-spot-explorer {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw);
	height: min(80dvh, 760px);
	background: #fff;
}

.mpg-spot-map-canvas {
	position: absolute;
	inset: 0;
}

.mpg-spot-search-wrap {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	pointer-events: none;
}

.mpg-spot-search-bar {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(20px);
	padding: 10px 16px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.mpg-spot-search-bar input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-size: 16px;
	color: var(--mpg-ink);
	outline: none;
}

.mpg-spot-search-status {
	pointer-events: none;
	width: fit-content;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(20px);
	padding: 4px 12px;
	font-size: 11px;
	color: var(--mpg-ink);
}

.mpg-spot-drawer {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 20;
	padding: 24px 0 calc(env(safe-area-inset-bottom) + 16px);
	background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0.95) 60%, transparent 100%);
	transform: translateY(100%);
	transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.mpg-spot-drawer.is-open {
	transform: translateY(0);
}

.mpg-spot-carousel {
	display: flex;
	height: min(36dvh, 300px);
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-inline: 9vw;
	scrollbar-width: none;
}

.mpg-spot-carousel::-webkit-scrollbar {
	display: none;
}

.mpg-spot-card {
	flex: 0 0 auto;
	width: 78vw;
	max-width: 320px;
	height: 100%;
	display: flex;
	flex-direction: column;
	scroll-snap-align: center;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--mpg-line);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transform: scale(0.94);
	opacity: 0.85;
	transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.mpg-spot-card.is-active {
	transform: scale(1);
	opacity: 1;
	border-color: #f59e0b;
}

.mpg-spot-card-media {
	position: relative;
	flex: 1;
	min-height: 0;
	background: #f1f5f9;
}

.mpg-spot-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mpg-spot-card-noimg {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #0a0a0a;
	color: #f2f2f2;
}

.mpg-spot-card-noimg span {
	border: 1px solid rgba(200, 168, 108, 0.5);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: #c8a86c;
}

.mpg-spot-card-noimg b {
	font-style: italic;
	letter-spacing: 0.3em;
	font-weight: 400;
	font-family: Georgia, "Times New Roman", serif;
}

.mpg-spot-card-body {
	flex-shrink: 0;
	padding: 10px 12px;
}

.mpg-spot-card-name {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--mpg-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mpg-spot-card-category {
	margin: 2px 0 0;
	font-size: 11px;
	color: var(--mpg-slate);
}

.mpg-spot-card-actions {
	display: flex;
	gap: 8px;
	padding-top: 8px;
}

.mpg-spot-card-btn {
	flex: 1;
	text-align: center;
	border-radius: 999px;
	padding: 8px 10px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid var(--mpg-line);
	color: var(--mpg-ink);
	background: #fff;
	text-decoration: none;
}

.mpg-spot-card-btn-primary {
	border-color: #f59e0b;
	background: #f59e0b;
	color: #000;
}

/* ---------- ルート作成モード ---------- */
.mpg-route-hint {
	font-size: 13px;
	color: var(--mpg-slate);
	margin: -8px 0 16px;
}

button[data-mpg-route-toggle].is-active {
	background: var(--mpg-ink);
	border-color: var(--mpg-ink);
	color: #fff;
}

.mpg-gallery.is-route-mode .mpg-card-img-btn {
	cursor: pointer;
}

.mpg-card.is-route-selected {
	box-shadow: 0 0 0 3px #38bdf8 !important;
}

.mpg-route-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #0284c7;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mpg-route-bar[hidden] {
	display: none;
}

.mpg-route-bar {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: 9500;
	width: min(92vw, 640px);
	background: #131722;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mpg-route-bar-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 100px;
	overflow-y: auto;
}

.mpg-route-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	padding: 5px 6px 5px 8px;
	font-size: 13px;
	color: #fff;
	touch-action: none;
	cursor: grab;
	user-select: none;
}

.mpg-route-chip.is-dragging {
	opacity: 0.5;
	cursor: grabbing;
}

.mpg-route-chip-handle {
	color: rgba(255, 255, 255, 0.4);
	font-size: 14px;
	line-height: 1;
}

.mpg-route-chip b {
	color: #fff;
}

.mpg-route-chip-name {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpg-route-chip-remove {
	appearance: none;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	line-height: 1;
	cursor: pointer;
	font-size: 13px;
}

.mpg-route-bar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mpg-route-bar-actions .is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.mpg-route-bar-clear {
	appearance: none;
	border: none;
	background: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	padding: 8px 4px;
	cursor: pointer;
	flex: 0 0 auto;
}

.mpg-route-bar-icon-btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-radius: 12px;
	padding: 8px 10px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.mpg-route-bar-icon-btn span {
	font-size: 9px;
	color: rgba(255, 255, 255, 0.7);
}

.mpg-route-bar-go {
	color: #fff !important;
	flex: 1 1 auto;
	text-align: center;
	white-space: nowrap;
}

.mpg-save-route-preview {
	font-size: 13px;
	color: var(--mpg-slate);
	background: rgba(15, 23, 42, 0.05);
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 16px;
	line-height: 1.6;
}

.mpg-route-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--mpg-line);
}

.mpg-route-item:last-child {
	border-bottom: none;
}

.mpg-route-item-body {
	min-width: 0;
}

.mpg-route-item-name {
	font-weight: 700;
	margin: 0 0 4px;
}

.mpg-route-item-spots {
	font-size: 12px;
	color: var(--mpg-slate);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpg-route-item-actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.mpg-route-item-actions .mpg-btn {
	padding: 8px 14px;
	font-size: 13px;
}

/* ---------- タグ絞り込みピル ---------- */
.mpg-tag-filter {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-inline: var(--mpg-page-gutter);
	padding-bottom: 12px;
	margin-bottom: 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.mpg-tag-filter::-webkit-scrollbar {
	display: none;
}

.mpg-tag-pill {
	flex: 0 0 auto;
	appearance: none;
	border: 1px solid var(--mpg-line);
	background: #fff;
	color: var(--mpg-slate);
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-family: inherit;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* ---------- 「写真を投稿する」FAB(画面固定、どのタブでも常に押せる) ---------- */
.mpg-post-fab {
	position: fixed;
	/* 右下は下部ナビ(.oarai-bottom-nav, 実測bottom約81px)とAIコンシェルジュ(.mdl-inquiry-widget,
	   同じ右下)が既に占有しているため、左下・かつナビより上の高さに置いて衝突を避ける。 */
	left: 16px;
	bottom: calc(env(safe-area-inset-bottom) + 96px);
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	border-radius: 999px;
	background: var(--mpg-ink);
	color: #fff;
	padding: 12px 18px 12px 14px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.mpg-post-fab-icon {
	font-size: 18px;
	line-height: 1;
}

/* PC幅は下部ナビ自体が出ないテーマなので、画面端に寄せてよい。 */
@media (min-width: 641px) {
	.mpg-post-fab {
		left: auto;
		right: 24px;
		bottom: calc(env(safe-area-inset-bottom) + 24px);
	}
}

@media (max-width: 480px) {
	.mpg-post-fab-label {
		display: none;
	}
	.mpg-post-fab {
		padding: 14px;
	}
	.mpg-post-fab-icon {
		font-size: 22px;
	}
}

/* ---------- 写真タブの地図まわり: タグを地図の上に浮かせる(luxela.jpと同じ構成) ---------- */
.mpg-map-tagbar-wrap {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 15;
	padding: 12px;
	pointer-events: none;
}

.mpg-map-tagbar.mpg-tag-filter {
	pointer-events: auto;
	margin-bottom: 0;
	padding-inline: 0;
	padding-bottom: 0;
}

.mpg-map-tagbar .mpg-tag-pill {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	border-color: rgba(255, 255, 255, 0.6);
}

.mpg-map-tagbar .mpg-tag-pill.is-active {
	background: var(--mpg-ink);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* カード上のルート選択バッジ(A/B/C)。mpg-photo-explorer.jsのカードで使用。 */
.mpg-photo-strip-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--mpg-ink);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

.mpg-tag-pill.is-active {
	background: var(--mpg-ink);
	color: #fff;
	border-color: var(--mpg-ink);
}

/* ---------- トースト通知 ---------- */
.mpg-toast {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translate(-50%, -20px);
	z-index: 10100;
	max-width: min(420px, calc(100vw - 32px));
	background: var(--mpg-ink);
	color: #fff;
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.5;
	font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.mpg-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.mpg-toast-warning {
	background: #b45309;
}

/* ---------- モーダル ---------- */
.mpg-modal[hidden] {
	display: none;
}

.mpg-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mpg-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.mpg-modal-panel {
	position: relative;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 14px;
	padding: 28px 24px;
	width: 100%;
	max-width: 480px;
	max-height: 88vh;
	overflow-y: auto;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

.mpg-modal-panel-narrow {
	max-width: 380px;
}

.mpg-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--mpg-slate);
}

.mpg-modal-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 18px;
}

.mpg-field {
	display: block;
	margin-bottom: 14px;
	font-size: 13px;
	color: var(--mpg-slate);
}

.mpg-field > span {
	display: block;
	margin-bottom: 6px;
}

.mpg-field input[type="text"],
.mpg-field input[type="email"],
.mpg-field input[type="password"],
.mpg-field textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--mpg-line);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--mpg-ink);
}

.mpg-dropzone {
	border: 1.5px dashed var(--mpg-line);
	border-radius: 10px;
	padding: 18px;
	text-align: center;
	cursor: pointer;
	color: var(--mpg-slate);
	font-size: 13px;
}

.mpg-dropzone.is-dragover {
	border-color: var(--mpg-ink);
	color: var(--mpg-ink);
}

.mpg-dropzone input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.mpg-dropzone img[data-mpg-preview] {
	display: block;
	max-width: 100%;
	max-height: 200px;
	margin: 10px auto 0;
	border-radius: 8px;
}

.mpg-exif-status {
	font-size: 12.5px;
	color: var(--mpg-slate);
	margin: -6px 0 14px;
}

.mpg-exif-status.is-warning {
	color: #b45309;
	font-weight: 600;
}

.mpg-exif-status.is-ok {
	color: #15803d;
}

.mpg-form-error {
	font-size: 12.5px;
	color: #b91c1c;
	margin: -4px 0 10px;
}

.mpg-form-notice {
	font-size: 12.5px;
	color: #15803d;
	margin: -4px 0 10px;
}

.mpg-notice {
	font-size: 14px;
	color: var(--mpg-slate);
	margin: 0 0 16px;
}

.mpg-btn-google {
	background: #fff;
	color: var(--mpg-ink);
	border: 1px solid var(--mpg-line);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-weight: 600;
}

.mpg-google-icon {
	flex-shrink: 0;
}

.mpg-auth-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--mpg-slate);
	font-size: 12px;
	margin: 16px 0;
}

.mpg-auth-divider::before,
.mpg-auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--mpg-line);
}

.mpg-auth-divider span {
	padding: 0 10px;
}

/* ---------- フルスクリーン・フィードビューア ---------- */
.mpg-feed[hidden] {
	display: none;
}

.mpg-feed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.95);
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
}

.mpg-feed-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 10001;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.mpg-feed-close:hover {
	background: rgba(255, 255, 255, 0.22);
}

.mpg-feed-card {
	width: 100%;
	height: 100vh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 64px 20px 32px;
	box-sizing: border-box;
}

.mpg-feed-img {
	display: block;
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 12px;
}

.mpg-feed-info {
	width: 100%;
	max-width: 480px;
	margin-top: 16px;
	color: #fff;
}

.mpg-feed-spot {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.4;
}

.mpg-feed-comment {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 6px;
	line-height: 1.6;
}

.mpg-feed-address {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 14px;
}

.mpg-feed-date {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.45);
	margin: 0 0 10px;
}

.mpg-feed-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.mpg-feed-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.mpg-feed-nav-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* ---------- 推しコース(カルーセル) ---------- */
.mpg-courses-wrap[hidden] {
	display: none;
}

.mpg-courses-wrap {
	margin-bottom: 20px;
}

.mpg-courses-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 10px;
}

.mpg-courses-carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}

.mpg-course-card {
	flex: 0 0 auto;
	width: 220px;
	scroll-snap-align: start;
	border: 1px solid var(--mpg-line);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	appearance: none;
	padding: 0;
}

.mpg-course-card-cover {
	width: 100%;
	height: 110px;
	object-fit: cover;
	display: block;
	background: #f1f5f9;
}

.mpg-course-card-body {
	padding: 10px 12px;
}

.mpg-course-card-name {
	font-weight: 700;
	font-size: 13px;
	margin: 0 0 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpg-course-card-spots {
	font-size: 11px;
	color: var(--mpg-slate);
	margin: 0 0 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpg-course-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 10px;
	color: var(--mpg-slate);
}

.mpg-course-card-creator {
	display: flex;
	align-items: center;
	gap: 4px;
	overflow: hidden;
}

.mpg-course-card-creator img {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.mpg-course-card-creator span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
