/*
Theme Name: Kakitasu
Theme URI: https://example.com/kakitasu
Author: dai
Description: note.com のような余白と可読性を重視した、シンプルで軽量なブログテーマ。モバイルファースト設計、OS 連動のダークモード、広告ウィジェットと専用設定画面を備えています。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kakitasu
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* =============================================================
   1. デザイントークン（カスタムプロパティ）
   ------------------------------------------------------------
   ライト値を :root に定義し、ダークは [data-theme="dark"] と
   prefers-color-scheme で上書きします。
   ============================================================= */

:root {
	/* アクセントカラーは設定画面から --kt-accent が上書きされます */
	--kt-accent: #2ca58d;
	--kt-accent-dark: #23856f;
	--kt-accent-contrast: #ffffff;
	--kt-accent-soft: rgba(44, 165, 141, 0.10);

	--kt-bg: #ffffff;
	--kt-bg-sub: #f6f7f8;
	--kt-surface: #ffffff;
	--kt-surface-2: #fafafa;
	--kt-text: #191b1f;
	--kt-text-sub: #6b7280;
	--kt-text-weak: #9aa1ab;
	--kt-border: #e7e9ec;
	--kt-border-strong: #d4d8de;
	--kt-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
	--kt-overlay: rgba(0, 0, 0, .45);

	--kt-radius-s: 6px;
	--kt-radius: 10px;
	--kt-radius-l: 16px;
	--kt-radius-full: 999px;

	--kt-content-width: 680px;
	--kt-wide-width: 1120px;
	--kt-sidebar-width: 300px;
	--kt-gutter: 20px;
	--kt-header-h: 56px;

	--kt-font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
		"Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, Meiryo, sans-serif;
	--kt-font-serif: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", "Noto Serif JP", serif;
	--kt-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace;

	--kt-fs-body: 16px;
	--kt-lh-body: 1.9;
	--kt-ease: cubic-bezier(.2, .8, .3, 1);
}

/* OS 設定に追従（設定画面のダークモード＝auto のとき html に data-theme-mode="auto"） */
@media (prefers-color-scheme: dark) {
	html[data-theme-mode="auto"]:not([data-theme="light"]) {
		color-scheme: dark;
		--kt-bg: #15171c;
		--kt-bg-sub: #1b1e24;
		--kt-surface: #1b1e24;
		--kt-surface-2: #21252c;
		--kt-text: #e9ecf1;
		--kt-text-sub: #a4acb9;
		--kt-text-weak: #7c8695;
		--kt-border: #2b3038;
		--kt-border-strong: #3a4048;
		--kt-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
		--kt-overlay: rgba(0, 0, 0, .6);
		--kt-accent-soft: rgba(255, 255, 255, .07);
	}
}

/* 手動トグル（localStorage / 設定画面の固定指定） */
html[data-theme="dark"] {
	color-scheme: dark;
	--kt-bg: #15171c;
	--kt-bg-sub: #1b1e24;
	--kt-surface: #1b1e24;
	--kt-surface-2: #21252c;
	--kt-text: #e9ecf1;
	--kt-text-sub: #a4acb9;
	--kt-text-weak: #7c8695;
	--kt-border: #2b3038;
	--kt-border-strong: #3a4048;
	--kt-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
	--kt-overlay: rgba(0, 0, 0, .6);
	--kt-accent-soft: rgba(255, 255, 255, .07);
}

html[data-theme="light"] {
	color-scheme: light;
}

/* =============================================================
   2. リセット & ベース
   ============================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--kt-header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

body {
	margin: 0;
	background: var(--kt-bg);
	color: var(--kt-text);
	font-family: var(--kt-font);
	font-size: var(--kt-fs-body);
	line-height: var(--kt-lh-body);
	font-feature-settings: "palt" 1;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
	word-break: normal;
	line-break: strict;
}

body.kt-serif {
	--kt-font: var(--kt-font-serif);
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

figure {
	margin: 0;
}

a {
	color: var(--kt-accent);
	text-decoration: none;
	transition: opacity .18s var(--kt-ease);
}

a:hover {
	opacity: .75;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--kt-accent);
	outline-offset: 2px;
	border-radius: 3px;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

hr {
	border: 0;
	border-top: 1px solid var(--kt-border);
	margin: 40px 0;
}

::selection {
	background: var(--kt-accent);
	color: var(--kt-accent-contrast);
}

.kt-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--kt-accent);
	color: var(--kt-accent-contrast);
	border-radius: 0 0 var(--kt-radius) 0;
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* =============================================================
   3. レイアウト
   ============================================================= */

