/**
 * エキスパートQ&A スタイルシート
 * FP＆貸金業取扱主任者のエキスパートQ&A機能用CSS
 */

/* ==========================================================================
   共通スタイル
   ========================================================================== */

.expert-qa-single,
.qa-expert-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ==========================================================================
   フロントページ Q&Aセクション
   ========================================================================== */

.frontpage-expert-qa-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #bfdbfe;
}

.frontpage-expert-qa-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.frontpage-expert-qa-item {
    display: block;
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.frontpage-expert-qa-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.frontpage-qa-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.frontpage-qa-question-row,
.frontpage-qa-answer-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.frontpage-qa-q-icon,
.frontpage-qa-a-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    border-radius: 6px;
    flex-shrink: 0;
}

.frontpage-qa-q-icon {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.frontpage-qa-a-icon {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.frontpage-qa-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.frontpage-qa-answer {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.frontpage-qa-expert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.25rem;
}

.frontpage-qa-expert-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
    flex-shrink: 0;
}

.frontpage-qa-expert-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.frontpage-qa-expert-credentials {
    font-size: 0.75rem;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .frontpage-expert-qa-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .frontpage-expert-qa-item {
        padding: 1rem;
    }

    .frontpage-qa-content {
        gap: 0.625rem;
    }

    .frontpage-qa-question-row,
    .frontpage-qa-answer-row {
        gap: 0.5rem;
    }

    .frontpage-qa-q-icon,
    .frontpage-qa-a-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.75rem;
        border-radius: 5px;
    }

    .frontpage-qa-question {
        font-size: 0.875rem;
    }

    .frontpage-qa-answer {
        font-size: 0.8rem;
    }

    .frontpage-qa-expert {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .frontpage-qa-expert-avatar {
        width: 28px;
        height: 28px;
    }

    .frontpage-qa-expert-name {
        font-size: 0.8rem;
    }

    .frontpage-qa-expert-credentials {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Q&Aカード（ショートコード用）
   ========================================================================== */

.expert-qa-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 0;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.qa-question {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.qa-question-label {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.qa-question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.6;
    margin: 0;
}

.qa-answer {
    padding: 1.5rem 2rem;
    background: #fff;
    border-left: 4px solid #3b82f6;
    margin: 1rem;
    border-radius: 0 8px 8px 0;
}

.qa-answer-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.qa-answer-content p {
    margin-bottom: 1rem;
}

.qa-answer-content p:last-child {
    margin-bottom: 0;
}

.qa-expert-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.expert-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
    flex-shrink: 0;
}

.expert-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.expert-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.expert-credentials {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 600;
}

.expert-name {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
}

.expert-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.expert-name a:hover {
    color: #3b82f6;
}

/* ==========================================================================
   Q&Aカード エンハンスド版（ショートコード用・新デザイン）
   ========================================================================== */

.expert-qa-card-enhanced {
    background: #fff;
    border-radius: 20px;
    margin: 2.5rem 0;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid #3b82f6;
}

/* ヘッダーバッジ */
.expert-qa-card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 0.875rem 1.5rem;
    text-align: center;
}

.expert-qa-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.expert-qa-card-badge svg {
    color: #fbbf24;
}

/* 質問セクション */
.expert-qa-card-question {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.75rem 2rem;
    border-bottom: 1px solid #bfdbfe;
}

.expert-qa-card-enhanced .expert-qa-card-q-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 1rem;
}

.expert-qa-card-enhanced .expert-qa-card-q-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-size: 1.375rem;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.expert-qa-card-enhanced .expert-qa-card-q-text {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0.375rem 0 0 0 !important;
    border: none !important;
    border-left: none !important;
    display: block;
}

/* 回答セクション */
.expert-qa-card-answer {
    padding: 1.75rem 2rem;
    background: #fff;
}

.expert-qa-card-enhanced .expert-qa-card-a-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 1rem;
}

.expert-qa-card-enhanced .expert-qa-card-a-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    font-size: 1.375rem;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.expert-qa-card-enhanced .expert-qa-card-a-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #374151;
    flex: 1;
}

.expert-qa-card-a-content p {
    margin-bottom: 1rem;
}

.expert-qa-card-a-content p:last-child {
    margin-bottom: 0;
}

