/* ===== 採掘ゲーム（includes/game.php・assets/game.js） ===== */

/* ---------- 隠れた結晶 ---------- */
.mf-spot {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	vertical-align: middle;
	animation: mf-spot-glint 3.6s ease-in-out infinite;
}
.mf-spot[hidden] {
	display: none;
}
.mf-spot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
/* たまにきらっと光る */
.mf-spot::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 2px;
	width: 14px;
	height: 14px;
	background: radial-gradient(circle, #fff 0 18%, rgba(255, 244, 214, 0.9) 19% 30%, transparent 62%);
	clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
	opacity: 0;
	animation: mf-spot-star 3.6s ease-in-out infinite;
	pointer-events: none;
}
@keyframes mf-spot-glint {
	0%, 70%, 100% { filter: none; }
	78% { filter: brightness(1.25); }
}
@keyframes mf-spot-star {
	0%, 70%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
	78% { opacity: 1; transform: scale(1.1) rotate(45deg); }
	86% { opacity: 0; transform: scale(0.6) rotate(90deg); }
}
/* クイズに正解して現れたとき */
.mf-spot.is-appear {
	animation: mf-spot-in 0.9s ease-out, mf-spot-glint 3.6s ease-in-out 0.9s infinite;
}
@keyframes mf-spot-in {
	0% { transform: scale(0) rotate(-20deg); opacity: 0; }
	60% { transform: scale(1.3) rotate(6deg); opacity: 1; }
	100% { transform: none; }
}
.mf-spot.is-hit {
	animation: mf-spot-hit 0.3s ease-out;
}
@keyframes mf-spot-hit {
	0%, 100% { transform: none; }
	30% { transform: translate(-3px, 2px) rotate(-6deg); }
	60% { transform: translate(3px, -1px) rotate(5deg); }
}
@media (hover: hover) {
	.mf-spot:hover {
		cursor: none;
	}
}

/* ---------- つるはし ---------- */
.mf-pick {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100003;
	width: 80px;
	height: auto;
	opacity: 0;
	pointer-events: none;
	transform-origin: 20% 80%;
}
.mf-pick.is-on {
	opacity: 1;
}
.mf-pick.is-swing {
	animation: mf-swing 0.6s ease-in;
}
@keyframes mf-swing {
	0% { rotate: 0deg; }
	40% { rotate: -38deg; }
	55% { rotate: 22deg; }
	100% { rotate: 0deg; }
}

/* ---------- きらめき・かけら ---------- */
.mf-spark {
	position: fixed;
	z-index: 100002;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	background: #fff6d8;
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
	pointer-events: none;
	animation: mf-spark 0.8s ease-out forwards;
}
.mf-spark.is-chip {
	width: 5px;
	height: 5px;
	background: #8a6a45;
	clip-path: polygon(20% 0, 100% 30%, 70% 100%, 0 70%);
}
@keyframes mf-spark {
	0% { transform: translate(0, 0) scale(1); opacity: 1; }
	100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

/* ---------- 掘った石が棚ボタンへ飛ぶ ---------- */
.mf-fly {
	position: fixed;
	z-index: 100002;
	width: 64px;
	height: 64px;
	object-fit: contain;
	pointer-events: none;
	transition: transform 0.7s cubic-bezier(0.5, -0.3, 0.6, 1), opacity 0.7s;
}

/* ---------- 右下の「棚」ボタン（ふりがなボタンの上） ---------- */
.mf-gamefix {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 99;
	transform: translateY(-62px);
	transition: transform 0.3s;
}
html[data-scrolled="true"] .mf-gamefix {
	transform: translateY(-124px);
}
.mf-gamebtn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 1px solid #d4b27c;
	border-radius: 50%;
	background: var(--mf-dark, #2b2620);
	color: #efe8db;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}
.mf-gamebtn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #d4b27c;
	stroke-width: 1.6;
	stroke-linejoin: round;
}
.mf-gamebtn__txt {
	margin-top: 1px;
	font-family: var(--mf-serif, serif);
	font-size: 10px;
	line-height: 1;
}
.mf-gamebtn__n {
	position: absolute;
	top: -6px;
	right: -10px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #b5874a;
	color: #fff;
	font-family: var(--mf-latin, serif);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}
.mf-gamefix.is-pop .mf-gamebtn {
	animation: mf-pop 0.5s ease-out;
}
@keyframes mf-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.25); }
	100% { transform: scale(1); }
}
@media (max-width: 959px) {
	.mf-gamefix {
		right: 14px;
		bottom: 18px;
	}
}

