/* NFCカード向けプロフィールページのスタイル */

/* プロフィールカードコンテナ */
.nfc-profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ヘッダーセクション */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.profile-avatar {
    flex-shrink: 0;
    order: 2; /* 写真を左側に配置 */
}

.avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #007bff;
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.2);
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
}

.profile-basic-info {
    flex: 1;
    order: 1; /* テキストを右側に配置 */
}

.profile-name {
    font-size: 1.8rem !important;
    font-weight: bold;
    color: #333 !important;
    margin-bottom: 0.3rem !important;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); */
}

.profile-title {
    font-size: 1.1rem;
    color: #007bff;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.profile-motto {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    margin: 0;
}

/* 自己紹介セクション */
.profile-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    /* border-left: 4px solid #28a745; */
}

.profile-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 1rem;
}

.profile-intro p:last-child {
    margin-bottom: 0;
}

/* 連絡先・SNSセクション */
.profile-contacts {
    margin-bottom: 2rem;
}

.profile-contacts h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.profile-contacts h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.contact-icon {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 32px !important;
    transition: transform 0.3s ease;
    display: block;
    object-fit: contain;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-label {
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-item span:not(.contact-label) {
    color: #495057;
    font-weight: 500;
}

/* QRコードセクション */
.profile-qr {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    color: white;
}

.profile-qr h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
}

.profile-qr h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code {
    width: 200px !important;
    height: 200px !important;
    border-radius: 12px;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.qr-description {
    color: #f8f9fa;
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* 詳細プロフィールセクション */
.detailed-profile-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid #e9ecef;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nfc-profile-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar {
        order: 1;
    }
    
    .profile-basic-info {
        order: 2;
    }
    
    .avatar-image {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-title {
        font-size: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .profile-qr {
        padding: 1.5rem;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .nfc-profile-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .profile-header {
        gap: 0.8rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    
    .avatar-image {
        width: 70px;
        height: 70px;
        border: 2px solid #007bff;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .profile-title {
        font-size: 0.9rem;
    }
    
    .profile-motto {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .profile-intro {
        padding: 1rem;
    }
    
    .profile-intro p {
        font-size: 1rem;
    }
}