/* 06 初回だけの一言ヒント（濃い色の小さな吹き出し） */

.coach {
  position: absolute;
  z-index: 30;
  max-width: min(260px, calc(100vw - 16px));
  padding: 9px 15px;
  border: none;
  border-radius: 18px;
  background: var(--ink);
  color: var(--ink-on);
  font-family: var(--title);
  font-weight: var(--title-w);
  font-size: .84375rem;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 4px 0 rgba(74, 59, 69, .18);
  cursor: pointer;
  animation: coach-in .35s cubic-bezier(.34, 1.56, .64, 1) both, coach-bob 1.6s ease-in-out .4s infinite;

  /* 吹き出しの矢印。横の位置は JS が --ax で決める */
  &::after {
    content: '';
    position: absolute;
    left: var(--ax, 22px);
    margin-left: -7px;
    border: 7px solid transparent;
  }
}

/* 矢印が左下（ヒントの上に出る） */
.coach--bl::after {
  bottom: -13px;
  border-top-color: var(--ink);
}

/* 矢印が右上（ヒントの下に出る） */
.coach--tr::after {
  top: -13px;
  border-bottom-color: var(--ink);
}

@keyframes coach-in {
  from { transform: scale(.4); opacity: 0; }
}

@keyframes coach-bob {
  50% { transform: translateY(-4px); }
}
