/*
 * Blog and Archive Styles for raku2hp theme
 * ブログ・アーカイブページ用スタイル
 * 添付画像を参考にしたモダンデザイン
 * カラートーン: #4169e1, #6a5acd を維持
 */

/* Debug: この行が表示されればCSS読み込み成功 */
body.blog,
body.single-post,
body.archive,
body.search {
	background: #fafbfc !important;
}

/* Reset & Base */
* {
	box-sizing: border-box;
}

/* すべてのリンクからアンダーライン（下線）を削除 */
a {
	text-decoration: none;
}

/* Blog Container */
.blog-container {
	background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 50%, #fafbfc 100%);
	min-height: 100vh;
	padding-top: 70px; /* ヘッダー分のオフセット */
	position: relative;
	overflow: hidden;
}

.blog-container::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: radial-gradient(circle at 20% 20%, rgba(65, 105, 225, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(106, 90, 205, 0.03) 0%, transparent 50%), radial-gradient(circle at 40% 60%, rgba(65, 105, 225, 0.02) 0%, transparent 50%);
	pointer-events: none;
	z-index: -1;
}

/* Blog Header */
.blog-header {
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	padding: 80px 0 50px;
	margin-bottom: 50px;
	border-radius: 0 0 32px 32px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
	position: relative;
	overflow: hidden;
}

.blog-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #4169e1, #6a5acd, #4169e1);
	background-size: 200% 100%;
	animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
	0%,
	100% {
		background-position: 200% 0;
	}
	50% {
		background-position: -200% 0;
	}
}

.blog-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: center;
}

.blog-title {
	font-size: 2.8rem;
	font-weight: 800;
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 20px;
	font-family: 'Noto Sans JP', sans-serif;
	text-shadow: 0 2px 4px rgba(65, 105, 225, 0.1);
}

.blog-description {
	font-size: 1.1rem;
	color: #64748b;
	line-height: 1.6;
	max-width: 600px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.blog-header {
		padding: 60px 0 40px;
		border-radius: 0 0 20px 20px;
	}

	.blog-title {
		font-size: 1.8rem;
	}

	.blog-description {
		font-size: 1rem;
	}
}

/* Main Layout */
.blog-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	margin-bottom: 60px;
}

