/* CH-514 ブログ（記事の詳細・一覧）とプロフィール（fsc-blog-single.php・fsc-blog-list.php・fsc-profile.php）。
   assets/css/fsc-home.css（トップと同じ色・字・ヘッダー・フッター）のあとに読む。案は #6767 の Article・Blog・Profile。 */

/* ---- 共通 ---- */
.fsc .fsc-nav a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--fsh-green);
}

/* 下の線は内側の影で描き、高さに足さない（CH-987：どのページもトップと同じ 87px・線の位置も同じに） */
.fsc-header {
  box-shadow: inset 0 -1px 0 var(--fsh-line);
}

.fsb-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--fsh-green);
}

.fsb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--fsh-mute);
}

.fsb-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--fsb-tag-bg, #E3F1EC);
  color: var(--fsb-tag-fg, var(--fsh-green));
  font-weight: 700;
}

.fsb-thumb {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #E4E8E2;
}

/* 正方形に近い画像（WordPress のロゴ 200×200 など）は切らずに真ん中に収める。小さい画像は引き伸ばさない（scale-down）・CH-514 */
.fsb-thumb--fit {
  object-fit: scale-down;
  padding: 16px;
  background: var(--fsh-card);
}

.fsb-box {
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fsb-box--green {
  background: #E3F1EC;
  border-color: #E3F1EC;
}

.fsb-box__title {
  font-weight: 700;
}

.fsb-box__text {
  font-size: 14px;
  color: var(--fsh-text);
}

.fsc .fsb-box__link {
  font-size: 14px;
  font-weight: 700;
}

/* ---- 記事の詳細 ---- */
.fsb-single {
  padding-top: 40px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.fsb-article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fsb-crumbs {
  font-size: 13px;
  color: var(--fsh-mute);
}

.fsc .fsb-crumbs a {
  color: var(--fsh-mute);
}

.fsb-article__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fsb-article__title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.45;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.fsb-article__lead {
  font-size: 16px;
  color: var(--fsh-text);
}

.fsb-article__eyecatch {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

.fsb-toc {
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 24px 28px;
}

.fsb-toc__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.fsb-toc ol {
  margin: 0;
  padding-left: 1.4em;
  font-size: 15px;
  color: var(--fsh-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fsc .fsb-toc a {
  color: var(--fsh-ink);
}

/* 本文（古い記事の HTML をそのまま出す。見出し・コード・ポイントの枠の形をそろえる） */
.fsb-body {
  font-size: 17px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.fsb-body > * + * {
  margin-top: 20px;
}

.fsb-body :where(h2, h3) {
  font-weight: 900;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 2px solid var(--fsh-ink);
  margin-top: 40px;
  scroll-margin-top: 16px;
}

.fsb-body h2 {
  font-size: 24px;
}

.fsb-body h3 {
  font-size: 21px;
}

.fsb-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
}

.fsb-body :where(ul, ol) {
  padding-left: 1.4em;
}

.fsb-body pre {
  background: var(--fsh-ink);
  color: #E6EBEF;
  border-radius: 14px;
  padding: 20px 22px;
  font-family: var(--fsh-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  overflow-wrap: normal;
}

.fsb-body :not(pre) > code {
  font-family: var(--fsh-mono);
  font-size: 0.9em;
  background: #E8ECE7;
  padding: 1px 6px;
  border-radius: 6px;
}

.fsb-body blockquote,
.fsb-body .memo,
.fsb-body .box16 {
  background: #EEF6F3;
  border: 0;
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px;
}

.fsb-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}

.fsb-body :where(th, td) {
  border: 1px solid var(--fsh-line);
  padding: 8px 12px;
}

.fsb-body img {
  border-radius: 10px;
}

/* 寄せ方を決めていない画像のブロックと、真ん中に寄せた画像は真ん中に出す（CH-909）。
   記事のページは Cocoon の CSS を外しているので、block-library の figure.aligncenter（display:table・左右の余白 0）が左に寄っていた。
   alignleft・alignright、表の中の画像、p の中に直に置いた img（クラスのないもの）は今のまま */
.fsb-body .wp-block-image:not(.alignleft):not(.alignright),
.fsb-body figure.aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.fsb-body .wp-block-image:not(.alignleft):not(.alignright) img,
.fsb-body figure.aligncenter img,
.fsb-body img.aligncenter,
.fsb-body img.alignnone {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* キャプション。古い記事の figcaption はクラス（wp-element-caption）がないので、画像のブロックの中の figcaption も同じにする */
.fsb-body .wp-element-caption,
.fsb-body .wp-block-image figcaption,
.fsb-body figure.aligncenter figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--fsh-mute);
  margin-top: 6px;
}

/* ワンポイントの枠（ショートコード [Fpoint]・p.fpoint1 など）の見出しは、枠の線の上に重ねて後ろの色で線を隠す。
   ショートコードの CSS は後ろが白（#fff）なので、ページの地の色にそろえる（白い四角が浮いて見えないように・CH-863） */
.fsb-body p[class^="fpoint"]::before {
  background: var(--fsh-bg);
}

/* 前のテーマの見出しつきの箱（concept-box1・2）は、ワンポイント（[Fpoint]）と同じ形にする（CH-910）。
   見出しの字は記事ごとの CSS（inc/post-custom-css.php）の ::before の content をそのまま使い、色はここで #85db8f にそろえる。
   見出しのない箱（content がない）は枠だけになる */
.fsb-body .concept-box1,
.fsb-body .concept-box2 {
  position: relative;
  border: 1px solid #85db8f;
  border-radius: 4px;
  margin: 50px auto;
  padding: 20px 25px;
  box-sizing: border-box;
}

/* 見出しの後ろの余白は padding ではなく影で付ける。content が "" の記事で、幅 0 の見出しが枠の線を 8px 消さないように */
.fsb-body .concept-box1::before,
.fsb-body .concept-box2::before {
  position: absolute;
  top: -21px;
  padding: 20px 0;
  background: var(--fsh-bg);
  box-shadow: 8px 0 0 var(--fsh-bg);
  color: #85db8f !important;
  font-size: 20px;
  font-weight: bold;
  line-height: 0;
  letter-spacing: 0;
}

.fsb-body .mred {
  color: #B3261E;
}

.fsb-body .mblue {
  color: #1F4E8C;
}

.fsb-author {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 22px 24px;
}

.fsb-author__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E4E8E2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 丸の中のロゴのマーク（ヘッダーと同じ・40px で丸に収まる・CH-862） */
.fsb-author__mark {
  display: block;
  flex: none;
}

.fsb-author__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fsb-author__label {
  font-size: 13px;
  color: var(--fsh-mute);
}

.fsb-author__name {
  font-weight: 700;
}

.fsb-author__desc {
  font-size: 14px;
  color: var(--fsh-sub);
}

.fsb-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fsc a.fsb-pager__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--fsh-line);
  border-radius: 14px;
  background: var(--fsh-white);
  color: var(--fsh-ink);
  text-decoration: none;
}

.fsb-pager__item--next {
  text-align: right;
}

.fsb-pager__label {
  font-size: 13px;
  color: var(--fsh-mute);
}

.fsb-pager__title {
  font-weight: 700;
  font-size: 15px;
}

.fsb-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fsb-cats,
.fsb-popular {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

.fsc .fsb-cats a,
.fsb-cats__item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--fsh-ink);
  text-decoration: none;
}

.fsb-cats li + li {
  border-top: 1px dashed var(--fsh-line);
}

.fsb-cats .fsc-mono {
  color: var(--fsh-mute);
}

.fsb-popular {
  gap: 14px;
}

.fsc .fsb-popular a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fsh-ink);
  text-decoration: none;
}

