/* ==========================================
   専門家ー一覧ページ
========================================== */

html {
  margin-top: 0 !important;
}

.experts-archive-main {
  background: #fff;
  position: relative;
  z-index: 1;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 20px;
  padding-bottom: 170px;

  @media screen and (max-width: 768px) {
    padding-top: 10px;
    padding-bottom: 130px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.experts-archive-main-inner {
  display: flex;
  gap: 70px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ==========================================
   パンくずリスト
========================================== */

.breadcrumb {
  margin-bottom: 45px;

  @media screen and (max-width: 1024px) {
    margin-bottom: 10px;
  }

  ul {
    display: flex;
    flex-wrap: wrap;

    li {
      font-size: 12px;
      margin-right: 10px;

      span,
      a {
        color: #5d5d5d;
      }
    }
  }

  .bread-arrow {
    position: relative;
    top: 3px;
    width: 5px;
    display: flex;
    align-items: center;
    justify-content: center;

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

/* ==========================================
   ヘッダー
========================================== */

.experts-archive-header {
  margin-bottom: 50px;

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

.experts-archive-title-en {
  font-size: 32px;
  font-weight: 400;
  color: #2190aa;
  line-height: normal;
  font-family: "garamond-premier-pro";

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

.experts-archive-title-ja {
  font-size: 28px;
  letter-spacing: 0.15em;
  line-height: normal;

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

/* ==========================================
   リストレイアウト
========================================== */

.experts-archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 1100px;
}

/* ==========================================
   専門家カード（PC: 左右並び）
========================================== */

.experts-card {
  display: flex;
  gap: 30px;
  height: auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 30px 40px 30px;
  width: 100%;

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

/* ==========================================
   画像エリア（左側）
========================================== */

.experts-card-image {
  flex-shrink: 0;
  width: 250px;
  height: auto;

  @media (max-width: 768px) {
    width: 100%;
    margin: 0 auto;
  }
}

.experts-card-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 3.2;
}

.experts-card-no-image {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
}

.experts-card-no-image svg {
  width: 100%;
}

/* ==========================================
   コンテンツエリア（右側）
========================================== */

.experts-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.experts-card-name {
  font-weight: 600;
  line-height: normal;
  font-size: 24px;
  color: #2190aa;
  margin-bottom: 5px;

  @media screen and (max-width: 768px) {
    font-size: 20px;
    text-align: left;
  }
}

.experts-card-title {
  font-weight: 600;
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
  text-align: left;
  line-height: 1.4;

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

.experts-card-profile {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;

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

.media-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

/* ==========================================
   空の状態
========================================== */

.experts-archive-no-results {
  text-align: center;
  padding: 80px 20px;
  font-size: 1.2rem;
  color: #999;
}

/* ==========================================
   ページネーション
========================================== */

.experts-archive-pagination {
  margin: 60px 0 0;
}

.experts-archive-pagination .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.experts-archive-pagination .pagination span,
.experts-archive-pagination .pagination a {
  font-size: 20px;
  line-height: 38px;
  height: 40px;
  width: 40px;
  margin: 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-weight: normal;
  padding-top: 1px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;

  @media screen and (max-width: 768px) {
    width: 30px;
    height: 30px;
    line-height: 28px;
    font-size: 12px;
    margin: 0 4px;
  }
}

.experts-archive-pagination .pagination span.current {
  color: #595959;
  border-color: #222;
  pointer-events: none;
}

.experts-archive-pagination .pagination a:hover {
  color: #595959;
  opacity: 0.7;
}

.experts-archive-pagination .pagination .next {
  position: relative;
}

.experts-archive-pagination .pagination .next::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  left: 10px;
  top: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNzUgMTMuNUwxMS4yNSA5TDYuNzUgNC41IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+);

  @media screen and (max-width: 768px) {
    width: 12px;
    height: 12px;
    left: 6px;
    top: 8px;
  }
}

.experts-archive-pagination .pagination .prev {
  position: relative;
}

.experts-archive-pagination .pagination .prev::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  left: 10px;
  top: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjI1IDQuNUw2Ljc1IDlMMTEuMjUgMTMuNSIgc3Ryb2tlPSIjMzMzIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPg==);

  @media screen and (max-width: 768px) {
    width: 12px;
    height: 12px;
    left: 6px;
    top: 8px;
  }
}

.experts-archive-pagination .pagination .dots {
  border: none;
  padding-bottom: 12px;

  @media (max-width: 768px) {
    padding-bottom: 8px;
  }
}

/* ==========================================
  メディアリンクショートコード [media_link]
========================================== */
.media-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.media-label {
  display: inline-block;
  text-align: center;
  padding: 3px 8px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fafafa;
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  white-space: nowrap;
  min-width: 80px;
}

.media-link {
  font-size: 12px;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
  word-break: break-all;
}

.experts-archive-sidebar {
  width: 28%;
  flex-shrink: 0;

  @media screen and (max-width: 1024px) {
    display: none;
  }
}