body {
	background: #fff;
}

body>footer {
	text-align: center;
	margin-top: 50px;
}

.app {
	max-width: 1024px;
	margin: 0 auto;
	padding: 0 16px 20px;
}

.app_title {
	color: #000;
	border-bottom: 4px solid #177B39;
}

.app_h2 {
	margin: 50px 0 0;
}

.app_h2 span,
.app_h3 span {
	border-bottom: 3px solid #177B39;
}

.app_tableWrapper {
	margin-top: 20px;
}

.app_title+.app_h2 {
	margin-top: 20px;
}

.app_h3 {
	margin: 40px 0 0;
}

.app_forms {
	margin: 10px 0;
}

.app_tabbar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.app_tab {
	background: #fff;
	border: 2px solid #177B39;
	border-radius: 4px;
	cursor: pointer;
	padding: 5px 4px;
	font-size: 1em;
	color: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.2;
	height: 100%;
}

.app_tab-active {
	background: #177B39;
	color: #fff;
}

.app_forms > form {
    border: 2px solid #177B39;
    border-radius: 4px;
    margin: 30px 0 10px; 
    padding: 10px 20px;
}

.app_fieldset {
	display: flex;
}

.app_fieldset+.app_fieldset,
.app_forms button {
	margin-top: 20px;
}

.app_legend {
	min-width: 10em;
}

.app_legend_small {
	font-size: 0.8em;
}

.app_fieldset label:not(:first-child) {
	margin-right: 20px;
}

.app_fieldset label {
	cursor: pointer;
	white-space: nowrap;
}

.app_fieldset input[type="checkbox"] {
	margin-right: 5px;
}

.app_fieldset input[type="text"] {
	padding: 5px 10px;
	border: 1px solid;
}

.app_formDescription {
	margin-top: 10px;
}

.app_formToolbar {
	text-align: right;
}

.app_formToolbar>button {
	padding: 5px 10px;
	border: none;
	border-radius: 4px;
	background: #177B39;
	color: #fff;
}

.app_dataSummary {
	display: flex;
	justify-content: space-between;
}

.app_dataSummary select {
	color: inherit;
	font-size: inherit;
}

.app_dataTable {
	margin: 10px auto;
	width: 100%;
	table-layout: fixed;
	overflow-wrap: anywhere;
}

.app_dataTable a {
	overflow-wrap: anywhere;
}

.app_dataTable th {
	background: #70ad47;
	color: #fff;
	cursor: pointer;
	word-break: keep-all;
}

.app_dataTable td {
	background: none;
}

.app_dataTable th,
.app_dataTable td {
	padding: 4px 8px;
}

.app_dataTable tbody>tr:nth-child(odd) {
	background: #d5e3cf;
}

.app_dataTable tbody>tr:nth-child(even) {
	background: #ebf1e9;
}

.app_dataTable th[data-sort="asc"]::before {
	content: "▲";
	text-decoration:underline solid #fff;
}

.app_dataTable th[data-sort="desc"]::before {
	text-decoration:underline solid #fff;
	content: "▼";
}

.app_dataTable[data-contents-type="company"] th:is(:nth-child(1), :nth-child(2)) {
	width: 20%;
}

.app_dataTable[data-contents-type="company"] th {
	width: 10%;
}

.app_dataTable[data-contents-type="menu"] th:is(:nth-child(1)) {
	width: 40%;
}

.app_dataTable[data-contents-type="menu"] th {
	width: 15%;
}

.app_td-number {
	text-align: right;
}

.app_paginationList {
	display: flex;
	list-style: none;
	padding: 0;
	justify-content: center;
	gap: 10px;
}

.app_paginationListItem {
	list-style: none;
	padding: 0;
}

.app_paginationListItem::before {
	content: none;
}

.app_paginationButton {
	padding: 5px 10px;
	border: 1px solid #002063;
	color: #002063;
	background: none;
	width: calc(2ex + 20px + 2px + 1px);
}

.app_paginationButton:not([disabled]) {
	cursor: pointer;
}

.app_paginationButton[disabled] {
	border: none;
	padding: 0;
	width: auto;
}

.app_paginationButton[disabled]:is(li:first-child > button, li:last-child > button) {
	display: none;
}

.app_paginationButton-active {
	background: #002063;
	color: #fff;
}

.app_breadcrumb {
	padding: 0;
}

.app_breadcrumb>li {
	display: inline-block;
	word-break: keep-all;
	white-space: nowrap;
}

.app_breadcrumb>li+li::before {
	content: " > ";
}

.app_powerMixGraph,
.app_renewableEnergyGraph {
	width: 50%;
	margin: 40px 0 20px;
}

.app_simpleTable {
	width: 100%;
	margin: 10px 0 0;
	border-collapse: collapse;
}

.app_simpleTable th,
.app_simpleTable td {
	overflow-wrap: anywhere;
}

.app_simpleTable+.app_simpleTable {
	margin-top: 20px;
}

.app_simpleTable th[scope="row"] {
	width: 25%;
}

