.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal2{
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal2.mail{
	display:block;
	display: none;
}

.modal2.pt2{
  display: -ms-flexbox !important;
  display: -webkit-box !important;
  display: flex !important;
}

.modal2.pt2.regist{
	display: block !important;
	background-color:rgba(0,0,0,0.05);
	pointer-events:none;
}

.modal2.pt2.regist .modal_in{
	position:relative;
	top:50%;
	margin:-14em auto 0 auto;
	pointer-events:auto;
}

.modal_header .btn_close {
    border-radius: 50%;
    color: #2c2c2c;
    display: block;
    font-size: 1.28em;
    height: 0.95em;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0.48em;
    top: 0.48em;
    width: 0.95em;
}

.modal-content {
  background-color: #fefefe;
  margin: 115px auto 0; /* 上部に100pxの余白を持たせる */
  padding: 20px;
  border: 1px solid #888;
  width: 400px;
  max-height: 350px; /* 最大の高さを設定 */
  overflow-y: scroll;
}

.modal-content.pt2{
	background-color: #fff;
	border-radius: 4px;
	-webkit-box-shadow: 0 0 8px rgba(0,0,0,.25), 0 8px 12px rgba(0,0,0,.1);
	box-shadow: 0 0 8px rgba(0,0,0,.25), 0 8px 12px rgba(0,0,0,.1);
	max-height: calc(100% - 60px);
	max-width: 30em;
	overflow-x: hidden;
	overflow-y: auto;
	margin:0;
	padding:0;
	border:none;
	width: 100%;
}

.modalOffer {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modalOffer-content {
  background-color: #fefefe;
  margin: 115px auto 0; /* 上部に100pxの余白を持たせる */
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  height: 180px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.close2 {
  color: #aaa;
  font-size: 14px;
}

.close2:hover,
.close2:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.modal h2{
	background-color:#dcdcdc;
	top:10px;
}