/* ==========================================
   専門家ショートコード [experts]
========================================== */

.experts-comment {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 50px 30px 30px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  margin: 40px 0;

  @media screen and (max-width: 768px) {
    padding: 40px 20px;
    gap: 15px;
  }

  .experts-comment-title {
    font-family: "Noto Sans JP";
    padding: 10px 20px;
    position: absolute;
    top: -20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #2190aa;
    border-radius: 20px;

    @media screen and (max-width: 768px) {
      font-size: 16px;
    }
  }

  .experts-info-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0 0 20px;
    border-bottom: 1px solid #e2e7ec;
  }

  .experts-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2190aa;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;

    @media screen and (max-width: 768px) {
      width: 70px;
      height: 70px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      margin-bottom: 0;
    }
  }

  .experts-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;

    svg {
      width: 80%;
      height: 80%;
    }
  }

  .experts-info {
    flex: 1;

    @media screen and (max-width: 768px) {
      text-align: center;
    }
  }

  .experts-name {
    font-size: 20px ;
    font-weight: bold ;
    color: #333 ;
    line-height: 1.4 ;

    @media screen and (max-width: 768px) {
      font-size: 18px;
    }
  }

  .experts-comment-text-wrap {
    margin: 10px 0 0 0;
  }

  .experts-comment-text {
    font-size: 17px;
    color: #333 ;
    line-height: 1.7 ;
    font-weight: 400;
    font-family: "Noto Sans JP";

    @media screen and (max-width: 768px) {
      font-size: 16px;
    }
  }
}

/* ==========================================
   記事ヘッダーの専門家表示
========================================== */

.article-experts-section {
  border: 2px solid #e9ecef;
  padding: 20px 30px;
  margin: 40px 0;

  @media screen and (max-width: 768px) {
    padding: 20px;
    margin: 30px 0;
  }
}

.experts-header {
  margin-bottom: 24px;
}

.experts-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;

  @media screen and (max-width: 768px) {
    font-size: 17px;
  }
}

.experts-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;

  @media screen and (max-width: 768px) {
    gap: 15px;
  }
}

.experts-item-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 0 0 20px;
  border-bottom: 1px solid #e2e7ec;
  flex-wrap: nowrap;
  overflow-y: auto;
}

.experts-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.experts-item.active .experts-name {
  color: #2190aa;
}

.experts-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #2190aa;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;

  @media screen and (max-width: 768px) {
    width: 60px;
    height: 60px;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .experts-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;

    svg {
      width: 50%;
      height: 50%;
    }
  }
}

.experts-item .experts-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;

  @media screen and (max-width: 768px) {
    font-size: 14px;
  }

  &.active {
    color: #2190aa
  }
}

/* 専門家コメント表示エリア */
.experts-profile-wrap {
  width: 100%;
  display: none;

  &.active {
    display: block;
  }
}

.experts-profile-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e7ec;
}

.experts-profile-label {
  font-size: 16px;
  font-weight: bold;
  color: #2190aa;

  @media screen and (max-width: 768px) {
    font-size: 15px;
  }
}

.experts-profile-wrap .experts-profile-text-wrap {
  height: 54px;
}

.experts-profile-wrap .experts-profile-text {
  font-size: 16px ;
  color: #333 ;
  line-height: 1.8 ;
  font-weight: 400;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  @media screen and (max-width: 768px) {
    font-size: 15px ;
  }
}




