@charset "UTF-8";

#wp-floating-banner,
#wp-floating-banner-reopen {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}

#wp-floating-banner {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,.5);
  padding: 0;
  transition: opacity .2s ease, transform .2s ease;
}
#wp-floating-banner.is-scrolling {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
#wp-floating-banner a.banner-link {
  display: block;
}
#wp-floating-banner .thumb img {
  display: block;
  width: 200px;
  height: auto;
}

#wp-floating-banner-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  cursor: pointer;
  line-height: 1;
  z-index: 10;

  font-size: 20px;
  font-weight: bold;
  text-align: center;
}
#wp-floating-banner-close::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
}

/* 再表示ボタン（閉じるボタンと同サイズ） */
#wp-floating-banner-reopen {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
#wp-floating-banner-reopen .reopen-icon {
  width: 10px;
  height: 10px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
}

@media (max-width: 480px) {
  #wp-floating-banner {
    right: 12px;
    bottom: 12px;
  }
  #wp-floating-banner .thumb img {
    width: 160px;
  }
}
