/* =====================================================================
   YOUFIRST for Biz — main stylesheet
   - デザイントークン (CSS変数)
   - 基本タイポグラフィ
   - レイアウト
   - 共通コンポーネント (ヘッダー / フッター / カード / ボタン)
   - 記事本文の装飾 (Phase 2)
   ===================================================================== */

/* ------------------------------------------------------------------
   1. デザイントークン
   ------------------------------------------------------------------ */
:root {
	/* Base */
	--yfb-white:        #ffffff;
	--yfb-bg-soft:      #f5f7fa;
	--yfb-bg-mute:      #eef1f5;
	--yfb-divider:      #e3e7ec;

	/* Text */
	--yfb-text-main:    #0d1117;
	--yfb-text-sub:     #4a5568;
	--yfb-text-mute:    #8a94a3;

	/* Brand */
	--yfb-navy:         #1a2b4a;
	--yfb-navy-deep:    #0f1d33;
	--yfb-blue:         #2563eb;
	--yfb-blue-soft:    #dbe6ff;

	/* Strong */
	--yfb-strong-bg:    #0d1117;
	--yfb-strong-text:  #ffffff;

	/* Typography */
	--yfb-font-sans:    "Noto Sans JP", "Hiragino Sans", "Meiryo", sans-serif;
	--yfb-font-mono:    "JetBrains Mono", "Menlo", monospace;

	/* Layout */
	--yfb-content-max:  760px;
	--yfb-grid-max:     1200px;
	--yfb-radius:       8px;
	--yfb-radius-sm:    4px;

	/* Transition */
	--yfb-transition:   0.2s ease;
}

/* ------------------------------------------------------------------
   2. 基本タイポグラフィ
   ------------------------------------------------------------------ */
html {
	font-size: 16px;
}

body {
	font-family: var(--yfb-font-sans);
	font-size: 16px;
	line-height: 1.85;
	color: var(--yfb-text-main);
	background: var(--yfb-white);
}

@media (min-width: 768px) {
	body {
		font-size: 17px;
	}
}

p {
	margin-top: 1.5em;
}

p:first-child {
	margin-top: 0;
}

a {
	color: var(--yfb-blue);
	transition: color var(--yfb-transition);
}

a:hover {
	color: var(--yfb-navy-deep);
}

strong {
	font-weight: 700;
}

/* ------------------------------------------------------------------
   3. レイアウトコンテナ
   ------------------------------------------------------------------ */
.yfb-container {
	width: 100%;
	max-width: var(--yfb-grid-max);
	margin-inline: auto;
	padding-inline: 20px;
}

@media (min-width: 768px) {
	.yfb-container {
		padding-inline: 32px;
	}
}

.yfb-content {
	width: 100%;
	max-width: var(--yfb-content-max);
	margin-inline: auto;
}

.yfb-section {
	padding-block: 40px;
}

@media (min-width: 768px) {
	.yfb-section {
		padding-block: 72px;
	}
}

.yfb-section--soft {
	background: var(--yfb-bg-soft);
}

/* ------------------------------------------------------------------
   4. ヘッダー
   ------------------------------------------------------------------ */
.yfb-site-header {
	border-bottom: 1px solid var(--yfb-divider);
	background: var(--yfb-white);
	position: sticky;
	top: 0;
	z-index: 100;
}

.yfb-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
	padding-block: 12px;
}

.yfb-site-branding {
	display: flex;
	align-items: center;
	gap: 8px;
}

.yfb-site-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--yfb-text-main);
	letter-spacing: 0.02em;
}

.yfb-site-title a {
	color: inherit;
}

.yfb-site-title a:hover {
	color: var(--yfb-navy);
}

.yfb-nav {
	display: none;
}

@media (min-width: 1024px) {
	.yfb-nav {
		display: block;
	}
}

.yfb-nav ul {
	display: flex;
	gap: 24px;
	list-style: none;
}

.yfb-nav a {
	color: var(--yfb-text-main);
	font-size: 15px;
	font-weight: 500;
	transition: color var(--yfb-transition);
}

.yfb-nav a:hover {
	color: var(--yfb-navy);
}

