/* ==========================================================================
   Remodal's necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal-is-locked {
  overflow: hidden;

  touch-action: none;
}

/* Anti FOUC */

.remodal,
[data-remodal-id] {
  display: none;
}

/* Necessary styles of the overlay */

.remodal-overlay {
  position: fixed;
  z-index: 9999;
  top: -5000px;
  right: -5000px;
  bottom: -5000px;
  left: -5000px;

  display: none;
}

/* Necessary styles of the wrapper */

.remodal-wrapper {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: none;
  overflow: auto;

  text-align: center;

  -webkit-overflow-scrolling: touch;
}

.remodal-wrapper:after {
  display: inline-block;

  height: 100%;
  margin-left: -0.05em;

  content: "";
}

/* Fix iPad, iPhone glitches */

.remodal-overlay,
.remodal-wrapper {
  backface-visibility: hidden;
}

/* Necessary styles of the modal dialog */

.remodal {
  position: relative;

  outline: none;

  text-size-adjust: 100%;
}

.remodal-is-initialized {
  /* Disable Anti-FOUC */
  display: inline-block;
}



  /* 追加 */

.remodal h2 {
    font-size: 2rem;
    color: #0e2788;
    width: 100%;
    max-width: 1200px;
    border-bottom: 2px solid #0e2788;
    text-align: left;
    margin-bottom: 0.5em;
}

.remodal {
  max-height: 80vh; /* 画面の80%まで */
  overflow-y: auto; /* 縦方向にスクロール可能に */
  padding: 2rem;
  box-sizing: border-box;
}


/*モーダル内スライドショー*/
.slider-wrapper {
  margin-bottom: 1em;
}

.slider-main img{
  max-width: 100%;
  height: auto;
}

.slider-thumb img {
  width: 20em;
  height: 5em;
  object-fit: cover;
}


.slider-thumb {
  margin-top: 0.5em;
}

.slider-thumb .slick-slide {
  padding: 0 5px;
  cursor: pointer;
}

.thumb-img {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.slick-current .thumb-img {
  opacity: 1;
}