@media (max-width: 1024px) {
	.blog-main {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* Post Grid */
.posts-container {
	min-width: 0; /* prevent overflow */
}

.post-grid {
	display: grid;
	gap: 24px;
}

/* Post Card - より華やかなデザイン */
.post-card {
	background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.4s ease;
	border: 1px solid rgba(226, 232, 240, 0.8);
	position: relative;
}

.post-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #4169e1, #6a5acd);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.post-card:hover::before {
	opacity: 1;
}

.post-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(65, 105, 225, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: rgba(65, 105, 225, 0.3);
}

/* Post Thumbnail */
.post-thumbnail {
	aspect-ratio: 16/9;
	overflow: hidden;
	background: linear-gradient(135deg, #f8fafc, #e2e8f0);
	position: relative;
}

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

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

.post-thumbnail-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #94a3b8;
	font-size: 0.9rem;
	font-weight: 500;
	flex-direction: column;
	gap: 8px;
	transition: all 0.3s ease;
}

.post-thumbnail-placeholder::before {
	content: '📝';
	font-size: 2rem;
	opacity: 0.6;
	transition: all 0.3s ease;
}

/* プレースホルダーのホバー効果 */
a:hover .post-thumbnail-placeholder {
	color: #4169e1;
	background-color: rgba(65, 105, 225, 0.05);
}

a:hover .post-thumbnail-placeholder::before {
	opacity: 0.8;
	transform: scale(1.1);
}

/* Post Content */
.post-content {
	padding: 28px 32px 32px;
	position: relative;
}

.post-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 30px;
	height: 2px;
	background: linear-gradient(90deg, #4169e1, #6a5acd);
	border-radius: 1px;
	opacity: 0.6;
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 0.85rem;
}

.post-date {
	color: #64748b;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}



.post-category {
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	color: white;
	padding: 6px 16px;
	border-radius: 15px;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
	position: relative;
	overflow: hidden;
}

.post-category::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.post-category:hover::before {
	left: 100%;
}

.post-category:hover {
	background: linear-gradient(135deg, #2c54c7, #5a4ba8);
	color: white;
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

.post-title {
	margin: 0 0 12px 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	font-family: 'Noto Sans JP', sans-serif;
}

.post-title a {
	color: #1a202c;
	text-decoration: none;
	transition: color 0.3s ease;
}

.post-title a:hover {
	color: #4169e1;
}

.post-excerpt {
	color: #4a5568;
	line-height: 1.6;
	margin-bottom: 16px;
	font-size: 0.95rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-read-more {
	color: #4169e1;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
	padding: 10px 20px;
	border-radius: 25px;
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.1), rgba(106, 90, 205, 0.1));
	border: 2px solid rgba(65, 105, 225, 0.2);
	position: relative;
	overflow: hidden;
}

.post-read-more::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	transition: left 0.3s ease;
	z-index: -1;
}

.post-read-more:hover::before {
	left: 0;
}

.post-read-more:hover {
	color: white;
	gap: 12px;
	transform: translateY(-2px);
	border-color: transparent;
	box-shadow: 0 6px 20px rgba(65, 105, 225, 0.3);
}

.post-read-more::after {
	content: '→';
	transition: transform 0.3s ease;
	font-weight: bold;
}

.post-read-more:hover::after {
	transform: translateX(4px);
}

/* Sidebar - より華やかなデザイン */
.blog-sidebar {
	background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
	border-radius: 24px;
	padding: 36px 28px;
	height: fit-content;
	position: sticky;
	top: 90px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(226, 232, 240, 0.8);
	backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
	.blog-sidebar {
		position: static;
		margin-top: 30px;
	}
}

.sidebar-widget {
	margin-bottom: 32px;
}

.sidebar-widget:last-child {
	margin-bottom: 0;
}

.sidebar-widget-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: #1a202c;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 3px solid transparent;
	background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #4169e1, #6a5acd) border-box;
	border-bottom: 3px solid transparent;
	background-clip: padding-box, border-box;
	font-family: 'Noto Sans JP', sans-serif;
	position: relative;
}

.sidebar-widget-title::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 50px;
	height: 3px;
	background: linear-gradient(135deg, #6a5acd, #4169e1);
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(65, 105, 225, 0.3);
}

/* Search Form */
.search-form {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
}

.search-form input[type='search'] {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 0.95rem;
	transition: border-color 0.3s ease;
}

.search-form input[type='search']:focus {
	outline: none;
	border-color: #4169e1;
	box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.search-form button {
	padding: 12px 20px;
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
}

.search-form button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

/* Widget Lists */
.sidebar-widget ul {
	list-style: none;
	padding: 0;
}

.sidebar-widget li {
	margin-bottom: 12px;
}

.sidebar-widget a {
	color: #4a5568;
	text-decoration: none;
	display: block;
	padding: 12px 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	transition: all 0.3s ease;
	font-weight: 500;
	font-size: 0.9rem;
	border: 1px solid transparent;
	position: relative;
	overflow: hidden;
}

.sidebar-widget a::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.1), rgba(106, 90, 205, 0.1));
	transition: left 0.3s ease;
}

.sidebar-widget a:hover::before {
	left: 0;
}

.sidebar-widget a:hover {
	color: #4169e1;
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.08), rgba(106, 90, 205, 0.08));
	border-color: rgba(65, 105, 225, 0.2);
	transform: translateX(6px);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
}

/* WordPress標準ウィジェット用スタイル */

/* ウィジェット基本スタイル */
.blog-sidebar .widget {
	background: transparent;
	border: none;
	box-shadow: none;
	margin-bottom: 36px;
	padding: 0;
}

.blog-sidebar .widget:last-child {
	margin-bottom: 0;
}