.yfb-header-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: var(--yfb-navy);
	color: var(--yfb-white);
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--yfb-radius);
	transition: background var(--yfb-transition);
}

.yfb-header-cta:hover {
	background: var(--yfb-navy-deep);
	color: var(--yfb-white);
}

/* ------------------------------------------------------------------
   5. フッター
   ------------------------------------------------------------------ */
.yfb-site-footer {
	margin-top: 80px;
	padding-block: 40px;
	border-top: 1px solid var(--yfb-divider);
	background: var(--yfb-bg-soft);
	color: var(--yfb-text-sub);
	font-size: 14px;
}

.yfb-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin-bottom: 16px;
}

.yfb-footer-nav a {
	color: var(--yfb-text-sub);
}

.yfb-footer-nav a:hover {
	color: var(--yfb-navy);
}

.yfb-copyright {
	color: var(--yfb-text-mute);
	font-size: 13px;
}

/* ------------------------------------------------------------------
   6. 共通: カード / ボタン (Phase 2 以降で拡張)
   ------------------------------------------------------------------ */
.yfb-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--yfb-radius);
	font-weight: 600;
	font-size: 15px;
	transition: background var(--yfb-transition), color var(--yfb-transition);
}

.yfb-button--primary {
	background: var(--yfb-navy);
	color: var(--yfb-white);
}

.yfb-button--primary:hover {
	background: var(--yfb-navy-deep);
	color: var(--yfb-white);
}

.yfb-button--ghost {
	background: var(--yfb-white);
	color: var(--yfb-navy);
	border: 1px solid var(--yfb-navy);
}

.yfb-button--ghost:hover {
	background: var(--yfb-navy);
	color: var(--yfb-white);
}

/* ------------------------------------------------------------------
   7. 投稿一覧 (Phase 1 ではフォールバック)
   ------------------------------------------------------------------ */
.yfb-post-list {
	list-style: none;
	display: grid;
	gap: 24px;
}

.yfb-post-list__item {
	padding: 20px 0;
	border-bottom: 1px solid var(--yfb-divider);
}

.yfb-post-list__item:last-child {
	border-bottom: 0;
}

.yfb-post-list__title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 4px;
}

.yfb-post-list__title a {
	color: var(--yfb-text-main);
}

.yfb-post-list__title a:hover {
	color: var(--yfb-navy);
}

.yfb-post-list__meta {
	color: var(--yfb-text-mute);
	font-size: 13px;
}

/* ------------------------------------------------------------------
   8. 記事ページ
   ------------------------------------------------------------------ */
.yfb-article {
	padding-block: 32px 64px;
}

@media (min-width: 768px) {
	.yfb-article {
		padding-block: 48px 96px;
	}
}

/* パンくず */
.yfb-breadcrumbs {
	font-size: 13px;
	color: var(--yfb-text-sub);
	margin-bottom: 24px;
}

.yfb-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
}

.yfb-breadcrumbs li:not(:last-child)::after {
	content: "›";
	margin-left: 6px;
	color: var(--yfb-text-mute);
}

.yfb-breadcrumbs a {
	color: var(--yfb-text-sub);
}

.yfb-breadcrumbs a:hover {
	color: var(--yfb-navy);
}

/* 記事ヘッダー */
.yfb-article__header {
	margin-bottom: 32px;
}

.yfb-badge {
	display: inline-block;
	padding: 4px 12px;
	background: var(--yfb-blue-soft);
	color: var(--yfb-navy);
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	letter-spacing: 0.04em;
}

.yfb-badge:hover {
	background: var(--yfb-navy);
	color: var(--yfb-white);
}

.yfb-article__title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.45;
	margin: 16px 0 20px;
	letter-spacing: 0.01em;
}

@media (min-width: 768px) {
	.yfb-article__title {
		font-size: 32px;
	}
}

.yfb-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--yfb-text-mute);
}

.yfb-meta__date--modified {
	color: var(--yfb-text-sub);
}

.yfb-article__thumbnail {
	margin: 32px 0;
	border-radius: var(--yfb-radius);
	overflow: hidden;
}

