/* ==========================================================================
   お店の方へ：編集依頼・報告（MN_Shop_Request::render() と assets/request.js）
   色・角丸・影は Apple の画面に寄せる。テーマの input / button / h2 の装飾に引っぱられないよう、全部クラスで指定する
   ========================================================================== */
.mn-owner {
	--mn-blue: #0071e3;
	--mn-ink: #1d1d1f;
	--mn-sub: #6e6e73;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin: 48px 0 0;
	padding: 28px 32px;
	border-radius: 22px;
	background: #f5f5f7;
	color: var(--mn-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
	-webkit-font-smoothing: antialiased;
}
.mn-owner__text {
	flex: 1 1 320px;
	min-width: 0;
}
.mn-owner p {
	margin: 0;
	padding: 0;
}
.mn-owner .mn-owner__eyebrow {
	margin-bottom: 6px;
	color: var(--mn-sub);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
}
.mn-owner .mn-owner__title {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .01em;
}
.mn-owner .mn-owner__lead {
	color: #424245;
	font-size: 14px;
	line-height: 1.75;
}
.mn-owner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ボタン：青い塗り（主）と、白地に青文字（副）。どちらも丸いカプセル型 */
.mn-rq-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s ease, transform .15s ease, opacity .2s ease;
}
.mn-rq-btn:active {
	transform: scale(.97);
}
.mn-rq-btn:focus-visible {
	outline: 2px solid #0071e3;
	outline-offset: 3px;
}
.mn-rq-btn--primary {
	background: #0071e3;
	color: #fff;
}
.mn-rq-btn--primary:hover {
	background: #0077ed;
}
.mn-rq-btn--secondary {
	background: #fff;
	color: #0066cc;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.mn-rq-btn--secondary:hover {
	background: #fafafc;
}
.mn-rq-btn--block {
	width: 100%;
}
.mn-rq-btn[disabled] {
	opacity: .5;
	cursor: default;
}
.mn-rq-btn.is-busy {
	position: relative;
	color: transparent;
}
.mn-rq-btn.is-busy::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mn-spin .7s linear infinite;
}
@keyframes mn-spin {
	to { transform: rotate(360deg); }
}

/* シート：PC は画面中央のパネル、スマホは下からせり上がるシート */
html.mn-sheet-open {
	overflow: hidden;
}
.mn-sheet {
	box-sizing: border-box;
	width: min(560px, calc(100vw - 32px));
	max-width: none;
	max-height: min(88vh, 860px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 22px;
	background: #fff;
	color: #1d1d1f;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
	overflow: hidden;
}
.mn-sheet[open] {
	display: flex;
	animation: mn-sheet-in .32s cubic-bezier(.2, .8, .2, 1);
}
.mn-sheet.is-closing {
	animation: mn-sheet-out .22s ease forwards;
}
.mn-sheet::backdrop {
	background: rgba(0, 0, 0, .32);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
@keyframes mn-sheet-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
}
@keyframes mn-sheet-out {
	to { opacity: 0; transform: translateY(12px) scale(.98); }
}
.mn-sheet__panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 0;
}
.mn-sheet__head {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 10px 24px;
	background: #fff;
}
.mn-sheet .mn-sheet__title:focus {
	outline: none;
}
.mn-sheet .mn-sheet__title {
	margin: 0;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}
.mn-sheet__close {
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f0f0f2;
	color: #6e6e73;
	cursor: pointer;
	transition: background-color .2s ease;
}
.mn-sheet__close:hover {
	background: #e8e8ed;
}
.mn-sheet__close:focus {
	outline: none;
}
.mn-sheet__close:focus-visible {
	box-shadow: 0 0 0 3px rgba(0, 113, 227, .35);
}
.mn-sheet__close svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
}

/* フォーム */
.mn-form,
.mn-done {
	padding: 6px 24px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.mn-form[hidden],
.mn-done[hidden],
.mn-field[hidden] {
	display: none;
}
.mn-sheet p {
	margin: 0;
	padding: 0;
}
.mn-form .mn-form__shop {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 18px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #f5f5f7;
	font-size: 15px;
	font-weight: 700;
}
.mn-form__shop span {
	color: #6e6e73;
	font-size: 12px;
	font-weight: 600;
}

/* セグメント（iOS の切り替えスイッチ風） */
.mn-seg {
	display: flex;
	margin: 0 0 20px;
	padding: 3px;
	border-radius: 11px;
	background: #ececf0;
}
.mn-seg__item {
	position: relative;
	flex: 1 1 0;
	margin: 0;
	cursor: pointer;
}
.mn-seg__item input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.mn-seg__item span {
	display: block;
	padding: 8px 6px;
	border-radius: 9px;
	color: #1d1d1f;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.mn-seg__item input:checked + span {
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04);
}
.mn-seg__item input:focus-visible + span {
	outline: 2px solid #0071e3;
}
.mn-seg--small {
	margin-bottom: 0;
}
.mn-seg--small .mn-seg__item span {
	padding: 7px 4px;
	font-size: 13px;
}

