/* グラフ表示 */
#id_sokochi .graph-section {
/*	background: url(https://sokochi.estate-service.jp/wp-content/uploads/images/sokochi_top_graph.jpg) no-repeat;
	background: url(https://sokochi.estate-service.jp/wp-content/uploads/images/sokochi_top_worries.png) no-repeat;
	background-position: top;
	background-size: cover;
*/}



.graph-section .container {
	max-width: 960px;
	margin: 0 auto;
	padding: 16px 24px;
}

/* Loading container */
.graph-section #loading-container {
	background-color: #fff;
	border-radius: 24px;
	box-shadow: 0 10px 15px rgba(0,0,0,0.1);
	padding: 32px;
	text-align: center;
	position: relative;
	min-height: 150px;
}
/* Loader spinner */
.graph-section #loader {
	border: 5px solid #f3f3f3;
	border-top: 5px solid #22c55e; /* emerald-500 */
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
.graph-section #loading-container p {
	margin-top: 16px;
	color: #4b5563;
	font-size: 1rem;
}

/* Hide elements with .hidden */
.graph-section .hidden {
	display: none !important;
}

/* Analysis container */
.graph-section #analysis-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

.graph-section .card {
	background-color: #fff;
	padding: 30px;
	border-radius: 15px;
	margin-bottom: 2em;
	box-shadow: 0 10px 15px rgba(0,0,0,0.1);

}

.graph-section .card:last-child {
	margin-bottom: 0;
}

.graph-section .card h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 16px;
	border-bottom: 2px solid #e5e7eb; /* gray-200 */
	padding-bottom: 8px;
}

/* Table styling */
.graph-section table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	color: #374151; /* text-gray-700 */
}
.graph-section thead {
	background-color: #f9fafb; /* gray-50 */
}
.graph-section thead th {
	text-align: left;
	padding: 12px 16px;
	font-weight: 600;
	border-bottom: 2px solid #e5e7eb;
}
.graph-section tbody tr {
	border-bottom: 1px solid #e5e7eb;
	transition: background-color 0.3s ease;
}
.graph-section tbody tr:hover {
	background-color: #f3f4f6; /* gray-100 */
}
.graph-section tbody td {
	padding: 12px 16px;
	text-align: left;
}
.graph-section tbody td.text-right {
	text-align: right;
}

/* For numeric columns */
.graph-section .text-right {
	text-align: right;
}

/* Chart container */
.graph-section .chart-container {
	position: relative;
	height: 400px;
	width: 100%;
}

/* No data message */
.graph-section .no-data {
	background-color: #fff3cd;
	border: 1px solid #ffeeba;
	padding: 32px;
	border-radius: 24px;
	text-align: center;
	color: #92400e; /* amber-700 */
}
.graph-section .no-data h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.graph-section .no-data p {
	color: #6b7280; /* gray-600 */
	font-size: 1rem;
	margin: 0;
}



.appraisal-graph-section .summary-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.appraisal-graph-section .card {
	background: #fff;
	padding: 1.5rem;
	border-radius: 1rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	flex: 1 1 calc(33.333% - 1rem);
	display: flex;
	align-items: center;
}

.appraisal-graph-section .card-icon {
	background: #ebf8ff;
	padding: 1rem;
	border-radius: 9999px;
	margin-right: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.appraisal-graph-section .card h3 {
	font-size: 1rem;
	color: #4a5568;
	margin: 0;
}

.appraisal-graph-section .card p {
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0;
}

.appraisal-graph-section .card p:after {
	content: "円";
}

.appraisal-graph-section .card p#total-properties:after {
	content: "件";
}

.appraisal-graph-section .chart-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.appraisal-graph-section .chart-box {
	flex: 1 1 48%;
	background-color: #ffffff;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

.appraisal-graph-section .card h3,
.appraisal-graph-section .chart-title {
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 16px;
}

.appraisal-graph-section .card h3 {
	margin-bottom: 0;
}

.appraisal-graph-section .chart-responsive-wrapper {
	position: relative;
	width: 100%;
	max-width: 500px;    /* 最大幅を制限 */
	margin: 0 auto;      /* 中央揃え */
	height: auto;
	aspect-ratio: 1 / 1;
}
.appraisal-graph-section .data-table-section {
	background: #fff;
	padding: 1.5rem;
	border-radius: 1rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.appraisal-graph-section .search-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.appraisal-graph-section .search-bar h3 {
	margin: 0 !important;
	
}
.appraisal-graph-section .search-bar select#id_pref {
	width: auto;
	background: #fff;
}

.appraisal-graph-section .search-bar input {
	width: 140px;
	padding: 0.5rem;
	border: 1px solid #cbd5e0;
	border-radius: 0.375rem;
	font-size: 1rem;
	background: #fff;
}

.appraisal-graph-section .search-bar button {
	padding: 0.5rem 1rem;
	background-color: #3182ce;
	color: #fff;
	border: none;
	border-radius: 0.375rem;
	cursor: pointer;
	font-size: 1rem;
}

.appraisal-graph-section .search-bar button:hover {
	background-color: #2b6cb0;
}

.appraisal-graph-section table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1em;
	
}

.appraisal-graph-section th, .appraisal-graph-section td {
	text-align: left;
	padding: 0.75rem;
	font-size: 0.875rem;
}

.appraisal-graph-section th {
	background-color: #f7fafc;
	color: #4a5568;
}

.appraisal-graph-section tr:nth-child(even) {
	background-color: #f9f9f9;
}

.appraisal-graph-section tr:hover {
	background-color: #edf2f7;
}

.appraisal-graph-section .pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.appraisal-graph-section .pagination button {
	padding: 0.5rem 0.75rem;
	border: 1px solid #cbd5e0;
	background: #fff;
	border-radius: 0.375rem;
	cursor: pointer;
	font-size: 0.875rem;
}

.appraisal-graph-section .pagination button.active {
	background-color: #3182ce;
	color: #fff;
	border-color: #3182ce;
}

.appraisal-graph-section .pagination span {
	padding: 0.5rem;
	color: #718096;
}

.appraisal-graph-section .loader-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 250px;
}

.appraisal-graph-section .loader {
	border: 5px solid #f3f3f3;
	border-top: 5px solid #3498db;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
}

.appraisal-graph-section .loader-text {
	margin-top: 1rem;
	color: #718096;
	font-size: 1rem;
}

.appraisal-graph-section .note {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: #718096;
}
.data-table-section .table-area {
	overflow: auto; /* 横スクロールを許可 */
  white-space: nowrap;
}

.data-table-section table th,
.data-table-section table td {
	white-space: nowrap;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
	.appraisal-graph-section .summary-cards {
		flex-direction: column;
	}

	.appraisal-graph-section .chart-wrapper {
		flex-direction: column;
	}

	.appraisal-graph-section .chart-box {
		flex: 1 1 100%;
	}
}