.yfb-article__thumbnail img {
	width: 100%;
	height: auto;
}

/* 本文エリア共通 */
.yfb-entry-content {
	font-size: 16px;
	line-height: 1.85;
	color: var(--yfb-text-main);
	overflow-wrap: break-word;
}

@media (min-width: 768px) {
	.yfb-entry-content {
		font-size: 17px;
	}
}

.yfb-entry-content > * + * {
	margin-top: 1.5em;
}

/* 見出し */
.yfb-entry-content h2,
.yfb-entry-content h3 {
	scroll-margin-top: 88px;
}

.yfb-entry-content h2 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.5;
	margin-top: 2.5em;
	margin-bottom: 0.8em;
	padding: 4px 0 12px 16px;
	border-left: 4px solid var(--yfb-navy);
	border-bottom: 1px solid var(--yfb-divider);
}

.yfb-entry-content h3 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	margin-top: 2em;
	margin-bottom: 0.6em;
	padding-bottom: 6px;
	display: inline-block;
	border-bottom: 2px solid var(--yfb-navy);
}

.yfb-entry-content h4 {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	margin-top: 1.6em;
	margin-bottom: 0.5em;
	padding-left: 12px;
	position: relative;
}

.yfb-entry-content h4::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 4px;
	height: calc(100% - 0.7em);
	background: var(--yfb-navy);
	border-radius: 2px;
}

.yfb-entry-content h5,
.yfb-entry-content h6 {
	font-weight: 700;
	margin-top: 1.5em;
}

/* リスト */
.yfb-entry-content ul,
.yfb-entry-content ol {
	padding-left: 1.5em;
}

.yfb-entry-content li + li {
	margin-top: 0.4em;
}

/* チェックリストスタイル */
.yfb-entry-content ul.is-style-checklist {
	list-style: none;
	padding-left: 0;
}

.yfb-entry-content ul.is-style-checklist li {
	position: relative;
	padding-left: 28px;
}

.yfb-entry-content ul.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='%231a2b4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
}

