@charset "utf-8";
/* プロパティ定義 */
:root { --color-theme: #f90; }

/* ツールチップ全体 */
.tooltip {
	/* 位置の情報 */
	position: relative;
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: middle;
	/* 中身の情報 */
	background: var(--color-theme);
	border-radius: 100%;
}
.tooltip::before {
	/* 位置の情報 */
	position: absolute;
	display: inline-block;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.6);
	/* ハテナマーク */
	content: '?';
	color: white;
	font-size: 100%;
	font-weight: bold;
}
.tooltip .text {
	/* 位置の情報 */
	position: absolute;
	display: block;
	width: 14em;
	left: 50%;
	transform: translateX(-50%);
	bottom: 100%;
	/* 中身の情報 */
	background: var(--color-theme);
	color: white;
	font-size: 12px;
	padding: 10px;
	line-height: 1.4;
	border-radius: 6px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	/* アニメーションの情報 */
	transition: all 0.4s ease;
	visibility: hidden;
	opacity: 0;
	bottom: 100%;
}
.tooltip .text::after {
	/* 位置の情報 */
	position: absolute;
	display: block;
	width: 10px;
	height: 10px;
	left: 50%;
	bottom: -5px;
	transform: rotateZ(45deg) translateX(-50%);
	transform-origin: left;
	/* 中身の情報 */
	content: ' ';
	background: var(--color-theme);
}
.tooltip:hover .text {
	/* アニメーションの情報 */
	visibility: visible;
	opacity: 1.0;
	bottom: calc(100% + 10px);
}
