/* ==========================================================================
   FX-Clover 記事レイアウト v2（2026-11）
   - inc/layout-v2.php の fxc_layout_v2_active() が true のときだけ読み込まれる
   - すべて body.fxc-v2 の下に限定。読み込まれなければ何も変わらない
   - 記事本文の装飾（マイボックス、マーカー、ステップ、会話など）は親テーマのまま
   ========================================================================== */

body.fxc-v2 {
	--fxc-primary: #2167e0;
	--fxc-primary-dark: #17389b;
	--fxc-primary-soft: #e9f0fd;
	--fxc-accent: #00b3a7;
	--fxc-text: #2b2f36;
	--fxc-heading: #1f2937;
	--fxc-muted: #6b7280;
	--fxc-line: #e5e8ef;
	--fxc-bg: #f3f5f9;
	--fxc-card: #ffffff;
	--fxc-radius: 14px;
	--fxc-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .06);
	--fxc-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", Meiryo, "Segoe UI", sans-serif;
}

/* ---------- 全体（背景・文字） ---------- */
body.fxc-v2,
body.fxc-v2 :where(:not(.fa)) {
	font-family: var(--fxc-font);
}
body.fxc-v2,
body.fxc-v2.custom-background {
	background-image: none !important;
	background-color: var(--fxc-bg) !important;
	color: var(--fxc-text);
	-webkit-font-smoothing: antialiased;
}
html:has(body.fxc-v2) {
	scroll-behavior: smooth;
	scroll-padding-top: 20px;
}

/* 記事の白い枠 */
body.fxc-v2 main {
	background: var(--fxc-card);
	border: 1px solid var(--fxc-line);
	border-radius: var(--fxc-radius);
	box-shadow: var(--fxc-shadow);
	padding: 22px 16px 28px;
	margin-bottom: 24px;
}
@media only screen and (min-width: 600px) {
	body.fxc-v2 main {
		padding: 30px 32px 36px;
	}
}
@media print, screen and (min-width: 960px) {
	body.fxc-v2 main {
		padding: 36px 44px 40px;
	}
}
body.fxc-v2 main.backnon {
	background: none;
	border: 0;
	box-shadow: none;
}

/* ---------- パンくず ---------- */
body.fxc-v2 .fxc-breadcrumb {
	margin: 0 0 14px;
}
body.fxc-v2 .fxc-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.fxc-v2 .fxc-breadcrumb li {
	display: flex;
	align-items: center;
	font-size: 12px;
	line-height: 1.5;
	color: var(--fxc-muted);
}
body.fxc-v2 .fxc-breadcrumb li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin: 0 10px 0 7px;
	border-right: 1.5px solid #b4bac6;
	border-bottom: 1.5px solid #b4bac6;
	transform: rotate(-45deg);
	flex: none;
}
body.fxc-v2 .fxc-breadcrumb a {
	color: var(--fxc-muted);
	text-decoration: none;
}
body.fxc-v2 .fxc-breadcrumb a:hover {
	color: var(--fxc-primary);
	text-decoration: underline;
}

/* ---------- タイトルまわり ---------- */
body.fxc-v2 .fxc-head {
	margin: 0 0 24px;
}
body.fxc-v2 .post .st-catgroup {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	line-height: 1;
}
body.fxc-v2 .post .st-catgroup a {
	text-decoration: none;
}
body.fxc-v2 .post .st-catgroup .catname {
	display: inline-block;
	margin: 0;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--fxc-primary);
	border-radius: 999px;
	white-space: nowrap;
	transition: opacity .15s;
}
body.fxc-v2 .post .st-catgroup a:hover .catname {
	opacity: .85;
}
body.fxc-v2 .post .st-catgroup .catname.st-catid863 {
	background: #8cc152; /* AFFINGER管理で設定されているカテゴリ色 */
}

