@charset "UTF-8";
/*
Theme Name: takezou
Description: たけぞうBLOG 専用テーマ v2。広告管理・装飾コンポーネント・回遊UIを標準搭載。外部アセット・jQuery非依存 (2026-10-22 ops)。
Author: ops
Version: 2.1.0
Text Domain: takezou
*/

:root {
	--zz-accent: #2563eb;
	--zz-text: #1f2937;
	--zz-muted: #6b7280;
	--zz-line: #e5e7eb;
	--zz-bg: #ffffff;
	--zz-bg2: #f8fafc;
	--zz-code-bg: #0f172a;
	--zz-gold: #f5b301;
	--zz-radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }

body {
	margin: 0;
	color: var(--zz-text);
	background: var(--zz-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

a { color: var(--zz-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.zz-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* スクリーンリーダー用 (WordPress 標準の clip パターン) */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
/* スキップリンク: 非表示は clip で行い、フォーカス時のみ表示 */
.zz-skip { position: absolute; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.zz-skip:focus {
	position: fixed; left: 8px; top: 8px; clip: auto; clip-path: none; width: auto; height: auto;
	background: var(--zz-bg2); padding: 6px 10px; border-radius: 6px; z-index: 99;
}
.zz-section-title { margin: 0 0 14px; font-size: 1.15rem; border-left: 4px solid var(--zz-accent); padding-left: 10px; }

/* ---- header ---- */
.zz-header { border-bottom: 1px solid var(--zz-line); background: var(--zz-bg); }
.zz-header-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 12px 16px; }
.zz-site-title { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.zz-site-title a { color: var(--zz-text); }
.zz-nav ul { display: flex; flex-wrap: wrap; gap: 2px 14px; list-style: none; margin: 0; padding: 0; }
.zz-nav a { color: var(--zz-text); font-size: 0.95rem; padding: 4px 2px; display: inline-block; }
.zz-nav a:hover { color: var(--zz-accent); text-decoration: none; }
/* スマホ: ナビは2段折返しでなく横スクロールにする (C-12) */
@media (max-width: 600px) {
	.zz-nav { width: 100%; }
	.zz-nav ul {
		flex-wrap: nowrap; overflow-x: auto; white-space: nowrap;
		-webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	.zz-nav ul::-webkit-scrollbar { display: none; }
}

/* ---- layout ---- */
.zz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 20px; padding-bottom: 40px; }
@media (max-width: 900px) {
	.zz-layout { grid-template-columns: minmax(0, 1fr); }
	.zz-side { order: 2; }
}

/* ---- pickup (おすすめ記事) ---- */
.zz-pickup { margin-bottom: 30px; }
.zz-pickup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.zz-pickup-card {
	display: block; background: var(--zz-bg2); border-radius: var(--zz-radius); overflow: hidden;
	color: var(--zz-text); border: 1px solid var(--zz-line);
	transition: box-shadow 0.2s ease;
}
.zz-pickup-card:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.zz-pickup-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
/* 画像を絶対配置+object-fit で親の16:9に完全固定 (A-2: 縦長画像でカードが伸びる不具合) */
.zz-pickup-thumb img, .zz-pickup-thumb .zz-thumb-fallback {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.zz-pickup-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 10px 12px; font-weight: 700; font-size: 0.92rem; line-height: 1.5; }

/* ---- tabs (新着/人気) ---- */
.zz-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 2px solid var(--zz-line); }
.zz-tab-btn {
	appearance: none; border: none; background: none; cursor: pointer;
	padding: 10px 18px; font-size: 1rem; font-weight: 700; color: var(--zz-muted); font-family: inherit;
	border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.zz-tab-btn.active { color: var(--zz-accent); border-bottom-color: var(--zz-accent); }

/* ---- post cards ---- */
.zz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-bottom: 20px; }
.zz-card {
	background: var(--zz-bg); border: 1px solid var(--zz-line); border-radius: var(--zz-radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: box-shadow 0.2s ease;
}
.zz-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.zz-card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
/* 画像を絶対配置+object-fit で親の16:9に完全固定 (A-2) */
.zz-card-thumb img, .zz-card-thumb .zz-thumb-fallback {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.zz-thumb-fallback {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
}
.zz-thumb-fallback span { color: rgba(255, 255, 255, 0.85); font-weight: 800; letter-spacing: 0.05em; }
.zz-badge {
	position: absolute; top: 8px; left: 8px; padding: 2px 10px; border-radius: 999px;
	background: rgba(37, 99, 235, 0.92); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.zz-badge-pickup { background: rgba(245, 158, 11, 0.95); }
.zz-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.zz-card-meta { margin: 0 0 4px; font-size: 0.78rem; color: var(--zz-muted); }
.zz-card-meta a { color: var(--zz-muted); }
/* コントラスト改善: #f5b301 は白背景で約1.9:1 しか無く WCAG 不適合 (B-2) */
.zz-updated { color: #b45309; }
.zz-card-title { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.5; }
.zz-card-title a { color: var(--zz-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zz-card-excerpt { margin: 0; font-size: 0.86rem; color: var(--zz-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* in-feed 広告 */
.zz-ad-infeed { border: 1px dashed var(--zz-line); border-radius: var(--zz-radius); padding: 12px; display: flex; align-items: center; justify-content: center; text-align: center; }

/* ---- pagination ---- */
.zz-pagination { margin: 24px 0; text-align: center; }
.nav-links { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--zz-line); border-radius: 8px; color: var(--zz-text); font-size: 0.9rem; }
.page-numbers.current { background: var(--zz-accent); border-color: var(--zz-accent); color: #fff; }
.page-numbers:hover { text-decoration: none; border-color: var(--zz-accent); }

/* ---- 前後記事ナビ (B-6) ---- */
.zz-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.zz-post-nav-item {
	display: block; background: var(--zz-bg2); border: 1px solid var(--zz-line);
	border-radius: var(--zz-radius); padding: 12px 14px;
	transition: box-shadow 0.2s ease;
}
.zz-post-nav-item:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.zz-post-nav-item.is-empty { visibility: hidden; }
.zz-post-nav-item.is-next { text-align: right; }
.zz-post-nav-label { display: block; font-size: 0.78rem; color: var(--zz-accent); font-weight: 700; margin-bottom: 4px; }
.zz-post-nav-body { display: flex; align-items: center; gap: 10px; }
.zz-post-nav-item.is-next .zz-post-nav-body { flex-direction: row-reverse; }
.zz-post-nav-body img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 56px; }
.zz-post-nav-title {
	font-weight: 700; font-size: 0.92rem; line-height: 1.5; color: var(--zz-text); text-align: left;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 600px) { .zz-post-nav { grid-template-columns: 1fr; } }

/* ---- single ---- */
.zz-article-head { margin: 12px 0 20px; }
.zz-article-title { margin: 0 0 8px; font-size: 1.65rem; line-height: 1.45; letter-spacing: -0.01em; }
.zz-article-meta { font-size: 0.85rem; color: var(--zz-muted); margin: 0 0 6px; }
.zz-article-meta a { color: var(--zz-muted); }
.zz-article-meta time { margin-right: 8px; }
.zz-author-mini { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--zz-muted); margin: 0; }
.zz-author-mini img { border-radius: 50%; }
.zz-eyecatch { margin: 0 0 20px; }
.zz-eyecatch img { width: 100%; height: auto; border-radius: var(--zz-radius); }

.zz-content { font-size: 1rem; }
.zz-content h2 { margin: 2.2em 0 0.8em; padding: 0.2em 0 0.2em 0.7em; border-left: 4px solid var(--zz-accent); font-size: 1.3rem; line-height: 1.5; }
.zz-content h3 { margin: 1.8em 0 0.7em; padding-bottom: 0.25em; border-bottom: 1px solid var(--zz-line); font-size: 1.15rem; }
.zz-content h4 { margin: 1.5em 0 0.6em; font-size: 1.02rem; }
.zz-content p { margin: 1.1em 0; }
.zz-content ul, .zz-content ol { padding-left: 1.4em; }
.zz-content li { margin: 0.4em 0; }
.zz-content blockquote { margin: 1.4em 0; padding: 0.6em 1.2em; border-left: 4px solid var(--zz-line); background: var(--zz-bg2); color: #374151; }
.zz-content img { border-radius: 6px; }
/* テーブルは display:table のまま、ラッパーで横スクロール (C-13: display:block だと幅指定が効かない) */
.zz-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.92rem; }
.zz-table-wrap { overflow-x: auto; }
.zz-content th, .zz-content td { border: 1px solid var(--zz-line); padding: 8px 10px; }
.zz-content th { background: var(--zz-bg2); }
.zz-content pre {
	background: var(--zz-code-bg); color: #e2e8f0; padding: 14px 16px; border-radius: 8px;
	overflow-x: auto; font-size: 0.88rem; line-height: 1.6;
}
.zz-content pre code { background: none; color: inherit; padding: 0; }
.zz-content code {
	font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
	background: #eef2f7; padding: 1px 5px; border-radius: 4px; font-size: 0.88em;
}
.zz-copy-btn {
	position: absolute; top: 8px; right: 8px; padding: 4px 10px; border: none; border-radius: 6px;
	background: rgba(255, 255, 255, 0.15); color: #e2e8f0; font-size: 0.75rem; cursor: pointer; font-family: inherit;
}
.zz-copy-btn:hover { background: rgba(255, 255, 255, 0.3); }

/* ---- 目次 (details アコーディオン) ---- */
.zz-toc {
	background: var(--zz-bg2); border: 1px solid var(--zz-line); border-radius: var(--zz-radius);
	padding: 0; margin: 1.6em 0; font-size: 0.94rem;
}
.zz-toc-summary {
	cursor: pointer; padding: 12px 18px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px;
}
.zz-toc-summary::-webkit-details-marker { display: none; }
.zz-toc-summary::after { content: "\25BC"; margin-left: auto; font-size: 0.7rem; color: var(--zz-muted); transition: transform 0.2s; }
.zz-toc[open] .zz-toc-summary::after { transform: rotate(180deg); }
.zz-toc-body { padding: 4px 18px 14px; border-top: 1px solid var(--zz-line); }
.zz-toc-list { margin: 10px 0 4px; padding-left: 1.4em; }

/* ---- 案内ボックス ---- */
.zz-box { border-radius: var(--zz-radius); padding: 14px 18px; margin: 1.6em 0; border: 1px solid; }
.zz-box-title { margin: 0 0 6px; font-weight: 700; }
.zz-box-body > :first-child { margin-top: 0; }
.zz-box-body > :last-child { margin-bottom: 0; }
.zz-box-warning { background: #fefce8; border-color: #fde047; }
.zz-box-alert { background: #fef2f2; border-color: #fca5a5; }
.zz-box-point { background: #eff6ff; border-color: #93c5fd; }
.zz-box-good { background: #f0fdf4; border-color: #86efac; }
.zz-box-memo { background: var(--zz-bg2); border-color: var(--zz-line); }
.zz-box-check { background: #f0fdf4; border-color: #86efac; }
.zz-check-li { list-style: none; position: relative; padding-left: 1.5em; }
.zz-check-li::before { content: "\2713"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }

/* ---- 吹き出し ---- */
.zz-kaiwa2 { display: flex; gap: 12px; margin: 1.8em 0; align-items: flex-start; }
.zz-kaiwa-r { flex-direction: row-reverse; }
.zz-kaiwa-person { flex: 0 0 56px; text-align: center; }
.zz-kaiwa-person img, .zz-kaiwa-emoji {
	width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: flex;
	align-items: center; justify-content: center; background: var(--zz-bg2); font-size: 30px; border: 1px solid var(--zz-line);
}
.zz-kaiwa-name { display: block; font-size: 0.72rem; color: var(--zz-muted); }
.zz-kaiwa-bubble { position: relative; background: var(--zz-bg2); border: 1px solid var(--zz-line); border-radius: 12px; padding: 12px 16px; max-width: 85%; }
.zz-kaiwa-body > :first-child { margin-top: 0; }
.zz-kaiwa-body > :last-child { margin-bottom: 0; }
/* 枠付きしっぽ: 外側=枠線色、内側=背景色の三角を重ねる (C-8) */
.zz-kaiwa-l .zz-kaiwa-bubble::before,
.zz-kaiwa-r .zz-kaiwa-bubble::before {
	content: ""; position: absolute; top: 14px;
	border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.zz-kaiwa-l .zz-kaiwa-bubble::before { left: -9px; border-right: 9px solid var(--zz-line); }
.zz-kaiwa-r .zz-kaiwa-bubble::before { right: -9px; border-left: 9px solid var(--zz-line); }
.zz-kaiwa-l .zz-kaiwa-bubble::after,
.zz-kaiwa-r .zz-kaiwa-bubble::after {
	content: ""; position: absolute; top: 14px;
	border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.zz-kaiwa-l .zz-kaiwa-bubble::after { left: -7px; border-right: 9px solid var(--zz-bg2); }
.zz-kaiwa-r .zz-kaiwa-bubble::after { right: -7px; border-left: 9px solid var(--zz-bg2); }

/* ---- 光るCTAボタン ---- */
.zz-btn-wrap, .zz-pbtn-wrap { margin: 1.2em 0; }
.zz-glow-btn {
	position: relative; display: block; overflow: hidden; text-align: center;
	padding: 16px 20px; border-radius: 12px; color: #fff;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
	font-weight: 800; font-size: 1.05rem;
	/* transition は通常状態に書く (:hover に書くと離したとき急に戻る, C-9) */
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.zz-glow-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45); }
.zz-glow-btn::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
	transform: translateX(-100%);
	animation: zz-shine 3s ease-in-out infinite;
}
@keyframes zz-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .zz-glow-btn::after { animation: none; } }
.zz-glow-btn-main { display: block; position: relative; z-index: 1; }
.zz-glow-btn-sub { display: block; position: relative; z-index: 1; font-size: 0.78rem; font-weight: 400; opacity: 0.9; margin-top: 2px; }

/* ---- 手順リスト ---- */
.zz-steps { list-style: none; margin: 1.6em 0; padding: 0 0 0 4px; }
.zz-step { position: relative; padding: 0 0 24px 52px; }
.zz-step::before {
	content: ""; position: absolute; left: 17px; top: 34px; bottom: 0;
	width: 2px; background: var(--zz-line);
}
.zz-step:last-child::before { display: none; }
.zz-step-num {
	position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
	background: var(--zz-accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.zz-step-num::before { counter-increment: zz-step; content: counter(zz-step); }
.zz-steps { counter-reset: zz-step; }
.zz-step-title { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.zz-step-body > :first-child { margin-top: 0; }

/* ---- スター評価 ---- */
.zz-star { position: relative; display: inline-block; font-size: 1.1rem; line-height: 1; letter-spacing: 2px; vertical-align: middle; }
.zz-star-bg { color: #d1d5db; }
.zz-star-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--zz-gold); }
.zz-star-num { margin-left: 8px; font-weight: 700; }
.zz-star-label { margin-left: 8px; font-size: 0.85rem; color: var(--zz-muted); }

/* ---- 商品カード ---- */
.zz-product { display: flex; gap: 16px; border: 2px solid var(--zz-line); border-radius: var(--zz-radius); padding: 18px; margin: 1.8em 0; background: var(--zz-bg); }
.zz-product-img { flex: 0 0 38%; }
.zz-product-img img { width: 100%; border-radius: 8px; border: 1px solid var(--zz-line); }
.zz-product-body { flex: 1; min-width: 0; }
.zz-product-title { font-weight: 800; font-size: 1.08rem; margin: 0 0 6px; }
.zz-product-rating { margin: 0 0 8px; }
.zz-product-features { margin: 0 0 10px; padding-left: 1.2em; font-size: 0.92rem; }
.zz-product-features li { margin: 0.2em 0; }
.zz-product-price { font-weight: 700; margin: 0 0 10px; }
.zz-pbtn { display: block; padding: 10px 14px; border-radius: 8px; color: #fff; text-align: center; margin: 8px 0; font-weight: 700; }
.zz-pbtn:hover { text-decoration: none; opacity: 0.92; }
.zz-pbtn-main { display: block; }
.zz-pbtn-sub { display: block; font-size: 0.74rem; font-weight: 400; opacity: 0.9; }
.zz-pbtn-amazon { background: linear-gradient(180deg, #ffc266, #f90); color: #3d2200; }
.zz-pbtn-rakuten { background: linear-gradient(180deg, #e04040, #bf0000); }
.zz-pbtn-official { background: linear-gradient(180deg, #3b82f6, #2563eb); }
@media (max-width: 600px) { .zz-product { flex-direction: column; } }

/* ---- amazon互換 ---- */
.zz-amazon { display: block; margin: 1.2em 0; padding: 10px 14px; background: var(--zz-bg2); border: 1px dashed var(--zz-line); border-radius: 8px; font-size: 0.95rem; }

/* ---- シェア ---- */
.zz-share { margin: 30px 0 20px; }
.zz-share-title { font-size: 0.9rem; font-weight: 700; color: var(--zz-muted); margin: 0 0 8px; }
.zz-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.zz-share-btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 36px;
	border-radius: 8px; color: #fff; font-size: 0.85rem; font-weight: 700; padding: 0 12px;
}
.zz-share-btn:hover { text-decoration: none; opacity: 0.85; }
.zz-sh-x { background: #111; }
.zz-sh-hatebu { background: #00a4de; }
.zz-sh-fb { background: #1877f2; }
.zz-sh-line { background: #06c755; }

/* ---- 著者カード ---- */
.zz-author { display: flex; gap: 16px; background: var(--zz-bg2); border: 1px solid var(--zz-line); border-radius: var(--zz-radius); padding: 18px; margin: 24px 0; }
.zz-author-avatar { flex: 0 0 80px; }
.zz-author-avatar img { width: 80px; height: 80px; border-radius: 50%; }
.zz-author-name { font-weight: 700; margin: 0 0 4px; }
.zz-author-desc { font-size: 0.9rem; color: var(--zz-muted); margin: 0 0 6px; }
.zz-author-links { font-size: 0.85rem; margin: 0; }

/* ---- CTA ---- */
.zz-cta {
	background: linear-gradient(135deg, #1e293b, #312e81); color: #fff;
	border-radius: var(--zz-radius); padding: 26px 24px; text-align: center; margin: 30px 0;
}
.zz-cta-label { font-size: 0.75rem; letter-spacing: 0.2em; color: #93c5fd; margin: 0 0 6px; }
.zz-cta-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.zz-cta-text { font-size: 0.92rem; margin: 0 0 16px; opacity: 0.9; }
.zz-cta .zz-glow-btn { display: inline-block; padding: 14px 40px; }

/* ---- 関連記事 ---- */
.zz-related { margin-top: 30px; }
.zz-related-title { font-size: 1.15rem; border-left: 4px solid var(--zz-accent); padding-left: 10px; }
.zz-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }

/* ---- widgets ---- */
.zz-side .widget {
	background: var(--zz-bg2); border-radius: var(--zz-radius);
	padding: 16px 18px; margin: 0 0 18px; font-size: 0.92rem;
}
.zz-side .widget-title,
.zz-side .st-widgets-title { margin: 0 0 10px; padding-left: 10px; border-left: 4px solid var(--zz-accent); font-weight: 700; font-size: 1rem; line-height: 1.4; }
.zz-side .st-widgets-title span { font-weight: 700; font-size: 1rem; }
.zz-side ul { list-style: none; margin: 0; padding: 0; }
.zz-side li { padding: 6px 0; border-bottom: 1px dashed var(--zz-line); }
.zz-side li:last-child { border-bottom: none; }

/* 検索フォーム (サイドバー以外: 404ページ等でも共通, A-5) */
.zz-searchform { display: flex; gap: 8px; margin: 12px 0; }
.zz-searchform input[type="search"] { flex: 1; width: auto; min-width: 0; padding: 8px 10px; border: 1px solid var(--zz-line); border-radius: 8px; font-size: 0.95rem; }
.zz-searchform .search-submit { padding: 8px 16px; background: var(--zz-accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.zz-search-count { font-size: 0.9rem; color: var(--zz-muted); margin: 0 0 14px; }

/* WPP (人気投稿ウィジェット): プラグインCSSをテーマ側で上書き
   左: サムネ固定幅 / 右: タイトル+ビュー数の2段組み (A-1) */
.zz-side .wpp-list { margin: 0; padding: 0; list-style: none; }
.zz-side .wpp-list li {
	display: grid; grid-template-columns: 75px 1fr;
	grid-template-areas: "thumb title" "thumb meta";
	gap: 2px 10px; align-items: start;
	overflow: visible; /* wpp.css の overflow:hidden でサムネ角・影が切れるのをリセット */
	padding: 10px 0; border-bottom: 1px dashed var(--zz-line);
}
.zz-side .wpp-list li:last-child { border-bottom: none; }
/* wpp.css の a:has(.wpp-thumbnail){float:left;margin-right:16px} を無効化 */
.zz-side .wpp-list li > a:has(.wpp-thumbnail) { grid-area: thumb; float: none; margin-right: 0; overflow: visible; }
.zz-side .wpp-list img.wpp-thumbnail {
	display: block; width: 75px; height: 75px; max-width: none; object-fit: cover; border-radius: 6px;
}
.zz-side .wpp-list .wpp-post-title {
	grid-area: title; min-width: 0; font-weight: 600; font-size: 0.92rem; line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.zz-side .wpp-list .wpp-meta {
	grid-area: meta; font-size: 0.78rem; color: var(--zz-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* プロフィール: 見出しは他ウィジェットと揃えて左寄せ、中央寄せは本文のみ (A-4) */
.zz-profile { text-align: center; }
.zz-profile .widget-title { text-align: left; }
.zz-profile-avatar img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--zz-line); }
.zz-profile-name { font-weight: 800; font-size: 1.05rem; margin: 8px 0 6px; }
.zz-profile-desc { font-size: 0.85rem; color: var(--zz-muted); text-align: left; margin: 0 0 10px; }
.zz-btn { display: inline-block; padding: 7px 16px; background: var(--zz-accent); color: #fff; border-radius: 8px; font-size: 0.9rem; }
.zz-btn:hover { text-decoration: none; opacity: 0.9; }

/* サイドバー追従広告 (ログイン時はWP管理バーの高さを足す, C-10) */
.zz-sticky-box { position: sticky; top: 16px; }
.admin-bar .zz-sticky-box { top: 48px; }
@media (max-width: 782px) { .admin-bar .zz-sticky-box { top: 62px; } }

/* ---- スマホフッター固定バナー ---- */
.zz-fixed-banner {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: var(--zz-bg); border-top: 1px solid var(--zz-line);
	padding: 10px 44px 10px 10px; min-height: 60px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.zz-banner-close {
	position: absolute; top: 4px; right: 6px; width: 30px; height: 30px;
	border: none; background: none; font-size: 1.3rem; color: var(--zz-muted); cursor: pointer; line-height: 1;
}
@media (min-width: 601px) { .zz-fixed-banner { display: none !important; } }
/* バナー表示中は最下部コンテンツが隠れないよう余白を確保 (C-11) */
@media (max-width: 600px) {
	body.zz-banner-open { padding-bottom: 72px; }
}

/* ---- comments ---- */
.zz-comments { margin-top: 40px; }
.zz-comments .comment-body { border-bottom: 1px solid var(--zz-line); padding: 10px 0; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%; padding: 8px 10px; border: 1px solid var(--zz-line); border-radius: 8px; font-size: 0.95rem; font-family: inherit;
}
.comment-form .submit { padding: 10px 20px; background: var(--zz-accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; }

/* ---- footer ---- */
.zz-footer { border-top: 1px solid var(--zz-line); margin-top: 20px; padding: 20px 16px; font-size: 0.85rem; color: var(--zz-muted); }
.zz-footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0 0 8px; padding: 0; }
.zz-footer-nav a { color: var(--zz-muted); }
.zz-copy { margin: 0; }

/* CF7 */
.zz-content .wpcf7-form input[type="text"], .zz-content .wpcf7-form input[type="email"],
.zz-content .wpcf7-form textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--zz-line); border-radius: 8px; font-family: inherit; }
.zz-content .wpcf7-form input[type="submit"] { padding: 10px 24px; background: var(--zz-accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
