@charset "utf-8";
/* CSS Document */

/* 浮遊申し込みボタン */
.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: 110px;  /* 90px → 110px に拡大 */
  height: 110px; /* 90px → 110px に拡大 */

  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 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(30, 58, 138, 0.3), /* 青系の影に変更 */
    0 4px 10px rgba(30, 58, 138, 0.2);

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-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(30, 58, 138, 0.4), /* 青系の影に変更 */
    0 6px 15px rgba(30, 58, 138, 0.3);
}

/* フォーカス */
.floating-btn:focus {
  outline: none !important;
  border: none !important;
  box-shadow:
    0 8px 20px rgba(30, 58, 138, 0.3),
    0 4px 10px rgba(30, 58, 138, 0.2),
    0 0 0 3px rgba(96, 165, 250, 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: 1.0rem;  /* 0.9rem → 1.0rem に拡大 */
  line-height: 1.2;
  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 #60a5fa; /* 青系の枠に変更 */
  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: 105px; height: 105px; } /* サイズ調整 */
  .btn-text { font-size: 0.95rem; } /* フォントサイズ調整 */
}

@media (max-width: 768px) {
  .floating-cta { bottom: 20px; right: 20px; }
  .floating-btn { width: 100px; height: 100px; } /* サイズ調整 */
  .btn-text { font-size: 0.9rem; } /* フォントサイズ調整 */
}

@media (max-width: 480px) {
  .floating-cta { bottom: 15px; right: 15px; }
  .floating-btn { width: 95px; height: 95px; } /* サイズ調整 */
  .btn-text { font-size: 0.85rem; } /* フォントサイズ調整 */
}

/* 動きを少なくしたい環境 */
@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; }
}