/*
Theme Name: VOWARS
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: TradingViewインジケーター解説とビットコイン関連コラムを発信する仮想通貨ブログ「VOWARS」のFigmaデザインを移植したオリジナルWordPressテーマです。
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-theme
*/

/* =========================================================
   1. フォント読み込み
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@400;500;600&display=swap');

/* =========================================================
   2. デザイントークン（CSSカスタムプロパティ）
   Figma（theme.css）の値をそのまま踏襲
   ========================================================= */
:root {
	/* ベースカラー */
	--color-background: #EDEEF2;
	--color-foreground: #0F1117;

	--color-card: #FFFFFF;
	--color-card-foreground: #0F1117;

	--color-popover: #FFFFFF;
	--color-popover-foreground: #0F1117;

	--color-primary: #1A56DB;
	--color-primary-foreground: #FFFFFF;

	--color-secondary: #E8EAF0;
	--color-secondary-foreground: #0F1117;

	--color-muted: #E8EAF0;
	--color-muted-foreground: #6B7280;

	--color-accent: #F7931A;
	--color-accent-foreground: #FFFFFF;

	--color-destructive: #EF4444;
	--color-destructive-foreground: #FFFFFF;

	--color-border: rgba(15, 17, 23, 0.08);
	--color-input-background: #E8EAF0;
	--color-switch-background: #C5C8D4;
	--color-ring: #1A56DB;

	/* コラムセクション（ローズ系） */
	--color-rose-50: #FFF1F2;
	--color-rose-100: #FFE4E6;
	--color-rose-200: #FECDD3;
	--color-rose-300: #FDA4AF;
	--color-rose-500: #F43F5E;
	--color-rose-600: #E11D48;

	/* トピック／カテゴリーバッジ用カラー（Tailwindパレット準拠） */
	--color-orange-100: #FFEDD5;
	--color-orange-500: #F97316;
	--color-orange-700: #C2410C;

	--color-blue-100: #DBEAFE;
	--color-blue-700: #1D4ED8;

	--color-green-100: #DCFCE7;
	--color-green-700: #15803D;

	--color-purple-100: #F3E8FF;
	--color-purple-700: #7E22CE;

	--color-yellow-100: #FEF9C3;
	--color-yellow-700: #A16207;

	--color-cyan-100: #CFFAFE;
	--color-cyan-700: #0E7490;

	--color-slate-100: #F1F5F9;
	--color-slate-700: #334155;

	--color-gray-100: #F3F4F6;
	--color-gray-700: #374151;

	/* 角丸 */
	--radius-md: 0.5rem;    /* 8px */
	--radius-lg: 0.75rem;   /* 12px */
	--radius-xl: 1rem;      /* 16px */
	--radius-full: 9999px;

	/* レイアウト */
	--container-max: 1200px;
	--container-padding: 20px;

	/* フォント */
	--font-family-base: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--font-weight-extrabold: 800;
	--font-weight-black: 900;
}

/* =========================================================
   3. リセット / ベーススタイル
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-base);
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-weight: var(--font-weight-normal);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

img,
picture,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: none;
	color: inherit;
}

ul,
ol {
	list-style: none;
}

input,
textarea {
	font-family: inherit;
}

/* 見出し（テーマの基本タイポグラフィ） */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: var(--font-weight-medium);
	line-height: 1.5;
}

h1 { font-size: 1.5rem; }   /* 24px */
h2 { font-size: 1.25rem; }  /* 20px */
h3 { font-size: 1.125rem; } /* 18px */
h4 { font-size: 1rem; }     /* 16px */

label {
	font-size: 1rem;
	font-weight: var(--font-weight-medium);
	line-height: 1.5;
}

/* =========================================================
   4. 共通ユーティリティ
   ========================================================= */
/* サイト全体の横幅の基準（重要）
   ヘッダー／トピックバー／本文／コラム／フッターのすべてを
   「最大 1200px（左右 padding 20px を含む）」に統一しています。
   これにより各セクションの左右の端が縦一直線に揃います。
   ※ 以前はセクションごとに padding の内外が混在していたため、
     ヘッダーと下のコンテンツで左右 20px ずつずれていました。 */
