.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(24, 42, 82, .80);
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
}
.modal-container {
  display: table;
  width: 100%;
  height: 100%;
}
.modal-inner {
  display: table-cell;
  padding: 2.7em 2em; /* モーダル外側の余白 */
  box-sizing: border-box;
  vertical-align: middle;
}
.modal-main {
    width: 100%;
  margin: 0 auto;
  padding: 0 15px 20px; /* モーダル内側の余白 */
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #fff;
  position: relative;
}

#modal-close{
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: -20px;
    right: -20px;
    border-radius: 20px;
    background: #181C61;
    color: #fff;
    font-size: 24px; font-size: 2.4rem;
    text-align: center;
    cursor: pointer;
}

#modal-close .material-icons{
    line-height: 40px;
}

.modal-ttl{
    margin: 0 -15px 20px;
    padding: 0 15px 10px;
    border-bottom: 1px solid #d1d1d1;
    font-size: 20px; font-size: 2.0rem;
    font-weight: normal;
}

@media only screen and (min-width: 768px) {

    .modal-main{
        max-width: 660px;
        padding: 0 30px 20px; /* モーダル内側の余白 */
    }

    .modal-ttl{
        margin: 0 -30px 20px;
        padding: 0 30px 15px;
    }

}