body.fxc-v2 #contentInner .post .entry-title:not(.st-css-no2),
body.fxc-v2 .post .entry-title:not(.st-css-no) {
	margin: 0 0 14px;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--fxc-heading);
	font-size: 23px;
	line-height: 1.5;
	font-weight: 700;
	letter-spacing: .01em;
	position: static;
}
@media print, screen and (min-width: 960px) {
	body.fxc-v2 #contentInner .post .entry-title:not(.st-css-no2),
	body.fxc-v2 .post .entry-title:not(.st-css-no) {
		font-size: 29px;
		line-height: 1.45;
	}
}
body.fxc-v2 .post .entry-title:not(.st-css-no)::before,
body.fxc-v2 .post .entry-title:not(.st-css-no)::after,
body.fxc-v2 .post .entry-title span.st-dash-design::before,
body.fxc-v2 .post .entry-title span.st-dash-design::after {
	content: none !important;
	display: none !important;
}
body.fxc-v2 .post .entry-title span.st-dash-design {
	display: inline;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

body.fxc-v2 .fxc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--fxc-muted);
	line-height: 1.5;
}
body.fxc-v2 .fxc-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
body.fxc-v2 .fxc-meta__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
body.fxc-v2 .fxc-meta__label::after {
	content: "：";
	margin-left: -4px;
}
body.fxc-v2 .fxc-meta svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}
body.fxc-v2 .fxc-meta time {
	font-variant-numeric: tabular-nums;
}
body.fxc-v2 .fxc-meta a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: inherit;
	text-decoration: none;
}
body.fxc-v2 .fxc-meta a:hover {
	color: var(--fxc-primary);
}

/* ---------- シェアボタン ---------- */
body.fxc-v2 .sns {
	width: auto;
	margin: 0;
	padding: 0;
	text-align: left;
}
body.fxc-v2 .fxc-head .sns {
	margin: 0 0 4px;
}
body.fxc-v2 .post .sns ul,
body.fxc-v2 .sns ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: auto;
	margin: 0;
	padding: 0;
	justify-content: flex-start;
}
body.fxc-v2 .sns li {
	float: none;
	width: auto;
	margin: 0;
	list-style: none;
	position: static;
}
body.fxc-v2 .sns li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border-radius: 12px;
	box-shadow: none;
	color: #fff;
	font-size: 17px;
	text-decoration: none;
	transition: transform .15s, opacity .15s;
}
body.fxc-v2 .sns li a:hover {
	transform: translateY(-2px);
	opacity: .9;
}
body.fxc-v2 .sns li i {
	font-size: 17px !important;
	margin: 0;
	min-width: 0;
}
body.fxc-v2 .sns li i.fa-comment {
	border: 0;
	padding: 0;
}
body.fxc-v2 .sns .snstext,
body.fxc-v2 .sns .snscount,
body.fxc-v2 .sns li.googleplus {
	display: none !important;
}
body.fxc-v2 .sns .twitter a {
	background: #0f1419;
}
body.fxc-v2 .sns .twitter a i.fa-twitter {
	display: none;
}
body.fxc-v2 .sns .twitter a::before {
	content: "";
	width: 17px;
	height: 17px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.fxc-v2 .sns .facebook a {
	background: #1877f2;
}
body.fxc-v2 .sns .pocket a {
	background: #ef3f56;
}
body.fxc-v2 .sns .hatebu a {
	background: #00a4de;
}
body.fxc-v2 .sns .line a {
	background: #06c755;
}

body.fxc-v2 .fxc-share {
	margin: 36px 0 0;
	padding: 18px 20px;
	border: 1px solid var(--fxc-line);
	border-radius: var(--fxc-radius);
	background: #fafbfd;
}
body.fxc-v2 .fxc-share__label {
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--fxc-muted);
	line-height: 1.5;
}
body.fxc-v2 .fxc-share .sns li a {
	width: 46px;
	height: 46px;
	font-size: 19px;
}
body.fxc-v2 .fxc-share .sns .twitter a::before {
	width: 19px;
	height: 19px;
}

/* ---------- アイキャッチ ---------- */
body.fxc-v2 .post .st-eyecatch,
body.fxc-v2 .post .st-eyecatch-under,
body.fxc-v2 .post [class*="st-eyecatch"] {
	margin: 0 0 28px !important;
	position: relative;
}
body.fxc-v2 .post [class*="st-eyecatch"] img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}
body.fxc-v2 .post .eyecatch-copyurl {
	margin: 6px 0 0;
	font-size: 11px;
	color: var(--fxc-muted);
	text-align: right;
}

