/* コメントアウトルール
 */

/* =========================================================
  レイヤー名（Foundation / Layout / Component / Object）
	========================================================= */

/* =======
  ブロックのクラス名 :　ブロック名
   ======== */

/* 項目名（1行コメント固定） */

@charset "UTF-8";

/* =========================================================
  Foundation
	========================================================= */

:root {
	/* color */
	--color-white: #ffffff;
	--color-main: #101A33;
	--color-accent: #2B5CE6;
	--color-bg: #F4F5F7;
	--color-sub: #55607A;
	--color-border: #D9DDE6;

	/* category */
	--color-cat-development: #2B5CE6;
	--color-cat-design: #C2255C;
	--color-cat-marketing: #D9670F;
	--color-cat-web: #18794E;
	--color-cat-ai: #7A4FD6;
	--color-cat-column: #8A6240;

	/* tag */
	--color-tag-hover: #101A33;

	/* font */
	--font-en: "Outfit", "Noto Sans JP", sans-serif;
}

/* 基本設定 */
html {
	scroll-behavior: smooth;
}
body {
	font-family:
		"Noto Sans JP", "Noto Sans", "Hiragino Kaku Gothic ProN",
		"Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
	color: var(--color-main);
	background: var(--color-white);
	font-weight: 400;
	line-height: 1.7;
	font-size: 1rem;
}

/* =========================================================
  Layout　l-
	========================================================= */

/* =======
  l-container
   ======== */
.l-container {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
}

.l-main {
	padding-top: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
	padding-bottom: clamp(3rem, 2.4rem + 2.4vw, 6rem);
	background-color: var(--color-white);
}

/* コンテンツ＋サイドバーの2カラム */
.l-content-wrap {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
@media (min-width: 1024px) {
	.l-content-wrap {
		flex-direction: row;
		align-items: flex-start;
	}
	.l-content-wrap__main {
		flex: 1 1 auto;
		min-width: 0;
	}
	.l-content-wrap__sidebar {
		flex: 0 0 300px;
		align-self: stretch;
	}
	.c-sidebar-sticky {
		position: sticky;
		top: 1.5rem;
	}
}

/* =======
  l-header : ヘッダー
   ======== */
.l-header {
	background-color: var(--color-white);
	border-bottom: 1px solid var(--color-main);
}
/* 幅と左右の余白を本文（l-container）にそろえる */
.l-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
}

/* ロゴ */
.l-header__logo img,
.l-header__logo svg {
	width: 50%;
}

/* ナビ */
.l-header__nav {
	display: none;
}
.l-header__menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	line-height: 1;
	padding: 0.9em 0.2em;
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

/* カテゴリ色のドット */
.l-header__menu a::before {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hover, var(--color-sub));
}

/* 下線（ホバー時と、いま開いているカテゴリ） */
.l-header__menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.3em;
	height: 2px;
	background: var(--hover, var(--color-accent));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

/* カテゴリ別の色 */
.l-header__menu a[href*="/category/development/"] { --hover: var(--color-cat-development); }
.l-header__menu a[href*="/category/design/"]     { --hover: var(--color-cat-design); }
.l-header__menu a[href*="/category/marketing/"]  { --hover: var(--color-cat-marketing); }
.l-header__menu a[href*="/category/web/"]        { --hover: var(--color-cat-web); }
.l-header__menu a[href*="/category/ai/"]         { --hover: var(--color-cat-ai); }
.l-header__menu a[href*="/category/column/"]     { --hover: var(--color-cat-column); }

.l-header__menu a:hover::after,
.l-header__menu a:focus-visible::after,
body.category-development .l-header__menu a[href*="/category/development/"]::after,
body.category-design .l-header__menu a[href*="/category/design/"]::after,
body.category-marketing .l-header__menu a[href*="/category/marketing/"]::after,
body.category-web .l-header__menu a[href*="/category/web/"]::after,
body.category-ai .l-header__menu a[href*="/category/ai/"]::after,
body.category-column .l-header__menu a[href*="/category/column/"]::after {
	transform: scaleX(1);
}
@media (min-width: 1024px) {
	.l-header__inner {
		min-height: 80px;
	}
	.l-header__nav {
		display: block;
	}
	.l-header__menu {
		display: flex;
		align-items: center;
		gap: 1.75rem;
	}
}

