/* 小林大伸堂専用ポップアップモジュール - 既存スタイルを保持しクラス名のみユニーク化 */
.kaiunya-unique-popup-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  z-index: 9999;
  animation: kaiunya-unique-popup-slideInFromRight 0.5s ease-out;
}

.kaiunya-unique-popup-overlay * {
  box-sizing: border-box;
}

@keyframes kaiunya-unique-popup-slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.kaiunya-unique-popup-content {
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  background: #f9f9f9 url(/img/common/choukokushi.png) -5% 100% / 137px auto no-repeat;
}

.kaiunya-unique-popup-header {
  background: #6B301E;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kaiunya-unique-popup-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.kaiunya-unique-popup-close {
  position: absolute;
  top: 7px;
  right: 7px;
  background: none;
  border: none;
  font-size: 35px;
  cursor: pointer;
  color: white;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.kaiunya-unique-popup-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.kaiunya-unique-popup-body {
  padding: 20px;
  text-align: center;
}

.kaiunya-unique-popup-body p {
  margin: 8px 0;
  padding: 0 !important;
  line-height: 1.5;
  color: #555;
  font-size: 14px;
}

.kaiunya-unique-popup-footer {
  gap: 10px;
  padding: 0 20px 20px;
  text-align: center;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-direction: column;
}

.kaiunya-unique-popup-line-button {
  display: inline-block;
  min-width: 160px;
  width: 60%;
  background: #00B900;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 0;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0, 185, 0, 0.3);
}

.kaiunya-unique-popup-line-button:hover {
  opacity: 0.9;
  color: white;
  text-decoration: none;
}

.kaiunya-unique-popup-line-icon {
  max-width: 115px;
  max-height: 60px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
}

.kaiunya-unique-popup-close-btn {
  background: #ddd;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  transition: background-color 0.2s;
  min-height: 30px;
  min-width: 160px;
  width: 60%;
  color: #555;
}

.kaiunya-unique-popup-close-btn:hover {
  background: #ccc;
}

@media (max-width: 768px) {
  .kaiunya-unique-popup-overlay {
    bottom: 15px;
    right: 15px;
    left: 15px;
    width: auto;
  }

  .kaiunya-unique-popup-header {
    padding: 12px 15px;
  }

  .kaiunya-unique-popup-header h3 {
    font-size: 15px;
  }

  .kaiunya-unique-popup-body {
    padding: 15px;
  }

  .kaiunya-unique-popup-footer {
    padding: 0 15px 15px;
  }

  .kaiunya-unique-popup-body p {
    margin: 8px 0 12px !important;
  }

  .kaiunya-unique-popup-line-icon {
    max-width: 100px;
    max-height: 50px;
  }
}
