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

.apply-modal--open {
    display: block;
}

.apply-modal__content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--White);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin: 0 auto;
    border-radius: 10px;
    max-width: 640px;
    width: calc(100% - (16px * 2));
}

.apply-modal__inner {
    position: relative;
}

.apply-modal__close {
    position: absolute;
    right: -28px;
    top: -28px;
}

.apply-modal__header {
    color: var(--Text_primary);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 16px;
}

@media all and (max-width:640px) {
    .apply-modal__header {
        font-size: 20px;
    }
}

.apply-modal__header__anchor-text {
    /* TODO: asadigi2018smp.min.cssで上書きされてしまうため、詳細度を上げている */
    color: var(--Text_link) !important;
}

.apply-modal__header__anchor-text:hover {
    text-decoration: none;
}

.apply-modal__body {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: center;
}

.apply-modal__footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

@media all and (max-width:820px) {
    .apply-modal__footer {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .apply-modal__footer__list {
        width: 100%;
    }
}

.apply-modal__footer__btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 160%;
    display: block;
    text-align: center;
    height: 38px;
    width: 100%;
    transition: .3s;
}


.apply-modal__footer__btn--primary {
    background: var(--Corp_color);
    color: var(--White);
}

.apply-modal__footer__btn--outline {
    background: var(--White);
    border: 1px solid var(--Corp_color);
    /* TODO: asadigi2018smp.min.cssで上書きされてしまうため、詳細度を上げている */
    color: var(--Corp_color) !important;
    font-weight: 700;
}

.apply-modal__footer__btn--primary:hover,
.apply-modal__footer__btn--outline:hover {
    color: #fff;
    text-decoration: none;
    opacity: .7;
}

.apply-modal__footer__btn--cancel {
    background: #F2F2F2;
    border: 1px solid var(--Gray_300);
}


@media all and (max-width:820px) {
    .apply-modal__footer__btn {
        width: 100%;
    }
}

.apply-modal__list {
    display: flex;
    gap: 16px;
}

@media all and (max-width:640px) {
    .apply-modal__list {
        flex-direction: column;
    }
}

.apply-modal__list__item {
    border: 1px solid var(--Corp_color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: calc(50% - 8px);
    padding: 16px;
}

@media all and (max-width:640px) {
    .apply-modal__list__item {
        width: 100%;
    }
}

.apply-modal__list__item p {
    height: 3em;
}

.apply-modal__list__item h6,
.apply-modal__list__item h3 {
    background-color: #fff;
    color: var(--Corp_color);
    font-weight: bold;
    display: inline-block;
    padding: 8px;
    margin-top: -36px;
}

form {
    width: 100%;
}