/* ウィジェットタイトル */
.blog-sidebar .widget-title,
.blog-sidebar .widgettitle {
	font-size: 1.2rem;
	font-weight: 800;
	color: #1a202c;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 3px solid #4169e1;
	font-family: 'Noto Sans JP', sans-serif;
	position: relative;
	background: none;
}

.blog-sidebar .widget-title::after,
.blog-sidebar .widgettitle::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 50px;
	height: 3px;
	background: linear-gradient(135deg, #6a5acd, #4169e1);
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(65, 105, 225, 0.3);
}

/* 検索ウィジェット */
.blog-sidebar .widget_search .search-form {
	display: flex;
	gap: 8px;
	margin-bottom: 0;
}

.blog-sidebar .widget_search input[type='search'] {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 0.95rem;
	transition: border-color 0.3s ease;
	background: white;
}

.blog-sidebar .widget_search input[type='search']:focus {
	outline: none;
	border-color: #4169e1;
	box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.blog-sidebar .widget_search button,
.blog-sidebar .widget_search input[type='submit'] {
	padding: 12px 20px;
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
}

.blog-sidebar .widget_search button:hover,
.blog-sidebar .widget_search input[type='submit']:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

/* カテゴリーウィジェット */
.blog-sidebar .widget_categories ul,
.blog-sidebar .widget_archive ul,
.blog-sidebar .widget_recent_entries ul,
.blog-sidebar .widget_pages ul,
.blog-sidebar .widget_nav_menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-sidebar .widget_categories li,
.blog-sidebar .widget_archive li,
.blog-sidebar .widget_recent_entries li,
.blog-sidebar .widget_pages li,
.blog-sidebar .widget_nav_menu li {
	margin-bottom: 8px;
}

/* カテゴリーウィジェット - 統一されたスタイルで上記で定義済み */

/* その他のウィジェット（アーカイブ、最新記事など）のスタイル */
.blog-sidebar .widget_archive a,
.blog-sidebar .widget_recent_entries a,
.blog-sidebar .widget_pages a,
.blog-sidebar .widget_nav_menu a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	border-radius: 10px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	color: #4a5568;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.blog-sidebar .widget_archive a:hover,
.blog-sidebar .widget_recent_entries a:hover,
.blog-sidebar .widget_pages a:hover,
.blog-sidebar .widget_nav_menu a:hover {
	color: #4169e1;
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.08), rgba(106, 90, 205, 0.08));
	border-color: rgba(65, 105, 225, 0.2);
	transform: translateX(4px);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
}

/* カテゴリー・アーカイブの投稿数 - 統一スタイル */
.blog-sidebar .widget_categories .count,
.blog-sidebar .widget_archive .count,
.blog-sidebar .wp-block-categories-list .count {
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	color: white;
	font-size: 0.7rem;
	padding: 4px 8px;
	border-radius: 12px;
	font-weight: 700;
	margin-left: 8px;
	min-width: 20px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(65, 105, 225, 0.3);
	position: relative;
	z-index: 2;
	display: inline-block;
}

/* カテゴリーリンク - 通常とcurrent-cat両方に適用 */
.blog-sidebar .widget_categories a,
.blog-sidebar .widget_categories .current-cat a,
.blog-sidebar .wp-block-categories-list .cat-item a,
.blog-sidebar .wp-block-categories-list .current-cat a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	border-radius: 10px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	color: #4a5568;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

/* current-catクラス - 選択中の特別なスタイル */
.blog-sidebar .widget_categories .current-cat a,
.blog-sidebar .wp-block-categories-list .current-cat a {
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.12), rgba(106, 90, 205, 0.12));
	border: 1px solid rgba(65, 105, 225, 0.3);
	color: #4169e1;
	font-weight: 600;
	position: relative;
}

/* current-catクラスの「選択中」インジケーター */
.blog-sidebar .widget_categories .current-cat a::before,
.blog-sidebar .wp-block-categories-list .current-cat a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	border-radius: 0 2px 2px 0;
}

