@charset "UTF-8";

.tooltip-container {
	position: relative;
	display: inline-block;	
}

.tooltip-container .tooltip-text {
	visibility: hidden;
	width: max-content;
	max-width: 50vw;
	background-color: #fff;
	color: #000;
	text-align: left;
	border: 1px solid #999999;
	border-radius: 6px;
	padding: 6px 10px;
	position: absolute;
	z-index: 10;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	word-break: break-word;
}

.tooltip-text.active {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px;
  border-color: #999999 transparent transparent transparent;
  z-index: 1;
}

.tooltip-text::before {
  content: "";
  position: absolute;
  top: calc(100% - 1px); /* 枠線と合わせる調整 */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px;
  border-color: #fff transparent transparent transparent;
  z-index: 2;
}

.close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.close-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
.tooltip-container .tooltip-text {
	bottom: 150%;
	/* max-width: 150px; */
}
}
