/* 浮遊申し込みボタン */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  animation: floatPulse 3s ease-in-out infinite;
}

/* ---------------------
   メインボタン
---------------------- */
.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;

  background: linear-gradient(135deg, #AD002D 0%, #d63384 50%, #ffd700 100%);
  color: #fff;
  text-decoration: none;

  border-radius: 50%;
  overflow: hidden;  /* ★ 円外の描画を完全防止 */
  position: relative;

  /* 円を正確にマスク（滲み防止） */
  -webkit-mask-image: radial-gradient(circle, white 100%, transparent 100%);
  mask-image: radial-gradient(circle, white 100%, transparent 100%);

  box-shadow:
    0 8px 20px rgba(173, 0, 45, 0.3),
    0 4px 10px rgba(173, 0, 45, 0.2);

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'Kaisei Decol', serif;
  font-weight: 700;

  border: none !important;
  outline: none !important;
}

/* ホバー効果 */
.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow:
    0 12px 30px rgba(173, 0, 45, 0.4),
    0 6px 15px rgba(173, 0, 45, 0.3);
}

/* フォーカス */
.floating-btn:focus {
  outline: none !important;
  border: none !important;
  box-shadow:
    0 8px 20px rgba(173, 0, 45, 0.3),
    0 4px 10px rgba(173, 0, 45, 0.2),
    0 0 0 3px rgba(255, 215, 0, 0.5);
}

/* ---------------------
   光沢エフェクト（四角にじみ防止版）
---------------------- */
.floating-btn::before {
  content: '';
  position: absolute;

  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    45deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.3),
    rgba(255,255,255,0)
  );

  transform: rotate(45deg);
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}

/* テキスト */
.btn-text {
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  position: relative;
}

/* 浮遊アニメーション */
@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

/* 光沢アニメーション */
@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) rotate(45deg);
  }
}

/* ---------------------
   枠の点滅エフェクト（円外に出ない修正版）
---------------------- */
.floating-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  border: 2px solid #ffd700;
  border-radius: 50%;
  opacity: 0;

  animation: urgentBlink 2s ease-in-out infinite;
}

@keyframes urgentBlink {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

/* ---------------------
   レスポンシブ対応
---------------------- */
@media (max-width: 1024px) {
  .floating-cta { bottom: 25px; right: 25px; }
  .floating-btn { width: 100px; height: 100px; }
  .btn-text { font-size: 0.85rem; }
}

@media (max-width: 768px) {
  .floating-cta { bottom: 20px; right: 20px; }
  .floating-btn { width: 100px; height: 100px; }
  .btn-text { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .floating-cta { bottom: 15px; right: 15px; }
  .floating-btn { width: 100px; height: 100px; }
  .btn-text { font-size: 0.75rem; }
}

/* 動きを少なくしたい環境 */
@media (prefers-reduced-motion: reduce) {
  .floating-cta { animation: none; }
  .floating-btn::before { animation: none; }
  .floating-btn::after { animation: none; }
  .floating-btn:hover { transform: none; }
}

/* 印刷では非表示 */
@media print {
  .floating-cta { display: none; }
}