.kt-container {
	width: 100%;
	max-width: calc(var(--kt-wide-width) + var(--kt-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--kt-gutter);
}

.kt-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.kt-main {
	flex: 1 0 auto;
	padding-block: 20px 48px;
}

.kt-layout {
	display: block;
}

.kt-content {
	min-width: 0;
	max-width: var(--kt-content-width);
	margin-inline: auto;
}

.kt-sidebar {
	min-width: 0;
	margin-top: 48px;
}

/* PC：2カラム */
@media (min-width: 1000px) {
	:root {
		--kt-header-h: 64px;
	}

	.kt-layout.has-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--kt-sidebar-width);
		gap: 56px;
		align-items: start;
	}

	.kt-layout.has-sidebar .kt-content {
		margin-inline: 0;
		max-width: none;
	}

	.kt-layout.has-sidebar.sidebar-left {
		grid-template-columns: var(--kt-sidebar-width) minmax(0, 1fr);
	}

	.kt-layout.has-sidebar.sidebar-left .kt-content {
		order: 2;
	}

	.kt-layout.has-sidebar.sidebar-left .kt-sidebar {
		order: 1;
	}

	.kt-sidebar {
		margin-top: 0;
		position: sticky;
		top: calc(var(--kt-header-h) + 20px);
		max-height: calc(100vh - var(--kt-header-h) - 40px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.kt-sidebar::-webkit-scrollbar {
		width: 6px;
	}

	.kt-sidebar::-webkit-scrollbar-thumb {
		background: var(--kt-border-strong);
		border-radius: 3px;
	}
}

/* =============================================================
   4. ヘッダー
   ============================================================= */

.kt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--kt-bg) 88%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--kt-border);
}

@supports not (backdrop-filter: blur(1px)) {
	.kt-header {
		background: var(--kt-bg);
	}
}

.kt-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--kt-header-h);
}

.kt-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .01em;
}

.kt-brand a {
	color: var(--kt-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kt-brand img {
	max-height: 32px;
	width: auto;
}

.kt-brand__desc {
	display: none;
	margin: 0 0 0 10px;
	font-size: 12px;
	font-weight: 400;
	color: var(--kt-text-weak);
}

.kt-header__spacer {
	flex: 1;
}

.kt-header__actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

.kt-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--kt-radius-full);
	background: transparent;
	color: var(--kt-text-sub);
	transition: background .18s var(--kt-ease), color .18s var(--kt-ease);
}

.kt-iconbtn:hover {
	background: var(--kt-bg-sub);
	color: var(--kt-text);
	opacity: 1;
}

.kt-iconbtn svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* テーマ切替アイコン：状態で出し分け */
.kt-icon-moon {
	display: none;
}

html[data-theme="dark"] .kt-icon-sun {
	display: none;
}

html[data-theme="dark"] .kt-icon-moon {
	display: block;
}

@media (prefers-color-scheme: dark) {
	html[data-theme-mode="auto"]:not([data-theme="light"]) .kt-icon-sun {
		display: none;
	}

	html[data-theme-mode="auto"]:not([data-theme="light"]) .kt-icon-moon {
		display: block;
	}
}

/* グローバルナビ（PC） */
.kt-gnav {
	display: none;
}

