/* =====================================================
   用語ツールチップ本体
   ・PCはホバーで表示
   ・スマホはタップで表示
   ・女性向けのやわらかいデザイン
   ===================================================== */
.term-tip {
  position: relative;
  color: inherit;
  border-bottom: 1px dotted #d8b4a6;
  cursor: help;
}

.term-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: 120%;
  width: 240px;
  max-width: 80vw;

  background: #fff8f4;
  color: #444;

  font-size: 13px;
  line-height: 1.6;

  padding: 10px 12px;
  border-radius: 10px;

  border: 1px solid #f0d9d2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 9999;
  white-space: normal;
  pointer-events: none;
}

.term-tip::before {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 110%;
  border: 6px solid transparent;
  border-top-color: #fff8f4;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 9999;
  pointer-events: none;
}

.term-tip:hover::after,
.term-tip:hover::before,
.term-tip:focus::after,
.term-tip:focus::before,
.term-tip.is-open::after,
.term-tip.is-open::before {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .term-tip::after {
    width: 220px;
    font-size: 12px;
  }
}