@charset "utf-8";

/* -------------------------------------------------------------
   コンテンツ一覧 絞り込みUI（タブ形式）
   1段目=中項目タブ / 2段目=選択中タブの小項目
------------------------------------------------------------- */

.aim_pf {
	max-width: 1200px;
	margin: 0 auto 45px;
	padding: 0 20px;
	box-sizing: border-box;
}

/* --- 折りたたみトグル（スマホのみ表示） --- */
.aim_pf_toggle {
	display: none;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #d5d8dd;
	background: #fff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	position: relative;
}
.aim_pf_toggle .count {
	display: inline-block;
	min-width: 20px;
	margin-left: 8px;
	padding: 2px 6px;
	border-radius: 10px;
	background: #1b4f87;
	color: #fff;
	font-size: 12px;
}
.aim_pf_toggle .count[hidden] {
	display: none;
}
.aim_pf_toggle::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 1px solid #333;
	border-bottom: 1px solid #333;
	transform: rotate(45deg);
	transition: transform .2s;
}
.aim_pf.is_open .aim_pf_toggle::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}

/* --- 1段目：中項目タブ --- */
.aim_pf_tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	margin: 0;
	padding: 0 0 2px;
	list-style: none;
	border-bottom: 1px solid #e2e5ea;
}
.aim_pf_tabs li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.aim_pf_tab {
	display: inline-block;
	position: relative;
	padding: 10px 2px 14px;
	color: #555;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s;
}
.aim_pf_tab:hover {
	color: #1b4f87;
}
.aim_pf_tab.is_active {
	color: #1b4f87;
	font-weight: bold;
}
.aim_pf_tab.is_active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: #1b4f87;
}
.aim_pf_tab .tab_count {
	display: inline-block;
	min-width: 18px;
	margin-left: 6px;
	padding: 1px 5px;
	border-radius: 9px;
	background: #1b4f87;
	color: #fff;
	font-size: 11px;
	font-weight: normal;
	vertical-align: 1px;
}
.aim_pf_tab .tab_count[hidden] {
	display: none;
}

/* --- 2段目：小項目 --- */
.aim_pf_panel {
	display: none;
}
.aim_pf_panel.is_active {
	display: block;
}
.aim_pf_terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}
.aim_pf_terms li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.aim_pf_term {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #d5d8dd;
	border-radius: 2px;
	background: #fff;
	color: #333;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.aim_pf_term:hover {
	border-color: #1b4f87;
	color: #1b4f87;
}
.aim_pf_term.is_active {
	border-color: #1b4f87;
	background: #1b4f87;
	color: #fff;
}

/* --- フッター --- */
.aim_pf_footer {
	margin-top: 14px;
	min-height: 18px;
}
.aim_pf_reset {
	font-size: 13px;
	color: #666;
	text-decoration: underline;
}
.aim_pf_reset.is_hidden {
	display: none;
}

/* --- 結果エリア --- */
.aim_pf_result {
	transition: opacity .2s;
}
.aim_pf_result.is_loading {
	opacity: .4;
	pointer-events: none;
}
.aim_pf_empty {
	margin: 60px 0;
	text-align: center;
	font-size: 15px;
	color: #666;
}

/* -------------------------------------------------------------
   タブレット（親テーマ responsive.css に合わせて 950px）
------------------------------------------------------------- */
@media screen and (max-width: 950px) {
	.aim_pf {
		padding: 0 40px;
	}
	.aim_pf_tabs {
		gap: 4px 20px;
	}
	.aim_pf_tab {
		font-size: 14px;
	}
}

/* -------------------------------------------------------------
   スマホ（親テーマ responsive.css の主要ブレイクポイント 750px）
------------------------------------------------------------- */
@media screen and (max-width: 750px) {
	.aim_pf {
		padding: 0 20px;
	}
	.aim_pf_toggle {
		display: block;
	}
	.aim_pf_body {
		display: none;
		padding: 4px 16px 16px;
		border: 1px solid #d5d8dd;
		border-top: none;
	}
	.aim_pf.is_open .aim_pf_body {
		display: block;
	}
	/* タブは横スクロールで1行に収める */
	.aim_pf_tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 0 18px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;      /* Firefox */
		-ms-overflow-style: none;   /* 旧Edge */
	}
	.aim_pf_tabs::-webkit-scrollbar {
		display: none;              /* Chrome / Safari */
	}
	.aim_pf_tab {
		font-size: 14px;
		padding: 10px 2px 12px;
	}
	.aim_pf_terms {
		margin-top: 14px;
	}
	.aim_pf_term {
		font-size: 13px;
		padding: 7px 13px;
	}
}