/* ---------- 本文 ---------- */
body.fxc-v2 .post .entry-content {
	font-size: 16px;
	line-height: 1.9;
	color: var(--fxc-text);
	letter-spacing: .01em;
	overflow-wrap: anywhere;
}
@media print, screen and (min-width: 960px) {
	body.fxc-v2 .post .entry-content {
		font-size: 17px;
	}
}
body.fxc-v2 .post .entry-content p {
	font-size: inherit;
	line-height: inherit;
	margin: 0 0 1.5em;
}
body.fxc-v2 .post .entry-content p:last-child {
	margin-bottom: 0;
}
body.fxc-v2 .post .entry-content :where(a:not([class])) {
	color: #1d4ed8;
	text-decoration: underline;
	text-decoration-color: rgba(29, 78, 216, .35);
	text-underline-offset: 3px;
}
body.fxc-v2 .post .entry-content :where(a:not([class])):hover {
	text-decoration-color: currentColor;
}
body.fxc-v2 .post .entry-content ul,
body.fxc-v2 .post .entry-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.6em;
}
body.fxc-v2 .post .entry-content li {
	margin: 0 0 .4em;
	line-height: 1.8;
}
body.fxc-v2 .post .entry-content blockquote {
	margin: 1.6em 0;
	padding: 16px 20px;
	border-left: 4px solid var(--fxc-primary);
	border-radius: 0 10px 10px 0;
	background: #f6f8fc;
	color: #4b5563;
}
body.fxc-v2 .post .entry-content img.aligncenter,
body.fxc-v2 .post .entry-content img.alignleft,
body.fxc-v2 .post .entry-content img.alignright,
body.fxc-v2 .post .entry-content img.alignnone,
body.fxc-v2 .post .entry-content img[class*="wp-image-"] {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
body.fxc-v2 .post .entry-content .youtube-container {
	margin: 1.6em 0;
	padding-top: 0;
	padding-bottom: 56.25%;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
}
body.fxc-v2 .post .entry-content table {
	width: 100%;
	margin: 1.6em 0;
	border-collapse: collapse;
	font-size: .95em;
}
body.fxc-v2 .post .entry-content th,
body.fxc-v2 .post .entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--fxc-line);
}
body.fxc-v2 .post .entry-content th {
	background: #f6f8fc;
	font-weight: 700;
}
body.fxc-v2 .post .st-mybox {
	border-radius: 12px;
}

/* 見出し（h2：色つきの帯、h3：左の線、h4：下の点線） */
body.fxc-v2 .post h2:not(.st-css-no),
body.fxc-v2 .post .entry-content h2:not(.st-css-no2) {
	position: relative;
	margin: 2.4em 0 1.1em;
	padding: .7em 1em .7em 1.1em !important;
	border: 0 !important;
	border-left: 6px solid var(--fxc-primary) !important;
	border-radius: 0 10px 10px 0;
	background: var(--fxc-primary-soft) !important;
	background-image: none !important;
	color: var(--fxc-heading) !important;
	font-size: 1.22em;
	line-height: 1.5;
	font-weight: 700;
	box-shadow: none;
}
body.fxc-v2 .post h2:not(.st-css-no) span.st-dash-design,
body.fxc-v2 .post h2:not(.st-css-no) span {
	display: inline;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: none !important;
}
body.fxc-v2 .post h3:not(.st-css-no):not(.st-matome):not(.rankh3):not(#reply-title),
body.fxc-v2 .post .entry-content h3:not(.st-css-no2):not(#reply-title) {
	margin: 2em 0 1em;
	padding: .2em 0 .2em .75em !important;
	border: 0 !important;
	border-left: 4px solid var(--fxc-accent) !important;
	border-radius: 0;
	background: none !important;
	background-image: none !important;
	color: var(--fxc-heading) !important;
	font-size: 1.12em;
	line-height: 1.5;
	font-weight: 700;
}
body.fxc-v2 .post h3:not(.st-css-no) span.st-dash-design {
	display: inline;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}
body.fxc-v2 .post h4:not(.st-css-no):not(.st-matome):not(.rankh4):not(.point),
body.fxc-v2 .post .entry-content h4:not(.st-css-no2):not(.point) {
	margin: 1.8em 0 .9em;
	padding: 0 0 .35em !important;
	border: 0 !important;
	border-bottom: 2px dotted #c9cfda !important;
	background: none !important;
	color: var(--fxc-heading) !important;
	font-size: 1.05em;
	line-height: 1.5;
	font-weight: 700;
}
body.fxc-v2 .post h5:not(.st-css-no):not(.st-matome):not(.rankh5):not(.point),
body.fxc-v2 .post .entry-content h5:not(.st-css-no2) {
	margin: 1.6em 0 .8em;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--fxc-heading) !important;
	font-size: 1em;
	font-weight: 700;
}