@media (min-width: 1000px) {
	.kt-brand__desc {
		display: inline;
	}

	.kt-gnav {
		display: block;
		margin-left: 20px;
	}

	.kt-gnav ul {
		display: flex;
		align-items: center;
		gap: 4px;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.kt-gnav a {
		display: block;
		padding: 8px 12px;
		border-radius: var(--kt-radius-full);
		font-size: 14px;
		font-weight: 500;
		color: var(--kt-text-sub);
	}

	.kt-gnav a:hover {
		background: var(--kt-bg-sub);
		color: var(--kt-text);
		opacity: 1;
	}

	.kt-gnav .current-menu-item > a {
		color: var(--kt-text);
		font-weight: 700;
	}

	.kt-gnav li.menu-item-has-children {
		position: relative;
	}

	.kt-gnav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		display: block;
		min-width: 200px;
		padding: 6px;
		background: var(--kt-surface);
		border: 1px solid var(--kt-border);
		border-radius: var(--kt-radius);
		box-shadow: var(--kt-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: all .18s var(--kt-ease);
	}

	.kt-gnav li:hover > .sub-menu,
	.kt-gnav li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	body.kt-has-gnav #kt-drawer-toggle {
		display: none;
	}
}

/* ドロワー（スマホ） */
.kt-drawer {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	opacity: 0;
	transition: opacity .22s var(--kt-ease), visibility .22s var(--kt-ease);
}

.kt-drawer.is-open {
	visibility: visible;
	opacity: 1;
}

.kt-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: var(--kt-overlay);
}

.kt-drawer__panel {
	position: absolute;
	inset-block: 0;
	right: 0;
	width: min(86vw, 340px);
	padding: 14px 18px calc(24px + env(safe-area-inset-bottom));
	background: var(--kt-bg);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .26s var(--kt-ease);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kt-drawer.is-open .kt-drawer__panel {
	transform: none;
}

.kt-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	margin-bottom: 4px;
}

.kt-drawer__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--kt-text-weak);
	letter-spacing: .06em;
}

.kt-drawer nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kt-drawer nav a {
	display: block;
	padding: 13px 10px;
	border-radius: var(--kt-radius);
	color: var(--kt-text);
	font-size: 15px;
	font-weight: 500;
}

.kt-drawer nav a:hover {
	background: var(--kt-bg-sub);
	opacity: 1;
}

.kt-drawer .sub-menu a {
	padding-left: 26px;
	font-size: 14px;
	color: var(--kt-text-sub);
}

/* 検索オーバーレイ */
.kt-searchbar {
	display: none;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--kt-border);
	background: var(--kt-bg);
}

.kt-searchbar.is-open {
	display: block;
}

/* =============================================================
   5. 検索フォーム / フォーム要素
   ============================================================= */

.kt-searchform {
	display: flex;
	gap: 8px;
}

.kt-searchform input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
	width: 100%;
	padding: 11px 14px;
	background: var(--kt-surface-2);
	color: var(--kt-text);
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius);
	font: inherit;
	font-size: 15px;
	line-height: 1.6;
	transition: border-color .18s var(--kt-ease), background .18s var(--kt-ease);
}

input:focus,
textarea:focus,
select:focus {
	background: var(--kt-surface);
	border-color: var(--kt-accent);
	outline: none;
}

.kt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 20px;
	border: 0;
	border-radius: var(--kt-radius-full);
	background: var(--kt-accent);
	color: var(--kt-accent-contrast);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: transform .12s var(--kt-ease), opacity .18s var(--kt-ease);
}

.kt-btn:hover {
	opacity: .88;
}

.kt-btn:active {
	transform: scale(.98);
}

.kt-btn--ghost {
	background: transparent;
	color: var(--kt-text);
	border: 1px solid var(--kt-border-strong);
}

/* =============================================================
   6. 記事カード / アーカイブ
   ============================================================= */

.kt-page-head {
	margin: 8px 0 28px;
}

.kt-page-head__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .01em;
}

.kt-page-head__desc {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--kt-text-sub);
	line-height: 1.8;
}

.kt-cards {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kt-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px;
	gap: 14px;
	padding: 18px 0;
	border-bottom: 1px solid var(--kt-border);
}

.kt-card:first-child {
	padding-top: 4px;
}

.kt-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kt-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.55;
	letter-spacing: .01em;
}

.kt-card__title a {
	color: var(--kt-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kt-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.kt-card__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.75;
	color: var(--kt-text-sub);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kt-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--kt-text-weak);
}

.kt-card__thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--kt-radius);
	overflow: hidden;
	background: var(--kt-bg-sub);
}

.kt-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s var(--kt-ease);
}

