/* Modal Style */
.modal-content {
  max-width: 1100px;
  margin: 0 auto;
  /* padding: 66px; */
  padding: 66px 66px 78px;

  border-radius: 10px;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.25);
  background-color: #fff;
  display: none;
  position: fixed;
  /* top: 50%; */
  top: calc(50% + 1.61vw);

  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1001;
  /* Firefox向けスクロールバー */
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 66, 123, 0.5) transparent;
  /* トランジション効果 */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Chrome, Safari, Edge向けスクロールバー */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(40, 66, 123, 0.5);
  border-radius: 10px;
  border: 2px solid #fff;
}

.modal-content.active {
  display: block;
  opacity: 1;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: block;
  opacity: 1;
}

.modal-close {
  padding: 0;
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1002;
}

.modal-close:hover {
  /* transform: rotate(90deg); */
  opacity: 0.8;
}

.modal-close img {
  max-width: 100%;
  height: auto;
}

/* コンテンツ項目のスタイル - クリック可能なことを示す */
.sec06__content-item {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sec06__content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
  .modal-content {
    padding: 9.6vw 5.33vw 9.6vw; /* 36px 20px 20px / 375px */
    width: calc(100% - var(--sp-4));
    max-height: 80vh;
    /* top: 55%; */
    top: calc(50% + 40px);
  }
  .modal-close {
    width: 7vw; /* 20px / 375px */
    height: 7vw; /* 20px / 375px */
    top: 2.67vw; /* 10px / 375px */
    right: 2.67vw; /* 10px / 375px */
  }
}