/* 目次（Table of Contents Plus） */
body.fxc-v2 #toc_container {
	display: block;
	width: auto !important;
	max-width: 100%;
	margin: 0 0 28px;
	padding: 18px 22px 16px;
	border: 1px solid var(--fxc-line);
	border-radius: 12px;
	background: #f8fafc;
	font-size: 15px;
}
body.fxc-v2 #toc_container .toc_title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--fxc-heading);
}
body.fxc-v2 #toc_container .toc_title::before {
	content: "";
	width: 4px;
	height: 16px;
	border-radius: 2px;
	background: var(--fxc-primary);
}
body.fxc-v2 #toc_container .toc_toggle {
	font-size: 12px;
	font-weight: 400;
	color: var(--fxc-muted);
}
body.fxc-v2 #toc_container ul {
	margin: 0;
	padding: 0;
}
body.fxc-v2 #toc_container li {
	padding: 4px 0;
	line-height: 1.6;
}
body.fxc-v2 #toc_container a {
	color: var(--fxc-text);
	text-decoration: none;
}
body.fxc-v2 #toc_container a:hover {
	color: var(--fxc-primary);
	text-decoration: underline;
}
body.fxc-v2 #toc_container .toc_number {
	color: var(--fxc-primary);
	font-weight: 700;
	margin-right: 6px;
}

/* ---------- 記事下：カテゴリ・タグ ---------- */
body.fxc-v2 .fxc-terms {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 22px 0 0;
}
body.fxc-v2 .fxc-terms__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
}
body.fxc-v2 .fxc-terms__label {
	margin-right: 4px;
	font-size: 12px;
	color: var(--fxc-muted);
}
body.fxc-v2 .fxc-chip {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--fxc-primary-soft);
	color: var(--fxc-primary-dark);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background .15s, color .15s;
}
body.fxc-v2 .fxc-chip--tag {
	background: #f1f3f7;
	color: #4b5563;
}
body.fxc-v2 .fxc-chip:hover {
	background: var(--fxc-primary);
	color: #fff;
}
body.fxc-v2 .post p.author {
	display: none;
}

/* ---------- 記事下の各セクション共通の見出し ---------- */
body.fxc-v2 .fxc-section-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 44px 0 18px;
	padding: 0 0 10px;
	border-bottom: 2px solid var(--fxc-line);
	font-size: 18px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--fxc-heading);
}
body.fxc-v2 .fxc-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 48px;
	height: 2px;
	background: var(--fxc-primary);
}
body.fxc-v2 .fxc-section-title span.st-dash-design {
	display: inline;
	padding: 0 !important;
	border: 0 !important;
}
body.fxc-v2 .fxc-section-title__count {
	font-size: 13px;
	font-weight: 500;
	color: var(--fxc-muted);
}

