/* ============================================
   福ねこイベント (2026-05-04 〜 2026-05-10)
   関連: fukuneko-event.js
   ============================================ */

/* 飛び回る猫 */
#fukuneko-runner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  padding: 10px;
  box-sizing: border-box;
  z-index: 9999;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#fukuneko-runner img {
  width: 80px;
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: transform 0.18s ease-out;
}

#fukuneko-runner:hover img,
#fukuneko-runner:active img {
  transform: scale(1.12);
}

/* 出現アニメ */
#fukuneko-runner.fukuneko-appear {
  animation: fukuneko-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fukuneko-pop {
  0%   { opacity: 0; transform-origin: center; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

/* モーダル */
#fukuneko-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.fukuneko-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  animation: fukuneko-fade 0.3s ease-out;
}

.fukuneko-modal-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px 24px;
  max-width: 90vw;
  width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: fukuneko-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.fukuneko-modal-title {
  font-size: 22px;
  font-weight: bold;
  color: #ff6b9d;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

.fukuneko-modal-img {
  width: 150px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.fukuneko-modal-text {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 24px;
}

.fukuneko-modal-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b9d, #ffaa5a);
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 8px;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.35);
}

.fukuneko-modal-btn:hover,
.fukuneko-modal-btn:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 107, 157, 0.45);
}

.fukuneko-modal-btn:active {
  transform: scale(0.96);
}

.fukuneko-modal-close {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 16px;
}

.fukuneko-modal-close:hover {
  color: #555;
}

@keyframes fukuneko-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fukuneko-pop-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* SP最適化 */
@media (max-width: 600px) {
  #fukuneko-runner {
    width: 90px;
    height: 90px;
  }
  #fukuneko-runner img {
    width: 70px;
  }
  .fukuneko-modal-box {
    padding: 24px 20px 20px;
  }
  .fukuneko-modal-title {
    font-size: 20px;
  }
  .fukuneko-modal-img {
    width: 130px;
  }
}
