/*----------------------------*/
/* 右下追従バナー */
/*----------------------------*/
.pop-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 300px;
  transform: translateY(calc(100% + 80px));
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out, visibility 0.35s;
}

.pop-banner.is-show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pop-banner__link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s;
}

.pop-banner__link:hover {
  opacity: 0.85;
}

.pop-banner__link img {
  display: block;
  width: 100%;
  height: auto;
}

.pop-banner__close {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pop-banner__close:focus-visible {
  outline: 3px solid #6a8a2e;
  outline-offset: 2px;
}

/* ハンバーガーメニュー展開中はメニューの下に回す（ヘッダーの z-index が 1〜2 のため） */
body:has(.openNav) .pop-banner {
  z-index: 0;
}

@media screen and (max-width: 640px) {
  .pop-banner {
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pop-banner {
    transition: none;
  }
}
