@charset "utf-8";

/* =============================
  bnr-widget（スクロール連動バナー）
============================= */
.bnr-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  transition: bottom 0.3s ease;
}

.bnr-widget__item {
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 6px 6px 6px 0px rgba(0, 0, 0, 0.45);
}

.bnr-widget__item.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.bnr-widget__link {
  display: block;
  overflow: hidden;
}

.bnr-widget__img {
  display: block;
  width: 400px;
  height: auto;
}

.bnr-widget__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50% !important;
  border: 1px solid #ccc !important;
  background: #fff !important;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnr-widget__pagetop {
  position: static;
  bottom: 20px;
right: 20px;
z-index: 10000;
}
.bnr-widget__pagetop a {
background: #b4a165;
border-radius: 10px;
color: #fff;
display: block;
height: 40px;
text-align: center;
text-decoration: none;
width: 40px;
}

.bnr-widget__pagetop a img{
width:100%;
}

/* SP */
@media (max-width: 768px) {
  .bnr-widget {
    /* right: 8px; */
    bottom: 16px;
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .bnr-widget__img {
    width: 90vw;
    max-width: 360px;
  }
  .bnr-widget__pagetop {
    padding-bottom: 10px;
}
}