/* IMOの動向：審議結果一覧（統合修正版） */

.p-imo-result {
	margin-top: 24px;
	color: #333;
}

.p-imo-result__filter-wrap { margin-bottom: 8px; }
.p-imo-result__filter-label { margin: 0 0 10px; font-weight: 700; }
.p-imo-result__filters,
.p-imo-result__view-controls { display: flex; flex-wrap: wrap; gap: 8px; }

.p-imo-result__filter,
.p-imo-result__view-button {
	min-height: 40px;
	padding: 7px 16px;
	border: 1px solid #0065b4;
	border-radius: 4px;
	background: #fff;
	color: #0065b4;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.p-imo-result__filter:hover,
.p-imo-result__filter:focus-visible,
.p-imo-result__view-button:hover,
.p-imo-result__view-button:focus-visible { background: #eef6fb; }

.p-imo-result__filter[aria-pressed="true"] {
	border-color: #0065b4;
	background: #0065b4;
	color: #fff;
}

.p-imo-result__status { margin: 8px 0 0; color: #54585a; font-size: 14px; }
.p-imo-result__view-controls { margin: 14px 0 20px; }

.p-imo-result__year {
	margin: 0 0 14px;
	border: 1px solid #d6e1ea;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}
.p-imo-result__year[hidden] { display: none !important; }

.p-imo-result__year-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 11px 16px;
	background: #eef6fb;
	color: #003c75;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.p-imo-result__year-heading::-webkit-details-marker { display: none; }
.p-imo-result__year-heading:focus { outline: 2px solid #0065b4; outline-offset: -2px; }

.p-imo-result__year-icon { position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.p-imo-result__year-icon::before,
.p-imo-result__year-icon::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 12px; height: 2px;
	background: #0065b4;
	transform: translate(-50%, -50%);
}
.p-imo-result__year-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.p-imo-result__year[open] .p-imo-result__year-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.p-imo-result__list { display: grid; gap: 8px; padding: 10px; }

.p-imo-result__item {
	display: grid;
	grid-template-columns: 64px minmax(240px, 1fr) 112px 76px 16px;
	align-items: center;
	column-gap: 14px;
	row-gap: 6px;
	min-height: 54px;
	padding: 10px 12px;
	border: 1px solid #d6e1ea;
	border-radius: 4px;
	background: #fff;
	color: #333;
	line-height: 1.45;
	text-decoration: none;
	box-sizing: border-box;
}
.p-imo-result__item:hover,
.p-imo-result__item:focus { border-color: #40afcc; background: #f8fcfe; text-decoration: none; }
.p-imo-result__item[hidden] { display: none !important; }

.p-imo-result__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	min-height: 36px;
	padding: 4px 6px;
	border-radius: 3px;
	box-sizing: border-box;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}
.p-imo-result__category--msc { background: #0065b4; }
.p-imo-result__category--mepc { background: #58b431; }

.p-imo-result__body {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	min-width: 0;
	padding-right: 4px;
}
.p-imo-result__title {
	flex: 0 1 auto;
	min-width: 0;
	font-weight: 700;
	word-break: normal;
	overflow-wrap: anywhere;
}

.p-imo-result__type,
.p-imo-result__meeting-type {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	padding: 2px 8px;
	border-radius: 999px;
	box-sizing: border-box;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}
.p-imo-result__type { border: 1px solid currentColor; }
.p-imo-result__type--preliminary { color: #d64541; background: #fff5f4; }
.p-imo-result__type--outcome { color: #54585a; background: #f4f5f5; }
.p-imo-result__meeting-type { border: 1px solid #8659a2; background: #f8f4fb; color: #8659a2; }

.p-imo-result__date { color: #54585a; font-size: 14px; white-space: nowrap; }
.p-imo-result__file {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-width: 76px;
	padding-right: 2px;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	overflow: visible;
}
.p-imo-result__file::before { flex: 0 0 auto; margin-right: 7px; }
.p-imo-result__arrow { color: #0065b4; font-size: 24px; line-height: 1; text-align: right; }

@media screen and (max-width: 900px) {
	.p-imo-result__item {
		grid-template-columns: 64px minmax(0, 1fr) 100px 76px 16px;
		column-gap: 10px;
	}
}

@media screen and (max-width: 767px) {
	.p-imo-result__filter,
	.p-imo-result__view-button { min-height: 44px; }
	.p-imo-result__year-heading { padding: 12px 14px; }
	.p-imo-result__list { padding: 8px; }
	.p-imo-result__item {
		grid-template-columns: 58px minmax(0, 1fr) 16px;
		column-gap: 10px;
		row-gap: 6px;
		min-height: 48px;
		padding: 12px 10px;
	}
	.p-imo-result__category { width: 58px; min-height: 34px; }
	.p-imo-result__body { gap: 5px 7px; padding-right: 0; }
	.p-imo-result__date,
	.p-imo-result__file { grid-column: 2; }
	.p-imo-result__date { margin-top: 2px; }
	.p-imo-result__file { min-width: 82px; margin-top: -2px; }
	.p-imo-result__arrow { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
}
