/* ===== Notice Modal (safe) ===== */
.hx-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
}
.hx-modal-overlay.is-open{ display: flex; }

.hx-modal{
  width: min(560px, 92vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.hx-modal-overlay.is-open .hx-modal{
  transform: translateY(0);
  opacity: 1;
}

.hx-modal-head{
  padding: 14px 18px;
  background: #f6f6f6;
  border-bottom: 1px solid #e9e9e9;
  font-weight: 700;
  font-size: 18px;
}

.hx-modal-body{ padding: 16px 18px 12px; }
.hx-modal-thumb{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #f2f2f2;
}
.hx-modal-period{
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}
.hx-modal-actions{
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 16px;
}
.hx-modal-close{
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  background: #222;
  color: #fff;
  font-weight: 700;
}

/* スクロール停止は「モーダルが開いている間だけ」 */
body.hx-modal-lock{
  overflow: hidden;
}