.kt-card:hover .kt-card__thumb img {
	transform: scale(1.04);
}

.kt-card__thumb--none {
	display: grid;
	place-items: center;
	color: var(--kt-text-weak);
	font-size: 11px;
}

@media (min-width: 600px) {
	.kt-card {
		grid-template-columns: minmax(0, 1fr) 168px;
		gap: 20px;
		padding: 22px 0;
	}

	.kt-card__title {
		font-size: 18px;
	}

	.kt-card__thumb {
		aspect-ratio: 16 / 10;
	}
}

/* グリッド表示 */
.kt-cards.is-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 4px 20px;
}

.kt-cards.is-grid .kt-card {
	display: flex;
	flex-direction: column-reverse;
	gap: 12px;
	padding: 16px 0 22px;
}

.kt-cards.is-grid .kt-card__thumb {
	aspect-ratio: 16 / 10;
}

/* タグ・カテゴリ */
.kt-taxbadge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: var(--kt-radius-full);
	background: var(--kt-bg-sub);
	color: var(--kt-text-sub);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.6;
}

a.kt-taxbadge:hover {
	background: var(--kt-accent-soft);
	color: var(--kt-accent);
	opacity: 1;
}

.kt-taxlist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ページネーション */
.kt-pagination {
	margin-top: 36px;
}

.kt-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.kt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--kt-radius-full);
	color: var(--kt-text-sub);
	font-size: 14px;
	font-weight: 600;
}

.kt-pagination a.page-numbers:hover {
	background: var(--kt-bg-sub);
	opacity: 1;
}

.kt-pagination .page-numbers.current {
	background: var(--kt-accent);
	color: var(--kt-accent-contrast);
}

/* =============================================================
   7. 単一記事
   ============================================================= */

.kt-article {
	max-width: var(--kt-content-width);
	margin-inline: auto;
}

.kt-article__head {
	margin-bottom: 24px;
}

.kt-article__title {
	margin: 10px 0 14px;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .01em;
}

.kt-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--kt-text-weak);
}

.kt-article__meta time + time::before {
	content: "・";
	margin-right: 6px;
}

.kt-article__thumb {
	margin: 20px 0 28px;
	border-radius: var(--kt-radius-l);
	overflow: hidden;
	background: var(--kt-bg-sub);
}

.kt-article__thumb img {
	width: 100%;
	display: block;
}

@media (min-width: 700px) {
	.kt-article__title {
		font-size: 30px;
	}
}

/* パンくず */
.kt-breadcrumb {
	margin: 0 0 14px;
	font-size: 12px;
	color: var(--kt-text-weak);
}

.kt-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kt-breadcrumb li + li::before {
	content: "›";
	margin-right: 6px;
	color: var(--kt-text-weak);
}

.kt-breadcrumb a {
	color: var(--kt-text-sub);
}

/* =============================================================
   8. 本文（エディタ出力）
   ============================================================= */

.kt-entry {
	font-size: 16.5px;
	line-height: 1.95;
	letter-spacing: .012em;
}

.kt-entry > * {
	margin-block: 1.6em;
}

.kt-entry > *:first-child {
	margin-top: 0;
}

.kt-entry p {
	margin-block: 1.5em;
}

.kt-entry h2,
.kt-entry h3,
.kt-entry h4,
.kt-entry h5 {
	line-height: 1.55;
	letter-spacing: .01em;
	scroll-margin-top: calc(var(--kt-header-h) + 16px);
}

.kt-entry h2 {
	margin-block: 2.4em .9em;
	padding-bottom: .5em;
	border-bottom: 1px solid var(--kt-border);
	font-size: 1.32em;
	font-weight: 700;
}

.kt-entry h3 {
	margin-block: 2.1em .8em;
	font-size: 1.15em;
	font-weight: 700;
}

.kt-entry h4 {
	margin-block: 1.9em .7em;
	font-size: 1.03em;
	font-weight: 700;
	color: var(--kt-text-sub);
}

.kt-entry a {
	color: var(--kt-accent);
	text-decoration: underline;
	text-underline-offset: .22em;
	text-decoration-thickness: 1px;
	text-decoration-color: color-mix(in srgb, var(--kt-accent) 45%, transparent);
}

