/* ポップアップタイマーバナー */
.popuptimer_banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.popuptimer_banner a {
  margin-top: 20px;
  background-color: #d30b2a;
  color: #fff;
}
.popuptimer_banner a:hover {
  background-color: #fff;
  color: #d30b2a;
}

.popuptimer_banner.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.popuptimer_banner.closing {
  opacity: 0;
  pointer-events: none;
}

.popuptimer_banner.closing:not(.active) {
  visibility: hidden;
}

.popup_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popuptimer_banner.active .popup_overlay {
  opacity: 1;
}

.popup_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  max-height: 550px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  overflow-y: auto;
  overflow-x: hidden;
  text-decoration: none;
}

.popuptimer_banner.active .popup_content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popuptimer_banner.closing .popup_content {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

.popup_close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.popup_close:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.popup_image {
  width: 100%;
  overflow: hidden;
}

.popup_image img {
  width: 100%;
  height: auto;
  display: block;
}

.popup_info {
  padding: 20px;
}

.popup_date {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.popup_title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
}

.popup_text {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* スクロールバーのスタイル（Webkit系ブラウザ） */
.popup_content::-webkit-scrollbar {
  width: 6px;
}

.popup_content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.popup_content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.popup_content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .popup_content {
    width: 95%;
    max-width: none;
    max-height: 400px;
  }

  .popup_info {
    padding: 15px;
  }

  .popup_title {
    font-size: 18px;
  }

  .popup_text {
    font-size: 14px;
  }

  .popup_close {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 8px;
    right: 8px;
  }
}