.app_simpleTable:has(th:nth-child(3)) th {
	width: calc(100% / 3);
}

.app_simpleTable:has(th:nth-child(4)) th {
	width: 25%;
}

.app_simpleTable :is(th, td) {
	padding: 10px;
}

.app_simpleTable td {
	white-space: pre-line;
}

.app_tableWrapper:has(.app_simpleTable-typeA) {
	border-left: 5px solid #177B39;
	padding-left: 15px;
}

.app_simpleTable-typeA tr+tr {
	border-top: 1px dotted #ccc;
}

/* --- .app_simpleTable-typeB --- */

.app_simpleTable-typeB {
    width: 100%;
    table-layout: fixed; 
    border-collapse: collapse;
}

.app_simpleTable-typeB th {
	background: #70ad47;
	color: #fff;
}

.app_simpleTable-typeB tr:nth-child(odd) {
	background: #d5e3cf;
}

.app_simpleTable-typeB tr:nth-child(even) {
	background: #ebf1e9;
}

/* --------------------------------------------------
   テーブル列幅の個別調整
-------------------------------------------------- */

/* 1列目: 事業者名 (デフォルト)
   ※メニュー検索など他のテーブル用に確保 */
.app_simpleTable-typeB th:nth-child(1) {
    width: 25%;       
    min-width: 200px; 
}


.app_simpleTable-typeB[data-contents-type="company"] th:nth-child(1) {
    width: auto;  
    min-width: auto;
}
.app_simpleTable-typeB[data-contents-type="company"] th:nth-child(3),
.app_simpleTable-typeB[data-contents-type="company"] th:nth-child(4),
.app_simpleTable-typeB[data-contents-type="company"] th:nth-child(5) {
    width: 90px;
}

/* --- メニュー検索タブ (menu_plan, menu_actual) --- */
/* 2列目: メニュー名 */
.app_simpleTable-typeB[data-contents-type="menu_plan"] th:nth-child(2),
.app_simpleTable-typeB[data-contents-type="menu_actual"] th:nth-child(2) {
    width: 60px;      
    text-align: center;
}

/* 4,5,6,7列目 (数値項目) を130px固定 */
.app_simpleTable-typeB[data-contents-type="menu_plan"] th:nth-child(4),
.app_simpleTable-typeB[data-contents-type="menu_plan"] th:nth-child(5),
.app_simpleTable-typeB[data-contents-type="menu_plan"] th:nth-child(6),
.app_simpleTable-typeB[data-contents-type="menu_plan"] th:nth-child(7),
.app_simpleTable-typeB[data-contents-type="menu_actual"] th:nth-child(4),
.app_simpleTable-typeB[data-contents-type="menu_actual"] th:nth-child(5),
.app_simpleTable-typeB[data-contents-type="menu_actual"] th:nth-child(6),
.app_simpleTable-typeB[data-contents-type="menu_actual"] th:nth-child(7) {
    width: 130px;
}

.app_simpleTable-typeB th {
    text-align: left;
}

.app_td-number {
    text-align: center !important;
}

.app_simpleTable-typeB[data-contents-type="company"] th:nth-child(n+3) {
    text-align: center;
}

.app_simpleTable-typeB[data-contents-type^="menu"] th:nth-child(2),
.app_simpleTable-typeB[data-contents-type^="menu"] td:nth-child(2) {
    text-align: center;
}

.app_simpleTable-typeB[data-contents-type^="menu"] th:nth-child(n+4) {
    text-align: center;
}

/* モバイル版 */
@media (max-width: 767px) {
	.app {
		padding: 0;
	}

	.app_breadcrumb>li {
		display: block;
	}

	.app_tabbar {
		gap: 5px;
		grid-template-columns: repeat(2, 1fr);
	}

	.app_forms button {
		margin-top: 0;
	}

	.app_fieldset {
		display: block;
	}

	.app_legend br {
		display: none;
	}

	.app_fieldset input[type="text"] {
		box-sizing: border-box;
		width: 100%;
	}

	.app_dataSummary {
		flex-direction: column;
	}

	.app_dataSummary_right {
		text-align: right;
	}

	.app_dataTableContainer {
		overflow-x: scroll;
	}

	.app_dataTable {
		table-layout: auto;
		width: auto;
	}

	.app_dataTable th {
		white-space: nowrap;
		width: auto;
	}

	.app_h2 span,
	.app_h3 span {
		border-bottom: none;
	}

	.app_h2,
	.app_h3 {
		border-bottom: 3px solid #177B39;
	}

	.app_powerMixGraph,
	.app_renewableEnergyGraph {
		width: 100%;
	}

	.app_tableWrapper:has(.app_simpleTable-typeA) {
		border-left: none;
		padding-left: 0;
	}

	.app_simpleTable-typeA :is(tr, th, td) {
		display: block;
		width: auto !important;
		text-align: left;
		padding-left: 0;
		padding-right: 0;
	}

	.app_simpleTable-typeA td {
		padding-top: 0;
	}
}