/* =======
  l-drawer : SPドロワーメニュー
   ======== */
.l-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
}
.l-drawer[hidden] {
	display: none;
}
.l-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(16, 26, 51, 0.5);
}
.l-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(100%, 420px);
	height: 100dvh;
	overflow-y: auto;
	background: var(--color-main);
	color: var(--color-white);
	padding: 1rem 1.5rem 3rem;
}
.l-drawer__close {
	margin-left: auto;
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	color: var(--color-white);
}
.l-drawer__close svg {
	width: 22px;
	height: 22px;
}
.l-drawer__menu {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	margin-top: 0.5rem;
}
.l-drawer__heading {
	font-family: var(--font-en);
	font-weight: 500;
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid var(--color-white);
}
.l-drawer__list {
	margin-top: 0.75rem;
}
.l-drawer__list a {
	display: flex;
	align-items: baseline;
	gap: 0.6em;
	padding: 0.65em 0.25em;
	font-weight: 500;
	transition: opacity 0.2s ease;
}
.l-drawer__list a:hover {
	opacity: 0.7;
}

/* 英字＋日本語の添え書き */
.l-drawer__en {
	font-family: var(--font-en);
	font-weight: 500;
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	line-height: 1.2;
}
.l-drawer__ja {
	font-size: 0.75rem;
}
.l-drawer__ja::before {
	content: "／ ";
}