.fsc .fsb-popular a:hover,
.fsc .fsb-cats a:hover {
  color: var(--fsh-green);
}

/* ---- ブログの一覧 ---- */
.fsb-list {
  padding-top: 48px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fsb-list__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.fsb-list__title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.35;
  font-weight: 900;
}

.fsb-list__desc {
  font-size: 16px;
  color: var(--fsh-text);
}

.fsb-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fsc .fsb-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--fsh-dash);
  background: var(--fsh-white);
  color: var(--fsh-ink);
  font-size: 15px;
  text-decoration: none;
}

.fsc .fsb-filter a[aria-current="page"] {
  border-color: var(--fsh-ink);
  background: var(--fsh-ink);
  color: #fff;
  font-weight: 700;
}

.fsb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.fsc a.fsb-card {
  display: flex;
  flex-direction: column;
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  overflow: hidden;
  color: var(--fsh-ink);
  text-decoration: none;
}

.fsc a.fsb-card:hover .fsb-card__title {
  color: var(--fsh-green);
}

.fsb-card__img {
  aspect-ratio: 16 / 9;
}

.fsb-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fsb-card .fsb-meta {
  font-size: 12px;
}

.fsb-card .fsb-tag {
  padding: 3px 10px;
}

.fsb-card__title {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
}

