/* 共通モーダル背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  overflow-y: auto;
}

/* コンテンツ全体 */
.custom-modal {
  background: #fff;
  border-radius: 20px;
    margin: 100px auto 3% auto; 
  max-width: 1200px;
  width: 90%;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

/* ヘッダー */
.modal-header {
  background: #da699c;
  color: #fff;
  padding: 1rem;
  position: relative;
  text-align: center;
}
.modal-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: bold;
}
.modal-header .close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

/* 本文 */
.modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.3rem;
}

/* 左の画像枠 */
.modal-image {
  flex: 1 1 40%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.modal-image img {
  width: 90%;
  border-radius: 12px;
  object-fit: cover;
}

/* 右の情報欄 */
.modal-info {
  flex: 1 1 40%;
  font-size: 2.rem;
  line-height: 1.8;
}
.modal-info p {
  margin: 0.5rem 0;
}
.modal-info strong {
  display: inline-block;
  min-width: 6em;
  color: #da699c;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* スマホ対応 */
@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-image, .modal-info {
    flex: 1 1 100%;
  }
}