/*
 * Modal uses the :target selector so when the hash (#) changes to match the
 * modal's id it will appear. This is to support non-js browsers
 */
div#modal:target,
div#modal:target + .bp__modal__bg {
    visibility: visible;
    opacity: 1;
}

div.bp__modal {
    font-family: "YakuHanJP-Regular","ヒラギノ角ゴ Pro",Hiragino Kaku Gothic Pro,"メイリオ",Meiryo,sans-serif;
}

.bp__modal__bg {
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.bp__modal {
    z-index: 100;
    width: 100%;
    text-align: center;
    opacity: 1;
    background-color: white;
    position: fixed;
    max-width: 1080px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}

@media (max-width: 1120px) {
    .bp__modal {
        margin-left: 0;
        margin-right: 20px;
        width: 95%;
    }
}

/*
 * Modal Header
 */
.bp__modal__header {
    display: -webkit-flex;
    display:         flex;
            flex-direction: row;
    height: 80px;
    color: white;
    background-color: #202020;

    -webkit-flex-direction: row;
    align-items: center;
    justify-content: center;
}

.bp__modal__header__text {
    font-size: 22px;
    position: relative;
    padding-bottom: 5px;
}

.bp__modal__header__text .sub-nyc {
    font-size: 10px;
    letter-spacing: 3px;
    display: block;
    text-align: right;
    line-height: 1;
}

/*
 * Modal Body
 */
.bp__modal__body {
    padding: 30px 10% 50px 10%;
}

.bp__modal__body__title {
    font-size: 41px;
    color: #2f353d;
}

.bp__modal__body__text {
    padding-top: 20px;
    color: #767a82;
}

.bp__modal__buttons {
    display: none;
}

.no-js .bp__modal__buttons {
    display: -webkit-flex;
    display:         flex;
            flex-direction: row-reverse;;
    padding-top: 30px;

    -webkit-flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
}



.bp__modal__button:not(:first-child) {
    margin-right: 10px;
}

.bp__modal__button {
    width: 180px;
    line-height: 50px;
}


a.bp__button {
    text-decoration: none;
}

.bp__button {
    font-size: 14px;
    display: block;
    height: 50px;
    padding: 10px 0;
    text-align: center;
}

.bp__button--primary {
    padding: 12px 0;
    color: #ffffff;
    border: none;
    outline: none;
    background: #5484f8;
}

.bp__button--primary:hover {
    background: #4572ed;
    color: white;
}


@media (max-width: 600px) {
    .no-js .bp__modal__buttons {
        display: block;
        width: 100%;
        margin: 0;
    }

    .bp__modal__buttons a.bp__modal__button {
        width: 100%;
        margin-left: 0;
    }

    .bp__modal__button--cancel {
        margin-top: 10px;
    }
}
