/* 簡易プロフィールポップアップ */
.simple-profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(31, 42, 55, 0.45);
    backdrop-filter: blur(2px);
}

.simple-profile-overlay.hidden,
.simple-collab-form.hidden,
.sp-processing.hidden,
.simple-profile-body.hidden,
.sp-section.hidden {
    display: none !important;
}

.simple-profile-modal {
    position: relative;
    width: min(520px, 100%);
    max-height: min(88vh, 760px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: 0 18px 48px rgba(44, 62, 80, 0.2);
    padding: 24px 22px 20px;
    color: #2C3E50;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

.simple-profile-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #8a97a6;
    cursor: pointer;
}

.simple-profile-close:hover {
    color: #2C3E50;
}

.simple-profile-loading {
    text-align: center;
    padding: 40px 10px;
    font-weight: 700;
    color: #5b6b7c;
}

.sp-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    border: 3px solid rgba(76, 175, 80, 0.22);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: sp-spin 0.75s linear infinite;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

.sp-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding-right: 28px;
}

.sp-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
    flex-shrink: 0;
    background: #f5f7fb;
}

.sp-name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #1f2a37;
    line-height: 1.3;
}

.sp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #5b6b7c;
}

.sp-short {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #516070;
    line-height: 1.55;
}

.sp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.sp-chip {
    display: inline-flex;
    padding: 4px 10px;
    background: #f4f8f4;
    border: 1px solid #d7e8d7;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 700;
}

.sp-styles .sp-chip {
    background: #f5f7fb;
    border-color: rgba(44, 62, 80, 0.12);
    color: #2C3E50;
}

.sp-collab-desire {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
    padding: 10px 12px;
    background: #FFF8EB;
    border: 1px solid #F3E0B5;
    font-size: 13px;
    font-weight: 700;
}

.sp-stars {
    color: #F5A623;
    letter-spacing: 1px;
}

.sp-section {
    margin-bottom: 14px;
}

.sp-section.hidden {
    display: none !important;
}

.sp-section.hidden {
    display: none !important;
}

.sp-section h3 {
    margin: 0 0 6px;
    padding-left: 8px;
    border-left: 3px solid #4CAF50;
    font-size: 13px;
    font-weight: 800;
    color: #1f2a37;
}

.sp-intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #516070;
    white-space: pre-wrap;
    max-height: 9em;
    overflow: auto;
}

.sp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.sp-btn-primary {
    background: #4CAF50;
    color: #fff;
}

.sp-btn-primary:hover {
    background: #43a047;
}

.sp-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.sp-btn-secondary {
    background: #fff;
    color: #2C3E50;
    border-color: rgba(44, 62, 80, 0.16);
}

.sp-btn-secondary:hover {
    background: #f5f7fb;
}

.sp-hint {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: #8a97a6;
}

.sp-back {
    border: none;
    background: transparent;
    color: #5b6b7c;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
}

.sp-collab-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}

.sp-collab-to {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 800;
}

.sp-collab-to img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sp-field {
    margin-bottom: 14px;
}

.sp-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
}

.sp-contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-contact-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(44, 62, 80, 0.14);
    background: #f7f9fb;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sp-contact-options input {
    accent-color: #4CAF50;
}

#sp-collab-message {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(44, 62, 80, 0.16);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.sp-consult {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sp-processing {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 42, 55, 0.35);
}

.sp-processing-card {
    background: #fff;
    padding: 28px 36px;
    text-align: center;
    border: 1px solid rgba(44, 62, 80, 0.1);
    font-weight: 800;
}

@media screen and (max-width: 768px) {
    .simple-profile-modal {
        padding: 20px 14px 16px;
        max-height: 92vh;
    }

    .sp-actions {
        flex-direction: column;
    }

    .sp-btn {
        width: 100%;
    }
}