/* ---------- コメント ---------- */
body.fxc-v2 hr.hrcss {
	display: none;
}
body.fxc-v2 .fxc-comments {
	margin: 0;
}
body.fxc-v2 #comments {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.8;
	color: var(--fxc-text);
}
body.fxc-v2 #comments .commets-list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
body.fxc-v2 #comments .commets-list li {
	list-style: none;
}
/* 返信も左端をそろえる（2026-11-12 運営者の指示）。前は返信が1段ごとに 20px ずつ右へ下がり、
   スマホだと 4段目の枠がかなり右に寄って見えた。段を下げるかわりに、返信の枠は左に色の線を付け、
   本文の上に「◯◯ さんへの返信」と出す（文字は comments.php）。元に戻すなら margin を 0 0 0 20px に */
body.fxc-v2 #comments .children {
	margin: 0;
	padding: 0;
}
body.fxc-v2 #comments .commets-list > li + li {
	margin-top: 22px; /* 別の話の始まりは、少し間をあける */
}
body.fxc-v2 #comments .children .comment-body {
	box-shadow: inset 4px 0 0 var(--fxc-accent, var(--fxc-primary));
}
body.fxc-v2 #comments .fxc-reply-to {
	margin: 0 0 6px;
	padding: 0 0 0 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 1.5v5.5a2 2 0 0 0 2 2h7M8.5 6l3 3-3 3' fill='none' stroke='%23998b7e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 .3em / 13px 13px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--fxc-muted);
	overflow-wrap: anywhere;
}
body.fxc-v2 #comments .comment-body {
	margin: 0 0 12px;
	padding: 14px 16px 12px;
	border: 1px solid var(--fxc-line);
	border-radius: 12px;
	background: #f8fafc;
}
body.fxc-v2 #comments .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}
body.fxc-v2 #comments .comment-author img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	padding: 0;
}
body.fxc-v2 #comments .comment-author .fn {
	font-style: normal;
	font-weight: 700;
	color: var(--fxc-heading);
}
body.fxc-v2 #comments .comment-author .says {
	font-size: 12px;
	color: var(--fxc-muted);
}
body.fxc-v2 #comments .comment-meta {
	width: auto; /* 親テーマの width:100% のままだと、余白のぶん箱がコメントの枠からはみ出す（2026-11-11 の総点検で修正） */
	height: auto;
	margin: 6px 0; /* 日付も左端にそろえる（2026-11-12。前は左に 50px あけていて、名前とも本文ともそろっていなかった） */
	padding: 0;    /* 親テーマの余白 10px を消す（日付が本文の1行目にくっついていた） */
	font-size: 12px;
	line-height: 1.5;
}
body.fxc-v2 #comments .comment-meta a {
	color: var(--fxc-muted);
	text-decoration: none;
}
body.fxc-v2 #comments .comment-body p {
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
	line-height: 1.8;
}
body.fxc-v2 #comments .reply {
	margin: 4px 0 0;
	padding: 0; /* 親テーマの余白 5px を消して、「返信」も本文と同じ左端に（2026-11-12） */
}
body.fxc-v2 #comments .reply a {
	font-size: 12px;
	color: var(--fxc-primary);
	text-decoration: none;
}
body.fxc-v2 #comments #respond {
	margin: 0;
	padding: 18px;
	border: 1px solid var(--fxc-line);
	border-radius: 12px;
	background: #fff;
	color: var(--fxc-text);
	font-weight: 400;
}
body.fxc-v2 #comments #reply-title {
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 16px;
	font-weight: 700;
	color: var(--fxc-heading);
}
body.fxc-v2 #comments #reply-title small {
	margin-left: 8px;
	font-size: 12px;
	font-weight: 400;
}
body.fxc-v2 #comments .comment-notes,
body.fxc-v2 #comments .logged-in-as {
	font-size: 12px;
	color: var(--fxc-muted);
}
body.fxc-v2 #comments label {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--fxc-muted);
}
body.fxc-v2 #comments textarea,
body.fxc-v2 #comments input[type="text"],
body.fxc-v2 #comments input[type="email"],
body.fxc-v2 #comments input[type="url"] {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d5dae3;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	line-height: 1.6;
	color: var(--fxc-text);
}
body.fxc-v2 #comments textarea:focus,
body.fxc-v2 #comments input:focus {
	outline: none;
	border-color: var(--fxc-primary);
	box-shadow: 0 0 0 3px rgba(33, 103, 224, .15);
}
body.fxc-v2 #comments .form-submit {
	margin: 12px 0 0;
}
body.fxc-v2 #comments #submit {
	display: inline-block;
	width: auto;
	padding: 12px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--fxc-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	transition: background .15s;
}
body.fxc-v2 #comments #submit:hover {
	background: #1b56bd;
}