/* current-catクラスの投稿数 - 特別なスタイル */
.blog-sidebar .widget_categories .current-cat a .count,
.blog-sidebar .wp-block-categories-list .current-cat a .count {
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	color: white;
	box-shadow: 0 2px 8px rgba(65, 105, 225, 0.4);
	transform: scale(1.05);
}

/* ホバー効果 - 通常とcurrent-cat両方に適用 */
.blog-sidebar .widget_categories a:hover,
.blog-sidebar .wp-block-categories-list .cat-item a:hover {
	color: #4169e1;
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.08), rgba(106, 90, 205, 0.08));
	border-color: rgba(65, 105, 225, 0.2);
	transform: translateX(4px);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
}

/* current-catクラスのホバー効果 - より強調 */
.blog-sidebar .widget_categories .current-cat a:hover,
.blog-sidebar .wp-block-categories-list .current-cat a:hover {
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.18), rgba(106, 90, 205, 0.18));
	border-color: rgba(65, 105, 225, 0.5);
	transform: translateX(2px);
	box-shadow: 0 6px 16px rgba(65, 105, 225, 0.25);
}

/* 投稿数のホバー効果 - 通常とcurrent-cat両方に適用 */
.blog-sidebar .widget_categories a:hover .count,
.blog-sidebar .wp-block-categories-list .cat-item a:hover .count {
	background: linear-gradient(135deg, #2c54c7, #5a4ba8);
	transform: scale(1.1);
	box-shadow: 0 3px 8px rgba(65, 105, 225, 0.4);
}

/* current-catクラスの投稿数ホバー効果 - より強調 */
.blog-sidebar .widget_categories .current-cat a:hover .count,
.blog-sidebar .wp-block-categories-list .current-cat a:hover .count {
	background: linear-gradient(135deg, #1e40af, #4338ca);
	transform: scale(1.15);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.5);
}

/* Gutenberg ブロックウィジェット用スタイル */

/* ブロックウィジェットの基本スタイル */
.blog-sidebar .widget_block {
	background: transparent;
	border: none;
	box-shadow: none;
	margin-bottom: 36px;
	padding: 0;
}

.blog-sidebar .widget_block:last-child {
	margin-bottom: 0;
}

/* wp-block-group のスタイル */
.blog-sidebar .wp-block-group {
	background: transparent;
	padding: 0;
	margin: 0;
	border: none;
}

.blog-sidebar .wp-block-group__inner-container {
	padding: 0;
	margin: 0;
}

/* ブロック見出しのスタイル */
.blog-sidebar .wp-block-heading {
	font-size: 1.2rem;
	font-weight: 800;
	color: #1a202c;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 3px solid #4169e1;
	font-family: 'Noto Sans JP', sans-serif;
	position: relative;
	background: none;
	margin-top: 0;
}

.blog-sidebar .wp-block-heading::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 50px;
	height: 3px;
	background: linear-gradient(135deg, #6a5acd, #4169e1);
	border-radius: 2px;
	box-shadow: 0 2px 4px rgba(65, 105, 225, 0.3);
}

/* 最新記事ブロック */
.blog-sidebar .wp-block-latest-posts__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-sidebar .wp-block-latest-posts__list li {
	margin-bottom: 8px;
	display: block;
}

.blog-sidebar .wp-block-latest-posts__list li:last-child {
	margin-bottom: 0;
}

/* リンクスタイル */
.blog-sidebar .wp-block-latest-posts__list li a {
	display: block;
	padding: 12px 16px;
	background: #ffffff;
	border-radius: 8px;
	color: #2d3748;
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.5;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* アイキャッチ画像を非表示 */
.blog-sidebar .wp-block-latest-posts__featured-image {
	display: none;
}

/* タイトルスタイル */
.blog-sidebar .wp-block-latest-posts__post-title {
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	color: #2d3748;
	display: block;
}

/* ホバー効果 */
.blog-sidebar .wp-block-latest-posts__list li a:hover {
	background: #f8faff;
	border-color: #4169e1;
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
	transform: translateY(-2px);
}

.blog-sidebar .wp-block-latest-posts__list li a:hover .wp-block-latest-posts__post-title {
	color: #4169e1;
}

/* アーカイブブロック */
.blog-sidebar .wp-block-archives-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-sidebar .wp-block-archives-list li {
	margin-bottom: 6px;
}

.blog-sidebar .wp-block-archives-list a {
	display: block;
	padding: 8px 14px;
	color: #64748b;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.85rem;
	transition: all 0.2s ease;
	border-radius: 6px;
	border-left: 2px solid transparent;
}

/* アーカイブウィジェットのタイトル・ラベルを非表示 */
.blog-sidebar .wp-block-archives h2,
.blog-sidebar .wp-block-archives .wp-block-heading,
.blog-sidebar .wp-block-archives__label {
	display: none;
}

/* アーカイブドロップダウン */
.blog-sidebar .wp-block-archives-dropdown {
	margin-bottom: 20px;
}

.blog-sidebar .wp-block-archives-dropdown select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 0.95rem;
	background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
	color: #4a5568;
	font-weight: 500;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234169e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 40px;
}

.blog-sidebar .wp-block-archives-dropdown select:focus {
	outline: none;
	border-color: #4169e1;
	box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.blog-sidebar .wp-block-archives-dropdown select:hover {
	background-color: #f8faff;
	border-color: #4169e1;
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
}

/* ドロップダウンの選択済みオプション */
.blog-sidebar .wp-block-archives-dropdown select option:checked,
.blog-sidebar .wp-block-archives-dropdown select option:selected {
	background-color: #4169e1;
	color: white;
}

/* カテゴリーブロック */
.blog-sidebar .wp-block-categories-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-sidebar .wp-block-categories-list .cat-item {
	margin-bottom: 8px;
}

.blog-sidebar .wp-block-categories-list .cat-item a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	color: #4a5568;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	position: relative;
	overflow: hidden;
}

.blog-sidebar .wp-block-categories-list .cat-item a::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.1), rgba(106, 90, 205, 0.1));
	transition: left 0.3s ease;
}

