﻿.fixed-mascot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 1000;
  pointer-events: none;
  user-select: none;
}

.fixed-mascot-bubble {
  position: relative;
  background: #fff;
  color: #2d2923;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  padding: 10px 16px;
  border-radius: 15px 15px 4px 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  margin-bottom: 10px;
  border: 1px solid rgba(181, 138, 75, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: auto;
}

.fixed-mascot-bubble.is-active {
  opacity: 1;
  transform: translateY(0);
}

.fixed-mascot-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  right: 18px;
  border-width: 9px 9px 0;
  border-style: solid;
  border-color: #fff transparent transparent;
}

.fixed-mascot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  cursor: pointer;
}

.fixed-mascot-img {
  width: clamp(60px, 8vw, 84px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  animation: mascotFloat 3.6s ease-in-out infinite;
  transform-origin: bottom center;
}

.fixed-mascot-name {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@media (max-width: 720px) {
  .fixed-mascot {
    bottom: 16px;
    right: 16px;
  }

  .fixed-mascot-bubble {
    font-size: 10px;
    padding: 8px 12px;
    max-width: 160px;
    white-space: normal;
    text-align: left;
  }

  .fixed-mascot-img {
    width: 52px;
  }
}