.container,
.site-header__inner,
.topics-bar__inner,
.column-section__inner,
.footer-inner,
.footer-bottom,
.page-header,
#main-content,
.content-wrap {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* グリッドの子要素が内容物の最小幅で押し広げられ、
   サイドバーがサイト幅からはみ出すのを防ぐ */
.content-grid > *,
.content-main,
.post-card,
.widget-card,
.column-item,
.column-item__body,
.experience-item > div,
.tool-item > div {
	min-width: 0;
}

/* 長いURL・英単語での横スクロール発生を防止 */
.post-card__title,
.post-card__excerpt,
.column-item__title,
.column-item__excerpt,
.entry-content,
.widget-card,
.comment-content {
	overflow-wrap: anywhere;
	word-break: normal;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.line-clamp-1 {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hide-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
	display: none;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in {
	animation: fadeIn 0.18s ease-out both;
}

/* =========================================================
   5. サイトヘッダー（#site-header）
   ========================================================= */
#site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: var(--color-card);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

/* ブランドロゴ */
.site-branding,
.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.brand__icon {
	width: 28px;
	height: 28px;
	background-color: var(--color-accent);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 0.75rem;
	font-weight: var(--font-weight-black);
	flex-shrink: 0;
}

.brand__name,
.site-title {
	font-weight: var(--font-weight-black);
	font-size: 1rem;
	letter-spacing: -0.01em;
	color: var(--color-foreground);
}

.site-title a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* -----------------------------------------------------------------
   ヘッダーロゴ（外観 > カスタマイズ > サイト基本情報 > ロゴ）
   高さは --logo-height（既定32px）で制御し、幅は自動です。
   ----------------------------------------------------------------- */
.site-branding.has-logo .site-title {
	display: flex;
	align-items: center;
	line-height: 0;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	height: var(--logo-height, 32px);
	width: auto;
	max-width: 240px;
	object-fit: contain;
}

@media (max-width: 480px) {
	.custom-logo {
		max-width: 150px;
	}
}

/* ナビゲーション */
#site-navigation {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex: 1;
}

@media (min-width: 768px) {
	#site-navigation {
		display: flex;
	}
}

#primary-menu {
	display: flex;
	align-items: center;
	gap: 24px;
}

#primary-menu li a,
.site-nav__link {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: var(--font-weight-medium);
	color: var(--color-muted-foreground);
	transition: color 0.15s ease;
}

#primary-menu li a:hover,
.site-nav__link:hover {
	color: var(--color-foreground);
}

.site-nav__link .icon-chevron-down {
	width: 12px;
	height: 12px;
}

/* ナビゲーション：子階層を持つ項目に表示するシェブロン */
.menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: -2px;
}

/* 現在表示中のページに対応するメニュー項目 */
#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a {
	color: var(--color-foreground);
}