/* リンク */
.yfb-entry-content a {
	color: var(--yfb-blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.yfb-entry-content a:hover {
	color: var(--yfb-navy-deep);
}

/* 画像・キャプション */
.yfb-entry-content img {
	border-radius: var(--yfb-radius);
}

.yfb-entry-content figure {
	margin: 1.5em 0;
}

.yfb-entry-content figcaption {
	font-size: 13px;
	color: var(--yfb-text-sub);
	text-align: center;
	margin-top: 8px;
}

/* 引用 */
.yfb-entry-content blockquote,
.yfb-entry-content .wp-block-quote {
	margin: 1.6em 0;
	padding: 4px 20px;
	border-left: 4px solid var(--yfb-navy);
	color: var(--yfb-text-sub);
	font-style: normal;
}

.yfb-entry-content blockquote cite,
.yfb-entry-content .wp-block-quote cite {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--yfb-text-mute);
	font-style: normal;
}

.yfb-entry-content .is-style-yfb-bordered {
	background: var(--yfb-bg-soft);
	border-radius: var(--yfb-radius);
	padding: 16px 20px 16px 24px;
}

/* ------------------------------------------------------------------
   9. ブロック装飾(パターン用)
   ------------------------------------------------------------------ */

/* 黒背景強調(group の is-style-yfb-strong) */
.is-style-yfb-strong {
	background: var(--yfb-strong-bg);
	color: var(--yfb-strong-text);
	border-radius: var(--yfb-radius);
	padding: 24px 28px;
	margin: 1.6em 0;
}

.is-style-yfb-strong p,
.is-style-yfb-strong h2,
.is-style-yfb-strong h3,
.is-style-yfb-strong h4 {
	color: var(--yfb-strong-text);
}

.is-style-yfb-strong h2,
.is-style-yfb-strong h3,
.is-style-yfb-strong h4 {
	border: 0;
	padding: 0;
	margin-top: 0;
}

.is-style-yfb-strong h4::before {
	background: var(--yfb-blue);
}

.is-style-yfb-strong a:not(.wp-block-button__link) {
	color: var(--yfb-blue-soft);
}

/* チェックボックス枠 */
.is-style-yfb-checkbox {
	border-left: 4px solid var(--yfb-navy);
	border-radius: var(--yfb-radius);
	padding: 20px 24px;
	margin: 1.6em 0;
}

.is-style-yfb-checkbox h4 {
	margin-top: 0;
	padding-left: 0;
}

.is-style-yfb-checkbox h4::before {
	display: none;
}

/* まとめボックス */
.is-style-yfb-summary {
	border: 1px solid var(--yfb-divider);
	border-left: 4px solid var(--yfb-navy);
	border-radius: var(--yfb-radius);
	padding: 24px 28px;
	margin: 2em 0;
	background: var(--yfb-white);
}

.is-style-yfb-summary h4 {
	margin-top: 0;
	padding-left: 0;
}

.is-style-yfb-summary h4::before {
	display: none;
}

/* この記事でわかること(yfb-pattern-summary) */
.yfb-pattern-summary {
	border-radius: var(--yfb-radius);
	padding: 24px 28px;
	margin: 1.6em 0;
}

.yfb-pattern-summary h4 {
	margin-top: 0;
	padding-left: 0;
}

.yfb-pattern-summary h4::before {
	display: none;
}

/* ストライプ比較表 */
.wp-block-table.is-style-stripes table,
.yfb-entry-content table.is-style-stripes {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.wp-block-table.is-style-stripes thead th,
.yfb-entry-content table.is-style-stripes thead th {
	background: var(--yfb-navy);
	color: var(--yfb-white);
	font-weight: 600;
	padding: 12px 16px;
	text-align: left;
	border: 1px solid var(--yfb-navy);
}

.wp-block-table.is-style-stripes tbody td,
.yfb-entry-content table.is-style-stripes tbody td {
	padding: 12px 16px;
	border: 1px solid var(--yfb-divider);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) td,
.yfb-entry-content table.is-style-stripes tbody tr:nth-child(even) td {
	background: var(--yfb-bg-soft);
}

/* テーブル(プレーン) */
.yfb-entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 1.5em 0;
}

.yfb-entry-content thead th {
	background: var(--yfb-bg-mute);
	font-weight: 600;
	padding: 12px 16px;
	text-align: left;
	border: 1px solid var(--yfb-divider);
}

.yfb-entry-content tbody td {
	padding: 12px 16px;
	border: 1px solid var(--yfb-divider);
}

/* FAQ details/summary */
.yfb-faq {
	border: 1px solid var(--yfb-divider);
	border-radius: var(--yfb-radius);
	margin: 12px 0;
	background: var(--yfb-white);
	overflow: hidden;
}

.yfb-faq + .yfb-faq {
	margin-top: 8px;
}

.yfb-faq summary {
	padding: 16px 48px 16px 20px;
	cursor: pointer;
	font-weight: 600;
	position: relative;
	list-style: none;
	transition: background var(--yfb-transition);
}

.yfb-faq summary::-webkit-details-marker {
	display: none;
}

.yfb-faq summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	color: var(--yfb-navy);
	transition: transform var(--yfb-transition);
}

.yfb-faq[open] summary::after {
	content: "−";
}

.yfb-faq summary:hover {
	background: var(--yfb-bg-soft);
}

.yfb-faq[open] summary {
	border-bottom: 1px solid var(--yfb-divider);
}

.yfb-faq p {
	padding: 16px 20px;
	margin: 0;
	color: var(--yfb-text-sub);
}

/* CTA(navy 背景の訴求) */
.yfb-cta {
	border-radius: var(--yfb-radius);
	padding: 32px 28px;
	margin: 2em 0;
}

@media (min-width: 768px) {
	.yfb-cta {
		padding: 40px 48px;
	}
}

.yfb-cta h3 {
	border: 0;
	padding: 0;
	margin: 0 0 0.6em;
	color: var(--yfb-white);
}

.yfb-cta p {
	margin-bottom: 1.2em;
}

