/* 背景スクロール抑制 */
body.alnetz-modal-lock {
  overflow: hidden;
  touch-action: none;
}

/* 背景オーバーレイ（少し落ち着いた濃度） */
.alnetz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 99999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.alnetz-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s ease;
}

/* モーダル全体（スクロール領域） */
.alnetz-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.alnetz-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s ease;
}

/* =========================
   Panel layout: header/body/footer (堅め)
========================= */
.alnetz-modal__panel {
  background: #fff;
  width: min(100vw, calc(100% - 48px));
  margin: 64px auto;

  /* 角丸と影を控えめに（大手向け） */
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  position: relative;

  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 128px);
  overflow: hidden;

  /* ふわっと（控えめ） */
  transform: translateY(8px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  will-change: transform, opacity;

  padding: 0;
}

.alnetz-modal.is-open .alnetz-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

/* Header（固定） */
.alnetz-modal__header {
  height: 120px;
  padding: 30px 40px 18px;
  position: relative;
  flex: 0 0 auto;
  border-bottom: 1px solid #e5e7eb;
}

/* Closeボタン（控えめ） */
.alnetz-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 96px;
  font-weight: 100;
  border: none;
  background: transparent;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #111827;
}

.alnetz-modal__close:hover {
  color: #111827;
}

/* タイトル/リード（堅め：太字控えめ・字間少し） */
.alnetz-modal__title {
  margin: 0 52px 10px 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #111827;
}

.alnetz-modal__lead {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #374151;
}

/* Body（ここだけスクロール） */
.alnetz-modal__body {
  padding: 0px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.9;
  color: #111827;
  display: flex;
  gap: 0px;
  height: 557px;
  max-height: 80vh;
  justify-content: space-between;
}

/* Footer（固定：淡いグレー背景＋線） */
.alnetz-modal__footer {
  height: 80px;
  padding: 16px 40px;
  flex: 0 0 auto;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.alnetz-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid #e5e5e5;
  justify-content: center;
}

.alnetz-modal__jump {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: all .2s ease;
}

.alnetz-modal__jump:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.alnetz-modal__jump.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
  pointer-events: none;
}


/* 本文内（画像/リスト） */
.alnetz-modal__media {
  margin: 0 0 18px;
  min-width: 0;

}

.alnetz-modal__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  /* 角を控えめ */
}

/* テキスト */
.alnetz-modal-text__wrap {
  border-left: 1px solid #e5e7eb;
  padding: 0 20px 0 30px;
  height: 100%;
  margin: 0;
  flex: 0 0 40%;
  min-width: 0;
  overflow-y: auto;
}

.alnetz-modal__text {
  margin: 12px 0 0;
}

/* “strong”を小見出しとして（堅め：派手にしない） */
.alnetz-modal__text strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

/* リスト（資料っぽく整える） */
.alnetz-modal__list {
  margin: 14px 0 0;
  padding: 0px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.alnetz-modal__list li {
  color: #111827;
  list-style: none;
  border: 1px solid #ddd;
  padding: 0 4px;
  margin: 0 4px 4px 0 !important;
  display: flex;
  justify-content: center;
  line-height: 1.4;
  font-size: 14px;
}

/* フッターボタン（丸くしない・モノトーン） */
.alnetz-modal__navbtn {
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #111827;
  transition: background .15s ease, border-color .15s ease;
}

.alnetz-modal__navbtn:hover {
  background: #f3f4f6;
  border-color: #cbd5e1;
}

.alnetz-modal__navbtn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* モバイル */
@media (max-width: 767px) {
  .alnetz-modal__panel {
    margin: 22px auto;
    width: min(920px, calc(100% - 24px));
    max-height: calc(100vh - 44px);
    border-radius: 6px;
  }

  .alnetz-modal__header {
    padding: 20px 18px 12px;
  }

  .alnetz-modal__body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    height: 80vh;
    justify-content: flex-start;
  }

  .alnetz-modal-text__wrap {
    flex: auto;
    background: #f9fafb;
  }

  .alnetz-modal__footer {
    padding: 12px 18px;
  }

  .alnetz-modal__title {
    font-size: 20px;
  }
}