/* ヘッダー右側アクション */
.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.btn-search {
	padding: 6px;
	color: var(--color-muted-foreground);
	transition: color 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-search:hover,
.btn-search[aria-expanded="true"] {
	color: var(--color-foreground);
}

.btn-search svg,
.btn-search .icon {
	width: 16px;
	height: 16px;
}

/* ヘッダー検索パネル */
.header-search-panel {
	border-top: 1px solid var(--color-border);
	background-color: var(--color-card);
	padding: 16px 0;
}

.header-search-panel[hidden] {
	display: none;
}

.search-form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.search-form__label,
.search-form label {
	flex: 1;
	margin: 0;
}

.search-field,
.search-form input[type="search"] {
	width: 100%;
	height: 40px;
	padding: 0 16px;
	border: none;
	border-radius: var(--radius-full);
	background-color: var(--color-input-background);
	color: var(--color-foreground);
	font-size: 0.875rem;
}

.search-field::placeholder {
	color: var(--color-muted-foreground);
}

.search-field:focus,
.search-form input[type="search"]:focus {
	outline: 2px solid var(--color-ring);
	outline-offset: 2px;
}

.search-submit,
.search-form button[type="submit"] {
	flex-shrink: 0;
	height: 40px;
	padding: 0 20px;
	border-radius: var(--radius-full);
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
	font-size: 0.875rem;
	font-weight: var(--font-weight-bold);
	transition: background-color 0.15s ease;
}

.search-submit:hover,
.search-form button[type="submit"]:hover {
	background-color: rgba(247, 147, 26, 0.9);
}

.btn-subscribe {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
	font-size: 0.875rem;
	font-weight: var(--font-weight-bold);
	border-radius: var(--radius-full);
	transition: background-color 0.15s ease;
}

.btn-subscribe:hover {
	background-color: rgba(247, 147, 26, 0.9);
}

/* =========================================================
   6. トピック絞り込みバー（.topics-bar）
   ========================================================= */
.topics-bar {
	background-color: var(--color-card);
	border-bottom: 1px solid var(--color-border);
	/* 左右の余白は .topics-bar__inner（共通コンテナ）側で持たせる */
	padding: 20px 0 0;
}

.topics-bar__label {
	font-size: 10px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-weight: var(--font-weight-semibold);
	margin-bottom: 12px;
}

.topics-scroll {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 16px;
	/* チップの影・フォーカスリングが切れないように */
	scroll-padding-inline: 20px;
}

.topic-chip {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: var(--radius-full);
	font-size: 0.875rem;
	font-weight: var(--font-weight-semibold);
	transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.topic-chip:hover {
	opacity: 0.75;
}

.topic-chip.is-active {
	background-color: var(--color-foreground);
	color: var(--color-background);
	opacity: 1;
}

/* チップ／バッジ内のアイコン
   絵文字・Font Awesome・アップロード画像のいずれにも対応します。 */
.topic-chip__emoji,
.cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 0.75rem;
	line-height: 1;
}

.cat-icon--fa {
	font-size: 0.8125rem;
}

.cat-icon--image {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	object-fit: cover;
}

.cat-icon--sm {
	font-size: 0.625rem;
}

.cat-icon--sm.cat-icon--image {
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

.topic-chip__name {
	white-space: nowrap;
}

/* トピックカラーバリエーション */
.topic-chip--bitcoin,
.badge--bitcoin { background-color: var(--color-orange-100); color: var(--color-orange-700); }
.topic-chip--tradingview,
.badge--tradingview { background-color: var(--color-blue-100); color: var(--color-blue-700); }
.topic-chip--indicator,
.badge--indicator { background-color: var(--color-green-100); color: var(--color-green-700); }
.topic-chip--defi,
.badge--defi { background-color: var(--color-purple-100); color: var(--color-purple-700); }
.topic-chip--altcoin,
.badge--altcoin { background-color: var(--color-yellow-100); color: var(--color-yellow-700); }
.topic-chip--market,
.badge--market { background-color: var(--color-cyan-100); color: var(--color-cyan-700); }
.topic-chip--column,
.badge--column { background-color: var(--color-rose-100); color: var(--color-rose-600); }
.topic-chip--news,
.badge--news { background-color: var(--color-slate-100); color: var(--color-slate-700); }
.badge--default,
.topic-chip--default { background-color: var(--color-gray-100); color: var(--color-gray-700); }

/* -----------------------------------------------------------------
   カテゴリー編集画面で設定したカスタムカラー
   `.cat-term-{ID}` に --cat-bg / --cat-fg が出力され（functions.php →
   wp_add_inline_style）、トピックチップ・投稿一覧のバッジ・記事詳細の
   バッジ・注目記事のバッジすべてに同じ配色が適用されます。
   選択中のチップ（.is-active）は反転表示を優先します。
   ----------------------------------------------------------------- */
.has-cat-color:not(.is-active) {
	background-color: var(--cat-bg, var(--color-gray-100));
	color: var(--cat-fg, var(--color-gray-700));
}

/* トピック説明の吹き出し */
.topic-tooltip-wrap {
	padding-bottom: 16px;
}

.topic-tooltip {
	position: relative;
	background-color: var(--color-foreground);
	color: var(--color-background);
	border-radius: var(--radius-xl);
	padding: 12px 16px;
	font-size: 0.875rem;
	line-height: 1.625;
}

/* 三角形の水平位置は header.js がクリックされたチップの中心に合わせて
   left をピクセル単位で設定します（初期値は 24px）。 */
.topic-tooltip__triangle {
	position: absolute;
	top: -8px;
	left: 24px;
	width: 16px;
	height: 16px;
	background-color: var(--color-foreground);
	transform: translateX(-50%) rotate(45deg);
	border-radius: 2px;
}

.topic-tooltip__name {
	font-weight: var(--font-weight-bold);
}

.topic-tooltip__dash {
	opacity: 0.7;
}

.topic-tooltip__desc {
	opacity: 0.8;
}


.topic-tooltip-wrap[hidden] {
	display: none;
}

/* 現在地に対応するチップが無い場合（既定の説明文を表示中）は
   三角形の指し先が無いため非表示にします。 */
.topic-tooltip__triangle.is-hidden {
	display: none;
}

/* ホバーで内容が切り替わるときの座りを良くする */
.topic-tooltip {
	transition: none;
}

.topic-tooltip__name {
	font-weight: var(--font-weight-bold);
}

/* =========================================================
   7. メインコンテンツレイアウト
   ========================================================= */
#main-content,
.content-wrap {
	padding-top: 32px;
	padding-bottom: 32px;
}

/* minmax(0, 1fr) にすることで、左カラムの内容（長いタイトル・
   pre・表・埋め込みなど）がカラム幅を押し広げず、
   サイドバーが右にはみ出さないようにしています。 */
.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

@media (min-width: 1024px) {
	.content-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
	}
}

/* =========================================================
   8. 投稿カードグリッド（.post-grid）
   ========================================================= */
.post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

@media (min-width: 640px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-card {
	background-color: var(--color-card);
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: background-color 0.2s ease;
}

.post-card:hover {
	background-color: rgba(255, 255, 255, 0.8);
}

.post-card:hover .post-card__thumb img {
	transform: scale(1.05);
}

.post-card:hover .post-card__title a {
	color: var(--color-primary);
}

.post-card__thumb {
	position: relative;
	overflow: hidden;
	background-color: var(--color-muted);
	aspect-ratio: 16 / 9;
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	gap: 6px;
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: var(--radius-full);
	font-size: 10px;
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.02em;
}

.post-card__body {
	padding: 16px;
}

.post-card__date {
	font-size: 11px;
	color: var(--color-muted-foreground);
	font-weight: var(--font-weight-medium);
	margin-bottom: 8px;
}

.post-card__title {
	font-weight: var(--font-weight-bold);
	font-size: 0.875rem;
	line-height: 1.375;
	margin-bottom: 8px;
	color: var(--color-foreground);
}

.post-card__title a {
	transition: color 0.15s ease;
}

.post-card__excerpt {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
}

/* =========================================================
   9. ページネーション
   ========================================================= */
.pagination-nav,
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.pagination__btn {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-full);
	background-color: var(--color-card);
	color: var(--color-muted-foreground);
	font-size: 0.875rem;
	font-weight: var(--font-weight-semibold);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.pagination__btn:hover {
	color: var(--color-foreground);
}

.pagination__btn:disabled,
.pagination__btn.is-disabled {
	opacity: 0.3;
	pointer-events: none;
}

.pagination__btn.is-active {
	background-color: var(--color-foreground);
	color: var(--color-background);
}

.pagination__btn svg,
.pagination__btn .icon {
	width: 16px;
	height: 16px;
}

.pagination__ellipsis {
	color: var(--color-muted-foreground);
	font-size: 0.875rem;
	padding: 0 4px;
}

/* =========================================================
   10. サイドバー（widget-area）
   ========================================================= */
/* 重要：ここを 1fr（= minmax(auto, 1fr)）にすると、
   auto最小値が中身の min-content（「注目記事」の画像は固有幅400px）で
   決まるため、300pxのカラムを超えてサイドバーが右にはみ出します。
   minmax(0, 1fr) にして最小値を0にすることで枠内に収めます。 */
#secondary,
.sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	align-content: start;
	min-width: 0;
	max-width: 100%;
}

#secondary > *,
.sidebar > * {
	min-width: 0;
	max-width: 100%;
}

/* 画像の固有幅がカラム幅を押し広げないようにする */
#secondary img,
.sidebar img {
	max-width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	#secondary,
	.sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	#secondary,
	.sidebar {
		grid-template-columns: minmax(0, 1fr);
	}
}

.widget,
.widget-card {
	background-color: var(--color-card);
	border-radius: var(--radius-xl);
	padding: 20px;
}

.widget-title,
.widget-card__label {
	font-size: 10px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-weight: var(--font-weight-semibold);
	margin-bottom: 16px;
}

/* About ウィジェット */
.about-widget__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.about-widget__avatar {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-full);
	background-color: var(--color-orange-100);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--color-accent);
	font-weight: var(--font-weight-black);
	font-size: 1.125rem;
}

