@charset "UTF-8";

/* フローティングバナー */
.floating-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 220px;
  height: 220px;
  z-index: 99;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s ease;
}

/* 表示状態 */
.floating-banner.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-banner a {
  display: block;
  width: 100%;
  height: 100%;
}

.floating-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 閉じるボタン */
.floating-banner-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;

  padding: 0;
  border: none;
  border-radius: 50%;

  background: #000066;
  color: #fff;

  font-size: 20px;
  line-height: 28px;
  text-align: center;

  cursor: pointer;
  z-index: 100;

  transition: opacity 0.3s ease;
}

.floating-banner-close:hover {
  opacity: 0.7;
}

/* スマホ */
@media screen and (max-width: 767px) {
  .floating-banner {
    right: 20px;
    bottom: 20px;
    width: 150px;
    height: 150px;
  }
}
