/* Expert Profile Styles - New Design */

/* 基本設定 */
.expert-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #374151;
    background: #ffffff;
}

.expert-header-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

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

.expert-profile-img {
    width: 140px;
    height: 140px;
    border-radius: 0;
    object-fit: cover;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.expert-profile-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f3f4f6;
}

.expert-profile-initial {
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.expert-basic-info {
    flex: 1;
    min-width: 0;
}

.expert-ranking-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #166534;
    padding: 3px 6px;
    border-radius: 0;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #dcfce7;
}

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

.expert-ranking-text {
    font-size: 16px;
    font-weight: 600;
}

.expert-name {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #1f2937;
}

.expert-profession {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    background: #f9fafb;
    padding: 3px 6px;
    border-radius: 0;
    border: 1px solid #f3f4f6;
}

.expert-kana {
    font-size: 17px;
    color: #6b7280;
    margin: 0;
}

.expert-company {
    margin-bottom: 6px;
}

.expert-company-link {
    color: var(--sgb-main-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
    font-size: 17px;
}

.expert-company-link:hover {
    color: var(--sgb-main-color);
    opacity: 0.8;
}

.expert-link-icon {
    font-size: 14px;
}

.expert-company-name {
    font-weight: 600;
    font-size: 17px;
    color: #374151;
}

.expert-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 17px;
}

.expert-location-icon {
    font-size: 17px;
    color: #9ca3af;
}

.expert-location-text {
    font-size: 17px;
    color: #6b7280;
}

/* 基本情報テーブル */
.expert-info-table-section {
    background: #ffffff;
    border-radius: 0;
    padding: 5px;
    margin-bottom: 5px;
}

.expert-info-table {
    border: none;
    display: grid;
    gap: 0;
    overflow: hidden;
}

.expert-info-row {
    display: grid;
    place-content: center;
    place-items: center;
    grid-template-columns: 150px 1fr;
    background: #ffffff;
    min-height: 40px;
}

.expert-info-row:last-child {
    border-bottom: none;
}

.expert-info-label {
    border: none !important;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 100%;
    min-width: 100%;
}

.expert-info-icon {
    font-family: 'Material Icons';
    font-size: 17px;
    color: #6b7280;
    flex-shrink: 0;
}

.expert-info-value {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    color: #4b5563;
    align-items: center;
    line-height: 1.5;
    min-height: 100%;
}

.expert-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.expert-info-tag {
    padding: 3px 6px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.expert-task-tag {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.expert-task-tag:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.expert-area-tag {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.expert-area-tag:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* タブナビゲーション */
.expert-tabs {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.expert-tab-navigation {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
}

.expert-tab-button {
    flex: 1;
    padding: 8px 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.expert-tab-button:hover {
    background: #f9fafb;
    color: #374151;
}

.expert-tab-button.active {
    color: var(--sgb-main-color);
    background: #ffffff;
    font-weight: 700;
}

.expert-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--sgb-main-color);
}

.expert-tab-content {
    padding: 10px;
}

.expert-tab-pane {
    display: none;
}

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

/* コンテンツスタイル */
.expert-content-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expert-profile-text {
    font-size: 16px;
    line-height: 1.4;
    color: #4b5563;
    white-space: pre-line;
    background: #ffffff;
    padding: 8px;
}

.expert-no-content {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 16px 8px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #f3f4f6;
}

/* 料金セクション - テーブル形式 */
.expert-pricing-content {
    display: grid;
    gap: 8px;
}

.expert-pricing-item {
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
}

.expert-pricing-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    padding: 8px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expert-pricing-title::before {
    content: 'payments';
    font-family: 'Material Icons';
    font-size: 16px;
    color: #6b7280;
}

.expert-pricing-text {
    font-size: 16px;
    line-height: 1.3;
    color: #4b5563;
    white-space: pre-line;
    background: #ffffff;
    padding: 8px;
    margin: 0;
}

/* アクセスセクション - テーブル形式 */
.expert-access-content {
    display: grid;
    gap: 8px;
}

.expert-access-section {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.expert-access-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    padding: 8px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expert-access-title::before {
    content: 'location_on';
    font-family: 'Material Icons';
    font-size: 16px;
    color: #6b7280;
}

.expert-business-hours {
    display: grid;
    gap: 0;
    background: #ffffff;
    margin: 0;
}

.expert-business-hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    margin: 0;
}

.expert-business-hour-item:last-child {
    border-bottom: none;
}

.expert-day {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

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

.expert-holiday-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #ffffff;
    margin: 0;
}

.expert-holiday-tag {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #fde68a;
}

.expert-no-holiday {
    color: #9ca3af;
    font-style: italic;
    font-size: 11px;
}

.expert-address-detail {
    font-size: 16px;
    line-height: 1.3;
    color: #4b5563;
    background: #ffffff;
    padding: 8px;
    margin: 0;
}

.expert-map-container {
    border-radius: 0;
    overflow: hidden;
    border: none;
    margin: 0;
}

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

.expert-access-detail {
    font-size: 16px;
    line-height: 1.3;
    color: #4b5563;
    white-space: pre-line;
    background: #ffffff;
    padding: 8px;
    margin: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .expert-profile-container {
        padding: 5px;
    }

    .expert-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .expert-name {
        font-size: 18px;
        justify-content: center;
    }

    .expert-profession {
        font-size: 11px;
    }

    .expert-info-row {
        grid-template-columns: 1fr;
        border-bottom: 1px solid #e5e7eb;
    }

    .expert-info-label {
        padding: 6px 8px;
    }

    .expert-info-value {
        padding: 6px 8px;
    }

    .expert-tab-navigation {
        flex-direction: column;
    }

    .expert-tab-button {
        text-align: center;
    }

    .expert-business-hour-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .expert-info-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .expert-profile-img,
    .expert-profile-placeholder {
        width: 50px;
        height: 50px;
    }

    .expert-profile-initial {
        font-size: 20px;
    }

    .expert-name {
        font-size: 16px;
    }

    .expert-tab-content {
        padding: 8px;
    }
}

/* アニメーション */
.expert-profile-container {
    animation: fadeInUp 0.6s ease-out;
}

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

.expert-tab-pane {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}