.about-widget__name {
	font-weight: var(--font-weight-bold);
	font-size: 0.875rem;
	color: var(--color-foreground);
}

.about-widget__tagline {
	font-size: 11px;
	color: var(--color-muted-foreground);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.about-widget__desc {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
	margin-bottom: 12px;
}

.about-widget__location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}

.about-widget__location svg,
.about-widget__location .icon {
	width: 12px;
	height: 12px;
}

/* 注目記事ウィジェット */
.featured-widget__media {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.featured-widget__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-widget__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2) 60%, transparent);
}

.featured-widget__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px;
}

.featured-widget__badge {
	display: inline-block;
	padding: 2px 8px;
	background-color: var(--color-orange-500);
	color: #fff;
	font-size: 10px;
	font-weight: var(--font-weight-bold);
	border-radius: var(--radius-full);
	letter-spacing: 0.02em;
	margin-bottom: 8px;
}

.featured-widget__title {
	color: #fff;
	font-size: 0.875rem;
	font-weight: var(--font-weight-bold);
	line-height: 1.375;
}

/* 運営者について（経歴）ウィジェット */
.experience-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.experience-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.experience-item__role {
	font-weight: var(--font-weight-bold);
	font-size: 0.875rem;
	color: var(--color-foreground);
}

.experience-item__company {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
}

