/* Admission ページ用モーダル */
.admission-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.admission-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.admission-modal-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: 1rem;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.admission-modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 4;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.admission-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.admission-modal-link,
.admission-modal-image-wrap {
  display: block;
  max-width: 100%;
  max-height: 90vh;
}

.admission-modal-link img,
.admission-modal-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: top;
}
