/* 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);
}

.fsc-header {
  border-bottom: 1px solid 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 .concept-box1,
.fsb-body .concept-box2,
.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;
}

.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;
}

.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;
}

.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;
}

.fsb-card--big .fsb-card__img {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.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-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);
}

/* ---- 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);
  }
}

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

  .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);
  }
}
