/* ===== 変数（淡いラベンダーとピンク、差し色は深い赤。色はここだけ直せばよい） ===== */
:root {
	--k-page: #f1e9f6;      /* ページ背景（淡いラベンダー） */
	--k-paper: #fffdfe;     /* 記事の紙面 */
	--k-card: #ffffff;      /* 一覧カード */
	--k-on-page: #3b3447;   /* ページ背景の上の文字（濃い紫がかったグレー） */
	--k-sub: #6b5a86;       /* 補助の文字（日付・カテゴリ） */
	--k-accent: #b02a58;    /* アクセント（深い赤。年齢確認の ENTER と同じ） */
	--k-label: #7a5ea0;     /* カテゴリラベル（ラベンダー） */
	--k-bg: #f5eefa;        /* 紙面の中の薄い面（見出し・表の見出し・インラインコード） */
	--k-on-dark: #f6eef8;   /* 濃い面（フッター）の上の文字 */
	--k-white: #fff;
	--k-text: #3b3447;
	--k-link: #b02a58;
	--k-border: #ddd0ea;
	--k-border-soft: #ebe2f3;
	--k-frame: #cfc6dd;      /* 画像・ブログカードの1px の枠 */
	--k-radius: 10px;
	--k-wrap: 1094px;
	--wp--style--block-gap: 0px;
}

/* ===== ベース ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--k-page);
	color: var(--k-on-page);
	/* モトヤLマルベリ3等幅（kafues-font プラグインが配る）。使わない文字（©、–、絵文字など）と、
	   プラグインが無いときは、現行（追加 CSS の --cocoon-default-font）と同じ指定に戻る */
	font-family: "Motoya L Maruberi", SFUIText, "Helvetica Neue", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	overflow-wrap: break-word;
}
.content { word-break: break-all; }
a { color: var(--k-link); }
img, video { max-width: 100%; height: auto; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--k-wrap); margin: 0 auto; }

