@media (max-width: 767px) {

.modal-content {
  margin: auto;
  position: fixed ;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none ;
  overflow-y: scroll;
  z-index: 99991 ;
}

.madalWhile {
  margin: auto;
  position: fixed ;
  top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  z-index: 99998 ;
  width: 100%;
  height: 120%;
}

.madalWrap  {
  width: 80% ;
  /*height: 400px;*/
  margin: 0 auto;
  padding-bottom: 50px;
  position: absolute ;
  top: 50px !important;
  left: 0;
  right: 0;
  z-index: 99999 ;
}

#modalInner, .modalInner {
  padding: 30px;
  background: #fff ;
}

#modal-overlay {
  z-index: 1 ;
  display: none ;
  position: fixed ;
  top: 0 ;
  left: 0 ;
  width: 100% ;
  height: 120% ;
  background-color: rgba( 0,0,0, 0.75 ) ;
  z-index: 99990 ;
}

.button-link:hover {
  cursor: pointer ;
}

#modalInner dl:nth-child(1) dt, .modalInner dl:nth-child(1) dt {
  font-size: 140%;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
}

#modalInner dl:nth-child(1) dd, .modalInner dl:nth-child(1) dd {
  margin-top: 8px;
  font-size: 22px;
  font-size: 0.78571rem;
  font-weight: bold;
  line-height: 1;
  text-transform: none;
  text-align: center;
}

#modalInner dl:nth-child(2), .modalInner dl:nth-child(2) {
  padding: 25px 0 0 0;
}

#modalInner dl:nth-child(2) dt, .modalInner dl:nth-child(2) dt {
  font-size: 14px;
  margin: 0 0 10px 0;
  font-weight: bold;
  line-height: 1;
  text-transform: none;
  text-align: center;
}

#modalInner dl:nth-child(2) dd, .modalInner dl:nth-child(2) dd {
  line-height: 2;
  font-size: 13px;
}

#modalInner ul, .modalInner ul {
  padding: 25px 0 0 0;
  width: 100%;
}

#modalInner ul li, .modalInner ul li {
  margin: 0 !important;
  width: 100% !important;
}

#modalInner ul li a, .modalInner ul li a {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  margin: 0 0 10px 0 !important;
  background: #323232 url(/assets/images/common/ico_blank2.png) no-repeat 94% center;
  background-size: 12px 12px;
}

#modalInner img, .modalInner img {
	width: 100%;
	margin: 0 auto 10px auto;
	display: block;
}
#modalInner h3, .modalInner h3 {
	font-size: 120%;
	font-weight: bold;
	margin: 0 0 10px 0;
}
#modalInner dl, .modalInner dl {
	font-size: 100%;
}
#modalInner dl dt, .modalInner dl dt {
	font-weight: bold;
}

.modal-content p.btn {
	width: 25px;
	height: 25px;
	position: absolute;
	top: 5px;
	right: 5px;
}

.modal-content p.btn img {
  width: 100%;
}

}

@media (min-width: 768px) {

.modal-content {
  margin: auto;
  position: fixed ;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none ;
  overflow-y: scroll;
  z-index: 99991 ;
}

.madalWhile {
  margin: auto;
  position: fixed ;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998 ;
  width: 100%;
  height: 100%;
}

.madalWrap {
  width: 700px;
  min-height: 540px;
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 99999 ;
  margin-bottom: 100px;
}

#modalInner, .modalInner {
  width: 700px;
  min-height: 540px;
  background: #fff;
  position: relative;
  padding-bottom: 40px;
}

#modal-overlay {
  z-index: 1 ;
  display: none ;
  position: fixed ;
  top: 0 ;
  left: 0 ;
  width: 100% ;
  height: 120% ;
  background-color: rgba( 0,0,0, 0.75 ) ;
  z-index: 99990 ;
}

.button-link:hover {
  cursor: pointer ;
}

#modalInner dl:nth-child(1), .modalInner dl:nth-child(1) {
  padding: 0 0 0 42px;
}

#modalInner dl:nth-child(1) dt, .modalInner dl:nth-child(1) dt {
  font-size: 50px;
  font-size: 3.57143rem;
  font-weight: bold;
  line-height: 1;
}

#modalInner dl:nth-child(1) dd, .modalInner dl:nth-child(1) dd {
  margin-top: 14px;
  font-size: 18px;
  font-size: 1.28571rem;
  font-weight: bold;
  line-height: 1;
  text-transform: none;
}

#modalInner dl:nth-child(2), .modalInner dl:nth-child(2) {
  padding: 50px 0 0 42px;
  width: 600px;
}

#modalInner dl:nth-child(2) dt, .modalInner dl:nth-child(2) dt {
  font-size: 18px;
  font-size: 1.28571rem;
  font-weight: bold;
  line-height: 1;
  text-transform: none;
  margin: 0 0 20px 0;
}

#modalInner dl:nth-child(2) dd, .modalInner dl:nth-child(2) dd {
  font-size: 14px;
  font-size: 1.1rem;
  line-height: 2;
}

#modalInner ul, .modalInner ul {
  padding: 40px 0 0 42px;
  width: 300px;
}

#modalInner ul li, .modalInner ul li {
  margin: 0 !important;
}

#modalInner ul li a, .modalInner ul li a {
  display: block;
  width: 400px;
  padding: 12px 0;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  margin: 0 0 10px 0 !important;
  background: #323232 url(/assets/images/common/ico_blank2.png) no-repeat 90% center;
  background-size: 15px 15px;
}

#modalInner img, .modalInner img {
	width: 100%;
	margin: 0 auto;
	display: block;
	padding: 45px 45px 20px 45px;
}
#modalInner h3, .modalInner h3 {
	font-size: 120%;
	font-weight: bold;
	margin: 0 0 10px 0;
	padding: 0 40px;
}
#modalInner dl, .modalInner dl {
	font-size: 100%;
	padding: 0 40px;
}
#modalInner dl dt, .modalInner dl dt {
	font-weight: bold;
}

.modal-content p.btn {
	width: 35px;
	height: 35px;
	position: absolute;
	top: 10px;
	right: 10px;
}

.modal-content p.btn img {
  width: 100%;
}

}
