/*
 * Consultant profile & archive styles
 * single-consultant.php / archive-consultant.php 用。
 * media-single.css と同じデザイントークン（--mds-*）を参照する。
 */

:root {
  --mds-color-primary: #297ee7;
  --mds-color-primary-dark: #2168d4;
  --mds-color-primary-light: #dceffd;
  --mds-color-text: #111827;
  --mds-color-text-muted: #6b7280;
  --mds-color-text-light: #9ca3af;
  --mds-color-border: #e5e7eb;
  --mds-color-bg: #ffffff;
  --mds-color-bg-section: #f3f4f6;
  --mds-color-bg-card: #ffffff;
  --mds-color-success: #089355;
  --mds-radius-sm: 6px;
  --mds-radius-md: 8px;
  --mds-radius-lg: 12px;
  --mds-radius-full: 9999px;
}

.ptg-ct,
.ptg-ct-archive {
  background: var(--mds-color-bg, #fff);
  color: var(--mds-color-text, #111827);
}

.ptg-ct .container,
.ptg-ct-archive .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   Profile hero
   ========================================================================= */

.ptg-ct-hero {
  padding: 48px 0;
  background: linear-gradient(135deg, rgba(41, 126, 231, 0.05), rgba(102, 62, 233, 0.05));
  border-bottom: 1px solid var(--mds-color-border, #e5e7eb);
}

.ptg-ct-hero__inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.ptg-ct-hero__visual {
  flex-shrink: 0;
}

.ptg-ct-hero__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ptg-ct-hero__photo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mds-color-bg-section, #f3f4f6);
  color: var(--mds-color-text-light, #9ca3af);
}

.ptg-ct-hero__role {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mds-color-primary, #297ee7);
  margin-bottom: 4px;
}

.ptg-ct-hero__name {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.ptg-ct-hero__quals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.ptg-ct-hero__qual {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mds-color-success, #089355);
  background: rgba(8, 147, 85, 0.08);
  border: 1px solid rgba(8, 147, 85, 0.2);
  border-radius: 20px;
}

.ptg-ct-hero__specialty {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ptg-ct-hero__specialty-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mds-color-primary, #297ee7);
  background: rgba(41, 126, 231, 0.08);
  border: 1px solid rgba(41, 126, 231, 0.18);
  border-radius: 20px;
}

.ptg-ct-hero__lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--mds-color-text-muted, #6b7280);
  margin: 0 0 16px;
}

.ptg-ct-hero__links {
  display: flex;
  gap: 10px;
}

.ptg-ct-hero__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--mds-radius-md, 8px);
  background: #fff;
  border: 1px solid var(--mds-color-border, #e5e7eb);
  color: var(--mds-color-text-muted, #6b7280);
  transition: all 0.2s ease;
}

.ptg-ct-hero__social:hover {
  background: var(--mds-color-primary, #297ee7);
  border-color: var(--mds-color-primary, #297ee7);
  color: #fff;
}

.ptg-ct-hero__social--text {
  width: auto;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

/* =========================================================================
   Stats
   ========================================================================= */

.ptg-ct-stats {
  padding: 32px 0;
  border-bottom: 1px solid var(--mds-color-border, #e5e7eb);
}

.ptg-ct-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
}

.ptg-ct-stats__item {
  text-align: center;
  padding: 20px 16px;
  background: var(--mds-color-bg-section, #f3f4f6);
  border-radius: var(--mds-radius-lg, 12px);
}

.ptg-ct-stats__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mds-color-primary, #297ee7);
  margin: 0 0 4px;
}

.ptg-ct-stats__label {
  font-size: 0.78rem;
  color: var(--mds-color-text-muted, #6b7280);
}

/* =========================================================================
   Sections
   ========================================================================= */

.ptg-ct-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--mds-color-border, #e5e7eb);
}

.ptg-ct-section__heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--mds-color-primary, #297ee7);
}

/* Message */
.ptg-ct-message__quote {
  margin: 0;
  padding: 24px 28px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--mds-color-text, #111827);
  background: var(--mds-color-bg-section, #f3f4f6);
  border-left: 4px solid var(--mds-color-primary, #297ee7);
  border-radius: 0 var(--mds-radius-md, 8px) var(--mds-radius-md, 8px) 0;
}

/* Career history */
.ptg-ct-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ptg-ct-history__item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--mds-color-border, #e5e7eb);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ptg-ct-history__item:last-child {
  border-bottom: none;
}

.ptg-ct-history__period {
  flex-shrink: 0;
  min-width: 110px;
  font-weight: 600;
  color: var(--mds-color-primary, #297ee7);
  font-size: 0.82rem;
}

.ptg-ct-history__body {
  color: var(--mds-color-text, #111827);
}

/* Detailed profile */
.ptg-ct-profile__content {
  font-size: 0.95rem;
  line-height: 1.9;
}

/* Media features */
.ptg-ct-media__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ptg-ct-media__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px dashed var(--mds-color-border, #e5e7eb);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ptg-ct-media__item:last-child {
  border-bottom: none;
}

.ptg-ct-media__outlet {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mds-color-text, #111827);
  background: var(--mds-color-bg-section, #f3f4f6);
  border: 1px solid var(--mds-color-border, #e5e7eb);
  border-radius: var(--mds-radius-sm, 6px);
}

.ptg-ct-media__link {
  color: var(--mds-color-primary, #297ee7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ptg-ct-media__link svg {
  display: inline-block;
  vertical-align: -1px;
  margin-left: 3px;
}

.ptg-ct-media__date {
  font-size: 0.78rem;
  color: var(--mds-color-text-light, #9ca3af);
}

/* Supervised articles */
.ptg-ct-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ptg-ct-articles__card {
  display: flex;
  flex-direction: column;
  background: var(--mds-color-bg-card, #fff);
  border: 1px solid var(--mds-color-border, #e5e7eb);
  border-radius: var(--mds-radius-lg, 12px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ptg-ct-articles__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ptg-ct-articles__thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ptg-ct-articles__body {
  padding: 16px;
}

.ptg-ct-articles__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mds-color-primary, #297ee7);
  margin-bottom: 6px;
}

.ptg-ct-articles__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--mds-color-text, #111827);
}

.ptg-ct-articles__date {
  font-size: 0.75rem;
  color: var(--mds-color-text-light, #9ca3af);
}

/* =========================================================================
   CTA
   ========================================================================= */

.ptg-ct-cta {
  padding: 48px 0;
}

.ptg-ct-cta__inner {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--mds-color-primary, #297ee7), #663ee9);
  border-radius: 16px;
  color: #fff;
}

.ptg-ct-cta__heading {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.ptg-ct-cta__text {
  font-size: 0.9rem;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
}

.ptg-ct-cta__btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mds-color-primary, #297ee7);
  background: #fff;
  border-radius: var(--mds-radius-full, 9999px);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ptg-ct-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================================================
   Archive
   ========================================================================= */

.ptg-ct-archive__hero {
  padding: 48px 0 32px;
  text-align: center;
}

.ptg-ct-archive__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--mds-color-primary, #297ee7);
  margin-bottom: 8px;
}

.ptg-ct-archive__heading {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.ptg-ct-archive__lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--mds-color-text-muted, #6b7280);
}

.ptg-ct-archive__list {
  padding: 24px 0 48px;
}

.ptg-ct-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ptg-ct-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--mds-color-bg-card, #fff);
  border: 1px solid var(--mds-color-border, #e5e7eb);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ptg-ct-card:hover {
  border-color: rgba(41, 126, 231, 0.35);
  box-shadow: 0 8px 24px rgba(41, 126, 231, 0.08);
  transform: translateY(-2px);
}

.ptg-ct-card__visual {
  flex-shrink: 0;
}

.ptg-ct-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mds-color-primary-light, #dceffd);
}

.ptg-ct-card__photo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mds-color-bg-section, #f3f4f6);
  color: var(--mds-color-text-light, #9ca3af);
}

.ptg-ct-card__body {
  flex: 1;
  min-width: 0;
}

.ptg-ct-card__role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mds-color-primary, #297ee7);
  margin-bottom: 2px;
}

.ptg-ct-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.ptg-ct-card__quals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.ptg-ct-card__qual {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mds-color-success, #089355);
  background: rgba(8, 147, 85, 0.08);
  border: 1px solid rgba(8, 147, 85, 0.2);
  border-radius: 20px;
}

.ptg-ct-card__specialty {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ptg-ct-card__specialty-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mds-color-primary, #297ee7);
  background: rgba(41, 126, 231, 0.08);
  border: 1px solid rgba(41, 126, 231, 0.18);
  border-radius: 20px;
}

.ptg-ct-card__bio {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--mds-color-text-muted, #6b7280);
  margin: 0 0 12px;
}

.ptg-ct-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--mds-color-bg-section, #f3f4f6);
  border-radius: var(--mds-radius-md, 8px);
}

.ptg-ct-card__stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mds-color-primary, #297ee7);
  margin: 0;
}

.ptg-ct-card__stat-label {
  font-size: 0.68rem;
  color: var(--mds-color-text-muted, #6b7280);
}

.ptg-ct-card__more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mds-color-primary, #297ee7);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (min-width: 640px) {
  .ptg-ct-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ptg-ct-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .ptg-ct-articles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .ptg-ct-hero__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ptg-ct-hero__quals,
  .ptg-ct-hero__specialty,
  .ptg-ct-hero__links {
    justify-content: center;
  }

  .ptg-ct-hero__photo {
    width: 120px;
    height: 120px;
  }

  .ptg-ct-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .ptg-ct-card__quals,
  .ptg-ct-card__specialty,
  .ptg-ct-card__stats {
    justify-content: center;
  }
}
