/* サイドバー全体 */
.l-sidebar {
	padding: 0 0 2rem;
}

.l-sidebar .c-widget {
	margin-top: 0;
	padding: 1.15rem 1.1rem 1.2rem;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--ark-color--main, #c48a2c) 22%, #e8e4dc);
	border-radius: 8px;
	box-sizing: border-box;
}

.l-sidebar .c-widget + .c-widget {
	margin-top: 1.25rem;
}

.l-sidebar .c-widget__title {
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0 0 0.85rem;
	padding-bottom: 0.55rem;
	border-bottom: 2px solid var(--ark-color--main, #c48a2c);
}

.l-sidebar .c-widget__title.-side {
	color: var(--ark-color--text, #24303a);
}

/* 新着（アイキャッチ付き） */
.l-sidebar .hmd-widget-recent {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.l-sidebar .hmd-widget-recent__item {
	border-bottom: 1px solid color-mix(in srgb, var(--ark-color--main, #c48a2c) 12%, #eee);
}

.l-sidebar .hmd-widget-recent__item:last-child {
	border-bottom: none;
}

.l-sidebar .hmd-widget-recent__link {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.65rem 0.15rem;
	text-decoration: none !important;
	line-height: 1.45;
}

.l-sidebar .hmd-widget-recent__link:hover .hmd-widget-recent__title {
	color: var(--ark-color--main, #c48a2c);
}

.l-sidebar .hmd-widget-recent__thumb {
	flex: none;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--ark-color--gray, #f4f1e8);
	border: 1px solid color-mix(in srgb, var(--ark-color--main, #c48a2c) 18%, #fff);
}

.l-sidebar .hmd-widget-recent__thumb.is-empty {
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--ark-color--main, #c48a2c) 12%, #fff),
		var(--ark-color--gray, #f4f1e8)
	);
}

.l-sidebar .hmd-widget-recent__img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.l-sidebar .hmd-widget-recent__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
	flex: 1;
}

.l-sidebar .hmd-widget-recent__title {
	display: -webkit-box;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--ark-color--text, #24303a);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.l-sidebar .hmd-widget-recent__date {
	font-size: 0.75rem;
	line-height: 1.3;
}

/* 検索 */
.l-sidebar .widget_search .search-form {
	display: flex;
	gap: 0.35rem;
}

.l-sidebar .widget_search label {
	flex: 1;
	min-width: 0;
}

.l-sidebar .widget_search .search-field {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.65rem;
	font-size: 0.9rem;
	border: 1px solid color-mix(in srgb, var(--ark-color--main, #c48a2c) 25%, #ddd);
	border-radius: 6px;
	background: #fff;
}

.l-sidebar .widget_search .search-submit {
	flex: none;
	padding: 0.55rem 0.85rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	background: var(--ark-color--main, #c48a2c);
}

.l-sidebar .widget_search .search-submit:hover {
	opacity: 0.92;
}

/* ガイド・一覧 */
.l-sidebar .hmd-widget-guide__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.l-sidebar .hmd-widget-guide__link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.65rem 0.75rem;
	text-decoration: none !important;
	border: 1px solid color-mix(in srgb, var(--ark-color--main, #c48a2c) 18%, #e8e4dc);
	border-radius: 6px;
	background: var(--ark-color--gray, #f4f1e8);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.l-sidebar .hmd-widget-guide__link:hover {
	border-color: var(--ark-color--main, #c48a2c);
	background: #fff;
}

.l-sidebar .hmd-widget-guide__link.is-primary {
	background: color-mix(in srgb, var(--ark-color--main, #c48a2c) 12%, #fff);
	border-color: color-mix(in srgb, var(--ark-color--main, #c48a2c) 40%, #fff);
}

.l-sidebar .hmd-widget-guide__label {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--ark-color--text, #24303a);
	line-height: 1.35;
}

.l-sidebar .hmd-widget-guide__desc {
	font-size: 0.78rem;
	line-height: 1.4;
	color: color-mix(in srgb, var(--ark-color--text, #24303a) 70%, #666);
}

/* カテゴリー */
.l-sidebar .widget_categories > ul {
	margin: 0;
}

.l-sidebar .widget_categories li {
	font-size: 0.9rem;
	line-height: 1.5;
}

.l-sidebar .widget_categories a {
	text-underline-offset: 2px;
}

@media (max-width: 959px) {
	.l-sidebar .c-widget {
		padding: 1rem;
	}

	.l-sidebar .hmd-widget-recent__thumb,
	.l-sidebar .hmd-widget-recent__img {
		width: 64px;
		height: 64px;
	}
}