/* あわせて読みたい */
.yfb-related-link {
	border-radius: var(--yfb-radius);
	padding: 16px 20px;
	margin: 1.6em 0;
	transition: background var(--yfb-transition);
}

.yfb-related-link__label {
	font-size: 12px;
	font-weight: 700;
	color: var(--yfb-navy);
	letter-spacing: 0.08em;
	margin: 0 0 6px;
}

.yfb-related-link h4 {
	border: 0;
	padding: 0;
	margin: 0 0 6px;
}

.yfb-related-link h4::before {
	display: none;
}

.yfb-related-link h4 a {
	color: var(--yfb-navy);
	text-decoration: none;
}

.yfb-related-link h4 a:hover {
	color: var(--yfb-blue);
	text-decoration: underline;
}

/* ------------------------------------------------------------------
   9b. 自動目次 (TOC)
   ------------------------------------------------------------------ */
.yfb-toc {
	background: var(--yfb-bg-soft);
	border: 1px solid var(--yfb-divider);
	border-radius: var(--yfb-radius);
	padding: 16px 24px;
	margin: 2em 0;
}

.yfb-toc__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--yfb-navy);
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 28px;
	padding-block: 4px;
}

.yfb-toc__title::-webkit-details-marker {
	display: none;
}

.yfb-toc__title::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--yfb-navy);
	border-bottom: 2px solid var(--yfb-navy);
	transform: translateY(-75%) rotate(45deg);
	transition: transform var(--yfb-transition);
}

.yfb-toc[open] .yfb-toc__title::after {
	transform: translateY(-25%) rotate(-135deg);
}

.yfb-toc__list,
.yfb-toc__sublist {
	margin: 12px 0 0;
	padding-left: 1.4em;
	list-style: decimal;
}

.yfb-toc__sublist {
	margin: 6px 0 6px;
	list-style: lower-alpha;
}

.yfb-toc__item {
	font-size: 14px;
	line-height: 1.7;
}

.yfb-toc__item a {
	color: var(--yfb-text-main);
	text-decoration: none;
}

.yfb-toc__item a:hover {
	color: var(--yfb-blue);
	text-decoration: underline;
}

.yfb-toc__item--h3 {
	color: var(--yfb-text-sub);
}

/* ------------------------------------------------------------------
   10. 著者ボックス・関連記事
   ------------------------------------------------------------------ */
.yfb-author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 24px;
	margin-top: 48px;
	background: var(--yfb-bg-soft);
	border-radius: var(--yfb-radius);
}

.yfb-author-box__avatar {
	flex: 0 0 auto;
}

.yfb-author-box__avatar img {
	border-radius: 50%;
}

.yfb-author-box__name {
	font-weight: 700;
	margin-bottom: 4px;
}

.yfb-author-box__bio {
	font-size: 14px;
	color: var(--yfb-text-sub);
	line-height: 1.7;
}

.yfb-related {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--yfb-divider);
}

.yfb-related__title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 24px;
}

.yfb-related__list {
	display: grid;
	gap: 24px;
	list-style: none;
}

@media (min-width: 768px) {
	.yfb-related__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

.yfb-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.yfb-card__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--yfb-radius);
	/* アイキャッチ画像 (2048×1143) と一致させて余白を出さない */
	aspect-ratio: 2048 / 1143;
	background: var(--yfb-bg-mute);
}

.yfb-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform var(--yfb-transition);
}

.yfb-card:hover .yfb-card__thumb img {
	transform: scale(1.03);
}

.yfb-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}

.yfb-card__title a {
	color: var(--yfb-text-main);
	text-decoration: none;
}

.yfb-card__title a:hover {
	color: var(--yfb-navy);
}

.yfb-card__meta {
	font-size: 12px;
	color: var(--yfb-text-mute);
}

/* ------------------------------------------------------------------
   10b. トップページ
   ------------------------------------------------------------------ */
.yfb-pc-only { display: none; }
@media (min-width: 768px) {
	.yfb-pc-only { display: inline; }
}

.yfb-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.yfb-section-head__title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	border-left: 4px solid var(--yfb-navy);
	padding-left: 12px;
}

@media (min-width: 768px) {
	.yfb-section-head__title {
		font-size: 26px;
	}
}