.kt-entry ul,
.kt-entry ol {
	padding-left: 1.5em;
}

.kt-entry li {
	margin-block: .5em;
}

.kt-entry li::marker {
	color: var(--kt-text-weak);
}

.kt-entry blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--kt-border-strong);
	color: var(--kt-text-sub);
}

.kt-entry blockquote p:first-child {
	margin-top: 0;
}

.kt-entry blockquote p:last-child {
	margin-bottom: 0;
}

.kt-entry code {
	padding: .15em .4em;
	background: var(--kt-bg-sub);
	border-radius: var(--kt-radius-s);
	font-family: var(--kt-font-mono);
	font-size: .88em;
}

.kt-entry pre {
	padding: 16px 18px;
	background: var(--kt-bg-sub);
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius);
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.7;
	-webkit-overflow-scrolling: touch;
}

.kt-entry pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}

.kt-entry img {
	border-radius: var(--kt-radius);
}

.kt-entry figcaption {
	margin-top: .7em;
	font-size: 12.5px;
	color: var(--kt-text-weak);
	text-align: center;
	line-height: 1.7;
}

.kt-entry table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	display: block;
	overflow-x: auto;
	white-space: nowrap;
}

@media (min-width: 700px) {
	.kt-entry table {
		display: table;
		white-space: normal;
	}
}

.kt-entry th,
.kt-entry td {
	padding: 10px 14px;
	border: 1px solid var(--kt-border);
	text-align: left;
}

.kt-entry th {
	background: var(--kt-bg-sub);
	font-weight: 700;
}

.kt-entry .wp-block-embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: var(--kt-radius);
}

.kt-entry .wp-block-button__link {
	border-radius: var(--kt-radius-full);
	background: var(--kt-accent);
	color: var(--kt-accent-contrast);
	font-weight: 700;
	padding: 12px 26px;
	text-decoration: none;
}

.kt-entry .wp-block-separator {
	border-top: 1px solid var(--kt-border);
	max-width: 100%;
}

.kt-entry .wp-block-pullquote,
.kt-entry .wp-block-group.has-background {
	border-radius: var(--kt-radius);
}

/* alignwide / alignfull */
.kt-entry .alignwide {
	width: auto;
	max-width: calc(var(--kt-content-width) + 80px);
	margin-inline: auto;
}

.kt-entry .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	border-radius: 0;
}

.kt-entry .alignfull img {
	border-radius: 0;
}

.kt-entry .alignleft {
	float: left;
	margin: .3em 1.4em 1em 0;
	max-width: 45%;
}

.kt-entry .alignright {
	float: right;
	margin: .3em 0 1em 1.4em;
	max-width: 45%;
}

.kt-entry .aligncenter {
	margin-inline: auto;
	text-align: center;
}

.kt-entry::after {
	content: "";
	display: block;
	clear: both;
}

/* =============================================================
   9. 目次
   ============================================================= */

.kt-toc {
	margin: 32px 0;
	padding: 18px 20px;
	background: var(--kt-bg-sub);
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius);
	font-size: 14.5px;
}

.kt-toc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
}

.kt-toc__head::-webkit-details-marker {
	display: none;
}

.kt-toc__head::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--kt-text-weak);
	border-bottom: 2px solid var(--kt-text-weak);
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s var(--kt-ease);
}

.kt-toc[open] .kt-toc__head::after {
	transform: rotate(-135deg) translateY(-2px);
}

.kt-toc ol {
	margin: 14px 0 0;
	padding-left: 1.3em;
	counter-reset: kt-toc;
	list-style: none;
}

.kt-toc li {
	margin-block: .55em;
	line-height: 1.65;
}

.kt-toc li:not(.kt-toc__lv3) {
	counter-increment: kt-toc;
}

.kt-toc li:not(.kt-toc__lv3)::before {
	content: counter(kt-toc) ".";
	display: inline-block;
	min-width: 1.6em;
	margin-left: -1.6em;
	color: var(--kt-text-weak);
	font-size: .9em;
	font-variant-numeric: tabular-nums;
}

