
/* =========================
   modal panel (UI only)
========================= */

/* --- hidden by default --- */
.poyon-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;              /* ← 基本は非表示 */
  align-items: center;
  justify-content: center;

  padding: 24px;
}

/* --- open state --- */
.poyon-modal.is-open {
  display: flex;
}

/* --- dark background --- */
.poyon-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 28, 0.55);
  backdrop-filter: blur(6px);
}


.poyon-modal__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 86vh;

  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(40,40,60,0.14);

  overflow-y: auto;

  box-shadow: 0 30px 90px rgba(10, 15, 30, 0.35);

  /* アニメーション */
  transform: translateY(20px);
  opacity: 0;
  transition: all 180ms ease;
}


/* open時にふわっと出る */
.poyon-modal.is-open .poyon-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

/* close button */
.poyon-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;

  width: 56px;
  height: 56px;
  border-radius: 999px;

  border: 1px solid rgba(40, 40, 60, 0.10);
  background: rgba(140, 140, 160, 0.10);
  color: rgba(0,0,0,0.55);

  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;

  cursor: pointer;
}

.poyon-modal__close:hover {
  background: rgba(160, 140, 255, 0.18);
  border-color: rgba(120, 90, 255, 0.22);
  color: rgba(50, 35, 170, 0.85);
}

/* body area */
.poyon-modal__body {
  padding: 0 64px 18px;
}

/* title */
.poyon-modal__title {
  margin: 0 0 28px;
  font-size: 34px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* section */
.poyon-modal__section {
  padding: 10px 0;
}

.poyon-modal__heading {
  margin: 18px 0 14px;
  font-size: 18px;
  letter-spacing: 0.02em;
}

/* paragraph text */
.poyon-modal__text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 2.0;
  color: rgba(0,0,0,0.72);
}

.poyon-modal__text__strong {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 2.0;
  color: rgba(0,0,0,0.72);
  font-weight: 700;
}

/* divider line */
.poyon-modal__divider {
  border: none;
  border-top: 1px solid rgba(40, 40, 60, 0.10);
  margin: 28px 0;
}

/* list */
.poyon-modal__list {
  margin: 16px 0 18px 1.3em;
  padding: 0;
  font-size: 15px;
  line-height: 2.1;
  color: rgba(0,0,0,0.78);
}

.poyon-modal__list li {
  margin: 6px 0;
}

/* responsive */
@media (max-width: 560px) {
  .poyon-modal__panel {
    padding: 24px 0;
  }

  .poyon-modal__body {
    padding: 0 22px 14px;
  }

  .poyon-modal__title {
    font-size: 26px;
    margin-bottom: 22px;
  }

  .poyon-modal__close {
    width: 48px;
    height: 48px;
    font-size: 24px;
    top: 14px;
    right: 14px;
  }
}

/* 疑似要素に pointer-events を持たせる。ブラウザ差や重なり事故を避ける */
.poyon-modal::before {
  pointer-events: auto;
}

.poyon-modal__panel {
  pointer-events: auto;
}


/* bodyスクロールロック */
body.is-modal-open {
  overflow: hidden;
}
