/* ------------------------------------------
 *  執筆者カード [joy_author]（inc/joy-author.php）
 *  SCSS ビルド対象外の単独ファイル。ショートコードのあるページでのみ読み込む
 * ------------------------------------------ */

.joy-author {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #29865c;
  border-radius: 10px;
  background: #ffffff;
  color: #333333;
}

.joy-author .joy-author__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.joy-author .joy-author__photo {
  flex: 0 0 106px;
  width: 106px;
  height: 106px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
}

.joy-author .joy-author__photo img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.joy-author .joy-author__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  word-break: break-word;
}

.joy-author .joy-author__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.joy-author .joy-author__label {
  margin: 0;
  color: #29865c;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.joy-author .joy-author__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}

.joy-author .joy-author__kana {
  font-size: 0.6875rem;
}

.joy-author .joy-author__affiliation {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.joy-author .joy-author__link {
  display: inline;
  color: #333333;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: underline;
}

.joy-author .joy-author__link:hover,
.joy-author .joy-author__link:focus-visible {
  color: #29865c;
}

.joy-author .joy-author__bio {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #29865c;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

@media screen and (min-width: 751px) {
  .joy-author .joy-author__head {
    justify-content: center;
    gap: 24px;
  }

  .joy-author .joy-author__photo {
    flex-basis: 117px;
    width: 117px;
    height: 117px;
  }

  .joy-author .joy-author__info {
    width: 210px;
    gap: 10px;
  }

  .joy-author .joy-author__meta {
    gap: 8px;
  }
}