.experience-item__period {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	white-space: nowrap;
}

/* 使用ツールウィジェット */
.tools-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tool-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tool-item__icon {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 1rem;
}

.tool-item__icon--blue { background-color: var(--color-blue-100); }
.tool-item__icon--green { background-color: var(--color-green-100); }
.tool-item__icon--yellow { background-color: var(--color-yellow-100); }
.tool-item__icon--purple { background-color: var(--color-purple-100); }

.tool-item__name {
	font-size: 0.875rem;
	font-weight: var(--font-weight-semibold);
	color: var(--color-foreground);
}

.tool-item__desc {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
}

/* コンテンツシリーズウィジェット */
.series-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.series-item__title {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.875rem;
	font-weight: var(--font-weight-semibold);
	color: var(--color-primary);
	margin-bottom: 4px;
}

.series-item__title:hover {
	text-decoration: underline;
}

.series-item__title svg,
.series-item__title .icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.series-item__desc {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
}

/* =========================================================
   11. コラムセクション（.column-section）
   ========================================================= */
/* 背景色・差し色は、指定したカテゴリーに色設定がある場合
   index.php からCSS変数（--column-bg / --column-accent）で上書きされます。 */
.column-section {
	background-color: var(--column-bg, var(--color-rose-50));
	/* 左右の余白は .column-section__inner（共通コンテナ）側で持たせる */
	padding: 40px 0;
}

.column-section__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.column-section__icon {
	display: inline-flex;
	align-items: center;
	color: var(--column-accent, var(--color-rose-500));
	font-size: 1.125rem;
	line-height: 1;
}

.column-section__icon .cat-icon--image {
	width: 20px;
	height: 20px;
}

.column-section__title {
	font-weight: var(--font-weight-extrabold);
	font-size: 1.125rem;
	color: var(--color-foreground);
}

.column-section__line {
	flex: 1;
	height: 1px;
	background-color: var(--color-rose-200);
}

.column-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.column-item {
	display: flex;
	align-items: center;
	gap: 16px;
	background-color: #fff;
	border-radius: var(--radius-xl);
	padding: 12px;
	transition: background-color 0.15s ease;
}

.column-item:hover {
	background-color: var(--color-rose-50);
}

.column-item:hover .column-item__thumb img {
	transform: scale(1.05);
}

.column-item:hover .column-item__title {
	color: var(--color-rose-600);
}

