#modal-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #000000;
  opacity: 0.8;
  cursor: pointer;
}
#modal {
	position: fixed;
	z-index: 9999;
	left: 50%;
	top:0;
}
[id^="modal_"]{
  display: none;
  position: relative;
  width: 1120px; /* モーダルの幅を指定 */
}


@media only screen and (max-width: 767px){
	#modal {
		top:0;
		left:0;
		margin-left:0!important;
	}
	[id^="modal_"]{
		width: 100%;
	}
}