#cocreation-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: auto;
    padding: 0;
    box-sizing: border-box;
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cocreation-modal.closing {
    animation: modalSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cocreation-modal.show {
    background-color: rgba(0, 0, 0, 0.5);
}

#cocreation-modal-content {
    background-color: #fefefe;
    margin: 60px auto 60px;
    padding: 1.0em;
    border: 1px solid #888;
    width: calc(90% - 20px);
    height: calc(100% - 120px);
    max-width: calc(600px - 20px);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    box-sizing: border-box;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin-left: auto;
    margin-right: auto;
}

#cocreation-modal.show #cocreation-modal-content {
    opacity: 1;
    transform: translateY(0);
}

#cocreation-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    border: 1px solid #e0e0e0;
}

#cocreation-modal-close::before,
#cocreation-modal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: #666;
    transition: all 0.3s ease;
}

#cocreation-modal-close::before {
    transform: rotate(45deg);
}

#cocreation-modal-close::after {
    transform: rotate(-45deg);
}

#cocreation-modal-close:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
}

#cocreation-modal-close:hover::before,
#cocreation-modal-close:hover::after {
    background-color: #333;
}

@media (max-width: 767px) {
    #cocreation-modal-close {
        right: 12px;
        top: 12px;
        width: 24px;
        height: 24px;
    }

    #cocreation-modal-close::before,
    #cocreation-modal-close::after {
        width: 12px;
    }
}

.cocreation-modal-content-text {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    word-wrap: break-word;
}

#cocreation-modal-content-header {
    font-size: 0.65em;
    font-weight: 500;
    margin-bottom: 1.0em;
    padding-bottom: 1.0em;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #433e3e;
}

#cocreation-modal-content-body {
    font-size: 0.8em;
    margin: 0.1em;
    text-align: center;
}

#cocreation-modal-content-footer {
    font-size: 0.95em;
    border-top: 1px solid #eee;
    text-align: center;
}

.modal-button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.modal-button {
    display: inline-block;
    padding: 1.0em 2.0em;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 90%;
    box-sizing: border-box;
    font-size: 0.9em;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    border: none;
    margin-top: 2.0em;
}

.modal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-button:hover::before {
    opacity: 1;
}

.modal-button-needs {
    background-color: #FFB5C2;
    color: #4A4A4A;
    box-shadow: 0 2px 4px rgba(255, 181, 194, 0.3);
}

.modal-button-needs:hover {
    background-color: #FF9EB0;
    box-shadow: 0 4px 8px rgba(255, 181, 194, 0.4);
    transform: translateY(-1px);
}

.modal-button-support {
    background-color: #B5EAD7;
    color: #4A4A4A;
    box-shadow: 0 2px 4px rgba(181, 234, 215, 0.3);
}

.modal-button-support:hover {
    background-color: #A5D9C7;
    box-shadow: 0 4px 8px rgba(181, 234, 215, 0.4);
    transform: translateY(-1px);
}

.modal-button-leaveover {
    background-color: #C7CEEA;
    color: #4A4A4A;
    box-shadow: 0 2px 4px rgba(199, 206, 234, 0.3);
}

.modal-button-leaveover:hover {
    background-color: #B7BEEA;
    box-shadow: 0 4px 8px rgba(199, 206, 234, 0.4);
    transform: translateY(-1px);
}

.modal-button-text {
    font-size: 0.8em;
    color: #666;
    display: block;
}

.modal-paragraph {
    margin-top: 1.0em;
}

.modal-paragraph-title {
    font-size: 1.0em;
    font-weight: 500;
    color: #4A4A4A;
    margin: 2.0em;
}

.modal-paragraph-content {
    font-size: 0.9em;
    color: #666;
    margin: 1.5em 0.5em;
}

.detail-paragraph {
    margin-top: 2.0em;
    padding-top: 2.0em;
    border-top: 1px solid #eee;
}

.modal-paragraph-highlight {
    font-size: 1.05em;
    font-weight: 500;
    color: #4A4A4A;
    margin: 24px 0 16px;
    padding: 16px;
    background-color: #f0f7ff;
    border-radius: 8px;
    line-height: 1.8;
}

.feedback-form {
    display: none;
    width: 90%;
    margin: 1.5em auto;
}

.feedback-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 1em;
    box-sizing: border-box;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #FFB5C2;
    box-shadow: 0 0 0 2px rgba(255, 181, 194, 0.2);
}

#needs-submit {
    background-color: #FFB5C2;
    color: #4A4A4A;
    border: none;
    padding: 0.8em 2em;
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#needs-submit:hover {
    background-color: #FF9EB0;
    transform: translateY(-1px);
}

.mask3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
}

.mask3.show {
    display: flex !important;
}

.mask3.light {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
}

.mask3 .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #B5EAD7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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