/* =============================================
   専門家一覧・詳細ページCSS
   ============================================= */

/* フィルター */
.expert-filters {
  margin-bottom: 32px;
}
.expert-filter-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.expert-filter-form .form-control {
  width: auto;
  min-width: 180px;
}

/* グリッド */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 1024px) { .expert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .expert-grid { grid-template-columns: 1fr; } }

/* カード */
.expert-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
  color: var(--text-primary);
}
.expert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text-primary);
}
.expert-card-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.expert-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expert-card-body {
  flex: 1;
  min-width: 0;
}
.expert-card-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.expert-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.expert-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* 詳細ページ */
.expert-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.expert-detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}
.expert-detail-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--border-color);
}
.expert-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expert-detail-info h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.expert-detail-license {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.expert-detail-office,
.expert-detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.expert-detail-office i,
.expert-detail-location i { width: 16px; height: 16px; }

.expert-detail-section {
  margin-bottom: 32px;
}
.expert-detail-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-primary);
}
.expert-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.expert-detail-bio {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.expert-detail-cta {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.expert-detail-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.expert-detail-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .expert-detail-header { flex-direction: column; align-items: center; text-align: center; }
  .expert-detail-license { justify-content: center; }
}