.blog-sidebar .wp-block-categories-list .cat-item a:hover::before {
	left: 0;
}

.blog-sidebar .wp-block-categories-list .cat-item a:hover {
	color: #4169e1;
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.08), rgba(106, 90, 205, 0.08));
	border-color: rgba(65, 105, 225, 0.2);
	transform: translateX(6px);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
}

/* カテゴリーウィジェットの投稿数をspanスタイルで統一 - 削除された重複セクション */

/* Single Post Styles */
.single-post-header {
	background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
	padding: 50px 40px;
	border-radius: 20px;
	margin-bottom: 30px;
	text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	position: relative;
	overflow: hidden;
}

.single-post-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #4169e1, #6a5acd, #4169e1);
	background-size: 200% 100%;
	animation: shimmer 3s ease-in-out infinite;
}

.single-post-title {
	font-size: 2.4rem;
	font-weight: 800;
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 24px;
	line-height: 1.3;
	font-family: 'Noto Sans JP', sans-serif;
}

.single-post-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	color: #64748b;
	font-size: 0.95rem;
	flex-wrap: wrap;
}

.single-post-content {
	background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
	padding: 50px 40px;
	border-radius: 20px;
	line-height: 1.8;
	color: #2d3748;
	font-size: 1.1rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	margin-bottom: 40px;
}

.single-post-thumbnail {
	margin-bottom: 30px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	position: relative;
}

.single-post-thumbnail a {
	display: block;
	cursor: zoom-in;
}

.single-post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s ease;
}

.single-post-thumbnail:hover img {
	transform: scale(1.02);
}

.single-post-content h2 {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 40px 0 20px 0;
	color: #1a202c;
	padding-bottom: 12px;
	border-bottom: 3px solid #4169e1;
	font-family: 'Noto Sans JP', sans-serif;
	position: relative;
}

