/* yd-supervisor: 記事下の著者プロフィール BOX（E-E-A-T）
 *
 * 親サイト準拠カラー（#F5F4F0 / #61564F / #c87c6b / Shippori Mincho B1）。
 * 監修者カード（article-supervisor.css）とトーンを揃える。
 */

/* 監修BOX（margin-bottom 32px）の直下・目次の上に置かれるため
 * 上マージンは持たない（隣接マージンの相殺で監修BOXとの間隔は 32px） */
.yd-article-author {
  margin: 0 0 32px;
  padding: 20px 24px;
  background-color: #FFFFFF;
  border: 1px solid #EDE8E1;
  border-radius: 6px;
}

/* 見出しは p 要素（見出しタグ不使用）。SWELL の `.post_content` 系装飾を
 * 確実に上書きするため、ラベルの体裁は !important で固定する。 */
aside.yd-article-author p.yd-article-author__heading {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #61564F !important;
  margin: 0 0 14px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #c87c6b !important;
  border-radius: 0 !important;
  background: none !important;
  letter-spacing: 0.5px !important;
  line-height: 1.4 !important;
}

aside.yd-article-author p.yd-article-author__heading::before,
aside.yd-article-author p.yd-article-author__heading::after {
  content: none !important;
  display: none !important;
}

aside.yd-article-author p.yd-article-author__heading strong {
  font: inherit !important;
  color: inherit !important;
  background: none !important;
}

/* ---- プロフィールカード ---- */

.yd-article-author__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background-color: #FAF8F4;
  border: 1px solid #EDE8E1;
  border-radius: 6px;
  color: #61564F;
}

/* 本人特定を避けるためイラストアバター（なければモノグラムにフォールバック） */
.yd-article-author__avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #EFEAE3;
  border: 1px solid #E3DCD2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* SWELL の .post_content img 装飾を打ち消しつつ円形に収める */
aside.yd-article-author .yd-article-author__avatar img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.yd-article-author__avatar span {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
  color: #c87c6b;
  line-height: 1;
}

.yd-article-author__body {
  flex: 1 1 auto;
  min-width: 0;
}

.yd-article-author__name {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.4;
  color: #61564F;
}

.yd-article-author__kana {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #807468;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.yd-article-author__title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #c87c6b;
}

.yd-article-author__bio {
  font-size: 14px;
  line-height: 1.8;
  color: #61564F;
}

aside.yd-article-author a.yd-article-author__more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #c87c6b;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
}

aside.yd-article-author a.yd-article-author__more:hover {
  opacity: 0.8;
}

/* ---- 治療経過エビデンス ---- */

.yd-article-author__evidence {
  margin-top: 16px;
}

.yd-article-author__evidence-label {
  font-size: 13px;
  font-weight: 600;
  color: #61564F;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid #c87c6b;
  line-height: 1.4;
}

.yd-article-author__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.yd-article-author__shot {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: #61564F;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 6px;
}

.yd-article-author__shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 1;
}

/* SWELL の .post_content img 装飾（margin 等）を打ち消す */
aside.yd-article-author .yd-article-author__shot img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 1px solid #EDE8E1 !important;
  border-radius: 6px 6px 0 0 !important;
  box-shadow: none !important;
}

.yd-article-author__shot-caption {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #807468;
  text-align: center;
  padding: 6px 4px;
  background-color: #FAF8F4;
  border: 1px solid #EDE8E1;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.yd-article-author__note {
  font-size: 11px;
  color: #807468;
  margin-top: 10px;
  line-height: 1.6;
}

/* ---- モバイル ---- */

@media (max-width: 599px) {
  .yd-article-author {
    padding: 14px 16px;
    margin: 0 0 24px;
  }

  aside.yd-article-author p.yd-article-author__heading {
    font-size: 15px !important;
    margin: 0 0 12px !important;
    padding: 0 0 6px !important;
  }

  .yd-article-author__card {
    padding: 12px;
    gap: 12px;
  }

  .yd-article-author__avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  .yd-article-author__avatar span {
    font-size: 22px;
  }

  .yd-article-author__name {
    font-size: 16px;
  }

  .yd-article-author__kana {
    display: block;
    margin: 2px 0 0;
  }

  .yd-article-author__bio {
    font-size: 13px;
  }

  /* スマホでも経過比較ができるよう 3 列を維持しつつ余白を詰める */
  .yd-article-author__gallery {
    gap: 8px;
  }

  .yd-article-author__shot-caption {
    font-size: 10px;
    padding: 4px 2px;
  }
}