.column-item:hover .column-item__arrow {
	color: var(--color-rose-500);
	transform: translateX(2px);
}

.column-item__thumb {
	flex-shrink: 0;
	width: 80px;
	height: 56px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--color-rose-100);
}

@media (min-width: 640px) {
	.column-item__thumb {
		width: 96px;
		height: 64px;
	}
}

.column-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.column-item__body {
	flex: 1;
	min-width: 0;
}

.column-item__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.column-item__index {
	font-size: 10px;
	font-weight: var(--font-weight-bold);
	color: var(--column-accent, var(--color-rose-500));
	font-variant-numeric: tabular-nums;
}

.column-item__date {
	font-size: 10px;
	color: var(--color-muted-foreground);
	font-weight: var(--font-weight-medium);
}

.column-item__title {
	font-weight: var(--font-weight-bold);
	font-size: 0.875rem;
	line-height: 1.375;
	color: var(--color-foreground);
	transition: color 0.15s ease;
}

.column-item__excerpt {
	display: none;
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
	margin-top: 4px;
}

@media (min-width: 640px) {
	.column-item__excerpt {
		display: block;
	}
}

.column-item__arrow {
	width: 16px;
	height: 16px;
	color: var(--color-rose-300);
	flex-shrink: 0;
	transition: color 0.15s ease, transform 0.15s ease;
}

.column-more-wrap {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
}

.column-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background-color: var(--column-accent, var(--color-rose-500));
	color: #fff;
	font-size: 0.875rem;
	font-weight: var(--font-weight-bold);
	border-radius: var(--radius-full);
	transition: background-color 0.15s ease;
}

.column-more:hover {
	background-color: var(--column-accent, var(--color-rose-600));
	filter: brightness(0.92);
}

.column-more svg,
.column-more .icon {
	width: 16px;
	height: 16px;
}

/* =========================================================
   12. サイトフッター（#site-footer）
   ========================================================= */
#site-footer {
	background-color: var(--color-foreground);
	color: var(--color-background);
	/* 左右の余白は .footer-inner／.footer-bottom（共通コンテナ）側で持たせる */
	padding: 40px 0;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (min-width: 768px) {
	.footer-inner {
		grid-template-columns: 280px minmax(0, 1fr);
	}
}

.footer-brand-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.footer-brand-row .brand__icon {
	width: 24px;
	height: 24px;
}

/* フッターロゴ */
.footer-logo-link {
	display: inline-flex;
	align-items: center;
}

.footer-logo {
	height: var(--footer-logo-height, 24px);
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

.footer-desc {
	font-size: 0.75rem;
	opacity: 0.5;
	line-height: 1.625;
	margin-bottom: 20px;
	max-width: 240px;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.footer-col__label {
	font-size: 10px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.4;
	margin-bottom: 16px;
	font-weight: var(--font-weight-semibold);
}

.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-col a {
	font-size: 0.75rem;
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.footer-col a:hover {
	opacity: 1;
}

.footer-bottom {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
	font-size: 11px;
	opacity: 0.3;
	text-align: center;
}

/* =========================================================
   13. 汎用ページ（404・検索結果・アーカイブなど暫定スタイル）
   後続のテンプレート実装時に随時デザインを合わせ込みます
   ========================================================= */
.page-header {
	padding-top: 32px;
	padding-bottom: 0;
}

.page-title {
	font-weight: var(--font-weight-extrabold);
	font-size: 1.5rem;
	color: var(--color-foreground);
}

.page-content,
.entry-content {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 20px;
	color: var(--color-foreground);
	line-height: 1.75;
}

.entry-content a {
	color: var(--color-primary);
	text-decoration: underline;
}

/* =========================================================
   14. 記事詳細・固定ページ共通（.article-card / .page-card）
   single.php / page.php で使用。
   ホームの投稿カード・サイドバーウィジェットと同じ
   「白背景・角丸・余白」のカードUIパターンを踏襲しています。
   ========================================================= */
.article-card,
.page-card {
	background-color: var(--color-card);
	border-radius: var(--radius-xl);
	padding: 20px;
}

@media (min-width: 768px) {
	.article-card,
	.page-card {
		padding: 32px;
	}
}

.page-card {
	max-width: 840px;
	margin: 0 auto;
}

/* カード内にネストする .entry-content は外枠の余白と重複させない */
.article-card .entry-content,
.page-card .entry-content {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* 記事ヘッダー（バッジ・タイトル・メタ情報） */
.entry-header {
	margin-bottom: 20px;
}

.entry-title {
	font-weight: var(--font-weight-extrabold);
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--color-foreground);
	margin-bottom: 12px;
}

@media (min-width: 768px) {
	.entry-title {
		font-size: 2rem;
	}
}

.page-card .entry-header {
	margin-bottom: 24px;
}

.entry-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.entry-badges .badge,
.entry-tags .badge {
	transition: opacity 0.15s ease;
}

.entry-badges .badge:hover,
.entry-tags .badge:hover {
	opacity: 0.8;
}

.entry-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--color-muted-foreground);
	font-weight: var(--font-weight-medium);
}

.entry-meta__sep {
	opacity: 0.5;
}

/* アイキャッチ画像（widget-card内の featured-widget__media と同じ、
   カード内にネストする角丸メディアのパターン） */
.entry-thumbnail {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--color-muted);
	aspect-ratio: 16 / 9;
	margin-bottom: 24px;
}