.single-post-content h2::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(135deg, #6a5acd, #4169e1);
	border-radius: 2px;
}

.single-post-content h3 {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 30px 0 16px 0;
	color: #2d3748;
	position: relative;
	padding-left: 20px;
}

.single-post-content h3::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 20px;
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	border-radius: 2px;
}

.single-post-content p {
	margin-bottom: 20px;
}

/* リストスタイルの修正 - マーカーがはみ出さないように */
.single-post-content ul,
.single-post-content ol {
	padding-left: 2rem;
	margin-bottom: 20px;
}

.single-post-content li {
	margin-bottom: 8px;
	position: relative;
}

.single-post-content ul {
	list-style-position: outside;
}

.single-post-content ol {
	list-style-position: outside;
}

.single-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 24px 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.single-post-content blockquote {
	background: #f8fafc;
	border-left: 4px solid #4169e1;
	padding: 20px 24px;
	margin: 24px 0;
	border-radius: 0 12px 12px 0;
	font-style: italic;
}

@media (max-width: 768px) {
	.blog-main {
		padding: 0 16px;
		gap: 24px;
	}

	.post-content {
		padding: 20px 24px 24px;
	}

	.blog-sidebar {
		padding: 24px 20px;
		border-radius: 16px;
	}

	.single-post-header {
		padding: 40px 24px;
		border-radius: 16px;
	}

	.single-post-title {
		font-size: 1.8rem;
		line-height: 1.4;
	}

	.single-post-content {
		padding: 32px 24px;
		border-radius: 16px;
		font-size: 1rem;
	}
	
	/* モバイル表示時のリスト調整 */
	.single-post-content ul,
	.single-post-content ol {
		padding-left: 1.5rem;
	}

	.comments-area {
		padding: 32px 24px;
		border-radius: 16px;
	}

	.nav-previous,
	.nav-next {
		padding: 20px;
	}
}

/* Pagination */
.blog-pagination {
	margin: 40px 0;
	text-align: center;
}

.pagination {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination a,
.pagination span {
	padding: 10px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	color: #4a5568;
	font-weight: 500;
	transition: all 0.3s ease;
	background: white;
	min-width: 40px;
	text-align: center;
}

.pagination a:hover {
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	color: white;
	border-color: transparent;
	transform: translateY(-1px);
}

.pagination .current {
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	color: white;
	border-color: transparent;
}

/* Archive Header */
.archive-header {
	background: white;
	padding: 60px 0 40px;
	margin-bottom: 40px;
	text-align: center;
	border-radius: 0 0 24px 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.archive-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 16px;
	font-family: 'Noto Sans JP', sans-serif;
}

/* モバイル向けアーカイブタイトル */
@media (max-width: 768px) {
	.archive-header {
		padding: 40px 0 30px;
	}
	
	.archive-title {
		font-size: 1.6rem;
	}
}

@media (max-width: 480px) {
	.archive-header {
		padding: 30px 0 20px;
	}
	
	.archive-title {
		font-size: 1.4rem;
	}
}

/* アーカイブタイトルから「月: 」を削除 */
.archive-title::before {
	content: '' !important;
}

/* アーカイブタイトルのテキスト調整用 */
.archive-title {
	position: relative;
}

.archive-description {
	font-size: 1.1rem;
	color: #64748b;
	line-height: 1.6;
}

/* Comments */
.comments-area {
	background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
	padding: 50px 40px;
	border-radius: 20px;
	margin: 40px 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	position: relative;
}

.comments-area::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #4169e1, #6a5acd);
	border-radius: 2px;
}

.comments-title {
	font-size: 1.8rem;
	font-weight: 800;
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 32px;
	font-family: 'Noto Sans JP', sans-serif;
	text-align: center;
}

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

.comment {
	padding: 24px 0;
	border-bottom: 1px solid #f1f5f9;
}

