/* =====================================================================
   SEE ALSO・REFERENCE のカード
   - functions.php の nlink_scode()・nrocks_reference_shortcode() が作る HTML の書式
   - ITEM（商品リンクの箱）の書式は css/item.css（形はプラグイン BACKON ITEM の css/item.css）
   - 公開ページと、記事の編集画面（ブロックのプレビュー）の両方で読み込む（functions.php の nrocks_enqueue_card_assets()）
   ===================================================================== */

/* =====================================================================
   過去記事へのリンク SEE ALSO [nlink]（functions.php の nlink_scode()）。ITEM カードと同じ形
   ・左に縦線、1行目「↗ SEE ALSO "CHECK THIS OUT TOO"」、2行目に記事タイトル、3行目に日付・カテゴリ・タグ、右に写真 60px
   ・カード全体がリンク。マウスオンで文字を薄いグレーに（ショップのリンクと同じ色）
   ===================================================================== */
.seealso,
.content a.seealso {             /* 本文のリンクの下線などを打ち消す */
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: inherit;
  text-decoration: none;
}
.seealso__body {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid #bcbcbc;
}
.seealso__head {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}
.seealso__head .fa-square-arrow-up-right {
  color: #bcbcbc;
  margin-right: 0.4em;
}
.seealso__label,
.seealso__tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.seealso__tagline {
  margin-left: 0.6em;
}
.seealso__name {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.3;
}
.seealso__meta {
  display: block;
  margin: 3px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.8px;
  line-height: 1.2em;
  text-transform: uppercase;
}
.seealso__meta span + span {
  margin-left: 0.6em;
}
.seealso__img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seealso__img img {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  margin: 0;
}
/* アイキャッチを左に小さく（functions.php の NROCKS_SEEALSO_IMG_POS が 'left' のとき。REFERENCE のファビコンと同じ大きさ）
   ・タイトルの行の上の余白は、横並びのかたまり（.seealso__row）に移す */
.seealso__row {
  display: flex;
  align-items: center;
  gap: 8px;                  /* アイキャッチ 〜 文字 */
  margin: 3px 0 0;
}
.seealso__row .seealso__name {
  margin: 0;
}
.seealso__text {
  display: block;
  min-width: 0;
}
.content .seealso__thumb,
.seealso__thumb {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  object-fit: cover;         /* 横長・縦長の写真も正方形に切り抜く */
  border-radius: 4px;        /* 少しだけ角丸（アイコンっぽく） */
}
.seealso:hover .seealso__name,
.seealso:hover .seealso__meta {
  color: #bdc3c7;
}

/* =====================================================================
   外部リンクのカード REFERENCE（functions.php の nrocks_reference_shortcode()）
   ・SEE ALSO（.seealso）と同じ形：左に縦線、1行目「↗ REFERENCE "STRAIGHT FROM THE SOURCE"」、2行目にページのタイトル、3行目にドメイン
   ・カード全体がリンク（別タブ）。マウスオンで文字を薄いグレーに
   ===================================================================== */
.reference,
.content a.reference,
.content a.reference[target="_blank"] {   /* 本文の「別タブで開くリンクに下線」（.content a[target=_blank]）を打ち消す */
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: inherit;
  text-decoration: none;
}
.reference__body {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid #bcbcbc;
}
.reference__head {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}
.reference__head .fa-arrow-up-right-from-square {
  color: #bcbcbc;
  margin-right: 0.4em;
}
.reference__label,
.reference__tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.reference__tagline {
  margin-left: 0.6em;
}
/* 2行目・3行目：左にファビコン（タイトルとドメインの2行分の高さ）、右にタイトル・ドメイン */
.reference__row {
  display: flex;
  align-items: center;
  gap: 8px;                  /* ファビコン 〜 文字 */
  margin: 3px 0 0;
}
.content .reference__fav,
.reference__fav {
  flex: 0 0 auto;
  width: 28px;               /* タイトル（12px×1.3）＋ ドメイン（10.8px×1.2）＋ 間 の高さに合わせる */
  height: 28px;
  margin: 0;
  border-radius: 4px;
}
/* ファビコンをグレーに（ITEM・SEE ALSO のアイコン #bcbcbc にそろえる）
   ※ カラーにするときは、この .reference__fav のまとまりを消す */
.reference__fav {
  filter: grayscale(1);
  opacity: .8;               /* 濃さ（1 で元の濃さ） */
}
.reference__text {
  display: block;
  min-width: 0;
}
.reference__name {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;   /* 長い英語のタイトルでもはみ出さない */
}
.reference__meta {
  display: block;
  margin: 3px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.8px;
  font-weight: 700;          /* ドメインだけ太く（ITEM のショップのリンクと同じ太さ） */
  line-height: 1.2em;
  text-transform: uppercase;
}
.reference__img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reference__img img {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  margin: 0;
}
.reference:hover .reference__name,
.reference:hover .reference__meta {
  color: #bdc3c7;
}
