/* 支部アーカイブ・詳細共通レイアウトCSS */
.branchstyle#main_content.l-article {
	padding: 0 2px !important;
}

.branchstyle#main_content .l-container {
	display: flex !important;
	flex-wrap: wrap;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	align-items: flex-start;
}

.branchstyle#main_content .l-mainContent__inner {
	flex: 1 1 calc(70% - 20px);
	min-width: 0;
	max-width: 100%;
}

.branchstyle#main_content .l-sidebar {
	flex: 0 0 calc(30% - 20px);
	min-width: 280px;
}

.branchstyle .l-sidebar .widget {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.branchstyle .l-sidebar .widget-title {
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #04384c;
	color: #04384c;
}

.branchstyle .l-sidebar .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.branchstyle .l-sidebar .widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.branchstyle .l-sidebar .widget ul li:last-child {
	border-bottom: none;
}

.branchstyle .l-sidebar .widget ul li a {
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
	display: block;
}

.branchstyle .l-sidebar .widget ul li a:hover {
	color: #04384c;
	padding-left: 5px;
	background: #f5f5f5;
}

.branchstyle .l-sidebar .widget ul li.current-post {
	background: #f0f8ff;
	font-weight: bold;
}

.branchstyle .l-sidebar .widget ul li.current-post a {
	color: #04384c;
	padding-left: 5px;
}

/* カテゴリーバッジ */
.branchstyle .p-article-category:hover {
	background: #f5f5f5 !important;
	border-color: #04384c !important;
}

.branchstyle .p-articleMetas {
	margin-bottom: 20px;
}

/* タブレット対応 */
@media screen and (max-width: 959px) {
	.branchstyle#main_content .l-container {
		gap: 30px;
	}

	.branchstyle#main_content .l-mainContent__inner {
		flex: 1 1 calc(65% - 15px);
	}

	.branchstyle#main_content .l-sidebar {
		flex: 0 0 calc(35% - 15px);
		min-width: 250px;
	}
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
	.branchstyle#main_content .l-container {
		flex-direction: column;
		gap: 20px;
	}

	.branchstyle#main_content .l-mainContent__inner,
	.branchstyle#main_content .l-sidebar {
		flex: 1 1 100%;
		min-width: 100%;
		max-width: 100%;
	}
}