.kt-toc a {
	color: var(--kt-text);
	text-decoration: none;
}

.kt-toc a:hover {
	text-decoration: underline;
	text-underline-offset: .2em;
}

.kt-toc .kt-toc__lv3 {
	font-size: .93em;
	padding-left: 1.1em;
	color: var(--kt-text-sub);
}

.kt-toc .kt-toc__lv3::before {
	content: "–";
	display: inline-block;
	min-width: 1.1em;
	margin-left: -1.1em;
	color: var(--kt-text-weak);
}

.kt-toc .kt-toc__lv3 a {
	color: var(--kt-text-sub);
}

/* =============================================================
   10. 広告
   ============================================================= */

.kt-ad {
	margin: 32px 0;
	text-align: center;
	overflow: hidden;
}

.kt-ad__label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: .08em;
	color: var(--kt-text-weak);
	text-align: center;
}

.kt-ad__body {
	max-width: 100%;
	margin-inline: auto;
}

.kt-ad__body ins,
.kt-ad__body iframe,
.kt-ad__body img {
	max-width: 100%;
}

.kt-ad--sidebar {
	margin: 0;
}

/* スマホ追従（アンカー）広告 */
.kt-anchor-ad {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 150;
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--kt-bg) 94%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--kt-border);
	transform: translateY(110%);
	transition: transform .3s var(--kt-ease);
}

.kt-anchor-ad.is-visible {
	transform: none;
}

.kt-anchor-ad__close {
	position: absolute;
	top: -13px;
	right: 8px;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--kt-border);
	border-radius: 50%;
	background: var(--kt-bg);
	color: var(--kt-text-sub);
	font-size: 14px;
	line-height: 1;
	box-shadow: var(--kt-shadow);
}

.kt-anchor-ad .kt-ad__label {
	margin-bottom: 2px;
}

body.has-anchor-ad {
	padding-bottom: calc(var(--kt-anchor-h, 90px) + 12px);
}

@media (min-width: 1000px) {
	.kt-anchor-ad {
		display: none;
	}

	body.has-anchor-ad {
		padding-bottom: 0;
	}
}

/* デバイス出し分け */
.kt-only-pc {
	display: none;
}

@media (min-width: 1000px) {
	.kt-only-pc {
		display: block;
	}

	.kt-only-sp {
		display: none;
	}
}

.kt-widget--ad {
	text-align: center;
}

.kt-widget--ad .kt-ad__label {
	text-align: left;
}

/* アフィリエイト表記 */
.kt-affiliate-notice {
	margin: 20px 0;
	padding: 10px 14px;
	background: var(--kt-bg-sub);
	border-radius: var(--kt-radius-s);
	font-size: 12px;
	line-height: 1.75;
	color: var(--kt-text-sub);
}

.kt-pr-label {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border: 1px solid var(--kt-border-strong);
	border-radius: var(--kt-radius-s);
	font-size: 11px;
	font-weight: 700;
	color: var(--kt-text-sub);
}

/* =============================================================
   11. 記事下パーツ
   ============================================================= */

.kt-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0;
}

.kt-share a,
.kt-share button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 16px;
	border: 1px solid var(--kt-border-strong);
	border-radius: var(--kt-radius-full);
	background: transparent;
	color: var(--kt-text-sub);
	font-size: 13px;
	font-weight: 600;
}

.kt-share a:hover,
.kt-share button:hover {
	background: var(--kt-bg-sub);
	color: var(--kt-text);
	opacity: 1;
}

.kt-share svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.kt-authorbox {
	display: flex;
	gap: 14px;
	margin: 36px 0;
	padding: 20px;
	background: var(--kt-bg-sub);
	border-radius: var(--kt-radius-l);
}

.kt-authorbox img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	flex-shrink: 0;
}

.kt-authorbox__name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
}

.kt-authorbox__bio {
	margin: 0;
	font-size: 13px;
	line-height: 1.8;
	color: var(--kt-text-sub);
}

.kt-section-title {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
}

.kt-related {
	margin: 44px 0;
}

.kt-related__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kt-postnav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 36px 0;
}

.kt-postnav a {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--kt-border);
	border-radius: var(--kt-radius);
	color: var(--kt-text);
}