/* 大きいカードは、カードの中の幅が 840px（420px × 2）からは画像と文が横に並び、それより狭いと画像が上・文が下の 2 行になる。
   container-type で、カードの中の幅を下の @container で見る（CH-860）。 */
.fsc a.fsb-card--big {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  border-radius: 22px;
  container-type: inline-size;
}

/* 大きいカードの画像は、アイキャッチと同じ横長（1200×630）の枠にして、左右の文字が切れないようにする（CH-1012）。
   横に並ぶときも縦に伸ばさず、文の高さの真ん中に置く（height: 100% を使わないので、CH-860 の iPhone の重なりも起きない）。 */
.fsb-card--big .fsb-card__img {
  aspect-ratio: 1200 / 630;
}

@container (min-width: 840px) {
  .fsb-card--big .fsb-card__img {
    align-self: center;
  }
}

.fsb-card--big .fsb-card__body {
  padding: clamp(24px, 3vw, 40px);
  gap: 14px;
  justify-content: center;
}

.fsb-card--big .fsb-meta {
  font-size: 13px;
}

.fsb-card--big .fsb-card__title {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.5;
  font-weight: 900;
}

.fsb-card__lead {
  font-size: 15px;
  color: var(--fsh-sub);
}

.fsb-card__more {
  font-weight: 700;
  color: var(--fsh-green);
}

.fsb-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.fsb-pages .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  color: var(--fsh-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fsb-pages .page-numbers.current {
  background: var(--fsh-ink);
  border-color: var(--fsh-ink);
  color: #fff;
  font-weight: 700;
}

.fsb-pages .page-numbers.dots {
  border: 0;
  background: none;
}

.fsb-empty {
  color: var(--fsh-mute);
}

/* ---- プロフィール ---- */
.fsp {
  padding-top: 56px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.fsp-hero {
  display: block;
}

.fsp-hero__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fsp-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.4;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.fsp-lead {
  font-size: 16px;
  color: var(--fsh-text);
}

.fsp-nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
}

.fsp-num {
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 14px;
  padding: 16px 18px;
}

.fsp-num__value {
  display: block;
  font-size: 22px;
  font-weight: 600;
}

.fsp-num__label {
  font-size: 13px;
  color: var(--fsh-mute);
}

.fsp-note {
  font-size: 12px;
  color: var(--fsh-mute);
}

.fsp-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fsp-h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
}