/* ===== ヘッダー（ロゴ左・ボタン型メニュー右） ===== */
.site-header { background: linear-gradient(180deg, #f9e4ec 0%, #ece1f5 65%, var(--k-page) 100%); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 12px 16px; }
.site-logo { display: flex; align-items: center; gap: 12px; color: var(--k-on-page); text-decoration: none; }
.site-logo-image { display: block; flex: none; margin: 0; width: 64px; height: 64px; border-radius: var(--k-radius); border: 2px solid #fff; background: #e6dbf1; box-shadow: 0 2px 8px rgba(122, 94, 160, 0.25); }
.site-logo-text { display: block; min-width: 0; }
.global-nav { flex: none; }
.site-name { display: block; font-size: 26px; line-height: 1.3; letter-spacing: 0.08em; }
.tagline { display: block; margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--k-sub); }

/* ボタン型メニュー: 日本語の名前の下に、小さな英語ラベル */
.global-menu { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.global-menu a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
	min-width: 112px; height: 100%; padding: 9px 12px 8px;
	background: #fff; border: 1px solid var(--k-border); border-radius: 6px; box-shadow: 0 1px 3px rgba(122, 94, 160, 0.14);
	color: var(--k-on-page); text-decoration: none;
	transition: background-color 0.15s, transform 0.15s, border-color 0.15s;
}
.global-menu a:hover { background: #fbf6fe; border-color: #c9b5df; transform: translateY(-1px); }
.nav-ja { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.nav-en {
	display: block; min-width: 80%; white-space: nowrap; padding: 0 10px; border-radius: 999px; background: var(--k-sub); color: #fff;
	font-size: 11px; line-height: 1.6; letter-spacing: 0.04em; text-align: center;
}
.global-menu .current-menu-item > a .nav-en { background: var(--k-accent); }

/* ===== 本文カラム ===== */
.content { margin-top: 10px; padding: 0 0 32px; }
/* 記事・固定ページは「紙面」 */
.main {
	position: relative;
	padding: 36px 80px;
	background: var(--k-paper);
	color: var(--k-text);
	border-radius: var(--k-radius);
}
/* 一覧はページ背景の上にカードを直接並べる */
.main.main-list { padding: 8px 12px 0; background: transparent; color: var(--k-on-page); }

/* ホームのバナー（「先頭に固定」した記事。最大3件） */
.pickup { margin: 0 0 28px; }
.pickup-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pickup-item:first-child, .pickup-item:last-child:nth-child(2) { grid-column: 1 / -1; }
.pickup-item a {
	position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 7;
	border-radius: var(--k-radius); background: #e6dbf1; box-shadow: 0 2px 10px rgba(122, 94, 160, 0.18);
}
.pickup-item:first-child a { aspect-ratio: 16 / 6; }
.pickup-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pickup-item a:hover img { transform: scale(1.02); }
.pickup-title {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px;
	background: rgba(59, 52, 71, 0.78); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5;
}
.pickup-item:first-child .pickup-title { font-size: 20px; padding: 12px 20px; }

/* セクション見出し: 日本語＋小さな英語ラベル */
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 20px; line-height: 1.4; color: var(--k-on-page); }
.section-en { padding: 0 10px; border-radius: 999px; background: var(--k-sub); color: #fff; font-size: 11px; line-height: 1.7; letter-spacing: 0.06em; }

/* ===== 一覧（縦カード） ===== */
.archive-title { margin: 0 0 24px; font-size: 24px; line-height: 1.4; color: var(--k-on-page); letter-spacing: 0.04em; }
.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
.entry-card-wrap {
	display: block; color: var(--k-text); text-decoration: none;
	border-radius: var(--k-radius); overflow: hidden; background: var(--k-card);
	box-shadow: 0 2px 10px rgba(122, 94, 160, 0.14);
	transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.entry-card-wrap:hover { background: #fcf7ff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(122, 94, 160, 0.22); }
.entry-card { display: flex; flex-direction: column; height: 100%; }
/* 枠(16:9)の中に収め、縦長・横長の画像も中央を切り抜いて表示する */
.entry-card-thumb { position: relative; flex: none; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; background: #e6dbf1; }
.entry-card-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cat-label {
	position: absolute; top: 0; left: 0; padding: 0 10px;
	background: var(--k-label); color: #fff; font-size: 12px; line-height: 1.9;
	border-bottom-right-radius: var(--k-radius);
}
.entry-card-content { display: flex; flex: 1; flex-direction: column; padding: 10px 12px; }
/* 全カードで高さを揃える: タイトルは3行で固定（溢れる分は省略記号） */
.entry-card-title {
	margin: 0 0 10px; font-size: 16px; line-height: 1.5;
	min-height: 4.5em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.entry-card-meta { margin-top: auto; font-size: 12px; color: var(--k-sub); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.entry-category + .entry-category::before { content: " / "; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers {
	min-width: 36px; padding: 4px 10px; text-align: center; text-decoration: none; line-height: 1.8;
	border: 1px solid #c9b5df; border-radius: var(--k-radius); color: var(--k-on-page); background: #fff;
}
.page-numbers.current { background: var(--k-accent); border-color: var(--k-accent); color: #fff; }
a.page-numbers:hover { background: #f5eefa; }

/* ===== 記事 ===== */
.article { margin-bottom: 2em; }
/* 寸法は現行（Cocoon）の実測値に合わせる。色は今の配色。 */
.entry-title { margin: 16px 0; font-size: 26px; font-weight: 700; line-height: 1.25; }
.date-tags { margin-bottom: 16px; text-align: right; font-size: 11.2px; line-height: 1.2; color: var(--k-sub); }
.entry-terms { margin-bottom: 18px; }
.entry-categories, .entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cat-link, .tag-link {
	padding: 2px 8px; font-size: 12px; line-height: 1.8; text-decoration: none; color: var(--k-text);
	border: 1px solid var(--k-border); border-radius: 999px;
}
.cat-link::before { content: "📁 "; filter: grayscale(1); }
.tag-link::before { content: "# "; }
.cat-link:hover, .tag-link:hover { background: var(--k-bg); }

/* 本文の基本。Cocoon 由来の装飾クラスは別の段階で移植する */
.entry-content { margin-top: 16px; margin-bottom: 48px; }
.entry-content > * { margin-top: 0; margin-bottom: 0.7em; }
.entry-content p { margin: 0 0 0.7em; } /* カバーなどの入れ子の中の段落も同じ余白にする */
/* 見出し: 太字、行間 1.25、上の余白 0、下の余白は文字サイズの 0.63 倍（現行の実測値） */
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { margin: 0 0 0.63em; font-weight: 700; line-height: 1.25; }
.entry-content h2 { padding: 25px; background: var(--k-bg); border-radius: 6px; font-size: 24px; }
.entry-content h3 {
	padding: 12px 20px; font-size: 22px;
	border: 1px solid var(--k-border); border-left: 7px solid var(--k-label);
}
.entry-content h4, .entry-content h5, .entry-content h6 { padding: 9px 10px; font-size: 20px; }
.entry-content h4 { border-top: 2px solid var(--k-border); border-bottom: 2px solid var(--k-border); }
.entry-content h5 { border-bottom: 2px solid var(--k-border); }
.entry-content h6 { border-bottom: 1px solid var(--k-border); }
.entry-content ul, .entry-content ol { padding-left: 40px; }
.entry-content li { margin: 0.2em; }
/* 記事内の画像は1px の枠（現行の Cocoon 設定「画像の枠線」）。ブログカードのサムネ・画像比較は別に扱う */
.entry-content img:not(.emoji):not(.wp-smiley):not(.blogcard-thumb-image):not(.kic-img) { border: 1px solid var(--k-frame); }
.entry-content li > ul, .entry-content li > ol { margin: 0; }
.wp-block-group { margin-bottom: 0 !important; }
/* コードブロック（現行の実測値）: 13px、内側の余白 0.5em、背景 #1e1e1e、行間は本文と同じ。色分けは kafues-highlight（vs2015） */
.entry-content pre, .entry-content pre.wp-block-code {
	margin: 0 0 0.7em; padding: 0.5em; overflow: auto;
	border: 1px solid transparent; border-radius: 6px;
	background: #1e1e1e; color: #dcdcdc;
	font-family: "Motoya L Maruberi", monospace; font-size: 13px; white-space: pre;
}
.entry-content pre code { display: block; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: inherit; overflow: visible; }
/* 文中のコード: 書体と大きさだけ（枠や背景は、中の keyboard-key が持つ） */
code { font-family: "Motoya L Maruberi", monospace; font-size: 1em; }

/* 追加 CSS から移植（現行の見た目を維持） */
.wp-block-image figcaption, .wp-element-caption, .wp-block-gallery.has-nested-images figcaption { font-size: 95%; text-align: center; }
.wp-block-video figcaption { font-size: 95%; margin: 0; text-align: center; }
/* 引用: 全幅、1px の枠、左上と右下に大きな引用符、出典は小さな斜体（現行の実測値。引用符の色は今の配色） */
.entry-content blockquote {
	position: relative; margin: 0 0 0.7em; padding: 1.4em 1.8em;
	border: 1px solid var(--k-frame); border-radius: var(--k-radius); background: transparent;
}
.entry-content blockquote::before, .entry-content blockquote::after {
	position: absolute; display: block; font-family: serif; font-size: 48px; font-weight: 400; color: #9b86bd;
}
.entry-content blockquote::before { content: "\201C"; top: 0; left: 10px; line-height: 1.1; }
.entry-content blockquote::after { content: "\201D"; right: 10px; bottom: 0; height: 0; line-height: 0; }
.entry-content blockquote p { margin: 0 0 0.7em; }
.entry-content blockquote cite { display: block; font-size: 0.7em; font-style: italic; }
.wp-block-video video { border: 1px solid var(--k-border); width: auto; }
table { border: 1px solid #f0f1f1; border-collapse: collapse; }
table th, table td { border: 1px solid #f0f1f1; padding: 6px 10px; }
.wp-block-table thead { border-bottom: 0; background: var(--k-bg); }
.scrollable-table, .wp-block-table { overflow-x: auto; }
.scrollable-table th, .scrollable-table td { white-space: normal; }
.wp-block-icb-image-compare * { max-width: 100%; }

.selectoblige a {
	display: flex; position: relative; padding: 1em 0; justify-content: center; align-items: center;
	max-width: 100%; width: 535px; height: 10px; text-decoration: none; color: #c0c0c0; font-size: 18px; font-weight: bold;
	background-color: #fafafa; box-shadow: 0 0 0 1px #e1e3e5, 0 0 0 4px #fafafa, 0 0 0 5px #e1e3e5;
}
.selectoblige + .selectoblige { margin-top: 20px; }
.selectoblige a::before {
	content: ""; position: absolute; bottom: -1px; right: -1px; width: 0; height: 0;
	border-style: solid; border-width: 0 0 9px 9px; border-color: transparent transparent #545874 transparent;
}
.selectoblige a::after {
	content: ""; position: absolute; top: -1px; left: -1px; width: 0; height: 0;
	border-style: solid; border-width: 0 0 9px 9px; border-color: transparent transparent transparent #545874;
}
.selectoblige a:hover { text-decoration: none; color: #414561; background-color: #dee5f4; box-shadow: 0 0 0 1px #c1c9dd, 0 0 0 4px #dee5f4, 0 0 0 5px #c1c9dd; }
.limelight_lj a {
	display: flex; position: relative; padding: 1em 0; justify-content: center; align-items: center;
	max-width: 100%; width: 535px; height: 10px; text-decoration: none; color: #fefefe; font-size: 18px;
	background-color: #002244; box-shadow: 0 0 0 2px #7f90a1, 0 0 0 4px #002244, 0 0 0 6px #fff; border-radius: 50px;
}
.limelight_lj + .limelight_lj { margin-top: 20px; }
.limelight_lj a:hover { box-shadow: 0 0 0 2px #e39e33, 0 0 0 4px #002244, 0 0 0 6px #fff; }
.limelight_lj a:active { background-color: #ff9901; box-shadow: 0 0 0 2px #fffbdc, 0 0 0 4px #d79430, 0 0 0 6px #fffefc; }

/* ===== 記事下: プロフィール・横スクロール ===== */
.article-footer { margin-top: 0; }
.author-box { margin-bottom: 32px; padding: 16px 20px; border: 1px solid var(--k-border-soft); border-radius: var(--k-radius); }
.strip-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 2px solid var(--k-border-soft); font-size: 18px; line-height: 1.4; }
.author-name { font-weight: bold; }
.author-description { font-size: 14px; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.author-links a {
	display: block; padding: 0 12px; font-size: 13px; line-height: 2; text-decoration: none; color: #444;
	border: 1px solid var(--k-border); border-radius: 999px;
}
.author-links a:hover { background: var(--k-bg); }
.strip { margin-bottom: 32px; }
/* 影が切れないよう、リストに余白を持たせて、外側の余白で打ち消す */
.strip-list { display: flex; align-items: stretch; gap: 14px; margin: -4px -4px 0; padding: 4px 4px 12px; overflow-x: auto; scroll-snap-type: x proximity; }
.strip-card {
	display: flex; flex: 0 0 220px; flex-direction: column; overflow: hidden; scroll-snap-align: start;
	border: 1px solid var(--k-border-soft); border-radius: var(--k-radius); background: var(--k-white);
	box-shadow: 0 2px 8px rgba(122, 94, 160, 0.12); color: var(--k-text); text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}
.strip-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(122, 94, 160, 0.22); }
.strip-card-thumb { position: relative; flex: none; margin: 0; aspect-ratio: 16 / 9; background: var(--k-bg); overflow: hidden; }
.strip-card-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.3s; }
.strip-card:hover .strip-card-thumb img { transform: scale(1.04); }
.strip-card-title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
	margin: 10px 12px 12px; font-size: 13px; font-weight: bold; line-height: 1.55; /* 縦の余白は margin で（padding だと、4 行目の頭が余白に見えてしまう） */
}

/* ===== フッター ===== */
.site-footer { margin-top: 10px; background: #4a4160; color: var(--k-on-dark); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 12px; }
.footer-logo { display: block; color: var(--k-on-dark); text-decoration: none; text-align: center; }
.footer-logo .site-logo-image { margin: 0 auto 2px; }
.footer-logo .site-name { font-size: 18px; }
.footer-right { text-align: right; }
.menu-footer { display: flex; justify-content: flex-end; gap: 16px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; }
.menu-footer a { color: #e0d0f5; }
.copyright { font-size: 12px; color: #cbbde0; }

/* ===== 404 ===== */
.main-404 { text-align: center; }

/* ===== レスポンシブ ===== */
@media (max-width: 1023px) {
	.main { padding: 36px 29px; }
	.main.main-list { padding: 8px 12px 0; }
}
@media (max-width: 899px) {
	/* ロゴの下にメニューを回す */
	.header-in { flex-direction: column; gap: 14px; }
	.global-menu { flex-wrap: wrap; justify-content: center; }
	/* 3つずつ並べ、余った段は中央にそろえる（5つなら 3＋2） */
	.global-menu li { flex: 0 1 calc(33.333% - 6px); min-width: 0; }
	.global-menu a { min-width: 0; padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 767px) {
	.main { padding: 24px 16px; }
	.main.main-list { padding: 8px 10px 0; }
	.list { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
	.entry-card-title { font-size: 14px; }
	.tagline { display: none; }
	.site-name { font-size: 22px; }
	.pickup-list { grid-template-columns: 1fr; }
	.pickup-item a, .pickup-item:first-child a { aspect-ratio: 16 / 9; }
	.pickup-title, .pickup-item:first-child .pickup-title { font-size: 14px; padding: 8px 12px; }
	.footer-in { flex-direction: column; text-align: center; }
	.footer-right { text-align: center; }
	.menu-footer { justify-content: center; }
}
@media (max-width: 480px) {
	/* 現行（Cocoon）の 480px 以下の値 */
	.entry-title { margin: 0 0 6px; font-size: 20px; }
	.entry-content h2 { padding: 0.6em 0.8em; font-size: 20px; }
	.entry-content h3 { padding: 0.6em; font-size: 18px; }
	.entry-content h4, .entry-content h5, .entry-content h6 { padding: 0.6em; font-size: 16px; }
}

/* ===== 制作（作品）===== */
/* ロゴ: ブランド名（大きく）と本体の名前（小さく） */
.site-name-main { font-size: 1em; }
.site-name-sub { margin-left: 0.5em; font-size: 0.5em; letter-spacing: 0.12em; color: var(--k-sub); }
.footer-logo .site-name-sub { color: var(--k-on-dark); opacity: 0.8; }

.section-more { margin-left: auto; font-size: 13px; color: var(--k-on-page); }

/* トップ・一覧の作品カードの並び */
.works-top { margin: 0 0 36px; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }

/* 作品ページ（紙面） */
.work-head { display: grid; grid-template-columns: 5fr 6fr; gap: 28px; align-items: center; margin-bottom: 32px; }
.work-thumb { overflow: hidden; border-radius: var(--k-radius); background: #e6dbf1; aspect-ratio: 4 / 3; box-shadow: 0 2px 10px rgba(122, 94, 160, 0.18); }
.work-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-title { margin: 8px 0; font-size: 28px; }
.work-summary .kw-tagline { font-size: 16px; }
.work-summary .kw-cta { padding: 12px 28px; font-size: 16px; }
.work-h { margin: 0 0 12px; padding: 0 0 6px; border-bottom: 1px solid var(--k-border-soft); font-size: 18px; line-height: 1.5; }
.work-spec { margin: 0 0 32px; }
.work-spec.is-single dl { grid-template-columns: minmax(0, 1fr); }
.work-spec dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.work-spec dl > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--k-border-soft); }
.work-spec dt { flex: none; width: 7em; color: var(--k-sub); font-size: 14px; }
.work-spec dd { margin: 0; font-size: 14px; }
.work-support { margin: 24px 0 32px; }

/* 記事の上の「制作ログ」案内 */
.work-notice {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px; padding: 10px 14px;
	border: 1px solid var(--k-border); border-radius: var(--k-radius); background: var(--k-bg); font-size: 14px;
}
.work-notice-label { padding: 0 10px; border-radius: 999px; background: var(--k-label); color: #fff; font-size: 12px; line-height: 1.8; }
.kw-cta-small { padding: 4px 14px !important; font-size: 13px !important; margin-left: auto; }

@media (max-width: 767px) {
	.works-grid { grid-template-columns: 1fr; }
	.work-head { grid-template-columns: 1fr; gap: 16px; }
	.work-title { font-size: 22px; }
	.work-spec dl { grid-template-columns: 1fr; }
}

/* ===== 横スクロールバー: 細く・角丸・サイトの色（標準の矢印つきの太いバーをやめる）===== */
/* コードブロック: 暗い背景にとけ込む（トラックは背景と同じ色） */
.entry-content pre { scrollbar-width: thin; scrollbar-color: #7d6e9b #1e1e1e; }
.entry-content pre::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
.entry-content pre::-webkit-scrollbar-thumb { border: 2px solid #1e1e1e; border-radius: 999px; background: #7d6e9b; }
.entry-content pre::-webkit-scrollbar-thumb:hover { background: #9a8bb8; }
.entry-content pre::-webkit-scrollbar-track, .entry-content pre::-webkit-scrollbar-corner { background: transparent; }
.entry-content pre::-webkit-scrollbar-button { display: none; }
/* 明るい背景の横スクロール（記事下の横並びカード、表） */
.strip-list, .scrollable-table, .wp-block-table { scrollbar-width: thin; scrollbar-color: #c9b5df transparent; }
.strip-list::-webkit-scrollbar, .scrollable-table::-webkit-scrollbar, .wp-block-table::-webkit-scrollbar { height: 10px; background: transparent; }
.strip-list::-webkit-scrollbar-thumb, .scrollable-table::-webkit-scrollbar-thumb, .wp-block-table::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #c9b5df; background-clip: padding-box; }
.strip-list::-webkit-scrollbar-button, .scrollable-table::-webkit-scrollbar-button, .wp-block-table::-webkit-scrollbar-button { display: none; }

/* ===== 画像のキャプション: 画像の幅に対して中央にそろえる =====
   図(figure)を画像の幅に縮める。画像の位置は動かさない（左寄せの画像は左寄せのまま）。
   キャプションの箱は画像と同じ幅で、中の文字を中央にそろえる（長い文字は箱の中で折り返す。図の幅は広げない）。
   画像がとても小さい（10em＝160px 未満）ときだけ、図に最小の幅を持たせ、左端から右へ広げる（左に突き抜けない）。 */
.entry-content figure.wp-block-image:not(.wp-block-gallery .wp-block-image) { width: fit-content; max-width: 100%; }
/* 記事の中で「中央寄せ」が指定された画像も、左寄せにそろえる（画像の位置が記事ごと・画像ごとにばらつかないように） */
.entry-content figure.wp-block-image.aligncenter:not(.wp-block-gallery .wp-block-image) { margin-left: 0; margin-right: 0; }
.entry-content figure.wp-block-image:not(.wp-block-gallery .wp-block-image):has(> figcaption) { min-width: min(10em, 100%); }
.entry-content figure.wp-block-image:not(.wp-block-gallery .wp-block-image) > img { display: block; }
.entry-content figure.wp-block-image:not(.wp-block-gallery .wp-block-image) > figcaption { width: 0; min-width: 100%; text-align: center; }
/* キャプションの見た目: 画像とのすき間を空け、本文より少し小さく・控えめな色にして、画像の「添え書き」と分かるようにする */
.entry-content figure.wp-block-image:not(.wp-block-gallery .wp-block-image) > figcaption {
	margin: 8px 0 0; padding: 0 4px; font-size: 13px; line-height: 1.6; letter-spacing: 0.02em; color: var(--k-sub);
}
.entry-content figure.wp-block-image:has(> figcaption):not(.wp-block-gallery .wp-block-image) { margin-bottom: 1.6em; }

/* ===== ブログ一覧の絞り込み ===== */
.filter { margin: 0 0 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.filter-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; }
.filter-label { flex: none; min-width: 4.2em; padding-top: 4px; font-size: 12px; color: var(--k-sub); }
.filter-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1px solid var(--k-border); border-radius: 999px;
	background: var(--k-white); color: var(--k-on-page); font-size: 13px; line-height: 1.6; text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}
.filter-chip:hover { background: #fcf7ff; border-color: var(--k-label); }
.filter-chip.is-active { background: var(--k-label); border-color: var(--k-label); color: #fff; }
.filter-chip.is-excluded { border-color: var(--k-accent); color: var(--k-accent); text-decoration: line-through; background: var(--k-white); }
.filter-chip.is-excluded .filter-n { text-decoration: none; }
.filter-n { font-size: 11px; opacity: 0.7; }
.filter-hint { margin: 8px 0 0; font-size: 12px; color: var(--k-sub); }
.filter-empty { grid-column: 1 / -1; padding: 24px 0; color: var(--k-sub); text-align: center; }
.filter-more { display: block; margin: 18px auto 0; padding: 6px 22px; border: 1px solid var(--k-border); border-radius: 999px; background: var(--k-white); color: var(--k-on-page); font: inherit; font-size: 13px; cursor: pointer; }
.filter-more:hover { background: #fcf7ff; border-color: var(--k-label); }
.filter-more[hidden], .kf-list[hidden] { display: none; }
@media (max-width: 600px) { .filter-group { flex-direction: column; gap: 4px; } .filter-label { padding-top: 0; } }
.main-list [hidden] { display: none !important; }

/* 作品ページの本文（あらすじ・特徴など）: ブログの見出し（淡い色の箱）ではなく、「作品情報」と同じ控えめな見出しにする */
.work-body.entry-content { margin: 0 0 32px; }
.work-body.entry-content h2 { margin: 36px 0 12px; padding: 0 0 6px; border-bottom: 1px solid var(--k-border-soft); border-radius: 0; background: none; font-size: 18px; line-height: 1.5; }
.work-body.entry-content > h2:first-child { margin-top: 0; }
.work-body.entry-content h3 { margin: 22px 0 8px; padding: 0 0 0 10px; border: 0; border-left: 4px solid var(--k-label); font-size: 15px; line-height: 1.5; }
.work-body.entry-content ul { margin: 0 0 1.2em; }
.work-body.entry-content li { margin: 0 0 0.5em; }

/* 作品ページ: サンプル動画・サンプル画像、動作環境（作品情報と同じ表）、あらすじの読みやすさ */
.work-block { margin: 0 0 32px; }
.work-video { position: relative; overflow: hidden; border-radius: var(--k-radius); background: #1e1e1e; aspect-ratio: 16 / 9; box-shadow: 0 2px 10px rgba(122, 94, 160, 0.18); }
.work-video iframe, .work-video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.work-sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.work-sample-grid li { margin: 0; }
.work-sample-grid a { display: block; overflow: hidden; border-radius: var(--k-radius); background: #e6dbf1; box-shadow: 0 2px 10px rgba(122, 94, 160, 0.18); }
.work-sample-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: transform 0.3s; }
.work-sample-grid a:hover img { transform: scale(1.04); }
.work-body.entry-content p { margin: 0 0 1.6em; font-size: 15px; line-height: 2; letter-spacing: 0.02em; }
.work-body.entry-content p:has(> strong:only-child) { margin-bottom: 1.4em; font-size: 17px; line-height: 1.8; letter-spacing: 0.04em; }
@media (max-width: 700px) { .work-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