.yfb-section-head__lead {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--yfb-text-mute);
	letter-spacing: 0.08em;
	margin-bottom: 4px;
}

.yfb-section-head__more {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--yfb-navy);
	white-space: nowrap;
}

.yfb-section-head__more::after {
	content: " ›";
}

.yfb-section-head__more:hover {
	color: var(--yfb-blue);
}

/* PICK UP */
.yfb-pickup .yfb-featured {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
}

@media (min-width: 768px) {
	.yfb-pickup .yfb-featured {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		gap: 40px;
	}
}

.yfb-featured__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--yfb-navy);
	margin-bottom: 12px;
}

.yfb-featured__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	margin: 12px 0 12px;
}

@media (min-width: 768px) {
	.yfb-featured__title {
		font-size: 30px;
	}
}

.yfb-featured__title a {
	color: var(--yfb-text-main);
}

.yfb-featured__title a:hover {
	color: var(--yfb-navy);
}

.yfb-featured__lead {
	color: var(--yfb-text-sub);
	font-size: 15px;
	line-height: 1.8;
}

.yfb-featured__meta {
	margin-top: 16px;
	color: var(--yfb-text-mute);
	font-size: 13px;
}

.yfb-featured__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--yfb-radius);
	/* アイキャッチ画像 (2048×1143) と一致させて余白を出さない */
	aspect-ratio: 2048 / 1143;
	background: var(--yfb-bg-mute);
}

.yfb-featured__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform var(--yfb-transition);
}

.yfb-featured:hover .yfb-featured__thumb img {
	transform: scale(1.03);
}

.yfb-featured__thumb-fallback,
.yfb-card__thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--yfb-bg-mute) 0%, var(--yfb-bg-soft) 100%);
}

/* グリッド */
.yfb-grid {
	display: grid;
	gap: 24px;
	list-style: none;
}

.yfb-grid--3 {
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.yfb-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.yfb-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* カードに body 要素を持たせるよう拡張 */
.yfb-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 4px;
}

/* 2カラムレイアウト(本文+サイドバー) */
.yfb-layout-2col {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	.yfb-layout-2col {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 48px;
	}
}

.yfb-cat-section {
	background: var(--yfb-white);
	border: 1px solid var(--yfb-divider);
	border-radius: var(--yfb-radius);
	padding: 24px;
	margin-bottom: 24px;
}

@media (min-width: 768px) {
	.yfb-cat-section {
		padding: 28px 32px;
	}
}

.yfb-cat-section .yfb-section-head {
	margin-bottom: 20px;
}

.yfb-cat-section .yfb-section-head__title {
	font-size: 18px;
	border-left-width: 3px;
}

.yfb-cat-section .yfb-section-head__lead {
	font-size: 11px;
	margin-bottom: 2px;
}

.yfb-cat-list {
	list-style: none;
	display: grid;
	gap: 8px;
}

.yfb-cat-list__item {
	border-bottom: 1px solid var(--yfb-divider);
}

.yfb-cat-list__item:last-child {
	border-bottom: 0;
}

.yfb-cat-list__link {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 12px 0;
	color: var(--yfb-text-main);
	transition: background var(--yfb-transition);
	border-radius: var(--yfb-radius-sm);
}

@media (min-width: 768px) {
	.yfb-cat-list__link {
		grid-template-columns: 120px minmax(0, 1fr);
		padding: 16px 4px;
	}
}

.yfb-cat-list__link:hover {
	background: var(--yfb-bg-soft);
}

.yfb-cat-list__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--yfb-radius-sm);
	/* アイキャッチ画像 (2048×1143) と一致 */
	aspect-ratio: 2048 / 1143;
	background: var(--yfb-bg-mute);
}

.yfb-cat-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.yfb-cat-list__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.yfb-cat-list__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.yfb-cat-list__link:hover .yfb-cat-list__title {
	color: var(--yfb-navy);
}

.yfb-cat-list__meta {
	font-size: 12px;
	color: var(--yfb-text-mute);
}

/* サイドバー */
.yfb-layout-2col__side {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: 88px;
	align-self: start;
}

