/* -------------------------------- */
/* 文字吹き出し */
/* -------------------------------- */


.tooltip {
  position: relative;
  cursor: help;
  display: inline-block;
}

/* 吹き出し本体 */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: #339e67;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* テキストの上に表示 */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* 吹き出しの矢印 */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* 下に向ける */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #339e67 transparent transparent transparent;
}

/* ホバー時の表示 */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* -------------------------------- */
/* 画像ポップアップ */
/* -------------------------------- */
/* オーバーレイ背景 */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

/* 表示画像 */
.popup-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

/* フェードイン */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 拡大のアニメーション */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* カーソルなどの見た目調整 */
.popup-link img {
  cursor: zoom-in;
  transition: transform 0.3s;
}

.popup-link img:hover {
  transform: scale(1.03);
}
