/* =============================================================
   PROMISE — Loose Diamond Page
   loose.css  |  v2.0.0
   ※ style.css・lab-grown.css を先に読み込むこと
      page-hero / features / production / features-lead /
      production-lead / section-heading / reveal 等は
      style.css・lab-grown.css で定義済みのため省略
============================================================= */

.category-title { margin-top: 25px; }
.section-lead.loose-image { padding: 20px 22vw 20px 0; background: url(../image/loose/bg_text.webp) right top no-repeat; background-size: contain; }


/* ---- IGI 鑑定書 2カラム ---------------------------------- */
.loose-quality__certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 900px;
  margin: -50px auto 0;
  list-style: none;
}

.loose-cert {
  overflow: hidden;
  transition: border-color .3s;
}

.loose-cert img { width: 100%; display: block; }


/* ---- モーダル ---- */
.js-modal-open {
  cursor: zoom-in;
}

.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.25,.46,.45,.94);
}

.cert-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  cursor: pointer;
}

.cert-modal__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(.92);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}

.cert-modal.is-open .cert-modal__content {
  transform: scale(1);
}

.cert-modal__img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.cert-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}

.cert-modal__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}


.certificate { max-width: 700px; margin: -50px auto 0 auto!important; text-align: center; }
.certificate a { display: block; }
.certificate dt { margin-bottom: 10px; }
.certificate dt img { width: 100%; }
.certificate a dd { transition: opacity 0.3s ease; }
.certificate a:hover { opacity: .8; text-decoration: underline; }





/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .category-title { margin-top: 35px; }
  .loose-quality__certs { grid-template-columns: 1fr; gap: 24px; margin-top: 0; }
  .certificate { padding: 0 5vw; margin-top: 20px!important; }
  .section-lead.loose-image { margin: 0 4vw 10vw 4vw; padding: 0 1vw 48vw 1vw; background: url(../image/loose/bg_text_sp.webp) left bottom no-repeat; background-size: contain; }

}