.yfb-whitepaper-cta {
	background: var(--yfb-strong-bg);
	color: var(--yfb-strong-text);
	border-radius: var(--yfb-radius);
	padding: 24px;
}

.yfb-whitepaper-cta__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--yfb-blue-soft);
	margin-bottom: 8px;
}

.yfb-whitepaper-cta__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 8px;
}

.yfb-whitepaper-cta__lead {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 16px;
	line-height: 1.7;
}

.yfb-button--ghost-on-dark {
	background: var(--yfb-white);
	color: var(--yfb-navy);
}

.yfb-button--ghost-on-dark:hover {
	background: var(--yfb-blue-soft);
	color: var(--yfb-navy-deep);
}

.yfb-side-block {
	background: var(--yfb-white);
	border: 1px solid var(--yfb-divider);
	border-radius: var(--yfb-radius);
	padding: 20px 24px;
}

.yfb-side-block__title {
	font-size: 16px;
	font-weight: 700;
	border-bottom: 2px solid var(--yfb-navy);
	display: inline-block;
	padding-bottom: 4px;
	margin-bottom: 16px;
}

.yfb-rank-list {
	list-style: none;
	counter-reset: rank;
	display: grid;
	gap: 12px;
}

.yfb-rank-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.yfb-rank-list__num {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--yfb-navy);
	color: var(--yfb-white);
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.yfb-rank-list__link {
	font-size: 14px;
	line-height: 1.6;
	color: var(--yfb-text-main);
}

.yfb-rank-list__link:hover {
	color: var(--yfb-navy);
}

/* サービス紹介 */
.yfb-service__inner {
	max-width: var(--yfb-content-max);
	margin-inline: auto;
	text-align: center;
}

.yfb-service__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--yfb-navy);
	margin-bottom: 12px;
}

.yfb-service__title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 16px;
}

@media (min-width: 768px) {
	.yfb-service__title {
		font-size: 30px;
	}
}

.yfb-service__lead {
	color: var(--yfb-text-sub);
	font-size: 15px;
	line-height: 1.85;
	margin-bottom: 36px;
}

.yfb-service__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	list-style: none;
	text-align: left;
	margin-bottom: 36px;
}

@media (min-width: 768px) {
	.yfb-service__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

.yfb-service__item {
	background: var(--yfb-white);
	border: 1px solid var(--yfb-divider);
	border-radius: var(--yfb-radius);
	padding: 24px;
}

.yfb-service__item-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
	padding-left: 12px;
	border-left: 3px solid var(--yfb-navy);
}

.yfb-service__item p {
	color: var(--yfb-text-sub);
	font-size: 14px;
	line-height: 1.75;
	margin: 0;
}

.yfb-service__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* ------------------------------------------------------------------
   10c. 用語集 / アーカイブ補助
   ------------------------------------------------------------------ */
.yfb-archive-desc {
	color: var(--yfb-text-sub);
	font-size: 14px;
	line-height: 1.85;
	margin-top: 12px;
	max-width: var(--yfb-content-max);
}

.yfb-glossary-list {
	list-style: none;
	display: grid;
	gap: 12px;
}

@media (min-width: 768px) {
	.yfb-glossary-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

.yfb-glossary-list__item {
	border: 1px solid var(--yfb-divider);
	border-radius: var(--yfb-radius);
	transition: border-color var(--yfb-transition), background var(--yfb-transition);
}

.yfb-glossary-list__item:hover {
	border-color: var(--yfb-navy);
	background: var(--yfb-bg-soft);
}

.yfb-glossary-list__link {
	display: block;
	padding: 16px 20px;
	color: var(--yfb-text-main);
}

.yfb-glossary-list__term {
	display: block;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 4px;
}

.yfb-glossary-list__desc {
	display: block;
	font-size: 13px;
	color: var(--yfb-text-sub);
	line-height: 1.7;
}

/* ------------------------------------------------------------------
   11. アクセシビリティ補助
   ------------------------------------------------------------------ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 12px 16px;
	background: var(--yfb-navy);
	color: var(--yfb-white);
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
}
