/* ===== SP版専用 フローティングコンタクトバナー ===== */

.floating-contact-sp {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 1000;
  display: none; /* デフォルトは非表示 */
}

/* SP版でのみ表示 */
@media (max-width: 768px) {
  .floating-contact-sp {
    display: block;
  }
}

.floating-contact-link {
  display: block;
  text-decoration: none;
  width: 80px;
  height: 80px;
  position: relative;
}

/* 球体コンテナ */
.contact-sphere {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.contact-sphere:hover {
  transform: scale(1.1);
}

/* 中央の赤い球体 */
.sphere-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: #c12822;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(193, 40, 34, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: all 0.3s ease;
}

.floating-contact-link:hover .sphere-core {
  background: #a01f1a;
  box-shadow: 0 6px 20px rgba(193, 40, 34, 0.6),
    inset 0 2px 8px rgba(255, 255, 255, 0.3),
    inset 0 -2px 8px rgba(0, 0, 0, 0.3);
}

/* 回転テキストのラッパー */
.rotating-text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 回転SVG */
.rotating-svg {
  width: 100%;
  height: 100%;
  animation: rotate-clockwise 15s linear infinite;
}

/* 回転テキスト */
.rotating-text {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.5px;
  fill: #c12822;
  text-transform: uppercase;
}

/* 回転アニメーション */
@keyframes rotate-clockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ホバー時のアニメーション速度変更 */
.floating-contact-link:hover .rotating-svg {
  animation-duration: 8s;
}

/* パルス効果 */
.sphere-core::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(193, 40, 34, 0.3);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* 極小画面での調整 */
@media (max-width: 480px) {
  .floating-contact-sp {
    bottom: 25px;
    right: 15px;
  }

  .floating-contact-link {
    width: 70px;
    height: 70px;
  }

  .sphere-core {
    width: 45px;
    height: 45px;
  }

  .rotating-text {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .floating-contact-sp {
    bottom: 20px;
    right: 12px;
  }

  .floating-contact-link {
    width: 65px;
    height: 65px;
  }

  .sphere-core {
    width: 40px;
    height: 40px;
  }

  .rotating-text {
    font-size: 8px;
  }
}