/* ---------- お知らせ ---------- */
.mf-gametoast {
	width: max-content;
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100001;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 24px);
	padding: 10px 16px 10px 10px;
	background: var(--mf-dark, #2b2620);
	border: 1px solid rgba(212, 178, 124, 0.5);
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	color: #efe8db;
	font-size: 14px;
	transform: translate(-50%, 140%);
	transition: transform 0.4s;
}
.mf-gametoast.is-on {
	transform: translate(-50%, 0);
}
.mf-gametoast img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}
.mf-gametoast .mf-gametoast__t {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.45;
}
.mf-gametoast b {
	color: #f3d9a4;
}
.mf-gametoast small {
	color: rgba(239, 232, 219, 0.7);
	font-size: 11px;
}
.mf-gametoast button {
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: #2f5d50;
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
	cursor: pointer;
}

/* ---------- 標本棚（ポップアップ） ---------- */
.mf-shelf {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(27, 23, 19, 0.82);
}
.mf-shelf.is-open {
	display: flex;
	animation: mf-fade 0.25s ease-out;
}
@keyframes mf-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
html.mf-shelf-open {
	overflow: hidden;
}
.mf-shelf__box {
	width: min(1100px, 100%);
	max-height: 100%;
	overflow: auto;
	padding: 18px 22px 14px;
	background: #f1ece2;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.mf-shelf__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 10px;
}
.mf-shelf__title {
	margin: 0;
	font-family: var(--mf-serif, serif);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #2e2a25;
}
.mf-shelf__title span {
	display: block;
	color: #2f5d50;
	font-family: var(--mf-latin, serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.25em;
}
.mf-shelf__count {
	margin: 0 0 0 auto;
	color: #6f675d;
	font-size: 14px;
}
.mf-shelf__count b {
	color: #b5874a;
	font-family: var(--mf-latin, serif);
	font-size: 26px;
}
.mf-shelf__close {
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e2d8c4;
	cursor: pointer;
}
.mf-shelf__close::before,
.mf-shelf__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	margin: -1px 0 0 -8px;
	border-radius: 1px;
	background: #2e2a25;
	transform: rotate(45deg);
}
.mf-shelf__close::after {
	transform: rotate(-45deg);
}
.mf-shelf__fig {
	position: relative;
	margin: 0 auto;
}
.mf-shelf__fig.is-sp {
	max-width: 420px;
}
.mf-shelf__bg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}
.mf-slot {
	position: absolute;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.mf-slot img {
	max-width: 88%;
	max-height: 88%;
	object-fit: contain;
	filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
	transition: transform 0.2s;
}
.mf-slot:hover img,
.mf-slot.is-sel img {
	transform: translateY(-4px) scale(1.04);
}
.mf-slot__q {
	margin-bottom: 18%;
	color: rgba(239, 232, 219, 0.45);
	font-family: var(--mf-serif, serif);
	font-size: clamp(14px, 2.4vw, 26px);
}
.mf-slot.is-sel .mf-slot__q,
.mf-slot:hover .mf-slot__q {
	color: #f3d9a4;
}
.mf-slot__plate {
	position: absolute;
	transform: translate(-50%, -50%);
	color: #6f5a3e;
	font-family: var(--mf-latin, serif);
	font-size: clamp(8px, 1vw, 12px);
	font-weight: 600;
	pointer-events: none;
}
.mf-shelf__info {
	min-height: 1.8em;
	margin: 12px 0 0;
	color: #4f483f;
	font-size: 14px;
	text-align: center;
}
.mf-shelf__info a {
	color: #2f5d50;
	font-weight: 700;
}
.mf-shelf__foot {
	margin: 8px 0 0;
	text-align: right;
}
.mf-shelf__reset {
	padding: 0;
	border: 0;
	background: none;
	color: #9a9083;
	font-size: 11px;
	text-decoration: underline;
	cursor: pointer;
}
@media (max-width: 599px) {
	.mf-shelf {
		padding: 10px;
	}
	.mf-shelf__box {
		padding: 12px 12px 10px;
	}
	.mf-shelf__title {
		font-size: 18px;
	}
	.mf-shelf__count b {
		font-size: 20px;
	}
}

/* ---------- クイズ ---------- */
.mf-quiz {
	max-width: 760px;
	margin: 0 auto;
	padding: 26px 30px 22px;
	background: var(--mf-dark, #2b2620);
	border-radius: 10px;
	color: #efe8db;
	text-align: center;
}
.post_content .mf-quiz__eyebrow {
	margin: 0 0 8px;
	color: #d4b27c;
	font-family: var(--mf-latin, serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3em;
}
.post_content .mf-quiz__q {
	margin: 0 0 18px;
	font-family: var(--mf-serif, serif);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.7;
}
.mf-quiz__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.mf-quiz__choice {
	padding: 12px 10px;
	border: 1px solid rgba(212, 178, 124, 0.45);
	border-radius: 8px;
	background: rgba(239, 232, 219, 0.06);
	color: #efe8db;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s;
}
.mf-quiz__choice:hover:not(:disabled) {
	background: rgba(239, 232, 219, 0.14);
}
.mf-quiz__choice:disabled {
	cursor: default;
}
.mf-quiz__choice.is-ng {
	animation: mf-quiz-ng 0.4s ease-out;
}
@keyframes mf-quiz-ng {
	0%, 100% { transform: none; }
	25% { transform: translateX(-5px); }
	50% { transform: translateX(4px); }
	75% { transform: translateX(-2px); }
}
.mf-quiz__choice.is-ok {
	background: #2f5d50;
	border-color: #2f5d50;
	color: #fff;
	opacity: 1;
}
.post_content .mf-quiz__msg {
	min-height: 1.6em;
	margin: 14px 0 0;
	color: #d9cfbf;
	font-size: 14px;
}
.mf-quiz__msg b {
	color: #f3d9a4;
}
@media (max-width: 599px) {
	.mf-quiz {
		padding: 20px 16px 16px;
	}
	.mf-quiz__choices {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* モース硬度の階段：硬度4の段の上に現れる */
.mf-mohs__step {
	position: relative;
}
.mf-mohs__spot {
	position: absolute;
	left: 50%;
	top: -6px;
	transform: translate(-50%, -100%);
	z-index: 2;
}
@media (max-width: 959px) {
	.mf-mohs__spot {
		left: auto;
		right: 6px;
		top: 50%;
		transform: translateY(-50%);
	}
}

/* 数字は、ふつうの高さの数字に（明朝の欧文で「1」が「I」に見えないように） */
.mf-shelf__count b,
.mf-gamebtn__n,
.mf-slot__plate,
.mf-gametoast small {
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}
@media (max-width: 599px) {
	.mf-gametoast {
		bottom: 16px;
		gap: 8px;
		width: calc(100vw - 24px);
		padding: 8px 10px 8px 8px;
		border-radius: 16px;
		font-size: 13px;
	}
	.mf-gametoast button {
		padding: 6px 10px;
		font-size: 12px;
	}
}
.mf-quiz__choice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}
.mf-quiz__ja {
	font-family: var(--mf-serif, serif);
	font-size: 16px;
	font-weight: 700;
}
.mf-quiz__sub {
	color: rgba(239, 232, 219, 0.65);
	font-size: 11.5px;
	letter-spacing: 0.04em;
}
.mf-quiz__choice.is-ok .mf-quiz__sub {
	color: rgba(255, 255, 255, 0.8);
}
/* 図鑑のカードを開いている間は、右下の棚ボタンも隠す（ふりがなボタンと同じ） */
body.mz-detail-open .mf-gamefix {
	display: none;
}
.mf-shelf__info {
	line-height: 1.8;
}

/* ---------- 置き場所 ---------- */
/* 暗い帯の中（資料室・一覧ページ・トップ） */
.mf-libhero,
.mf-hero,
.mf-today {
	position: relative;
}
.mf-herospot {
	position: absolute;
	z-index: 3;
}
.mf-herospot .mf-spot {
	width: 46px;
	height: 46px;
}
@media (max-width: 599px) {
	/* スマホの帯は文字でいっぱいなので、帯の右下か右上の角に */
	.mf-libhero .mf-herospot {
		left: auto !important;
		right: 12px !important;
		top: auto !important;
		bottom: 10px !important;
	}
	/* 明るい節の見出しの横は、スマホでは見出しが横いっぱいなので、見出しの上の余白へ */
	.mf-secspot {
		left: auto !important;
		right: 4px !important;
		top: -38px !important;
		bottom: auto !important;
	}
}
/* カードの右上（形状一覧・条痕色・宝石名） */
.mf-shape,
.mf-spair,
.mf-gn__card {
	position: relative;
}
.mf-cardspot {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
}
.mf-spair .mf-cardspot {
	top: 6px;
}
/* このサイトについて：鉱物＝好物の箱の右下 */
.mf-ab__pun {
	position: relative;
}
.mf-ab__punspot {
	position: absolute;
	right: 10px;
	bottom: 8px;
}
.mf-ab__punspot .mf-spot {
	width: 40px;
	height: 40px;
}

/* ---------- 404：坑道の道のまん中。ふだんはかすかな赤い光だけ ---------- */
.mf404__scene {
	position: relative;
}
.mf404-spot {
	position: absolute;
	left: 50%;
	top: 74%;
	transform: translate(-50%, -50%);
	z-index: 3;
}
.mf-spot.is-dark {
	--lit: 0;
	width: 54px;
	height: 54px;
	animation: none;
}
.mf-spot.is-dark::after {
	content: none;
}
.mf-spot.is-dark img {
	opacity: calc(0.06 + var(--lit) * 0.94);
	filter: drop-shadow(0 0 calc(4px + var(--lit) * 10px) rgba(255, 80, 90, calc(0.35 + var(--lit) * 0.4)));
	transition: opacity 0.15s;
}
/* かすかな光（呼吸するように） */
.mf-spot.is-dark::before {
	content: "";
	position: absolute;
	inset: 18%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 95, 105, 0.55), rgba(255, 95, 105, 0) 70%);
	animation: mf-dark-breath 3.2s ease-in-out infinite;
	pointer-events: none;
}
@keyframes mf-dark-breath {
	0%, 100% { opacity: 0.35; transform: scale(0.8); }
	50% { opacity: 0.9; transform: scale(1.15); }
}

/* ---------- このサイトについて：遊び方 ---------- */
.mf-ab__game {
	padding: 34px 36px 30px;
	background: var(--mf-dark, #2b2620);
	border-radius: 10px;
	color: #efe8db;
}
.post_content .mf-ab__game .mf-eyebrow {
	color: #d4b27c;
}
.post_content .mf-ab__game .mf-h2 {
	color: #f3eee4;
}
.post_content .mf-ab__game p {
	color: #d9cfbf;
}
.post_content .mf-ab__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 20px 0;
	padding: 0;
	list-style: none;
	counter-reset: mfstep;
}
.post_content .mf-ab__steps li {
	position: relative;
	margin: 0;
	padding: 16px 16px 14px;
	background: rgba(239, 232, 219, 0.06);
	border: 1px solid rgba(212, 178, 124, 0.3);
	border-radius: 8px;
	color: #d9cfbf;
	font-size: 13px;
	line-height: 1.8;
	counter-increment: mfstep;
}
.post_content .mf-ab__steps li::before {
	content: counter(mfstep, decimal-leading-zero);
	display: block;
	color: #d4b27c;
	font-family: var(--mf-latin, serif);
	font-size: 20px;
	font-weight: 600;
	font-variant-numeric: lining-nums;
}
.mf-ab__steps b {
	display: block;
	margin-bottom: 4px;
	color: #f3eee4;
	font-family: var(--mf-serif, serif);
	font-size: 15px;
}
.mf-ab__hints {
	padding: 16px 20px;
	background: rgba(239, 232, 219, 0.05);
	border-left: 3px solid #d4b27c;
	border-radius: 4px;
}
.post_content .mf-ab__hintt {
	margin: 0 0 6px;
	color: #f3d9a4;
	font-family: var(--mf-serif, serif);
	font-weight: 700;
}
.post_content .mf-ab__hints ul {
	margin: 0;
	padding: 0 0 0 1.2em;
}
.post_content .mf-ab__hints li {
	margin: 4px 0;
	color: #d9cfbf;
	font-size: 13.5px;
	line-height: 1.8;
}
.post_content .mf-ab__hints li.is-locked {
	color: rgba(217, 207, 191, 0.4);
}
.post_content .mf-ab__gamenote {
	margin: 14px 0 18px;
	font-size: 12px;
	opacity: 0.75;
}
@media (max-width: 959px) {
	.post_content .mf-ab__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 599px) {
	.mf-ab__game {
		padding: 24px 18px;
	}
	.post_content .mf-ab__steps {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* スマホは坑道の絵が小さいので、レッドベリルも小さく */
@media (max-width: 599px) {
	.mf-spot.is-dark {
		width: 34px;
		height: 34px;
	}
	.mf404-spot {
		top: 72%;
	}
}
.mf-shelf__sub {
	margin-left: 10px;
	color: #6f675d;
	font-size: 13px;
}

/* 明るい背景の節の、何もない所 */
.mf-libsec {
	position: relative;
}
.mf-secspot {
	position: absolute;
	z-index: 2;
}
.mf-secspot .mf-spot {
	width: 42px;
	height: 42px;
}
.mf-secspot .mf-spot img {
	filter: drop-shadow(0 3px 4px rgba(60, 40, 20, 0.3));
}

/* 棚の「？」（遊び方へ） */
.mf-shelf__help {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e2d8c4;
	color: #2e2a25;
	font-family: var(--mf-serif, serif);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}
.mf-shelf__help:hover,
.mf-shelf__close:hover {
	background: #d4c8b0;
}
.mf-ab__game {
	scroll-margin-top: 90px;
}

/* 棚の「？」と「×」は、狭い画面でもつぶれないように */
.mf-shelf__help,
.mf-shelf__close {
	flex: none;
}
@media (max-width: 599px) {
	.mf-shelf__head {
		gap: 8px;
	}
	.mf-shelf__help,
	.mf-shelf__close {
		width: 34px;
		height: 34px;
	}
	.mf-shelf__help {
		font-size: 16px;
	}
}

/* 暗い所の結晶：暗くなったり明るくなったり（404の坑道よりは見やすく） */
.mf-dark .mf-spot:not(.is-dark),
.l-footer .mf-spot,
.mf-ab__pun .mf-spot,
.mf-ab__game .mf-spot {
	animation: mf-spot-dim 4.6s ease-in-out infinite;
}
.mf-dark .mf-spot.is-appear {
	animation: mf-spot-in 0.9s ease-out, mf-spot-dim 4.6s ease-in-out 0.9s infinite;
}
@keyframes mf-spot-dim {
	0%, 100% { opacity: 0.4; filter: brightness(0.6); }
	50% { opacity: 1; filter: brightness(1.12); }
}

/* スマホ：帯の中の結晶は、説明文の下の余白に（帯の下を少し広げる） */
@media (max-width: 599px) {
	.mf-libhero:has(.mf-herospot) {
		padding-bottom: 64px;
	}
	.mf-libhero .mf-herospot .mf-spot {
		width: 40px;
		height: 40px;
	}
}

/* ---------- コンプリート演出 ---------- */
.mf-shelf.is-complete .mf-slot img {
	animation: mf-complete-glow 1.2s ease-out both;
}
@keyframes mf-complete-glow {
	0% { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35)); transform: none; }
	40% { filter: drop-shadow(0 0 14px rgba(255, 226, 150, 0.95)) brightness(1.3); transform: translateY(-6px) scale(1.08); }
	100% { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35)); transform: none; }
}
.mf-shelf__box {
	position: relative;
}
.mf-complete {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 5;
	width: min(520px, 90%);
	padding: 26px 24px 22px;
	background: rgba(43, 38, 32, 0.94);
	border: 1px solid #d4b27c;
	border-radius: 12px;
	box-shadow: 0 0 0 6px rgba(212, 178, 124, 0.15), 0 20px 50px rgba(0, 0, 0, 0.5);
	color: #efe8db;
	text-align: center;
	opacity: 0;
	transform: translate(-50%, -40%) scale(0.92);
	transition: opacity 0.6s, transform 0.6s;
	pointer-events: none;
}
.mf-complete.is-on {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
}
.mf-complete__en {
	margin: 0;
	color: #d4b27c;
	font-family: var(--mf-latin, serif);
	font-size: 34px;
	font-weight: 600;
	letter-spacing: 0.35em;
}
.mf-complete__ja {
	margin: 6px 0 4px;
	font-family: var(--mf-serif, serif);
	font-size: 20px;
	font-weight: 700;
}
.mf-complete__sub {
	margin: 0;
	color: #cfc5b4;
	font-size: 13px;
}
.mf-complete.is-on::after {
	content: "×　とじる";
	display: block;
	margin-top: 14px;
	color: rgba(239, 232, 219, 0.55);
	font-size: 11px;
}
.mf-shelf__done {
	margin-right: 10px;
	padding: 2px 10px;
	border: 1px solid #b5874a;
	border-radius: 999px;
	color: #b5874a;
	font-family: var(--mf-latin, serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	vertical-align: middle;
}
@media (max-width: 599px) {
	.mf-complete__en {
		font-size: 26px;
	}
	.mf-complete__ja {
		font-size: 16px;
	}
}
@media (max-width: 599px) {
	.mf-shelf__done {
		display: none;
	}
}

/* 棚：最後の1個の「難易度MAX」 */
.mf-shelf__max {
	display: inline-block;
	margin-right: 8px;
	padding: 1px 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, #8f1d2c, #c43a4a);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	vertical-align: 1px;
}
