@charset "UTF-8";

/* 背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);

  justify-content: center;
  align-items: center;
}

/* 開いた状態 */
.modal.show {
  display: flex;
}

/* モーダル本体 */
.modal-content {
  position: relative;
  width: 80%;
  max-width: 700px;
  height: 70vh;           /* 高さを固定 */
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-sizing: border-box;

  /* スクロール */
  overflow-y: auto;

  /* フェードイン */
  animation: fadeIn 0.4s ease;
}

/* 閉じるボタン */
.close-btn {
  position: sticky;
  top: 0;
  float: right;
  border: none;
  background: #444;
  color: white;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
}

/* スクロールバーの見た目 */
.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 5px;
}

.modal-content::-webkit-scrollbar-track {
  background: #eee;
}

/* フェードイン */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}