.entry-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 本文タイポグラフィ（the_content() 内の要素） */
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content figure {
	margin-bottom: 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-weight: var(--font-weight-bold);
	color: var(--color-foreground);
	margin-top: 1.75em;
	margin-bottom: 0.75em;
}

.entry-content h2 { font-size: 1.375rem; }
.entry-content h3 { font-size: 1.125rem; }
.entry-content h4 { font-size: 1rem; }

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
	margin-bottom: 0.5em;
}

.entry-content blockquote {
	border-left: 3px solid var(--color-accent);
	padding: 4px 0 4px 16px;
	color: var(--color-muted-foreground);
	font-style: italic;
}

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

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--color-border);
	padding: 8px 12px;
	text-align: left;
}

.entry-content code {
	background-color: var(--color-muted);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.85em;
}

.entry-content pre {
	background-color: var(--color-foreground);
	color: var(--color-background);
	padding: 16px;
	border-radius: var(--radius-lg);
	overflow-x: auto;
	margin-bottom: 1.25em;
}

.entry-content pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.page-links {
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 0.875rem;
}

.page-links a {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: var(--radius-md);
	background-color: var(--color-muted);
}

/* タグ一覧 */
.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

/* 著者ボックス（カード内、上部をボーダーで区切り） */
.entry-author {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
}

.entry-author__avatar {
	flex-shrink: 0;
}

.entry-author__avatar img {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-full);
	display: block;
}

.entry-author__name {
	font-weight: var(--font-weight-bold);
	font-size: 0.9375rem;
	color: var(--color-foreground);
	margin-bottom: 4px;
}

.entry-author__bio {
	font-size: 0.8125rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
}

/* =========================================================
   15. 前後の記事ナビゲーション（.post-nav）
   ページネーションボタンと同じ「カード浮遊」パターン
   ========================================================= */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 20px;
}

.post-nav__link {
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: var(--color-card);
	border-radius: var(--radius-xl);
	padding: 16px;
	transition: background-color 0.15s ease;
}

.post-nav__link:hover {
	background-color: rgba(255, 255, 255, 0.8);
}

.post-nav__link--next {
	grid-column: 2;
	justify-content: flex-end;
	text-align: right;
}

.post-nav__link svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: var(--color-muted-foreground);
}

.post-nav__label {
	display: block;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-weight: var(--font-weight-semibold);
	margin-bottom: 2px;
}

.post-nav__title {
	display: block;
	font-size: 0.8125rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-foreground);
	line-height: 1.375;
}

@media (max-width: 639px) {
	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-nav__link--next {
		grid-column: 1;
	}
}

/* =========================================================
   16. アーカイブ説明文
   ========================================================= */
.archive-description {
	margin-top: 8px;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
}

/* =========================================================
   17. コメントエリア（comments.php）
   ========================================================= */
#comments {
	margin-top: 24px;
}

.comments-title,
.comment-reply-title {
	font-weight: var(--font-weight-extrabold);
	font-size: 1.125rem;
	color: var(--color-foreground);
	margin-bottom: 16px;
}