/* カテゴリー（色ドット＋名前） */
.l-drawer__list--cat a {
	align-items: center;
	font-size: 1rem;
}
.l-drawer__list--cat a::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--cat, var(--color-white));
}
/* 濃紺の上でも見える明るさのカテゴリ色 */
.l-drawer__list--cat [data-cat="development"] { --cat: #6C8FFF; }
.l-drawer__list--cat [data-cat="design"]     { --cat: #F783AC; }
.l-drawer__list--cat [data-cat="marketing"]  { --cat: #F2994A; }
.l-drawer__list--cat [data-cat="web"]        { --cat: #4FC38A; }
.l-drawer__list--cat [data-cat="ai"]         { --cat: #A98BF0; }
.l-drawer__list--cat [data-cat="column"]     { --cat: #C9A27E; }

/* 開くときのアニメーション（hidden が外れた瞬間に再生） */
.l-drawer__overlay {
	animation: drawer-fade 0.3s ease both;
}
.l-drawer__panel {
	animation: drawer-slide 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.l-drawer__group {
	animation: drawer-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.l-drawer__group:nth-child(1) { animation-delay: 0.12s; }
.l-drawer__group:nth-child(2) { animation-delay: 0.2s; }
.l-drawer__group:nth-child(3) { animation-delay: 0.28s; }
@keyframes drawer-fade {
	from { opacity: 0; }
}
@keyframes drawer-slide {
	from { transform: translateX(100%); }
}
@keyframes drawer-rise {
	from { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
	.l-drawer__overlay,
	.l-drawer__panel,
	.l-drawer__group {
		animation: none;
	}
}
@media (min-width: 1024px) {
	.l-drawer {
		display: none;
	}
}

/* =======
  c-header__hamburger : SPハンバーガーボタン
   ======== */
.c-header__hamburger {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
}
.c-header__hamburger-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-main);
}
@media (min-width: 1024px) {
	.c-header__hamburger {
		display: none;
	}
}

/* =======
  l-footer : フッター
   ======== */
.l-footer {
	background: var(--color-main);
	color: var(--color-white);
}
.l-footer__inner {
	padding-block: clamp(3rem, 2.4rem + 2.4vw, 4.5rem) 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 2.25rem;
}
.l-footer__logo {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.l-footer__cols {
	display: grid;
	gap: 2rem;
}
@media (min-width: 768px) {
	.l-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4.5rem;
	}
}
.l-footer__heading {
	font-family: var(--font-en);
	font-weight: 500;
	letter-spacing: 0.08em;
	padding-bottom: 0.6em;
	margin-bottom: 0.9em;
	border-bottom: 1px solid var(--color-sub);
}
.l-footer__nav ul {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	font-size: 0.875rem;
}
.l-footer__nav a {
	display: inline-block;
	padding-block: 0.2em;
	transition: opacity 0.2s ease;
}
.l-footer__nav a:hover {
	opacity: 0.7;
}
.l-footer__copyright {
	font-family: var(--font-en);
	font-size: 0.75rem;
	color: #C5CAD6;
}

/* =======
  c-totop : 上へ戻るボタン
   ======== */
.c-totop {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 140;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--color-main);
	color: var(--color-white);
	border: 1px solid var(--color-white);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background-color 0.2s;
}
.c-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.c-totop:hover {
	background: var(--color-accent);
}
.c-totop svg {
	width: 20px;
	height: 20px;
}
@media (max-width: 1023px) {
	/* SPで「目的から探す」ボタンがある記事では、その上に置く */
	body:has(.c-toc-fab) .c-totop {
		bottom: calc(76px + env(safe-area-inset-bottom));
	}
}
@media (min-width: 1024px) {
	.c-totop {
		right: 32px;
		bottom: 32px;
	}
}

/* =========================================================
	Component  c-
	========================================================= */

/* =======
  c-btn : 基本ボタン
   ======== */
.c-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	font-size: 0.875rem;
	font-weight: 700;
	padding: 0.9em 1.8em;
	border-radius: 999px;
	background: var(--color-main);
	color: var(--color-white);
	transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.c-btn:hover {
	opacity: 0.75;
}
.c-btn--outline {
	background: transparent;
	color: var(--color-main);
	border: 1px solid var(--color-main);
}

/* =======
  c-section-heading : セクション見出し（英字＋日本語の添え書き）
   ======== */
.c-section-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2em 0.75em;
	padding-bottom: 0.8em;
	margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border-bottom: 1px dashed var(--color-main);
	font-size: 1rem;
	font-weight: 500;
}
.c-section-heading__en {
	font-family: var(--font-en);
	font-weight: 500;
	font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--cat, inherit);
}
.c-section-heading__ja {
	font-size: 0.8125rem;
	font-weight: 500;
}
.c-section-heading__ja::before {
	content: "／ ";
}

/* 記事下：線なしの小さめ見出し */
.c-section-heading--sm {
	padding-bottom: 0;
	border-bottom: 0;
}
.c-section-heading--sm .c-section-heading__en {
	font-size: 1.375rem;
}

/* =======
  c-badge : カテゴリーバッジ（旧デザイン用。現在はカードで未使用）
   ======== */
.c-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
}

/* =======
  c-article-card : 記事カード
   ======== */
.c-article-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.c-article-card__thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--color-bg);
}
.c-article-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}
.c-article-card:hover .c-article-card__thumb img {
	transform: scale(1.03);
}
.c-article-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	padding-top: 0.8em;
}
/* カードのタグの並び（最大3つ・入りきらないときは折り返す） */
.c-article-card__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 100%;
}
/* カードのタグ：「タグから探す」と同じ枠線つきの丸いタグ（件数なし・小さめ） */
.c-article-card__cat {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 3px 12px;
	border: 1px solid var(--color-main);
	border-radius: 999px;
	background: var(--color-white);
	color: var(--color-main);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.5;
}
.c-article-card__cat::before {
	content: "#";
}
[data-cat="development"] { --cat: var(--color-cat-development); }
[data-cat="design"]     { --cat: var(--color-cat-design); }
[data-cat="marketing"]  { --cat: var(--color-cat-marketing); }
[data-cat="web"]        { --cat: var(--color-cat-web); }
[data-cat="ai"]         { --cat: var(--color-cat-ai); }
[data-cat="column"]     { --cat: var(--color-cat-column); }

