/* v2 の記事詳細（template-parts/v2/article-single.php）。本文の組み（部品集 P03・P04）・共有ボタン（P09）・目次とサイドバー（P08）・関連の欄（P10） */
@layer components {
	/* ===== 2 列の組み（1024px 以上で本文＋サイドバー） ===== */
	.v2-article__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: var(--sp-8);
		padding-block: var(--sp-8) var(--sp-9);
	}

	@media (min-width: 1024px) {
		.v2-article__layout {
			grid-template-columns: minmax(0, 1fr) 320px;
			gap: var(--sp-8);
		}
	}

	.v2-article__main {
		position: relative;
		min-width: 0;
	}

	/* 本文の左に縦に並べて追従する共有ボタン（1240px 以上） */
	@media (min-width: 1240px) {
		.v2-article__main {
			padding-left: 76px;
		}
	}

	.v2-article__meta {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-2) var(--sp-5);
		font-size: var(--fs-sm);
		color: var(--c-ink-mute);
	}

	.v2-article__meta .post-date {
		font-family: var(--f-en);
		font-weight: 500;
		letter-spacing: var(--ls-en);
	}

	.v2-article__meta .post-date__label {
		margin-right: 0.4em;
		font-family: var(--f-ja);
		font-size: 0.85em;
	}

	.v2-article__meta .post-readers {
		display: inline-flex;
		align-items: center;
		gap: 0.35em;
		font-variant-numeric: tabular-nums;
	}

	.v2-article__meta .post-readers__svg {
		width: 1.1em;
		height: 1.1em;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
	}

	.v2-article__meta .post-cat a {
		display: inline-block;
		padding: 0 12px;
		border-radius: var(--radius-pill);
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-size: var(--fs-xs);
		font-weight: 700;
		line-height: 2;
		text-decoration: none;
	}

	.v2-article__title {
		margin-top: var(--sp-4);
		font-size: var(--fs-2xl);
		line-height: 1.5;
		font-feature-settings: "palt";
	}

	.v2-article__eyecatch {
		margin-top: var(--sp-6);
		overflow: hidden;
		border-bottom: 4px solid var(--c-accent);
		line-height: 0;
	}

	.v2-article__eyecatch img {
		width: 100%;
	}

	/* ===== 本文（部品集 P03・P04） ===== */
	.v2-prose {
		margin-top: var(--sp-7);
		font-size: var(--fs-md);
		line-height: 2;
	}

	.v2-prose > :first-child {
		margin-top: 0;
	}

	.v2-prose p {
		margin: 1.4em 0;
	}

	.v2-prose [id] {
		scroll-margin-top: 24px;
	}

	/* h2: 左に斜めに切った紫の札、下に線 */
	.v2-prose h2 {
		position: relative;
		margin: 3em 0 1.2em;
		padding: 0 0 14px 26px;
		border-bottom: 1px solid var(--c-line);
		font-size: var(--fs-xl);
		line-height: 1.55;
		font-feature-settings: "palt";
	}

	.v2-prose h2::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.3em;
		width: 12px;
		height: 1.1em;
		background: var(--c-brand);
		clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
	}

	/* h3: 紫と緑の細い斜めの札 2 本 */
	.v2-prose h3 {
		position: relative;
		margin: 2.2em 0 0.8em;
		padding-left: 30px;
		font-size: var(--fs-lg);
		line-height: 1.6;
	}

	.v2-prose h3::before,
	.v2-prose h3::after {
		content: "";
		position: absolute;
		top: 0.35em;
		width: 7px;
		height: 18px;
		clip-path: polygon(45% 0, 100% 0, 55% 100%, 0 100%);
	}

	.v2-prose h3::before {
		left: 0;
		background: var(--c-brand);
	}

	.v2-prose h3::after {
		left: 10px;
		background: var(--c-accent);
	}

	.v2-prose h4 {
		margin: 1.8em 0 0.6em;
		font-size: var(--fs-lg);
	}

	.v2-prose h2 + *,
	.v2-prose h3 + *,
	.v2-prose h4 + * {
		margin-top: 0;
	}

	.v2-prose a:not([class]) {
		color: var(--c-accent-text);
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.v2-prose a:not([class]):hover {
		text-decoration-thickness: 2px;
	}

	.v2-prose strong {
		font-weight: 700;
		background: linear-gradient(transparent 62%, rgba(117, 196, 180, 0.35) 62%);
	}

	.v2-prose ul,
	.v2-prose ol {
		margin: 1.4em 0;
		padding: 0;
	}

	.v2-prose ul {
		list-style: none;
	}

	/* 写真付きのカード・サービスのパネル（components.css）は本文のリストの印と余白を付けない */
	.v2-prose ul:not(.v2-relcards, .v2-relsvc, .v2-strip__list) > li {
		position: relative;
		padding-left: 22px;
	}

	.v2-prose ul:not(.v2-relcards, .v2-relsvc, .v2-strip__list) > li::before {
		content: "";
		position: absolute;
		left: 2px;
		top: 0.8em;
		width: 8px;
		height: 8px;
		background: var(--c-accent);
		transform: skewX(-20deg);
	}

	/* 見出しの直後・本文の先頭に置いた「リンクだけの一覧」（記事・サービスへの内部リンク、外部の資料）。
	   区切り線つきの一覧にし、内部は矢印、外部（target="_blank"）は別のタブで開く印 */
	.v2-prose > :is(h2 + ul, ul:first-child):not(.v2-relcards, .v2-relsvc, .v2-strip__list):has(> li > a[href*="/column/"], > li > a[href*="/tech/"], > li > a[href*="/service/"], > li > a[target="_blank"]) > li {
		margin: 0;
		padding: 0.75em 0 0.75em 1.6em;
		border-bottom: 1px solid var(--c-line);
	}

	.v2-prose > :is(h2 + ul, ul:first-child):not(.v2-relcards, .v2-relsvc, .v2-strip__list):has(> li > a[href*="/column/"], > li > a[href*="/tech/"], > li > a[href*="/service/"], > li > a[target="_blank"]) > li:last-child {
		border-bottom: 0;
	}

	.v2-prose > :is(h2 + ul, ul:first-child):not(.v2-relcards, .v2-relsvc, .v2-strip__list):has(> li > a[href*="/column/"], > li > a[href*="/tech/"], > li > a[href*="/service/"]) > li::before {
		left: 0.15em;
		top: 1.35em;
		width: 0.45em;
		height: 0.45em;
		border-top: 2px solid var(--c-accent-text);
		border-right: 2px solid var(--c-accent-text);
		background: none;
		transform: rotate(45deg);
	}

	.v2-prose > :is(h2 + ul, ul:first-child):not(.v2-relcards, .v2-relsvc, .v2-strip__list):has(> li > a[target="_blank"]) > li::before {
		left: 0;
		top: 1.15em;
		width: 0.85em;
		height: 0.85em;
		border: 0;
		background: var(--c-accent-text);
		transform: none;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
	}

	.v2-prose p > a[target="_blank"]::after {
		content: "";
		display: inline-block;
		width: 0.8em;
		height: 0.8em;
		margin-left: 0.3em;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
	}

	.v2-prose ol {
		padding-left: 1.6em;
	}

	.v2-prose ol > li::marker {
		font-family: var(--f-en);
		font-weight: 600;
		color: var(--c-accent-text);
	}

	.v2-prose li + li:not(.v2-relcards > li, .v2-relsvc > li, .v2-strip__list > li) {
		margin-top: 0.4em;
	}

	.v2-prose img,
	.v2-prose iframe {
		display: block;
		max-width: 100%;
		height: auto;
		margin: 2em auto;
	}

	/* 表（部品集 P04）。本文の表は横スクロールの div に入っている */
	.v2-prose table {
		width: 100%;
		margin: 2em 0;
		border-collapse: collapse;
		font-size: var(--fs-md);
		line-height: 1.7;
	}

	.v2-prose div > table {
		margin: 0;
	}

	.v2-prose div:has(> table) {
		margin: 2em 0;
		scrollbar-width: thin;
		scrollbar-color: var(--c-input-line) transparent;
	}

	.v2-prose th,
	.v2-prose td {
		padding: 0.75em 1em;
		border: 1px solid var(--c-line);
		text-align: left;
		vertical-align: top;
	}

	.v2-prose th {
		background: var(--c-soft);
		font-weight: 700;
	}

	.v2-prose tr:first-child th {
		border-bottom: 2px solid var(--c-brand);
	}

	/* 引用: 縦線ではなく薄い紫灰の引用符 */
	.v2-prose blockquote {
		position: relative;
		margin: 2em 0;
		padding: 4px 0 4px 44px;
		color: var(--c-ink-sub);
		font-size: var(--fs-md);
	}

	.v2-prose blockquote::before {
		content: "";
		position: absolute;
		left: 0;
		top: 2px;
		width: 28px;
		height: 21px;
		background: var(--c-mark);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M0 24V14C0 6 4 1 12 0l1 4C8 5 6 8 6 12h6v12H0zm18 0V14c0-8 4-13 12-14l1 4c-5 1-7 4-7 8h6v12H18z'/%3E%3C/svg%3E") no-repeat center / contain;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M0 24V14C0 6 4 1 12 0l1 4C8 5 6 8 6 12h6v12H0zm18 0V14c0-8 4-13 12-14l1 4c-5 1-7 4-7 8h6v12H18z'/%3E%3C/svg%3E") no-repeat center / contain;
	}

	.v2-prose blockquote > :first-child {
		margin-top: 0;
	}

	.v2-prose blockquote > :last-child {
		margin-bottom: 0;
	}

	/* コード: 文中は薄い地、ブロックは濃い紫の地に薄い文字（緑の文字は使わない） */
	.v2-prose code {
		margin: 0 0.15em;
		padding: 0.1em 0.4em;
		border: 1px solid var(--c-line);
		border-radius: var(--radius-sm);
		background: var(--c-soft);
		font-size: 0.875em;
		overflow-wrap: anywhere;
	}

	.v2-prose pre {
		margin: 1.8em 0;
	}

	.v2-prose pre code,
	.v2-prose code.code-block {
		display: block;
		margin: 1.8em 0;
		padding: 3.2em 1.4em 1.4em;
		border: 0;
		border-radius: var(--radius-md);
		background: var(--c-brand-deep);
		color: var(--c-on-brand-sub);
		font-size: var(--fs-sm);
		line-height: 1.75;
		overflow-wrap: normal;
	}

	.v2-prose pre code {
		margin: 0;
		white-space: pre;
		overflow-x: auto;
		scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
	}

	/* コードのコピー（article-tools.js の initCodeCopy） */
	.code-copy-host {
		position: relative;
	}

	.code-copy {
		position: absolute;
		top: 0.7em;
		right: 0.7em;
		padding: 0.25em 0.9em;
		border: 1px solid rgba(255, 255, 255, 0.4);
		border-radius: var(--radius-sm);
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
		font-size: var(--fs-xs);
		line-height: 1.5;
		cursor: pointer;
		user-select: none;
	}

	.code-copy:hover {
		background: rgba(255, 255, 255, 0.22);
	}

	.code-copy:focus-visible {
		outline-color: #fff;
	}

	/* ===== いいね・お気に入り・シェア（部品集 P09。template-parts/article-actions.php） ===== */
	.article-actions__inner,
	.article-actions__group {
		display: flex;
		align-items: center;
	}

	.article-actions__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.4em;
		padding: 0;
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		color: var(--c-ink);
		font: inherit;
		text-decoration: none;
		cursor: pointer;
		transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
	}

	.article-actions__btn:hover {
		background: var(--c-soft);
	}

	.article-actions__svg {
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linejoin: round;
		stroke-linecap: round;
		pointer-events: none;
	}

	.article-actions__svg .fill {
		fill: currentColor;
		stroke: none;
	}

	.article-actions__btn--share .article-actions__svg {
		width: 17px;
		height: 17px;
	}

	.article-actions__glyph {
		font-weight: 700;
		line-height: 1;
		pointer-events: none;
	}

	.article-actions__glyph--hatena {
		font-size: var(--fs-sm);
	}

	.article-actions__glyph--line {
		font-size: var(--fs-xs);
		letter-spacing: 0.02em;
	}

	.article-actions__btn--like[aria-pressed="true"] {
		border-color: var(--c-like);
		color: var(--c-like);
	}

	.article-actions__btn--like[aria-pressed="true"] .article-actions__svg,
	.article-actions__btn--favorite[aria-pressed="true"] .article-actions__svg {
		fill: currentColor;
	}

	.article-actions__btn--favorite[aria-pressed="true"] {
		border-color: var(--c-brand);
		background: var(--c-brand);
		color: var(--c-on-brand);
	}

	.article-actions__count {
		font-size: var(--fs-sm);
		font-variant-numeric: tabular-nums;
	}

	.article-actions__count[hidden],
	.article-actions__btn[hidden] {
		display: none;
	}

	.article-actions.is-native-share .article-actions__btn--share,
	.article-actions.is-native-share .article-actions__share-label {
		display: none;
	}


	/* 本文の末尾の帯 */
	.article-actions--bar {
		margin-top: var(--sp-8);
		padding: var(--sp-4) 0;
		border-top: 1px solid var(--c-line);
		border-bottom: 1px solid var(--c-line);
	}

	.article-actions--bar .article-actions__inner {
		flex-wrap: wrap;
		justify-content: space-between;
		gap: var(--sp-4);
	}

	.article-actions--bar .article-actions__group {
		flex-wrap: wrap;
		gap: var(--sp-2);
	}

	.article-actions--bar .article-actions__group--react .article-actions__btn,
	.article-actions--bar .article-actions__btn--native-share {
		height: 44px;
		padding: 0 1.1em;
		font-size: var(--fs-sm);
	}

	.article-actions--bar .article-actions__btn--share {
		width: 44px;
		height: 44px;
	}

	.article-actions--bar .article-actions__share-label {
		margin-right: 0.3em;
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-sm);
		letter-spacing: var(--ls-en);
		color: var(--c-ink-mute);
	}

	.article-actions__favorites-link {
		margin-top: var(--sp-3);
		font-size: var(--fs-sm);
		text-align: right;
	}

	/* 本文の左の縦の帯（1240px 以上で追従） */
	.article-actions--rail {
		display: none;
	}

	@media (min-width: 1240px) {
		.article-actions--rail {
			position: absolute;
			top: 0;
			bottom: 0;
			left: 0;
			display: block;
			width: 46px;
		}

		.article-actions--rail .article-actions__inner {
			position: sticky;
			top: 40px;
			flex-direction: column;
			gap: 22px;
		}

		.article-actions--rail .article-actions__group {
			flex-direction: column;
			gap: 10px;
		}

		.article-actions--rail .article-actions__group--react {
			gap: 30px;
		}

		.article-actions--rail .article-actions__btn {
			position: relative;
			width: 46px;
			height: 46px;
		}

		.article-actions--rail .article-actions__btn--share {
			width: 40px;
			height: 40px;
			border-color: transparent;
			background: transparent;
		}

		.article-actions--rail .article-actions__btn--share:hover {
			background: var(--c-soft);
		}

		.article-actions--rail .article-actions__count {
			position: absolute;
			top: 100%;
			left: 50%;
			margin-top: 4px;
			font-size: var(--fs-xs);
			color: var(--c-ink-mute);
			transform: translateX(-50%);
			pointer-events: none;
		}
	}

	/* 操作の結果の知らせ（article-tools.js） */
	.article-toast {
		position: fixed;
		left: 50%;
		bottom: 24px;
		z-index: 60;
		max-width: calc(100% - 32px);
		padding: 0.8em 1.3em;
		border-radius: var(--radius-md);
		background: var(--c-brand);
		color: var(--c-on-brand);
		font-size: var(--fs-sm);
		box-shadow: var(--shadow-lift);
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, 20px);
		transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
	}

	.article-toast.is-shown {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
	}

	.article-toast a {
		color: var(--c-on-brand);
	}

	@media (max-width: 1023px) {
		.article-toast {
			bottom: 84px;
		}
	}

	/* ===== サイドバー（部品集 P08） ===== */
	.v2-article__side {
		min-width: 0;
	}

	@media (min-width: 1024px) {
		.sidebar-wrap01--toc {
			display: flex;
			flex-direction: column;
		}

		.sidebar-wrap01--toc .sidebar {
			display: flex;
			flex: 1 0 auto;
			flex-direction: column;
		}
	}

	.v2-article__side .widget,
	.v2-article__side .article-search {
		margin-bottom: var(--sp-7);
	}

	.v2-article__side .widgettitle {
		position: relative;
		margin: 0 0 var(--sp-4);
		padding-left: 22px;
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-lg);
		letter-spacing: var(--ls-en-wide);
	}

	.v2-article__side .widgettitle::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.2em;
		width: 10px;
		height: 1.1em;
		background: var(--c-brand);
		clip-path: var(--clip-tag);
	}

	/* 記事の検索（template-parts/article-search-form.php） */
	.article-search__form {
		position: relative;
	}

	.article-search__label {
		display: block;
		margin-bottom: var(--sp-2);
		font-size: var(--fs-sm);
		font-weight: 700;
	}

	.article-search__field {
		display: flex;
	}

	.article-search .article-search__input {
		flex: 1 1 auto;
		min-width: 0;
		height: 46px;
		padding: 0 1em;
		border: 1px solid var(--c-input-line);
		border-right: 0;
		border-radius: var(--radius-md) 0 0 var(--radius-md);
		background: var(--c-bg);
		font-size: var(--fs-md);
		-webkit-appearance: none;
		appearance: none;
	}

	.article-search__submit {
		flex: 0 0 46px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 46px;
		border: 0;
		border-radius: 0 var(--radius-md) var(--radius-md) 0;
		background: var(--c-brand);
		color: var(--c-on-brand);
		cursor: pointer;
	}

	.article-search__icon {
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
	}

	.article-search__suggest {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 50;
		max-height: 60vh;
		margin: 4px 0 0;
		padding: 0;
		overflow-y: auto;
		list-style: none;
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-md);
		background: var(--c-bg);
		box-shadow: var(--shadow-card);
	}

	.article-search__suggest[hidden] {
		display: none;
	}

	.article-search__option {
		display: block;
		padding: 0.7em 1em;
		border-bottom: 1px solid var(--c-line);
		cursor: pointer;
	}

	.article-search__option:last-child {
		border-bottom: 0;
	}

	.article-search__option:hover,
	.article-search__option[aria-selected="true"] {
		background: var(--c-soft);
	}

	.article-search__option-title {
		display: block;
		font-size: var(--fs-sm);
		line-height: 1.5;
	}

	.article-search__keywords {
		margin-top: var(--sp-3);
		font-size: var(--fs-xs);
	}

	.article-search__keywords-label {
		margin-bottom: 6px;
		font-weight: 700;
		color: var(--c-ink-mute);
	}

	.article-search__keywords-list {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.article-search__keywords a {
		display: inline-block;
		padding: 2px 10px;
		border: 1px solid var(--c-line);
		border-radius: var(--radius-pill);
		background: var(--c-soft);
		text-decoration: none;
	}

	/* 目次（template-parts/article-toc.php）。PC はサイドバーで追従、SP は左下のボタンから下のシート */
	.article-toc-area {
		display: none;
	}

	@media (min-width: 1024px) {
		.article-toc-area {
			display: block;
			flex: 1 0 auto;
			margin-bottom: var(--sp-7);
		}

		.article-toc-sticky {
			position: sticky;
			top: 24px;
		}

		.article-toc-sticky .article-toc {
			max-height: calc(100vh - 54px);
			overflow-y: auto;
			overscroll-behavior: contain;
			padding: var(--sp-5);
			border: 1px solid var(--c-line);
			border-radius: var(--radius-md);
			background: var(--c-bg);
		}
	}

	.article-toc__title {
		margin: 0 0 var(--sp-3);
		font-family: var(--f-en);
		font-weight: 600;
		font-size: var(--fs-md);
		letter-spacing: var(--ls-en);
	}

	.article-toc__list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.article-toc__link {
		position: relative;
		display: block;
		padding: 0.4em 0.5em 0.4em 1.5em;
		border-radius: var(--radius-sm);
		color: var(--c-ink-sub);
		font-size: var(--fs-sm);
		line-height: 1.55;
		text-decoration: none;
	}

	.article-toc__link:hover {
		color: var(--c-ink);
		text-decoration: underline;
	}

	.article-toc__item--d1 .article-toc__link {
		color: var(--c-ink);
		font-size: var(--fs-sm);
		font-weight: 700;
	}

	.article-toc__item--d2 .article-toc__link {
		padding-left: 2.4em;
	}

	.article-toc__item--d3 .article-toc__link {
		padding-left: 3.2em;
	}

	/* 読んでいる所に紫の札 */
	.article-toc__link[aria-current] {
		background: var(--c-soft);
		color: var(--c-ink);
		font-weight: 700;
	}

	.article-toc__link[aria-current]::before {
		content: "";
		position: absolute;
		left: 6px;
		top: 0.55em;
		width: 7px;
		height: 1.1em;
		background: var(--c-brand);
		clip-path: var(--clip-tag);
	}

	.article-toc-fab {
		display: none;
	}

	@media (max-width: 1023px) {
		.article-toc-fab {
			position: fixed;
			left: 16px;
			bottom: 20px;
			z-index: 30;
			display: inline-flex;
			align-items: center;
			gap: 0.55em;
			padding: 0.8em 1.3em;
			border: 0;
			border-radius: var(--radius-pill);
			background: var(--c-brand);
			color: var(--c-on-brand);
			font: inherit;
			font-size: var(--fs-sm);
			font-weight: 700;
			box-shadow: var(--shadow-lift);
			cursor: pointer;
			opacity: 0;
			visibility: hidden;
			transform: translateY(12px);
			transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
		}

		.article-toc-fab.is-shown {
			opacity: 1;
			visibility: visible;
			transform: none;
		}

		.article-toc-fab[hidden] {
			display: none;
		}
	}

	.article-toc-fab__icon {
		position: relative;
		display: block;
		width: 14px;
		height: 10px;
		border-top: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
	}

	.article-toc-fab__icon::before {
		content: "";
		position: absolute;
		top: 2px;
		left: 0;
		width: 100%;
		height: 2px;
		background: currentColor;
	}

	.article-toc-sheet {
		inset: auto 0 0 0;
		width: 100%;
		max-width: 100%;
		max-height: 80vh;
		margin: 0;
		padding: 0;
		overflow: hidden;
		border: 0;
		border-radius: 16px 16px 0 0;
		background: var(--c-bg);
		color: var(--c-ink);
	}

	.article-toc-sheet::backdrop {
		background: rgba(30, 22, 38, 0.5);
	}

	.article-toc-sheet .article-toc__title {
		margin: 0;
	}

	.article-toc-sheet__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0.8em 1em 0.8em 1.3em;
		border-bottom: 1px solid var(--c-line);
	}

	.article-toc-sheet__close {
		position: relative;
		width: 44px;
		height: 44px;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.article-toc-sheet__close::before,
	.article-toc-sheet__close::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 18px;
		height: 2px;
		background: var(--c-ink);
	}

	.article-toc-sheet__close::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.article-toc-sheet__close::after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	.article-toc--sheet {
		max-height: calc(80vh - 62px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 1em 1.3em 2em;
	}

	/* ランキング（template-parts/ranking-widget.php）: 細い大きな数字 */
	.widget-ranking__sub {
		margin-left: 0.6em;
		font-family: var(--f-ja);
		font-size: var(--fs-xs);
		font-weight: 500;
		letter-spacing: 0;
		color: var(--c-ink-mute);
	}

	.widget-ranking__list {
		margin: 0;
		padding: 0;
		list-style: none;
		border-top: 1px solid var(--c-line);
	}

	.widget-ranking__list li {
		border-bottom: 1px solid var(--c-line);
	}

	.widget-ranking__item {
		display: flex;
		align-items: flex-start;
		gap: var(--sp-3);
		padding: var(--sp-3) 4px;
		font-size: var(--fs-sm);
		line-height: 1.6;
		text-decoration: none;
	}

	.widget-ranking__item:hover .widget-ranking__title {
		text-decoration: underline;
	}

	.widget-ranking__item--current {
		background: var(--c-soft);
	}

	.widget-ranking__no {
		flex: 0 0 1.6em;
		font-family: var(--f-en);
		font-weight: 300;
		font-size: var(--fs-xl);
		line-height: 1;
		color: var(--c-ink-mute);
	}

	.widget-ranking__no--1,
	.widget-ranking__no--2,
	.widget-ranking__no--3 {
		color: var(--c-brand);
		font-weight: 500;
	}

	.widget-ranking__title {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.widget-ranking__more {
		margin: calc(var(--sp-5) * -1) 0 var(--sp-7);
		font-size: var(--fs-sm);
		text-align: right;
	}

	/* カテゴリ（template-parts/category-widget.php）。親は 1 つずつカード、子と孫はカードの中の札。開閉は scripts.js（hidden の出し入れ） */
	.widget-cat-list,
	.widget-cat-list__children {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	/* 子を持つ親は 1 行を使い、子を持たない親は 2 列に並べて欄の高さを詰める */
	.widget-cat-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	.widget-cat-list > .widget-cat-list__item:has(> .widget-cat-list__children) {
		grid-column: 1 / -1;
	}

	.widget-cat-list > .widget-cat-list__item:not(:has(> .widget-cat-list__children)) .widget-cat-list__link--depth-0 {
		flex-wrap: wrap;
		gap: 0 6px;
		min-height: 44px;
		padding: 6px 10px 6px 24px;
		font-size: var(--fs-sm);
		line-height: 1.5;
	}

	.widget-cat-list > .widget-cat-list__item:not(:has(> .widget-cat-list__children)) .widget-cat-list__link--depth-0::before {
		left: 10px;
		width: 6px;
		height: 14px;
		margin-top: -7px;
	}

	.widget-cat-list > .widget-cat-list__item:not(:has(> .widget-cat-list__children)) .widget-cat-list__count {
		padding: 0;
		background: none;
	}

	.widget-cat-list > .widget-cat-list__item {
		border-radius: var(--radius-md);
		background: var(--c-soft);
	}

	.widget-cat-list__row {
		display: flex;
		align-items: center;
		gap: 6px;
	}

	.widget-cat-list__link {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		gap: var(--sp-2);
		min-width: 0;
		text-decoration: none;
	}

	.widget-cat-list__name {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.widget-cat-list__count {
		flex: none;
		font-family: var(--f-en);
		font-size: var(--fs-xs);
		font-variant-numeric: tabular-nums;
		color: var(--c-ink-mute);
	}

	/* 親カテゴリの行 */
	.widget-cat-list__link--depth-0 {
		position: relative;
		min-height: 48px;
		padding: 6px var(--sp-2) 6px 28px;
		font-size: var(--fs-md);
		font-weight: 700;
	}

	.widget-cat-list__link--depth-0::before {
		content: "";
		position: absolute;
		left: 12px;
		top: 50%;
		width: 8px;
		height: 18px;
		margin-top: -9px;
		background: var(--c-brand);
		clip-path: var(--clip-tag);
	}

	.widget-cat-list__link--depth-0 .widget-cat-list__name {
		flex: 1 1 auto;
	}

	.widget-cat-list__link--depth-0 .widget-cat-list__count {
		padding: 0 8px;
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		line-height: 1.8;
	}

	.widget-cat-list__link--depth-0:hover .widget-cat-list__name {
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.widget-cat-list__toggle {
		flex: 0 0 32px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		height: 32px;
		margin-right: 8px;
		padding: 0;
		border: 1px solid var(--c-line-strong);
		border-radius: 50%;
		background: var(--c-bg);
		color: var(--c-ink);
		cursor: pointer;
	}

	.widget-cat-list__toggle:hover {
		border-color: var(--c-brand);
	}

	.widget-cat-list__toggle svg {
		width: 14px;
		height: 14px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2.4;
		stroke-linecap: round;
		stroke-linejoin: round;
		transition: transform var(--dur-fast);
	}

	.widget-cat-list__toggle[aria-expanded="true"] svg {
		transform: rotate(180deg);
	}

	/* 子と孫は札を並べる */
	.widget-cat-list__children {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		padding: 2px 12px 12px;
	}

	.widget-cat-list__children[hidden] {
		display: none;
	}

	.widget-cat-list__children .widget-cat-list__link {
		gap: 6px;
		min-height: 32px;
		padding: 0 10px;
		border: 1px solid var(--c-line);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		font-size: var(--fs-sm);
		line-height: 1.4;
	}

	.widget-cat-list__children .widget-cat-list__link:hover {
		border-color: var(--c-brand);
	}

	/* 孫を持つ子は 1 行を使い、その下に孫の札を並べる（左に緑の斜めの印） */
	.widget-cat-list__children > .widget-cat-list__item:has(> .widget-cat-list__children) {
		flex-basis: 100%;
	}

	.widget-cat-list__children > .widget-cat-list__item:has(> .widget-cat-list__children) > .widget-cat-list__row .widget-cat-list__link {
		flex: 0 1 auto;
	}

	.widget-cat-list__children .widget-cat-list__toggle {
		flex-basis: 28px;
		height: 28px;
		margin: 0;
	}

	.widget-cat-list__children .widget-cat-list__children {
		position: relative;
		margin-top: 6px;
		padding: 0 0 0 22px;
	}

	.widget-cat-list__children .widget-cat-list__children::before {
		content: "";
		position: absolute;
		left: 8px;
		top: 9px;
		width: 6px;
		height: 14px;
		background: var(--c-accent);
		clip-path: var(--clip-tag);
	}

	.widget-cat-list__children .widget-cat-list__children .widget-cat-list__link {
		background: var(--c-soft-2);
		border-color: transparent;
	}

	.widget_categories--spaced {
		margin-bottom: var(--sp-7);
	}

	/* ===== 本文の後の欄 ===== */
	/* SNS のフォロー（template-parts/article-sns-follow.php） */
	.article-sns-follow {
		margin-top: var(--sp-8);
		padding: var(--sp-5);
		border-radius: var(--radius-md);
		background: var(--c-soft);
	}

	.article-sns-follow__title {
		font-size: var(--fs-lg);
	}

	.article-sns-follow__lead {
		margin-top: var(--sp-2);
		font-size: var(--fs-sm);
		line-height: 1.8;
	}

	.article-sns-follow__list {
		display: flex;
		flex-wrap: wrap;
		gap: var(--sp-2);
		margin: var(--sp-4) 0 0;
		padding: 0;
		list-style: none;
	}

	.article-sns-follow__list a {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		padding: 0 18px;
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		font-size: var(--fs-sm);
		font-weight: 700;
		text-decoration: none;
	}

	.article-sns-follow__list svg {
		width: 18px;
		height: 18px;
		fill: currentColor;
	}


	/* 被リンク・急上昇の箱（部品集 P10。斜めの印と矢印の一覧） */
	.article-links-box {
		margin-top: var(--sp-8);
	}

	.article-links-box__title {
		position: relative;
		display: flex;
		align-items: center;
		gap: var(--sp-2);
		padding: 0 0 var(--sp-3) 22px;
		border-bottom: 1px solid var(--c-line);
		font-size: var(--fs-lg);
	}

	.article-links-box__title::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.25em;
		width: 10px;
		height: 1.1em;
		background: var(--c-brand);
		clip-path: var(--clip-tag);
	}

	.article-links-box__sub {
		font-size: var(--fs-xs);
		font-weight: 500;
		color: var(--c-ink-mute);
	}

	.article-links-box__list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.article-links-box__list li {
		border-bottom: 1px solid var(--c-line);
	}

	.article-links-box__list a {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 4px var(--sp-3);
		padding: var(--sp-3) 32px var(--sp-3) 4px;
		text-decoration: none;
	}

	.article-links-box__list a::after {
		content: "";
		position: absolute;
		right: 8px;
		top: 50%;
		width: 8px;
		height: 8px;
		margin-top: -4px;
		border-top: 2px solid var(--c-ink-mute);
		border-right: 2px solid var(--c-ink-mute);
		transform: rotate(45deg);
		transition: transform var(--dur-fast);
	}

	.article-links-box__list a:hover::after {
		transform: translateX(4px) rotate(45deg);
	}

	.article-links-box__list a:hover .article-links-box__name {
		text-decoration: underline;
	}

	.article-links-box__no {
		flex: 0 0 1.4em;
		font-family: var(--f-en);
		font-weight: 300;
		font-size: var(--fs-xl);
		line-height: 1;
		color: var(--c-brand);
	}

	.article-links-box__body {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.article-links-box__meta {
		font-size: var(--fs-xs);
		color: var(--c-ink-mute);
	}

	.article-links-box__name {
		flex-basis: 100%;
		font-size: var(--fs-md);
		font-weight: 500;
		line-height: 1.7;
	}

	/* この記事に関連するサービス（template-parts/content-related-services.php） */
	.related-service-section {
		margin-top: var(--sp-8);
	}

	.related-service-section .heading--line01 {
		position: relative;
		padding: 0 0 var(--sp-3) 22px;
		border-bottom: 1px solid var(--c-line);
		font-size: var(--fs-lg);
	}

	.related-service-section .heading--line01::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.25em;
		width: 10px;
		height: 1.1em;
		background: var(--c-brand);
		clip-path: var(--clip-tag);
	}

	.related-service-section .card-list01 {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
		gap: var(--sp-3);
		margin: var(--sp-4) 0 0;
		padding: 0;
		list-style: none;
	}

	.related-service-section .card-list01 .box {
		position: relative;
		height: 100%;
		padding: var(--sp-4) var(--sp-4) var(--sp-4) 26px;
		border: 1px solid var(--c-line);
		border-radius: var(--radius-md);
		background: var(--c-bg);
	}

	.related-service-section .card-list01 .box::before {
		content: "";
		position: absolute;
		left: 10px;
		top: var(--sp-4);
		width: 6px;
		height: 1.2em;
		background: var(--c-accent);
		clip-path: var(--clip-tag);
	}

	.related-service-section .card-list01 .ttl {
		font-weight: 700;
		line-height: 1.6;
	}

	.related-service-section .card-list01 .ttl a {
		text-decoration: none;
	}

	.related-service-section .card-list01 .ttl a::after {
		content: "";
		position: absolute;
		inset: 0;
	}

	.related-service-section .card-list01 .ttl a:hover {
		text-decoration: underline;
	}

	.related-service-section .card-list01 .text {
		margin-top: 4px;
		font-size: var(--fs-xs);
		color: var(--c-ink-mute);
	}

	.related-service-guides {
		margin-top: var(--sp-5);
		padding: var(--sp-4) var(--sp-5);
		border-radius: var(--radius-md);
		background: var(--c-soft);
	}

	.related-service-guides__label {
		font-size: var(--fs-sm);
		font-weight: 700;
	}

	.guide-pills {
		display: flex;
		flex-wrap: wrap;
		gap: var(--sp-2);
		margin: var(--sp-3) 0 0;
		padding: 0;
		list-style: none;
	}

	.guide-pills a {
		display: inline-block;
		padding: 4px 14px;
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		font-size: var(--fs-sm);
		line-height: 1.6;
		text-decoration: none;
	}

	.guide-pills a:hover {
		border-color: var(--c-brand);
		text-decoration: underline;
	}

	/* 資料請求 */
	.v2-article__request {
		display: flex;
		align-items: center;
		gap: var(--sp-2) var(--sp-5);
		margin-top: var(--sp-8);
		padding: var(--sp-5) var(--sp-6);
		border-radius: var(--radius-md);
		background: var(--c-brand);
		color: var(--c-on-brand);
		text-decoration: none;
		transition: transform var(--dur-fast), box-shadow var(--dur-fast);
	}

	.v2-article__request-en {
		font-family: var(--f-en);
		font-weight: 300;
		font-size: var(--fs-xl);
		line-height: 1;
		letter-spacing: 0.08em;
	}

	.v2-article__request-ja {
		flex: 1 1 auto;
		font-weight: 700;
	}

	.v2-article__request .v2-arrow {
		background: var(--c-bg);
		color: var(--c-brand);
	}

	.v2-article__request:hover {
		transform: translateY(-2px);
		box-shadow: var(--shadow-lift);
	}

	.v2-article__request:hover .v2-arrow {
		transform: translateX(4px);
	}

	.v2-article__request:focus-visible {
		outline-color: var(--c-focus);
	}

	/* 関連記事・一覧へ戻る */
	.v2-article__related {
		margin-top: var(--sp-9);
	}

	.v2-article__related .v2-cards {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	}

	.v2-article__back {
		margin-top: var(--sp-8);
		text-align: center;
	}
}

@layer components {
	/* ===== 記事の一覧・カテゴリ一覧（template-parts/v2/article-archive.php・category-top.php） ===== */
	.v2-list .article-search {
		margin-bottom: var(--sp-6);
	}

	.v2-list__lead {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-2) var(--sp-3);
		font-weight: 700;
	}

	/* RSS・メールで受け取る（issoh_feed_button_html・issoh_newsletter_button_html） */
	.feed-link {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 32px;
		padding: 0 12px;
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		font-size: var(--fs-xs);
		font-weight: 700;
		text-decoration: none;
	}

	.feed-link svg {
		width: 14px;
		height: 14px;
		fill: currentColor;
	}

	.feed-link:hover {
		border-color: var(--c-brand);
	}

	.v2-card__subcats {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.v2-card__subcats span {
		padding: 0 8px;
		border-radius: var(--radius-pill);
		background: var(--c-soft);
		font-size: var(--fs-xs);
		line-height: 1.9;
		color: var(--c-ink-sub);
	}

	/* ページ送り（部品集 P07。issoh_page_navi の nav.pagination） */
	.pagination {
		margin-top: var(--sp-8);
	}

	.pagination .page-numbers {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.pagination li {
		display: flex;
	}

	.pagination a.page-numbers,
	.pagination span.page-numbers {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		height: 44px;
		padding: 0 10px;
		font-family: var(--f-en);
		font-weight: 600;
		text-decoration: none;
		clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
		background: var(--c-soft);
	}

	.pagination a.page-numbers:hover {
		background: var(--c-soft-2);
	}

	.pagination .current {
		background: var(--c-brand) !important;
		color: var(--c-on-brand);
	}

	.pagination .dots {
		background: none !important;
	}

	.pagination .prev,
	.pagination .next {
		position: relative;
		width: 44px;
		font-size: 0;
	}

	.pagination .prev::before,
	.pagination .next::before {
		content: "";
		width: 8px;
		height: 8px;
		border-top: 2px solid currentColor;
		border-right: 2px solid currentColor;
		transform: rotate(45deg);
	}

	.pagination .prev::before {
		transform: rotate(-135deg);
	}

	/* 新着順・人気順 */
	.v2-tabs {
		display: flex;
		gap: 4px;
		margin: var(--sp-5) 0 var(--sp-4);
		border-bottom: 2px solid var(--c-line);
	}

	.v2-tabs a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin-bottom: -2px;
		padding: 0 var(--sp-5);
		border-bottom: 2px solid transparent;
		font-weight: 700;
		color: var(--c-ink-mute);
		text-decoration: none;
	}

	.v2-tabs a[aria-current] {
		border-bottom-color: var(--c-brand);
		color: var(--c-ink);
	}

	/* カテゴリ一覧の上の欄 */
	.v2-cattop {
		margin-bottom: var(--sp-7);
	}

	.v2-cattop__about p + p {
		margin-top: var(--sp-3);
	}

	/* 件数と最新の日付。大きな英字の数字と和文を、上下の中央でそろえる */
	.v2-cattop__stats {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--sp-2) var(--sp-5);
		margin-top: var(--sp-4);
		font-size: var(--fs-sm);
		line-height: 1;
		color: var(--c-ink-mute);
	}

	.v2-cattop__stats > span {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 32px;
	}

	.v2-cattop__stats strong {
		font-family: var(--f-en);
		font-size: var(--fs-lg);
		line-height: 1;
		color: var(--c-ink);
	}

	.v2-cattop__stats time {
		font-family: var(--f-en);
		font-weight: 500;
		letter-spacing: var(--ls-en);
		color: var(--c-ink);
	}

	.v2-cattop__related {
		margin-top: var(--sp-5);
		padding: var(--sp-4) var(--sp-5);
		border-radius: var(--radius-md);
		background: var(--c-soft);
	}

	.v2-cattop__related dl {
		margin: 0;
	}

	.v2-cattop__row {
		display: grid;
		grid-template-columns: 9em 1fr;
		gap: var(--sp-2) var(--sp-4);
		padding: var(--sp-2) 0;
	}

	.v2-cattop__row + .v2-cattop__row {
		border-top: 1px solid var(--c-line);
	}

	.v2-cattop__row dt {
		font-size: var(--fs-xs);
		font-weight: 700;
		color: var(--c-ink-mute);
		line-height: 32px;
	}

	.v2-cattop__row dd {
		margin: 0;
	}

	@media (max-width: 599px) {
		.v2-cattop__row {
			grid-template-columns: 1fr;
		}
	}

	.v2-cattop__tags {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.v2-cattop__tags a {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 32px;
		padding: 0 12px;
		border: 1px solid var(--c-line-strong);
		border-radius: var(--radius-pill);
		background: var(--c-bg);
		font-size: var(--fs-sm);
		text-decoration: none;
	}

	.v2-cattop__tags a span {
		font-size: var(--fs-xs);
		color: var(--c-ink-mute);
	}

	.v2-cattop__tags a:hover {
		border-color: var(--c-brand);
	}

	.v2-cattop__block {
		margin-top: var(--sp-7);
	}

	.v2-cattop__title {
		position: relative;
		padding-left: 22px;
		font-size: var(--fs-lg);
	}

	.v2-cattop__title::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0.25em;
		width: 10px;
		height: 1.1em;
		background: var(--c-brand);
		clip-path: var(--clip-tag);
	}

	.v2-cattop__note {
		margin: 4px 0 var(--sp-3);
		font-size: var(--fs-xs);
		color: var(--c-ink-mute);
	}

	.v2-cattop__readers {
		flex: none;
		margin-left: auto;
		font-size: var(--fs-xs);
		color: var(--c-ink-mute);
		white-space: nowrap;
	}

	/* サイドバーのサービス（カテゴリに合うもの） */
	.v2-catservices__list {
		display: grid;
		gap: var(--sp-2);
		margin: 0 0 var(--sp-4);
		padding: 0;
		list-style: none;
	}

	.v2-catservices__card {
		display: block;
		padding: var(--sp-3) var(--sp-4);
		border: 1px solid var(--c-line);
		border-radius: var(--radius-md);
		background: var(--c-bg);
		text-decoration: none;
	}

	.v2-catservices__card:hover {
		border-color: var(--c-brand);
	}

	.v2-catservices__name {
		display: block;
		font-weight: 700;
		line-height: 1.6;
	}

	.v2-catservices__desc {
		display: -webkit-box;
		margin-top: 4px;
		overflow: hidden;
		font-size: var(--fs-xs);
		line-height: 1.7;
		color: var(--c-ink-sub);
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}

	.v2-catservices .related-service-guides {
		margin: 0 0 var(--sp-4);
	}

	.v2-catservices > .v2-more {
		width: 100%;
		justify-content: space-between;
	}
}

/*
 * ここから @layer の外。記事の質問・メール案内の widget（Worker が配る JS）は @layer の外で CSS を入れるので、色の上書きはここに書く。
 */
.v2-article .issoh-ask .issoh-ask__open,
.v2-article .issoh-ask-entry .issoh-ask__entry-btn {
	border-color: var(--c-brand);
	color: var(--c-brand);
}

.v2-article .issoh-ask .issoh-ask__q {
	background: var(--c-brand);
}

.v2-article .issoh-ask .issoh-ask__send {
	background: var(--c-brand);
}

.v2-article .issoh-ask .issoh-ask__send:disabled {
	background: var(--c-line-strong);
}

.v2-article .issoh-ask .issoh-ask__form:focus-within {
	border-color: var(--c-brand);
	box-shadow: 0 0 0 3px rgba(67, 57, 78, 0.15);
}

.v2-article .issoh-ask .issoh-ask__fold-head,
.v2-article .issoh-ask .issoh-ask__rec-title {
	color: var(--c-brand);
}

/* boxicons の .bx（@layer の外で display: inline-block）より強くするため、ここで隠す。急上昇の見出しは左の斜めの札を印にしている */
.article-links-box__title .bx {
	display: none;
}