.comment-reply-title small a {
	margin-left: 8px;
	font-size: 0.75rem;
	font-weight: var(--font-weight-medium);
	color: var(--color-primary);
	text-decoration: underline;
}

.comment-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

.comment-list .children {
	margin-top: 12px;
	margin-left: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.comment-body {
	background-color: var(--color-card);
	border-radius: var(--radius-lg);
	padding: 16px;
}

.comment-author.vcard {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.comment-author .avatar {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-full);
}

.comment-author .fn {
	font-style: normal;
	font-weight: var(--font-weight-bold);
	font-size: 0.875rem;
	color: var(--color-foreground);
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 0.75rem;
	margin-bottom: 10px;
}

.comment-metadata a {
	color: var(--color-muted-foreground);
}

.comment-content p {
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--color-foreground);
	margin-bottom: 0.75em;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment .reply {
	margin-top: 10px;
}

.comment .reply a,
.comment-reply-link {
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
}

.comment .reply a:hover,
.comment-reply-link:hover {
	text-decoration: underline;
}

.no-comments {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	margin-bottom: 16px;
}

.comment-respond {
	background-color: var(--color-card);
	border-radius: var(--radius-xl);
	padding: 20px;
}

.comment-form p {
	margin-bottom: 16px;
}

.comment-form label {
	display: block;
	font-size: 0.8125rem;
	font-weight: var(--font-weight-medium);
	color: var(--color-foreground);
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: none;
	border-radius: var(--radius-md);
	background-color: var(--color-input-background);
	padding: 10px 14px;
	font-size: 0.875rem;
	color: var(--color-foreground);
}

.comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid var(--color-ring);
	outline-offset: 2px;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
}

.comment-form-cookies-consent label {
	margin-bottom: 0;
}

.form-submit {
	margin-bottom: 0;
}

.form-submit #submit,
.comment-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	padding: 10px 24px;
	background-color: var(--color-accent);
	color: var(--color-accent-foreground);
	font-size: 0.875rem;
	font-weight: var(--font-weight-bold);
	border-radius: var(--radius-full);
	transition: background-color 0.15s ease;
}

.form-submit #submit:hover,
.comment-form input[type="submit"]:hover {
	background-color: rgba(247, 147, 26, 0.9);
}

/* the_comments_navigation() のデフォルト出力（.comments-pagination .page-numbers）を
   投稿ページネーション（.pagination__btn）と同じ見た目に合わせる */
.comments-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.comments-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: var(--radius-full);
	background-color: var(--color-card);
	color: var(--color-muted-foreground);
	font-size: 0.875rem;
	font-weight: var(--font-weight-semibold);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.comments-pagination .page-numbers:hover {
	color: var(--color-foreground);
}

.comments-pagination .page-numbers.current {
	background-color: var(--color-foreground);
	color: var(--color-background);
}

.comments-pagination .page-numbers.dots {
	background: none;
}

.comments-pagination .prev,
.comments-pagination .next {
	padding: 0 16px;
}

/* =========================================================
   18. 検索結果ページ（search.php）
   ========================================================= */
.search-term {
	color: var(--color-primary);
}

.no-results-card {
	text-align: center;
}

.no-results-card__text {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
	margin-bottom: 16px;
}

.no-results-card .search-form {
	max-width: 420px;
	margin: 0 auto;
}

/* =========================================================
   19. 404ページ（404.php）
   ========================================================= */
.not-found-card {
	max-width: 640px;
	text-align: center;
}

.not-found-card__code {
	font-size: 3rem;
	font-weight: var(--font-weight-black);
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 8px;
}

.not-found-card .entry-content {
	margin-bottom: 24px;
}

.not-found-card .entry-content p:last-child {
	margin-bottom: 0;
}

.not-found-card__search {
	max-width: 420px;
	margin: 0 auto 20px;
}

.not-found-card__actions {
	display: flex;
	justify-content: center;
}

/* page.php で comments_template() を呼び出す際、
   .page-card（幅840px）と同じ読みやすい幅に揃える */
.page-comments-wrap {
	max-width: 840px;
	margin: 24px auto 0;
}
