/* Expert Card Styles */
.expert-card {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
}

.expert-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.expert-card__photo {
    position: relative;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.expert-card__photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.expert-card__badge {
    position: relative;
    display: inline-block;
    height: 24px;
    line-height: 20px;
    padding: 0 2rem;
    box-shadow: 0px -2px #FFB347, 0px 2px #FFB347;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background-color: #FFB347;
    color: #353535;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.expert-card__badge::before,
.expert-card__badge::after {
    position: absolute;
    top: -19px;
    width: 0px;
    height: 0px;
    border-color: transparent #fff;
    border-style: solid;
    content: '';
}
.expert-card__badge::before {
    left: 0;
    border-width: 30px 0px 30px 10px;
}
.expert-card__badge::after {
    right: 0;
    border-width: 30px 10px 30px 0px;
}

.expert-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expert-card__profession-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    align-self: flex-start;
}

.expert-card__name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-left: none !important;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2 !important;
}

.expert-card__arrow {
    color: #007cba;
    font-size: 20px;
    font-weight: normal;
}

.expert-card__specialties {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.expert-card__description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expert-card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .expert-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .expert-card__photo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .expert-card__info {
        width: 100%;
        align-items: center;
    }

    .expert-card__profession-tag {
        align-self: center;
    }
}

/* Experts Grid Layout */
.experts-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

/*!* 監修者表示時の調整 *!*/
/*.article-supervisors .experts-grid {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 15px;*/
/*}*/

/*.article-supervisors .expert-card {*/
/*    margin-bottom: 0;*/
/*}*/