@charset "UTF-8";

/* モーダル全体の背景（黒半透明） */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 黒の50%半透明 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* 一番手前に表示 */
  
  /* 初期状態は非表示（クリックもできないようにする） */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease; /* ふわっと表示させる */
}

/* ★JSでこのクラスがついたら表示する */
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto; /* クリック可能にする */
}

/* モーダルのコンテンツ枠 */
.modal-content-price {
  position: relative;
  overflow: visible; /* ボタンのはみ出しを許可 */
  width: 90%;
  max-width: 400px;
  background-color: #ffffff;
  padding: 16px;
  border-radius: 8px;
}

/* 開くボタン */
.modal-open-area {
  cursor: pointer;
}

/* 閉じるボタン */
.modal-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #206289;
  background-color: #ffffff;
  color: #206289;
  padding: 0;
  /* padding-bottom: 2px; */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}