/* 専門家プロフィール */
.expert-qa-card-expert {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.expert-qa-card-expert-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expert-qa-card-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.expert-qa-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.expert-qa-card-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expert-qa-card-verified svg {
    width: 12px;
    height: 12px;
}

.expert-qa-card-expert-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.expert-qa-card-expert-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.expert-qa-card-expert-credentials {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 600;
}

.expert-qa-card-expert-name {
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 700;
}

.expert-qa-card-expert-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.expert-qa-card-expert-name a:hover {
    color: #3b82f6;
}

/* フッターボタン */
.expert-qa-card-footer {
    background: #fff;
    padding: 1.25rem 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.expert-qa-card-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.expert-qa-card-view-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.expert-qa-card-view-btn svg {
    width: 16px;
    height: 16px;
}

/* エンハンスドカード レスポンシブ */
@media (max-width: 640px) {
    .expert-qa-card-enhanced {
        margin: 1.25rem 0;
        border-radius: 12px;
    }

    .expert-qa-card-header {
        padding: 0.5rem 0.875rem;
    }

    .expert-qa-card-badge {
        font-size: 0.7rem;
        gap: 0.35rem;
    }

    .expert-qa-card-badge svg {
        width: 12px;
        height: 12px;
    }

    .expert-qa-card-question {
        padding: 0.875rem 1rem;
    }

    .expert-qa-card-answer {
        padding: 0.875rem 1rem;
    }

    .expert-qa-card-enhanced .expert-qa-card-q-wrapper,
    .expert-qa-card-enhanced .expert-qa-card-a-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.625rem;
    }

    .expert-qa-card-enhanced .expert-qa-card-q-icon,
    .expert-qa-card-enhanced .expert-qa-card-a-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        max-width: 28px;
        flex-shrink: 0;
        font-size: 0.875rem;
        border-radius: 6px;
    }

    .expert-qa-card-enhanced .expert-qa-card-q-text {
        flex: 1;
        font-size: 0.95rem;
        padding: 0.125rem 0 0 0 !important;
        border: none !important;
        border-left: none !important;
    }

    .expert-qa-card-enhanced .expert-qa-card-a-content {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .expert-qa-card-expert {
        padding: 0.875rem 1rem;
    }

    .expert-qa-card-expert-inner {
        gap: 0.75rem;
    }

    .expert-qa-card-avatar-wrapper {
        flex-shrink: 0;
    }

    .expert-qa-card-avatar {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }

    .expert-qa-card-verified {
        width: 16px;
        height: 16px;
        bottom: 0;
        right: 0;
    }

    .expert-qa-card-verified svg {
        width: 9px;
        height: 9px;
    }

    .expert-qa-card-expert-label {
        font-size: 0.7rem;
    }

    .expert-qa-card-expert-credentials {
        font-size: 0.75rem;
    }

    .expert-qa-card-expert-name {
        font-size: 0.9rem;
    }

    .expert-qa-card-footer {
        padding: 0.75rem 1rem;
    }

    .expert-qa-card-view-btn {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Q&A詳細ページ（リッチデザイン）
   ========================================================================== */

/* ページタイトル */
.expert-qa-single-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
}

.expert-qa-single-title-credentials {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b82f6;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .expert-qa-single-title {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .expert-qa-single-title-credentials {
        font-size: 0.8rem;
        margin-top: 0.375rem;
    }
}

/* ページヘッダー */
.expert-qa-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.expert-qa-page-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.expert-qa-page-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

/* 詳細カード */
.expert-qa-detail-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

/* 質問セクション */
.qa-detail-question-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #bfdbfe;
}

.qa-detail-question-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qa-detail-q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.qa-detail-question-label {
    font-size: 0.875rem;
    color: #1e40af;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.qa-detail-question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.5;
    margin: 0;
}

/* 回答セクション */
.qa-detail-answer-section {
    padding: 2rem 2.5rem;
    background: #fff;
}

.qa-detail-answer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.qa-detail-a-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.qa-detail-answer-label {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.qa-detail-answer-content {
    font-size: 1.05rem;
    line-height: 2;
    color: #374151;
    padding-left: 1rem;
    border-left: 3px solid #10b981;
}

.qa-detail-answer-content p {
    margin-bottom: 1.25rem;
}

.qa-detail-answer-content p:last-child {
    margin-bottom: 0;
}

/* 専門家セクション */
.qa-detail-expert-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem 2.5rem;
    border-top: 1px solid #e5e7eb;
}

.qa-detail-expert-header {
    margin-bottom: 1.25rem;
}

.qa-detail-expert-badge {
    display: inline-block;
    background: #1e40af;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.03em;
}

.qa-detail-expert-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qa-detail-expert-main {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.qa-detail-expert-avatar-wrapper {
    flex-shrink: 0;
    text-align: center;
}

.qa-detail-expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.qa-detail-expert-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    margin-top: 0.5rem;
}

.qa-detail-expert-info {
    flex: 1;
}

.qa-detail-expert-credentials {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.qa-detail-expert-name {
    font-size: 1.5rem;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.qa-detail-expert-name a {
    color: #1f2937;
    text-decoration: none;
}

.qa-detail-expert-name a:hover {
    color: #3b82f6;
}

.qa-detail-expert-honorific {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

.qa-detail-expert-bio {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 1rem;
}

.qa-detail-expert-link {
    display: inline-block;
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qa-detail-expert-link:hover {
    color: #1e40af;
}

/* カテゴリ */
.expert-qa-single-categories {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.expert-qa-single-categories .category-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* CTA セクション */
.expert-qa-cta-section {
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.expert-qa-cta-text {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 1rem 0;
}

.expert-qa-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.expert-qa-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 関連Q&A */
.related-qa-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.related-qa-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.related-qa-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.related-qa-item {
    display: flex;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-qa-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.related-qa-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-qa-content {
    flex: 1;
}

.related-qa-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
}

.related-qa-expert {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ==========================================================================
   専門家詳細ページ（リッチデザイン）
   ========================================================================== */

/* ページヘッダー */
.qa-expert-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.qa-expert-page-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.qa-expert-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.qa-expert-page-name {
    color: #3b82f6;
}

/* プロフィールカード */
.qa-expert-profile-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.qa-expert-profile-main {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
}

.qa-expert-avatar-section {
    flex-shrink: 0;
    text-align: center;
}

.qa-expert-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.qa-expert-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.qa-expert-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.qa-expert-verified-badge svg {
    width: 14px;
    height: 14px;
}

.qa-expert-info-section {
    flex: 1;
}

.qa-expert-credentials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.qa-expert-credential-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
}

.qa-expert-name-large {
    font-size: 2rem;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.qa-expert-honorific {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
}

.qa-expert-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.qa-expert-stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.qa-expert-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.qa-expert-stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.qa-expert-bio-section {
    margin-bottom: 1.5rem;
}

.qa-expert-bio-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.qa-expert-bio-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4b5563;
}

.qa-expert-organizations-section {
    margin-bottom: 1.5rem;
}

.qa-expert-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
}

.qa-expert-organizations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qa-expert-organization-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #374151;
}

.qa-expert-organization-item a {
    color: #3b82f6;
    text-decoration: none;
}

.qa-expert-organization-item a:hover {
    text-decoration: underline;
}

.qa-expert-links-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.qa-expert-social-links {
    display: flex;
    gap: 0.5rem;
}

.qa-expert-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    transition: all 0.2s ease;
}

.qa-expert-social-link:hover {
    transform: translateY(-2px);
}

.qa-expert-social-twitter:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.qa-expert-social-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.qa-expert-social-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
}

.qa-expert-social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: #fff;
}

.qa-expert-social-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
}

.qa-expert-social-link svg {
    width: 18px;
    height: 18px;
}

.qa-expert-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qa-expert-profile-link-btn {
    display: inline-block;
    background: #fff;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qa-expert-profile-link-btn:hover {
    background: #3b82f6;
    color: #fff;
}

/* 回答一覧セクション */
.qa-expert-answers-section {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.qa-expert-answers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.qa-expert-answers-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qa-expert-answers-icon {
    font-size: 1.5rem;
}

.qa-expert-answers-count {
    background: #3b82f6;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
}

.qa-expert-answers-list {
    padding: 1rem;
}

.qa-expert-answer-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.qa-expert-answer-item:last-child {
    margin-bottom: 0;
}

.qa-expert-answer-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.qa-expert-answer-link {
    display: block;
    text-decoration: none;
    padding: 1.25rem;
}

.qa-expert-answer-question {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.qa-expert-answer-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
}

.qa-expert-answer-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0;
    line-height: 1.4;
}

.qa-expert-answer-preview {
    display: flex;
    gap: 0.75rem;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.qa-expert-answer-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #10b981;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
}

.qa-expert-answer-preview-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.qa-expert-answer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-left: 2.75rem;
}

.qa-expert-answer-category {
    font-size: 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
}

.qa-expert-no-answers {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* CTA セクション */
.qa-expert-cta-section {
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    padding: 2rem;
}

.qa-expert-cta-text {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 1.25rem 0;
}

.qa-expert-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.qa-expert-cta-button {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qa-expert-cta-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.qa-expert-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.qa-expert-cta-secondary {
    background: #fff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.qa-expert-cta-secondary:hover {
    background: #3b82f6;
    color: #fff;
}

/* ==========================================================================
   専門家一覧ページ
   ========================================================================== */

.qa-experts-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.qa-experts-archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.qa-experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.qa-expert-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qa-expert-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.qa-expert-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.qa-expert-card .expert-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: block;
}

.qa-expert-card .expert-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.qa-expert-card .expert-credentials {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.qa-expert-card .expert-qa-count {
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-block;
}

/* ==========================================================================
   Q&A一覧ページ
   ========================================================================== */

.expert-qa-archive {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.expert-qa-archive-header {
    margin-bottom: 2rem;
}

.expert-qa-archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.expert-qa-filters {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.expert-qa-search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.expert-qa-search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.expert-qa-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.expert-qa-search-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expert-qa-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.expert-qa-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expert-qa-category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.expert-qa-category-tag:hover,
.expert-qa-category-tag.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.expert-qa-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expert-qa-list-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.expert-qa-list-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.expert-qa-list-item a {
    text-decoration: none;
}

.expert-qa-list-item .qa-question-text {
    font-size: 1.1rem;
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.expert-qa-list-item .qa-answer-preview {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.expert-qa-list-item .qa-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.expert-qa-list-item .qa-expert-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expert-qa-list-item .expert-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
}

.expert-qa-list-item .expert-name-mini {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
}

.expert-qa-list-item .qa-categories {
    display: flex;
    gap: 0.5rem;
}

.expert-qa-list-item .qa-category-mini {
    font-size: 0.75rem;
    background: #f3f4f6;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    color: #6b7280;
}

.expert-qa-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.expert-qa-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.875rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.expert-qa-pagination .page-numbers:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.expert-qa-pagination .page-numbers.current {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-color: transparent;
    color: #fff;
}

.search-results-message {
    text-align: center;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.no-qa-message {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 12px;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media (max-width: 768px) {
    .expert-qa-single,
    .qa-expert-single {
        padding: 1.5rem 1rem;
    }

    /* Q&A詳細ページ */
    .qa-detail-question-section,
    .qa-detail-answer-section,
    .qa-detail-expert-section {
        padding: 1.5rem;
    }

    .qa-detail-question-text {
        font-size: 1.25rem;
    }

    .qa-detail-expert-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .qa-detail-expert-name {
        justify-content: center;
    }

    /* 専門家詳細ページ */
    .qa-expert-page-title {
        font-size: 1.5rem;
    }

    .qa-expert-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .qa-expert-avatar-large {
        width: 120px;
        height: 120px;
    }

    .qa-expert-name-large {
        font-size: 1.5rem;
        justify-content: center;
    }

    .qa-expert-credentials-list {
        justify-content: center;
    }

    .qa-expert-organizations-list {
        justify-content: center;
    }

    .qa-expert-links-section {
        justify-content: center;
    }

    .qa-expert-social-links {
        justify-content: center;
    }

    .qa-expert-profile-links {
        justify-content: center;
    }

    .qa-expert-answers-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* 関連Q&A */
    .related-qa-list {
        grid-template-columns: 1fr;
    }

    /* 検索フォーム */
    .expert-qa-search-form {
        flex-direction: column;
    }

    .expert-qa-search-btn {
        width: 100%;
    }

    /* CTAボタン */
    .qa-expert-cta-buttons {
        flex-direction: column;
    }

    .qa-expert-cta-button {
        width: 100%;
        text-align: center;
    }

    .expert-qa-list-item .qa-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .qa-experts-grid {
        grid-template-columns: 1fr;
    }

    .qa-detail-q-icon,
    .qa-detail-a-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .qa-detail-question-text {
        font-size: 1.1rem;
    }

    .qa-expert-stat-number {
        font-size: 1.5rem;
    }

    .expert-qa-archive-title,
    .qa-experts-archive-title {
        font-size: 1.5rem;
    }
}