/* ---------- 関連記事（カード） ---------- */
body.fxc-v2 .fxc-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
body.fxc-v2 .fxc-card {
	display: flex;
	gap: 12px;
	overflow: hidden;
	border: 1px solid var(--fxc-line);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .15s, transform .15s;
}
body.fxc-v2 .fxc-card:hover {
	box-shadow: var(--fxc-shadow);
	transform: translateY(-2px);
	text-decoration: none;
}
body.fxc-v2 .fxc-card__thumb {
	flex: 0 0 108px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #eef1f6;
}
body.fxc-v2 .fxc-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}
body.fxc-v2 .fxc-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 10px 12px 10px 0;
}
body.fxc-v2 .fxc-card__cat {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--fxc-primary);
}
body.fxc-v2 .fxc-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--fxc-heading);
}
body.fxc-v2 .fxc-card__date {
	margin-top: auto;
	font-size: 12px;
	color: var(--fxc-muted);
	font-variant-numeric: tabular-nums;
}
@media only screen and (min-width: 600px) {
	body.fxc-v2 .fxc-cards {
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}
	body.fxc-v2 .fxc-card {
		flex-direction: column;
		gap: 0;
	}
	body.fxc-v2 .fxc-card__thumb {
		flex: none;
		width: 100%;
		aspect-ratio: 16 / 9;
	}
	body.fxc-v2 .fxc-card__body {
		padding: 12px 14px 14px;
		gap: 5px;
	}
	body.fxc-v2 .fxc-card__title {
		font-size: 15px;
	}
	body.fxc-v2 .fxc-card__date {
		margin-top: 4px;
	}
}

/* ---------- 前の記事・次の記事 ---------- */
body.fxc-v2 .fxc-postnav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 32px 0 8px;
}
body.fxc-v2 .fxc-postnav__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px; /* 画像のまわりの余白を上下左右でそろえる（2026-11-12。前は min-height 84px のせいで上下 20px・左右 10px だった） */
	border: 1px solid var(--fxc-line);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .15s, transform .15s;
}
body.fxc-v2 a.fxc-postnav__item:hover {
	box-shadow: var(--fxc-shadow);
	transform: translateY(-2px);
	text-decoration: none;
}
/* 「次の記事」を右寄せ（文字は右、画像は右はし）にするのは、2枚が横に並ぶ幅（600px 以上）だけ。
   縦に並ぶ幅では、2枚とも「左に画像・右に文字」の同じ並びにする（2026-11-12 運営者の指示。
   縦に並んだ「次の記事」だけ右寄せだと、左が大きく空いて不自然だった）。指定は下の @media の中 */
