.ms-popup-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* バナーが表示中の場合の追加スタイル */
.ms-popup-banner.displaying {
  z-index: 10001;
}

.ms-popup-banner-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.ms-popup-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1;
}

.ms-popup-banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ms-popup-banner-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

.ms-popup-banner-hide-button {
  padding: 10px;
  text-align: center;
  background-color: #f5f5f5;
  color: #666;
  cursor: pointer;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.ms-popup-banner-hide-button:hover {
  background-color: #ebebeb;
}

.ms-popup-banner-link {
  display: block;
  cursor: pointer;
}

.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* 複数バナー対応のため、popup-bannerクラスのz-indexも調整 */
.popup-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-banner.displaying {
  z-index: 10001;
}

.popup-content {
  position: relative;
  max-width: 600px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.popup-image {
  width: 100%;
  height: auto;
  display: block;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

/* 次回以降表示しないチェックボックスのスタイル */
.popup-hide-future-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.popup-hide-future-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  color: #333;
}

.popup-hide-future-checkbox {
  margin-right: 8px;
  cursor: pointer;
}