.comment:last-child {
	border-bottom: none;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.comment-author {
	font-weight: 600;
	color: #4169e1;
}

.comment-date {
	color: #64748b;
	font-size: 0.9rem;
}

.comment-content {
	color: #4a5568;
	line-height: 1.6;
}

/* Comment Form */
.comment-respond {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid #f1f5f9;
}

.comment-reply-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 24px;
}

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

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #374151;
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.95rem;
	transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: #4169e1;
	box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

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

.comment-form input[type='submit'] {
	background: linear-gradient(135deg, #4169e1, #6a5acd);
	color: white;
	border: none;
	padding: 12px 32px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: auto;
}

.comment-form input[type='submit']:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

/* Post Navigation */
.post-navigation {
	margin: 40px 0;
}

.nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

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

/* 前後記事ナビゲーションリンク - 正しくリンクするよう修正 */
.nav-previous,
.nav-next,
.nav-previous a,
.nav-next a {
	background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
	padding: 24px;
	border-radius: 16px;
	text-decoration: none;
	color: #2d3748;
	transition: all 0.3s ease;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(226, 232, 240, 0.8);
	position: relative;
	overflow: hidden;
	display: block;
}

/* a要素がネストされている場合は余計なスタイルを削除 */
.nav-previous a,
.nav-next a {
	padding: 0;
	border-radius: 0;
	box-shadow: none;
	border: none;
	background: transparent;
}

.nav-previous::before,
.nav-next::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(65, 105, 225, 0.05), rgba(106, 90, 205, 0.05));
	transition: left 0.3s ease;
	z-index: 0;
}

.nav-previous:hover::before,
.nav-next:hover::before {
	left: 0;
}

.nav-previous:hover,
.nav-next:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(65, 105, 225, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
	color: #4169e1;
	border-color: rgba(65, 105, 225, 0.3);
}

.nav-subtitle {
	display: block;
	font-size: 0.85rem;
	color: #64748b;
	margin-bottom: 8px;
	font-weight: 500;
	text-transform: uppercase;
	position: relative;
	z-index: 1;
}

.nav-title {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	position: relative;
	z-index: 1;
}

/* Search Results */
.search-header {
	background: white;
	padding: 60px 0 40px;
	margin-bottom: 40px;
	text-align: center;
	border-radius: 0 0 24px 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.search-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 16px;
	font-family: 'Noto Sans JP', sans-serif;
}

.search-results-count {
	font-size: 1.1rem;
	color: #64748b;
}

/* 検索結果タイトルのモバイル調整 */
@media (max-width: 768px) {
	.search-header {
		padding: 40px 0 30px;
	}
	
	.search-title {
		font-size: 1.6rem;
	}
}

@media (max-width: 480px) {
	.search-header {
		padding: 30px 0 20px;
	}
	
	.search-title {
		font-size: 1.4rem;
	}
}

/* No Posts Found */
.no-posts {
	background: white;
	padding: 60px 40px;
	border-radius: 20px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.no-posts-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 16px;
	font-family: 'Noto Sans JP', sans-serif;
}

.no-posts-message {
	font-size: 1.1rem;
	color: #64748b;
	margin-bottom: 32px;
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
	.blog-main {
		padding: 0 12px;
	}

	.post-card {
		border-radius: 12px;
	}

	.post-content {
		padding: 16px 20px 20px;
	}

	.blog-sidebar {
		padding: 20px 16px;
	}

	.single-post-header {
		padding: 32px 20px;
	}
	
	.single-post-title {
		font-size: 1.4rem;
		line-height: 1.4;
		margin-bottom: 16px;
	}

	.single-post-content {
		padding: 24px 20px;
		font-size: 0.95rem;
	}
	
	/* 小画面デバイス用のリスト調整 */
	.single-post-content ul,
	.single-post-content ol {
		padding-left: 1.2rem;
	}
	
	.single-post-content li {
		margin-bottom: 6px;
	}
	
	.post-title {
		font-size: 1.1rem;
	}
	
	.post-excerpt {
		font-size: 0.9rem;
	}
	
	.nav-title {
		font-size: 0.9rem;
	}
}