.c-article-card__title {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}
.c-article-card:hover .c-article-card__title {
	color: var(--color-accent);
}
.c-article-card__date {
	font-family: var(--font-en);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--color-sub);
}
@media (min-width: 768px) {
	.c-article-card__title {
		font-size: 0.9375rem;
	}
}

/* =======
  c-sidebar-box : サイドバー共通ボックス
   ======== */
/* ボックス同士の上余白を統一（sticky の中に入っているボックスも同じ間隔） */
.l-content-wrap__sidebar > * + *,
.c-sidebar-sticky > * + * {
	margin-top: 3rem;
}
.c-sidebar-box__heading {
	padding-bottom: 0.6em;
	margin-bottom: 1em;
	border-bottom: 1px dashed var(--color-main);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

/* プロフィール */
.c-sidebar-box--profile {
	border: 1px solid var(--color-main);
	padding: 1.75rem 1.25rem;
}
.c-profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.75em;
}
.c-profile__img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	overflow: hidden;
}
.c-profile__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.c-profile__name {
	font-weight: 700;
	font-size: 0.9375rem;
}
.c-profile__text {
	font-size: 0.75rem;
	color: var(--color-sub);
	line-height: 1.8;
}

/* 検索フォーム */
.c-search-form {
	display: flex;
	border: 1px solid var(--color-main);
}
.c-search-form input[type="search"] {
	flex: 1 1 auto;
	padding: 0.85em 1em;
	font-size: 0.875rem;
	min-width: 0;
}
.c-search-form button {
	flex-shrink: 0;
	width: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-main);
	color: var(--color-white);
	transition: background-color 0.2s ease;
}
.c-search-form button:hover {
	background: var(--color-accent);
}
.c-search-form button svg {
	width: 18px;
	height: 18px;
}

/* カテゴリー一覧（サイドバー） */
.c-cat-list li + li {
	margin-top: 0.5em;
}
.c-cat-list a {
	display: flex;
	align-items: center;
	gap: 0.7em;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.95em 1em;
	background: var(--color-bg);
	transition: background-color 0.2s ease;
}
.c-cat-list a::before {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cat, var(--color-sub));
}
.c-cat-list a::after {
	content: "›";
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--color-main);
	border-radius: 50%;
	font-size: 0.75rem;
	line-height: 1;
}
.c-cat-list__name {
	flex: 1 1 auto;
}
.c-cat-list__count {
	font-family: var(--font-en);
	font-size: 0.75rem;
	color: var(--color-sub);
}
.c-cat-list a:hover {
	background: #E8EBF0;
}

/* =======
  p-tags : フロントページのタグから探す
   ======== */
.p-tags {
	margin-top: clamp(3rem, 2.4rem + 2.4vw, 4.5rem);
}
.p-tags .c-tag-group + .c-tag-group {
	padding-top: 20px;
	border-top: 1px dashed var(--color-main);
}

/* =======
  p-new : 記事一覧グリッド（新着記事／カテゴリー／検索／アーカイブ共通）
   ======== */
.p-new__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem clamp(0.75rem, 0.6rem + 0.6vw, 1.5rem);
}
@media (min-width: 768px) {
	.p-new__grid {
		gap: 2.5rem 2rem;
	}
}

/* =======
  c-pagination : ページネーション
   ======== */
.c-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
	margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
	font-family: var(--font-en);
	font-size: 0.9375rem;
	font-weight: 500;
}
.c-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-white);
	border: 1px solid var(--color-main);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.c-pagination .page-numbers.dots {
	border-color: transparent;
	width: 1.5em;
}
.c-pagination .page-numbers.current,
.c-pagination a.page-numbers:hover {
	background: var(--color-main);
	color: var(--color-white);
}

/* =======
  c-breadcrumb : パンくずリスト
   ======== */
.c-breadcrumb {
	display: flex;
	gap: 0.4em;
	font-size: 0.75rem;
	color: var(--color-sub);
	margin-bottom: 2rem;
}
.c-breadcrumb a:hover {
	color: var(--color-accent);
}

