/* 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-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 30px;
  border-radius: 20px;
  background: var(--fsh-ink);
}

.fsc a.fsb-band,
.fsc a.fsb-band:hover {
  color: #fff;
  text-decoration: none;
}

.fsb-band--green {
  background: var(--fsh-green);
}

.fsb-band__text {
  font-size: 18px;
  font-weight: 700;
}

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

.fsb-band--green .fsb-band__go {
  color: #fff;
}

.fsb-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.fsc a.fsb-btn--green {
  background: var(--fsh-green);
  color: #fff;
  overflow-wrap: anywhere;
}

.fsc a.fsb-btn--line {
  border: 2px solid #fff;
  color: #fff;
}

/* ---- 記事の詳細 ---- */
.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-cta {
  background: var(--fsh-ink);
  color: #fff;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fsb-cta__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--fsh-green-light);
}

.fsb-cta__title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  line-height: 1.5;
}

.fsb-cta__text {
  font-size: 15px;
  color: var(--fsh-dark-text);
}

.fsb-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.fsp-history {
  background: var(--fsh-white);
  border: 1px solid var(--fsh-line);
  border-radius: 18px;
  padding: 0 24px;
}

.fsp-history summary {
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
}

.fsp-history ul {
  margin: 0 0 22px;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--fsh-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);
}

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

@media (max-width: 600px) {
  .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);
  }

  .fsb-band {
    padding: 20px 22px;
  }

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

  .fsb-cta__actions .fsb-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* 相談の帯・枠の下の「メールでも受け付けています」（CH-792） */
.fsc .fsb-band__mail {
  margin-top: 10px;
  text-align: center;
}

.fsc .fsb-cta__mail {
  margin-top: 14px;
  color: var(--fsh-dark-sub);
}

.fsc .fsb-cta__mail a {
  color: var(--fsh-green-light);
}

.fsc .fsb-cta__mail a:hover {
  color: #fff;
}
