@charset "UTF-8";

@media screen and (max-width: 767px) {


.floating-banner {
  position: fixed;
  bottom: 100px;
  right: 5px;
  width: 140px;
  height: 140px;
  z-index: 14;
  /* 初期状態は非表示 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

/* 表示クラス */
.floating-banner.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 閉じるボタンのデザイン */
.close-btn {
  position: absolute;
  top: -20px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #333;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

/* アニメーションの定義 */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 画像に適用 */
.floating-img {
  width: 200px; /* サイズは任意 */
  animation: float 3s ease-in-out infinite;
}

.flt_bnr img {
width: 200px;
animation: float 3s ease-in-out infinite;
filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
transition: .3s;
}
.flt_bnr img:hover {
opacity: 0.7;
}

}


@media screen and (min-width: 768px) {
.floating-banner {
  position: fixed;
  top: 320px;
  right: 20px;
  width: 200px;
  height: 200px;
  z-index: 14;
  /* 初期状態は非表示 */
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

/* 表示クラス */
.floating-banner.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 閉じるボタンのデザイン */
.close-btn {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

/* アニメーションの定義 */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 画像に適用 */
.floating-img {
  width: 200px; /* サイズは任意 */
  animation: float 3s ease-in-out infinite;
}

.flt_bnr img {
width: 200px;
animation: float 3s ease-in-out infinite;
filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
transition: .3s;
}
.flt_bnr img:hover {
opacity: 0.7;
}


}