/* =======
  c-tag-list : タグ一覧（フロント／カテゴリーページ／サイドバー／記事下 共通）
   ======== */

/* ジャンルのまとまり（フロントページ） */
.c-tag-groups {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.c-tag-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.c-tag-group__label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
}
@media (min-width: 768px) {
	.c-tag-group {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
	}
	.c-tag-group__label {
		flex: 0 0 7em;
		padding-top: 8px;
	}
}

/* タグの並び */
.c-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* カテゴリーページでの下余白 */
.c-tag-list--cat {
	margin-bottom: 40px;
}

/* タグ本体 */
.c-tag-list__link,
.c-post-terms__list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	border: 1px solid var(--color-main);
	border-radius: 999px;
	background: var(--color-white);
	color: var(--color-main);
	font-size: 0.875rem;
	text-decoration: none;
	transition:
		background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.c-tag-list__link::before {
	content: "#";
}

/* ホバー */
.c-tag-list__link:hover,
.c-tag-list__link:focus-visible,
.c-post-terms__list a:hover,
.c-post-terms__list a:focus-visible {
	background: var(--color-tag-hover);
	border-color: var(--color-tag-hover);
	color: var(--color-white);
}

/* 件数 */
.c-tag-list__count {
	font-size: 0.75rem;
	opacity: 0.7;
}



/* =========================================================
	Object : Utility  u-
	========================================================= */

.u-sp-hidden {
	display: none;
}
.u-pc-hidden {
	display: block;
}
@media (min-width: 1024px) {
	.u-sp-hidden {
		display: block;
	}
	.u-pc-hidden {
		display: none;
	}
}

h2[id], h3[id] { scroll-margin-top: 24px; }

.grid-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.grid-toc__list li + li {
  border-top: 1px solid #eee;
}
.grid-toc__list a {
  display: block;
  padding: 10px 8px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}
.grid-toc__list a:hover {
  background: var(--color-bg);
}
.grid-toc__want {
  display: block;
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
}
.grid-toc__want::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0.3em;
  font-size: 0.7em;
  color: var(--color-accent);
}
.grid-toc__list code {
  display: inline-block;
  margin-left: 1.1em;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #c7254e;
  background: #f5f5f5;
  border-radius: 4px;
  word-break: break-all;
}
.grid-toc__list a.is-active {
  background: #EEF3FF;
  color: var(--color-accent);
}
.grid-toc__list a.is-active .grid-toc__want::before {
  color: var(--color-accent);
}


/* =========================================================
記事した
	========================================================= */
.c-post-footer-nav {
  display: grid;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--color-main);
}
@media (min-width: 1024px) {
  .l-content-wrap__main--split {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
  }
}
.c-post-terms__heading,
.c-related__heading {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--color-accent);
  font-size: 18px;
  font-weight: bold;
}
.c-post-terms__list,
.c-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-post-terms__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* 記事下のタグ本体は c-tag-list と共通（Component参照） */
/* 他のカテゴリー：ヘッダーと同じ「カテゴリ色の丸ぽち＋囲み」 */
.c-post-terms__list a.c-post-terms__cat {
  gap: 0.55em;
}
.c-post-terms__list a.c-post-terms__cat::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat, var(--color-sub));
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.c-post-terms__list a.c-post-terms__cat:hover,
.c-post-terms__list a.c-post-terms__cat:focus-visible {
  background: var(--cat, var(--color-main));
  border-color: var(--cat, var(--color-main));
  color: var(--color-white);
}
.c-post-terms__list a.c-post-terms__cat:hover::before,
.c-post-terms__list a.c-post-terms__cat:focus-visible::before {
  background: var(--color-white);
}
.c-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 20px;
}
.c-related__list a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.c-related__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--color-main);
}
.c-related__title {
  margin: 8px 0 4px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
}
.c-related__list a:hover .c-related__title {
  color: var(--color-accent);
}
.c-related__date {
  font-size: 12px;
  color: #888;
}