.mn-field {
	display: block;
	min-width: 0;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}
.mn-field__label {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 700;
}
.mn-field__label small {
	color: #86868b;
	font-size: 12px;
	font-weight: 500;
}
.mn-input {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d2d2d7;
	border-radius: 12px;
	background: #fff;
	color: #1d1d1f;
	font-family: inherit;
	font-size: 16px; /* 16px 未満だと iPhone で入力時に拡大される */
	line-height: 1.5;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.mn-input::placeholder {
	color: #a1a1a6;
}
.mn-input:focus {
	border-color: #0071e3;
	outline: none;
	box-shadow: 0 0 0 4px rgba(0, 113, 227, .16);
}
.mn-input[aria-invalid="true"],
.mn-group .mn-input[aria-invalid="true"] {
	border-color: #e30000;
	box-shadow: 0 0 0 4px rgba(227, 0, 0, .12);
}
.mn-input--area {
	min-height: 120px;
	resize: vertical;
}

/* 選択肢のチップ（選ぶと青くなり、チェックが出る） */
.mn-rq-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mn-sheet .mn-rq-chip {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}
.mn-rq-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.mn-rq-chip span {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #d2d2d7;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	transition: background-color .2s ease, box-shadow .2s ease, color .2s ease, gap .2s ease;
}
.mn-rq-chip svg {
	width: 0;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: width .2s ease;
}
.mn-rq-chip input:checked + span {
	gap: 4px;
	background: rgba(0, 113, 227, .1);
	box-shadow: inset 0 0 0 1.5px #0071e3;
	color: #0066cc;
}
.mn-rq-chip input:checked + span svg {
	width: 14px;
}
.mn-rq-chip input:focus-visible + span {
	outline: 2px solid #0071e3;
	outline-offset: 2px;
}

/* お名前〜電話番号は1つの灰色のまとまりに */
.mn-group {
	margin: 4px 0 18px;
	padding: 18px 16px 2px;
	border-radius: 16px;
	background: #f5f5f7;
}
.mn-group .mn-input {
	border-color: transparent;
}
.mn-group .mn-input:focus {
	border-color: #0071e3;
}

/* ロボットだけが埋める見えない欄 */
.mn-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mn-agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px;
	color: #424245;
	font-size: 13px;
	line-height: 1.6;
	cursor: pointer;
}
.mn-agree input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #0071e3;
}
.mn-agree a {
	color: #0066cc;
}
.mn-form .mn-form__error {
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff2f2;
	color: #d70015;
	font-size: 13px;
	line-height: 1.6;
}
.mn-form .mn-form__error[hidden] {
	display: none;
}

/* 送信後：丸の中にチェックが描かれる */
.mn-done {
	padding-top: 16px;
	text-align: center;
}
.mn-done__icon svg {
	display: block;
	width: 72px;
	height: 72px;
	margin: 8px auto 16px;
	fill: none;
	stroke: #34c759;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mn-done__icon circle {
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: mn-draw .5s ease forwards;
}
.mn-done__icon path {
	stroke-dasharray: 36;
	stroke-dashoffset: 36;
	animation: mn-draw .3s .4s ease forwards;
}
@keyframes mn-draw {
	to { stroke-dashoffset: 0; }
}
.mn-done .mn-done__title {
	margin-bottom: 8px;
	font-size: 22px;
	font-weight: 700;
}
.mn-done .mn-done__text {
	margin-bottom: 24px;
	color: #424245;
	font-size: 14px;
	line-height: 1.8;
}

@media (max-width: 767px) {
	.mn-owner {
		margin: 36px 12px 0;
		padding: 24px 20px;
	}
	.mn-owner__actions {
		width: 100%;
	}
	.mn-owner__actions .mn-rq-btn {
		flex: 1 1 100%;
	}
	/* スマホは画面の下にくっつくシート */
	.mn-sheet {
		width: 100vw;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: 20px 20px 0 0;
		padding-bottom: env(safe-area-inset-bottom);
	}
	.mn-sheet[open] {
		animation: mn-sheet-up .36s cubic-bezier(.2, .8, .2, 1);
	}
	.mn-sheet.is-closing {
		animation: mn-sheet-down .22s ease forwards;
	}
	.mn-sheet__head {
		padding-top: 22px;
	}
	.mn-sheet__head::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		width: 36px;
		height: 5px;
		margin-left: -18px;
		border-radius: 3px;
		background: #d2d2d7;
	}
	.mn-form,
	.mn-done {
		padding-left: 20px;
		padding-right: 20px;
	}
}
@keyframes mn-sheet-up {
	from { transform: translateY(100%); }
}
@keyframes mn-sheet-down {
	to { transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
	.mn-sheet[open],
	.mn-sheet.is-closing,
	.mn-done__icon circle,
	.mn-done__icon path {
		animation: none;
	}
	.mn-done__icon circle,
	.mn-done__icon path {
		stroke-dashoffset: 0;
	}
}
