#update-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 9999 !important; /* ← 上書き防止 */
}

.popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 450px;
  max-width: 90%;
  display: none;
  z-index: 100001 !important;
}

.popup-content {
  text-align: center;
}

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

#update-popup,
#detail-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  font-size: 14px;
  padding: 20px;
  border-radius: 10px;
  width: 600px;
  max-width: 90%;
  display: none;
  z-index: 9999 !important; /* オーバーレイより高くする */
}

/* ポップアップ全体 */
#update-popup {
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
}

/* 画像リンク部分 */
#detail-link {
  display: block;
}

#detail-link picture,
#detail-link img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0.1px solid rgba(0, 0, 0, 0.08); /* さらに薄いグレー */
  box-sizing: border-box; /* 枠線込みでサイズ調整 */
}

/* コンテンツ全体 */
.update-popup-content {
  padding: 15px;
  text-align: center;
}

/* 見出し */
.update-popup-title {
  font-size: 1em;
  margin-top: 10px;
  text-align: left;
}

/* 箇条書き */
.update-popup-list {
  list-style: none;
  padding-left: 5px;
  margin: 0;
  text-align: left;
}

.update-popup-list li {
  margin: 4px 0;
}

.update-popup-list li:last-child {
  margin-bottom: 20px;
}

/* 詳細はこちらボタン */
#information_detail-btn {
  display: inline-block;
  text-decoration: none;
  background-color: #ff4d4d;
  color: white !important;
  border: 2px solid #ff4d4d;
  padding: 5px 20px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin-top: 10px;
}

/* チェックボックス部分 */
.update-popup-checkbox {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}

.update-popup-checkbox label {
  font-size: 13px;
  cursor: pointer;
}

.update-popup-checkbox input[type="checkbox"] {
  margin-right: 5px;
}

@media screen and (max-width: 768px) {
  #update-popup, #detail-popup {
      position: fixed;
      top: 50%;
      left: 48%;
      font-size: 10px;
      background: white;
      width: 330px;
      max-width: 100%;
  }

  .update-popup-checkbox label {
    font-size: 10px;
  }
}
