/* 用語の説明（今のミラミーの見た目を再現）。色はテーマ側の変数があればそれを使う。 */
.miramee-term {
	border-bottom: 2px dotted var(--c-accent, #c9a24d);
	cursor: help;
	position: relative;
	outline: none;
}
.miramee-term::after {
	content: attr(data-tip);
	position: absolute;
	bottom: 130%;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: 240px;
	padding: .5em .8em;
	border: 1px solid var(--c-accent, #c9a24d);
	border-radius: 8px;
	background: #14171f;
	color: #ffd67a;
	font-size: .85em;
	font-weight: 400;
	line-height: 1.5;
	white-space: normal;
	text-align: left;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
	z-index: 50;
}
.miramee-term:hover::after,
.miramee-term:focus::after { opacity: 1; }

/* スマホ：画面の下に帯で出す（吹き出しが画面からはみ出さないように） */
@media (max-width: 767px) {
	.miramee-term::after {
		position: fixed;
		top: auto;
		bottom: 24px;
		left: 16px;
		right: 16px;
		transform: none;
		width: auto;
		max-width: none;
		word-break: break-word;
		box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
	}
}