.kt-postnav a:hover {
	background: var(--kt-bg-sub);
	opacity: 1;
}

.kt-postnav__label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	color: var(--kt-text-weak);
	letter-spacing: .06em;
}

.kt-postnav__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 600px) {
	.kt-postnav {
		grid-template-columns: 1fr 1fr;
	}
}

/* =============================================================
   12. コメント
   ============================================================= */

.kt-comments {
	margin: 48px 0 0;
	padding-top: 32px;
	border-top: 1px solid var(--kt-border);
}

.kt-comments ol.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kt-comments .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--kt-border);
	font-size: 14.5px;
}

.kt-comments .children {
	list-style: none;
	margin: 0;
	padding-left: 18px;
}

.kt-comments .comment-meta {
	font-size: 12px;
	color: var(--kt-text-weak);
	margin-bottom: 6px;
}

.kt-comments .comment-author img {
	border-radius: 50%;
	margin-right: 8px;
}

.comment-form p {
	margin-block: 14px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.comment-form .submit {
	padding: 11px 24px;
	border: 0;
	border-radius: var(--kt-radius-full);
	background: var(--kt-accent);
	color: var(--kt-accent-contrast);
	font-weight: 700;
	cursor: pointer;
}

/* =============================================================
   13. ウィジェット / サイドバー
   ============================================================= */

.kt-widget {
	margin-bottom: 32px;
	font-size: 14px;
}

.kt-widget__title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--kt-text-sub);
}

.kt-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kt-widget li {
	margin-block: 2px;
	line-height: 1.7;
}

.kt-widget li a {
	display: block;
	padding: 7px 0;
	color: var(--kt-text);
}

.kt-widget .children {
	padding-left: 14px;
}

.kt-widget select {
	font-size: 14px;
}

.kt-widget_tag_cloud .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kt-widget_tag_cloud a {
	font-size: 12px !important;
	padding: 5px 11px;
	background: var(--kt-bg-sub);
	border-radius: var(--kt-radius-full);
	color: var(--kt-text-sub);
}

/* =============================================================
   14. フッター
   ============================================================= */

.kt-footer {
	margin-top: auto;
	padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
	background: var(--kt-bg-sub);
	border-top: 1px solid var(--kt-border);
	font-size: 13.5px;
}

.kt-footer__widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin-bottom: 28px;
}

@media (min-width: 700px) {
	.kt-footer__widgets {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px;
	}
}

.kt-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	text-align: center;
	color: var(--kt-text-sub);
}

.kt-footer nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kt-footer nav a {
	color: var(--kt-text-sub);
	font-size: 13px;
}

.kt-copyright {
	font-size: 12px;
	color: var(--kt-text-weak);
}

/* トップへ戻る */
.kt-totop {
	position: fixed;
	right: 14px;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 140;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border: 1px solid var(--kt-border);
	border-radius: 50%;
	background: var(--kt-surface);
	color: var(--kt-text-sub);
	box-shadow: var(--kt-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .22s var(--kt-ease);
}

.kt-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

body.has-anchor-ad .kt-totop {
	bottom: calc(var(--kt-anchor-h, 90px) + 28px + env(safe-area-inset-bottom));
}

@media (min-width: 1000px) {
	body.has-anchor-ad .kt-totop {
		bottom: calc(16px + env(safe-area-inset-bottom));
	}
}

.kt-totop svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* 読了プログレスバー */
.kt-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 2px;
	width: 0;
	z-index: 300;
	background: var(--kt-accent);
	transition: width .1s linear;
}

/* =============================================================
   15. 404 / 検索なし
   ============================================================= */

.kt-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--kt-text-sub);
}

.kt-empty__code {
	font-size: 56px;
	font-weight: 800;
	color: var(--kt-border-strong);
	line-height: 1;
	margin-bottom: 14px;
}

/* =============================================================
   16. 印刷
   ============================================================= */

@media print {

	.kt-header,
	.kt-sidebar,
	.kt-footer,
	.kt-ad,
	.kt-anchor-ad,
	.kt-totop,
	.kt-share,
	.kt-related,
	.kt-comments,
	.kt-progress {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