.fsp-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.fsp-skill {
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fsp-skill__title {
  font-size: 18px;
  font-weight: 700;
}

.fsp-skill__text {
  font-size: 15px;
  color: var(--fsh-sub);
}

.fsp-steps {
  background: var(--fsh-ink);
  color: #fff;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fsp-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.fsp-steps__list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fsp-steps__no {
  color: var(--fsh-green-light);
  font-weight: 600;
}

.fsp-steps__title {
  font-weight: 700;
}

.fsp-steps__text {
  font-size: 14px;
  color: var(--fsh-dark-text);
}

/* ランサーズを始めたころ（得意なことのカードと同じ白い地・角丸・枠線・CH-514） */
.fsp-story {
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fsp-story__title {
  font-size: 18px;
  font-weight: 700;
}

.fsp-story__text {
  font-size: 15px;
  color: var(--fsh-sub);
}

/* 仕事のほかに（CH-973）：枠は .fsp-story と同じ。左にサムネイルを小さく 1 枚（幅 240px）、右に文とボタン 2 つ（横に並べる）。スマホは縦に積み、ボタンも縦に */
.fsp-hobby {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.fsp-hobby__img {
  flex: none;
  display: block;
  width: 240px;
  height: auto;
  border: 1px solid var(--fsh-line);
  border-radius: 12px;
}

.fsp-hobby__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fsp-hobby__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ---- 連絡のとり方（CH-837 #9236）：小さな白い枠を 2 つ横に。地・角・線は「ランサーズを始めたころ」（.fsp-story）と同じ。スマホは縦に 1 列 ---- */
.fsp-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fsp-contact__card {
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.fsp-contact__icon {
  flex: none;
  color: var(--fsh-green);
}

.fsp-contact__title {
  font-size: 18px;
  font-weight: 700;
  /* 「…LINE も使え／ます」のように言葉の途中で改行しないように、文節で折り返す（CH-837 #9256） */
  word-break: auto-phrase;
}

.fsp-contact__text {
  font-size: 15px;
  color: var(--fsh-sub);
}

/* 名刺の画像（CH-855）：PC は 2 つの枠の右に 1 列。枠は自分の高さのまま（2 行目の 1fr が画像の残りの高さを受け持つ）。スマホは下に真ん中・最大 240px */
.fsp-contact:has(.fsp-card) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 200px;
  grid-template-rows: auto 1fr;
}

.fsp-card {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fsp-card__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--fsh-line);
  border-radius: 12px;
}

.fsp-card__caption {
  font-size: 13px;
  color: var(--fsh-sub);
  text-align: center;
}

/* ---- 3 つの役割の分担の図（template-parts/fsc-profile-team.php・CH-837）。
   白い地・枠線・角丸 18px は得意なことのカードと同じ。線の太さ 1.8 はトップの線のアイコンと同じ ---- */
.fsc .fsp-team {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fsp-team__chart {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.fsp-team__node {
  flex: 1 1 0;
  min-width: 0;
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.fsp-team__node.is-human {
  border-color: var(--fsh-green);
  box-shadow: inset 0 0 0 1px var(--fsh-green);
}

.fsp-team__mark {
  flex: none;
  color: var(--fsh-ink);
}

.fsp-team__node.is-human .fsp-team__mark {
  color: var(--fsh-green);
}

.fsp-team__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.fsp-team__name-main {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fsp-team__kind {
  font-size: 13px;
  color: var(--fsh-mute);
}

.fsp-team__role {
  font-size: 15px;
  color: var(--fsh-sub);
}

.fsp-team__link {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fsh-green);
}

.fsp-team__link svg {
  display: block;
  width: 48px;
  height: 16px;
}

.fsp-team__caption {
  font-size: 15px;
  font-weight: 700;
  color: var(--fsh-ink);
}

/* 相談の枠（フッターのすぐ上・全ページで共通・CH-837）：ブログとプロフィールは本文の下の余白があるので、枠の上の余白は付けない */
.fsb-single + .fsc-contact,
.fsb-list + .fsc-contact,
.fsp + .fsc-contact {
  padding-top: 0;
}

/* ---- 幅が狭いとき ---- */
@media (max-width: 960px) {
  .fsb-single {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 名刺の画像は、幅が狭いと 2 つの枠の下に 1 行で・真ん中・最大 240px（CH-855） */
  .fsp-contact:has(.fsp-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .fsp-card {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    max-width: 240px;
    justify-self: center;
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  /* 連絡のとり方の 2 つの枠はスマホで縦に 1 列（CH-837 #9236） */
  .fsp-contact,
  .fsp-contact:has(.fsp-card) {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 仕事のほかに（CH-973）：サムネイル（幅 240px のまま）を上に、ボタンは縦に 1 列 */
  .fsp-hobby {
    flex-direction: column;
    gap: 16px;
  }

  .fsp-hobby__links {
    flex-direction: column;
  }

  .fsb-single,
  .fsb-list,
  .fsp {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .fsb-body {
    font-size: 16px;
  }

  .fsb-toc {
    padding: 20px;
  }

  .fsb-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 3 つの役割の分担の図：縦に並べ、線も縦にする */
  .fsp-team__chart {
    flex-direction: column;
    align-items: stretch;
  }

  .fsp-team__link {
    flex: 0 0 40px;
  }

  .fsp-team__link svg {
    transform: rotate(90deg);
  }
}

/* 記事の中のブログカード（Cocoon の .blogcard・外部 .external-blogcard と内部 .internal-blogcard・CH-992）。
   新しいデザインのページは Cocoon のブログカードの CSS も Font Awesome も読まないので、画像・タイトル・説明・アイコン・ドメインが 1 行ずつ縦に並んでいた。
   HTML は Cocoon のまま（lib/blogcard-in.php・blogcard-out.php）で、ここで 1 枚の札にする：左に小さい画像、右にタイトルと説明（2 行）、その下の 1 行にアイコン＋ドメイン。
   枠と角の丸みは「この記事を書いた人」（.fsb-author）と同じ。ラベル（.blogcard-label の fa の四角）は出さない。
   hp17（cocoon-child-master）と fs-create-cocoon-child に同じ形で置く（違うのは差し色の変数だけ）。 */
.fsc .fsb-body a.blogcard-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fsb-body .blogcard {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  grid-template-areas:
    "thumb content"
    "thumb footer";
  grid-template-rows: auto 1fr;
  gap: 6px 18px;
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 16px 20px;
  line-height: 1.6;
  transition: border-color 0.15s;
}

/* 画像がないカードは文だけの 1 列 */
.fsb-body .blogcard:has(.blogcard-thumbnail:empty) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "content"
    "footer";
}

.fsb-body .blogcard-label,
.fsb-body .blogcard-thumbnail:empty {
  display: none;
}

.fsb-body .blogcard-thumbnail {
  grid-area: thumb;
  margin: 0;
  align-self: start;
}

.fsb-body .blogcard-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--fsh-line);
}

.fsb-body .blogcard-content {
  grid-area: content;
  min-width: 0;
}

.fsb-body .blogcard-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fsh-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.fsb-body .blogcard-snippet {
  margin-top: 4px;
  font-size: 13px;
  color: var(--fsh-sub);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.fsb-body .blogcard-snippet:empty {
  display: none;
}

.fsb-body .blogcard-footer {
  grid-area: footer;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 12px;
  color: var(--fsh-mute);
}

.fsb-body .blogcard-site {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fsb-body .blogcard-favicon {
  flex: none;
  display: flex;
}

.fsb-body .blogcard-favicon img {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 0;
}

.fsb-body .blogcard-domain {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fsc .fsb-body a.blogcard-wrap:hover .blogcard {
  border-color: var(--fsh-green);
}

.fsc .fsb-body a.blogcard-wrap:hover .blogcard-title {
  color: var(--fsh-green);
}

.fsc .fsb-body a.blogcard-wrap:focus-visible {
  outline: 2px solid var(--fsh-green);
  outline-offset: 2px;
  border-radius: 18px;
}

/* スマホ：横並びのまま画像を小さく、余白を詰める（はみ出さないように） */
@media (max-width: 600px) {
  .fsb-body .blogcard {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px;
  }

  .fsb-body .blogcard-title {
    font-size: 15px;
  }
}
