.modal-sp.eump-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-sp .eump-modal-content {
    width: 92%;
    margin: 20px auto;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    animation: modalSlideIn 0.4s ease forwards;
    overflow-y: auto;
}

.modal-sp .eump-modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    background: #2082D7;
    border-radius: 8px 8px 0 0;
}

.modal-sp .eump-modal-header h3 {
    font-size: 18px;
    margin: 0;
    color: #ffffff;
    font-weight: bold;
    text-align: left;
}

.modal-sp .eump-modal-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
}

.modal-sp .eump-modal-body {
    padding: 15px;
    overflow-y: auto;
}

.modal-sp .eump-job-info,
.modal-sp .eump-profile-info {
    margin-bottom: 20px;
}

.modal-sp h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px;
    padding-left: 8px;
    border-left: 4px solid #e60012;
}

.modal-sp dl {
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-sp dt {
    font-weight: bold;
    margin: 0;
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    color: #666;
}

.modal-sp dd {
    margin: 0;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.modal-sp dd:last-child {
    border-bottom: none;
}

.modal-sp .eump-application-message textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    min-height: 60px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-sp .eump-application-message textarea:focus {
    border-color: #e60012;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.modal-sp .eump-consent-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.modal-sp .eump-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.modal-sp .eump-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    appearance: auto !important;
}

.modal-sp .eump-modal-footer {
    position: sticky;
    bottom: 0;
    background: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.modal-sp .eump-button {
    width: 100%;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-sp .eump-button-submit {
    background: #e60012;
    color: #fff;
    order: -1;
}

.modal-sp .eump-button-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-sp .eump-button-cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.modal-sp .eump-policy-link {
    color: #e60012;
    text-decoration: underline;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SP版のトースト通知のスタイル */
@media screen and (max-width: 768px) {
    .eump-toast {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        padding: 12px 16px;
        font-size: 13px;
        transform: translateY(120%);
        margin: 0;
        z-index: 10001;
    }

    .eump-toast.show {
        transform: translateY(0);
    }

    .eump-toast .toast-icon {
        font-size: 16px;
    }

    .eump-toast .toast-close {
        padding: 2px;
        font-size: 16px;
    }

    /* トーストメッセージが長い場合の省略表示 */
    .eump-toast .toast-message {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 10px;
    }
}

/* 完了モーダルのスタイル */
.eump-completion-message {
    text-align: center;
    padding: 30px 20px;
}

.eump-completion-message .message-main {
    font-size: 24px;
    font-weight: bold;
    color: #e60012;
    margin-bottom: 20px;
}

.eump-completion-message .message-sub {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.eump-apply-button.is-applied {
    background: #999;
    box-shadow: 0 6px 0 #555;
    cursor: not-allowed;
}

.eump-favorite-button {
    width: 250px;
    height: 60px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 6px 0 #2e7d32;
    text-align: center;
    margin: 10px auto;
    display: block;
    background: linear-gradient(to bottom, #4CAF50, #45a049);
    color: #fff;
}

.eump-favorite-button.is-favorite {
    background: linear-gradient(to bottom, #ff6b6b, #ff5252);
    box-shadow: 0 6px 0 #c41e3a;
}

.eump-apply-button,
.eump-favorite-button {
    width: 100% !important;
    max-width: 100% !important;
}