/* Expert Card Styles */
.expert-container {
    max-width: 900px;
    width: 95%;
    /*margin: 40px auto;*/
    /*background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);*/
    overflow: hidden;
    /*border: 1px solid rgba(255,255,255,0.2);*/
    backdrop-filter: blur(10px);
}


.expert-section {
    display: block;
    padding: 48px;
}

.expert-header {
    margin: -48px -48px 32px -48px;
    padding: 48px;
    background: #ffffff;
    border-bottom: 3px solid #3b82f6;
    position: relative;
}


.expert-header-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}


.expert-header-image {
    flex-shrink: 0;
}

.expert-header-profile-image {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.expert-header-info {
    flex: 1;
    padding-top: 8px;
}

.expert-ranking-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.expert-ranking-crown {
    font-size: 16px;
}

.expert-ranking-number {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
}



.expert-header-kana-name {
    font-size: 16px;
    margin: 8px 0 16px 0;
    color: #6b7280;
    font-weight: 400;
    letter-spacing: 1px;
}

.expert-header-main-name {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f2937;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.expert-header-profession {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-left: 12px;
}

@media (min-width: 768px) {
    .expert-header-main-name {
        font-size: 42px;
    }
}

.expert-header-company {
    margin-bottom: 12px;
}

.expert-header-company-link,
.expert-header-company-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.expert-header-company-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.expert-header-location {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}





/* Contact Section */
.expert-contact-section {
    margin: 32px 0;
    padding: 0;
}






.expert-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}


.expert-contact-item {
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 6px 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.expert-contact-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


.expert-access {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.expert-icon {
    color: #6b7280;
    font-size: 16px;
    margin-right: 8px;
}

.expert-contact-text {
    display: inline;
    margin: 0;
    font-weight: 500;
}

/* Services and Areas */
.expert-services-section {
    margin-top: 32px;
    padding: 0;
}

.expert-task-section,
.expert-area-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.expert-section-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.expert-section-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
    padding-top: 8px;
    line-height: 1.4;
}

.expert-task-tags,
.expert-area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.expert-task-tag,
.expert-area-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

.expert-task-tag:hover,
.expert-area-tag:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}


/* Content Sections */
.expert-intro-section,
.expert-reception-section,
.expert-holiday-section,
.expert-fees-section {
    margin-top: 20px;
}

.expert-intro-text {
    font-size: 13px;
}

.expert-intro-pre {
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    margin: 0;
}

.expert-time-text,
.expert-holiday-text {
    font-size: 13px;
    margin: 4px 0;
}

.expert-fee-item {
    margin-bottom: 12px;
}

.expert-fee-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.expert-fee-text {
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    font-family: inherit;
    margin: 0;
}

/* Navigation Tabs */
.expert-nav-tabs {
    margin-top: 40px;
    margin-bottom: 0;
    background: #f8fafc;
    border-radius: 16px;
    padding: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.expert-nav-tab {
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin: 0 2px;
}


.expert-nav-tab:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    transform: translateY(-1px);
}

.expert-nav-tab.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.expert-nav-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Tab Content */
.expert-tab-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-top: 16px;
    min-height: 300px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.expert-tab-pane {
    display: none;
    animation: fadeInUp 0.4s ease-out;
    line-height: 1.7;
}

.expert-tab-pane.active {
    display: block;
}


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

.expert-tab-pane h4 {
    color: #1e293b;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    font-weight: 600;
}

.expert-tab-pane h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
}

.expert-tab-pane p {
    color: #475569;
    margin-bottom: 16px;
    font-size: 15px;
}

.expert-intro-pre {
    color: #334155;
    line-height: 1.8;
    font-size: 15px;
    background: rgba(240, 253, 244, 0.5);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.expert-access-section {
    margin-bottom: 20px;
}

.expert-access-title {
    font-weight: 600;
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.expert-access-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
}

.expert-address-text,
.expert-access-text {
    font-size: 15px;
    margin: 8px 0;
    color: #475569;
    background: rgba(240, 253, 244, 0.7);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #a7f3d0;
}

/* Reception Time Styles */
.expert-time-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.expert-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(240, 253, 244, 0.5);
    padding: 10px 16px;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.expert-time-day {
    font-weight: 600;
    color: #059669;
    min-width: 80px;
}

.expert-time-hours {
    color: #374151;
    font-family: monospace;
}

/* Holiday Styles */
.expert-holiday-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.expert-holiday-tag {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #fbbf24;
}

.expert-holiday-text {
    background: rgba(240, 253, 244, 0.5);
    color: #059669;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-block;
    margin-top: 12px;
}

/* Google Maps Styles */
.expert-map-container {
    position: relative;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.expert-google-map {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 12px;
}


/* CTA Banner */
.expert-cta-banner {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    margin-top: 40px;
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.expert-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.expert-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.expert-cta-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .expert-container {
        margin: 20px 10px;
        width: calc(100% - 20px);
    }
    
    .expert-section {
        padding: 32px 24px;
    }
    
    .expert-header {
        margin: -32px -24px 24px -24px;
        padding: 32px 24px;
    }
    
    .expert-header-layout {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .expert-header-profile-image {
        width: 150px;
        height: 200px;
        margin: 0 auto;
    }
    
    .expert-header-main-name {
        font-size: 28px;
    }
    
    .expert-main-name {
        font-size: 28px;
    }
    
    .expert-profile-image {
        width: 100px;
        height: 100px;
    }
    
    .expert-nav-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .expert-nav-tab {
        padding: 14px 8px;
        font-size: 13px;
        margin: 0;
    }
    
    .expert-tab-content {
        padding: 24px;
    }
    
    .expert-section-header {
        margin: -24px -24px 16px -24px;
        font-size: 15px;
    }
    
    .expert-task-section,
    .expert-area-section {
        padding: 20px;
    }
    
    .expert-section-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .expert-section-label {
        min-width: auto;
        padding-top: 0;
        font-weight: 600;
        color: #374151;
    }
    
    .expert-task-tags,
    .expert-area-tags {
        gap: 6px;
    }
    
    .expert-task-tag,
    .expert-area-tag {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .expert-time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .expert-time-day {
        min-width: auto;
    }
    
    .expert-google-map {
        height: 250px;
    }
    
    .expert-holiday-list {
        justify-content: center;
    }
    
    .expert-contact-info {
        flex-direction: column;
        gap: 12px;
    }
}