/* =========================================================
SP用 目的から探すボタン
	========================================================= */
.c-toc-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.2em;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.c-toc-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.c-toc-fab svg {
  width: 18px;
  height: 18px;
}
.c-toc-sheet {
  position: fixed;
  inset: 0;
  z-index: 210;
}
.c-toc-sheet[hidden] {
  display: none;
}
.c-toc-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
}
.c-toc-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 75vh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: var(--color-white);
}
.c-toc-sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f7fa;
}
.c-toc-sheet__close svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 1023px) {
  .c-sidebar-sticky:has(.grid-toc) {
    display: none;
  }
}
@media (min-width: 1024px) {
  .c-toc-fab,
  .c-toc-sheet {
    display: none;
  }
}



/* =========================================================
画像拡大
	========================================================= */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.8);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	cursor: zoom-out;
}
.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	margin: 0;
}


/* =========================================================
デモデザイン
	========================================================= */
.wk-demo {
  margin: 2em 0;
}
.wk-demo br,
.wk-demo p:empty {
  display: none;
}
.wk-demo .wk-demo__label {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
  color: #fff;
  background: #6b7a99;
  border-radius: 4px 4px 0 0;
}
.wk-demo .wk-demo__stage {
  box-sizing: border-box;
  margin: 0;
  padding: 16px;
  background: #f3f5f9;
  border-radius: 0 4px 4px 4px;
  overflow-x: auto;
}
.wk-demo .wk-demo__caption {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #777;
  text-align: center;
}
.wk-demo .wk-demo__caption::before {
  content: "▲ ";
}

/* =========================================================
図解（デモの中身）
	========================================================= */
.wk-fig {
  --wk-fig-text: #1B2A44;
  --wk-fig-sub: #4A5A75;
  --wk-fig-line: #3F5B8A;
  --wk-fig-box: #EEF2F8;
  --wk-fig-box-line: #C7D3E4;
  --wk-fig-accent: #FFF8E6;
  --wk-fig-accent-line: #F2C14E;
  --wk-fig-key: #E6A817;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  color: var(--wk-fig-text);
}
.wk-fig--row {
  flex-direction: row;
  gap: 16px;
}
.wk-fig--row > * {
  flex: 1 0 240px;
}
.wk-fig p {
  display: contents;
}
.wk-fig__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 2px solid var(--wk-fig-line);
  border-radius: 8px;
  background: #FFFFFF;
  box-sizing: border-box;
}
.wk-fig__box {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--wk-fig-box-line);
  border-radius: 6px;
  background: var(--wk-fig-box);
  box-sizing: border-box;
}
.wk-fig__box--accent {
  border-color: var(--wk-fig-accent-line);
  background: var(--wk-fig-accent);
}
.wk-fig__box--dashed {
  padding: 12px;
  border: 2px dashed var(--wk-fig-line);
  border-radius: 8px;
  background: #FFFFFF;
}
.wk-fig__name {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
.wk-fig__item {
  display: block;
  margin: 0 0 6px;
  padding: 0 0 0 10px;
  border-left: 3px solid transparent;
  box-sizing: border-box;
}
.wk-fig__item--key {
  border-left-color: var(--wk-fig-key);
}
.wk-fig__code {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.wk-fig__desc {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wk-fig-sub);
}
.wk-fig__flow {
  display: block;
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
  color: var(--wk-fig-line);
}
/* =========================================================
404ページ
	========================================================= */
.p-404 {
	text-align: center;
	padding-block: 4rem;
}
.p-404__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
}
.p-404__en {
	font-family: var(--font-en);
	font-weight: 500;
	font-size: clamp(3.5rem, 2.8rem + 3vw, 5.5rem);
	letter-spacing: 0.06em;
	line-height: 1;
}
.p-404__ja {
	font-size: 1.125rem;
	font-weight: 700;
}
.p-404__text {
	margin-top: 1em;
	font-size: 0.875rem;
	color: var(--color-sub);
}
.p-404__btn {
	margin-top: 2em;
}