body.fxc-v2 .fxc-postnav__item--empty {
	display: none;
	border: 0;
	background: none;
}
body.fxc-v2 .fxc-postnav__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 8px;
	background: #eef1f6;
}
body.fxc-v2 .fxc-postnav__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.fxc-v2 .fxc-postnav__body {
	min-width: 0;
}
body.fxc-v2 .fxc-postnav__label {
	display: block;
	margin: 0 0 3px;
	font-size: 11px;
	font-weight: 700;
	color: var(--fxc-primary);
}
body.fxc-v2 .fxc-postnav__item--prev .fxc-postnav__label::before {
	content: "‹ ";
}
body.fxc-v2 .fxc-postnav__item--next .fxc-postnav__label::after {
	content: " ›";
}
body.fxc-v2 .fxc-postnav__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--fxc-heading);
}
@media only screen and (min-width: 600px) {
	body.fxc-v2 .fxc-postnav {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
	body.fxc-v2 .fxc-postnav__item--next {
		flex-direction: row-reverse;
		text-align: right;
	}
	body.fxc-v2 .fxc-postnav__item--empty {
		display: block;
	}
}

/* ---------- サイドバー ---------- */
body.fxc-v2 #side aside .ad,
body.fxc-v2 #side aside .headbox,
body.fxc-v2 #side aside .kanren,
body.fxc-v2 #side aside .side-topad {
	margin: 0 0 20px;
	padding: 18px 18px 14px;
	border: 1px solid var(--fxc-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
}
body.fxc-v2 #side aside .ad > ul,
body.fxc-v2 #side aside .ad > .textwidget,
body.fxc-v2 #side aside .ad > div:not(.freebox) {
	padding: 0;
}
body.fxc-v2 #side .menu_underh2,
body.fxc-v2 #side .st-widgets-title:not(.st-css-no),
body.fxc-v2 #side aside h4:not(.st-css-no2) {
	margin: 0 0 14px;
	padding: 0 0 8px 12px !important;
	border: 0;
	border-left: 4px solid var(--fxc-primary);
	border-bottom: 1px solid var(--fxc-line);
	border-radius: 0;
	background: none;
	color: var(--fxc-heading);
	font-size: 15px;
	line-height: 1.4;
	font-weight: 700;
	text-align: left !important;
}
body.fxc-v2 #side .menu_underh2::before,
body.fxc-v2 #side .st-widgets-title:not(.st-css-no)::before,
body.fxc-v2 #side aside h4:not(.st-css-no2)::before,
body.fxc-v2 #side .menu_underh2::after,
body.fxc-v2 #side .st-widgets-title:not(.st-css-no)::after {
	content: none;
}
body.fxc-v2 #side aside ul li {
	border-color: var(--fxc-line);
}
body.fxc-v2 #side aside ul li a {
	color: var(--fxc-text);
}
body.fxc-v2 #side aside ul li a:hover {
	color: var(--fxc-primary);
}
body.fxc-v2 #side .kanren dt img {
	border-radius: 8px;
}
body.fxc-v2 #side .kanren dd h5 a {
	color: var(--fxc-heading);
}
body.fxc-v2 #side .kanren .blog_info p {
	color: var(--fxc-muted);
}

/* ---------- トップページ・一覧（背景を変えた分のなじませ） ---------- */
body.fxc-v2 .itiran-custom dl {
	border: 1px solid var(--fxc-line);
	border-radius: 12px;
	box-shadow: var(--fxc-shadow);
	overflow: hidden;
}
body.fxc-v2 .itiran-custom dt a img {
	border-radius: 0;
}

/* ---------- ページ上部へ戻るボタン ---------- */
body.fxc-v2 #page-top a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	background: var(--fxc-primary) !important;
	box-shadow: 0 4px 12px rgba(33, 103, 224, .35);
	opacity: 1;
	font-size: 22px;
}

/* ---------- サイドバーのフリーボックス（カスタムHTMLの見出し帯 .p-entry-f） ---------- */
body.fxc-v2 #side .freebox {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	line-height: 1.7;
}
body.fxc-v2 #side .freebox .p-free {
	margin: 0 0 14px;
	padding: 0 0 8px 12px;
	border-left: 4px solid var(--fxc-primary);
	border-bottom: 1px solid var(--fxc-line);
	font-size: 15px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--fxc-heading);
}
body.fxc-v2 #side .freebox .p-free::after {
	content: none;
	margin: 0;
}
body.fxc-v2 #side .freebox .p-entry-f,
body.fxc-v2 #side .p-entry {
	position: static;
	display: inline;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: none !important;
	color: inherit !important;
	font-size: inherit;
	font-weight: inherit;
}

/* ---------- 細かな調整（2026-11-06 確認後） ---------- */
/* スマホで記事タイトルが中央寄せになるのを左寄せに */
body.fxc-v2 #contentInner .post .entry-title:not(.st-css-no2),
body.fxc-v2 .post .entry-title:not(.st-css-no) {
	text-align: left !important;
}
/* トップページのカードに枠線を足した分、2列に収まるように */
body.fxc-v2 .itiran-custom dl {
	box-sizing: border-box;
}
