/* なじみの薄い仕事の言葉で、右からアドバイザーが出てくる吹き出し (newpath_popout.blade.php) */
.apnp {
  position: fixed;
  right: 0;
  bottom: 190px;
  z-index: 950;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: min(420px, calc(100vw - 16px));
  transform: translateX(110%);
  transition: transform .55s cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: none;
}
.apnp[hidden] { display: flex !important; visibility: hidden; }
.apnp.is-out { transform: translateX(0); pointer-events: auto; visibility: visible; }
.apnp.is-leaving { transition: transform .45s cubic-bezier(.6, 0, .8, .4); transform: translateX(110%); }

.apnp_bubble {
  position: relative;
  margin-bottom: 26px;
  padding: 14px 34px 14px 16px;
  background: #fff;
  border: 2px solid #005EAB;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 12px 30px rgba(0, 63, 122, .22);
  color: #1E2A36;
}
.apnp_bubble::after {
  content: "";
  position: absolute;
  right: -11px;
  bottom: 10px;
  border: 8px solid transparent;
  border-left: 11px solid #005EAB;
}
.apnp_word { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #005EAB; }
.apnp_word b { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 999px; background: #005EAB; color: #fff; }
.apnp_text { margin: 0 0 8px; font-size: 13px; line-height: 1.7; font-weight: 700; }
.apnp_link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #A83A00, #C84300);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.apnp_link:hover { filter: brightness(1.08); }
.apnp_close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  color: #5F6B76;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.apnp_staff { flex: 0 0 auto; margin: 0 10px 0 0; text-align: center; }
.apnp_staff img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(0, 63, 122, .28);
}
.apnp.is-out .apnp_staff img { animation: apnpNod 1.2s ease .5s 1; }
.apnp_staff figcaption {
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #005EAB;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
@keyframes apnpNod {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-8deg); }
  60% { transform: rotate(5deg); }
}

@media (max-width: 767px) {
  .apnp { bottom: 150px; }
  .apnp_staff img { width: 64px; height: 64px; }
  .apnp_bubble { padding: 12px 30px 12px 12px; }
  .apnp_text { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .apnp, .apnp.is-leaving { transition: none; }
  .apnp.is-out .apnp_staff img { animation: none; }
}
