.contents-div {
    width: 96%;
    height: 50px;
    overflow: auto;
    border: 1px solid #ddd;
    padding: 5px;
}

.table-container{
	/* width: 100%; */
	/* border-collapse: collapse; */
    overflow: auto;
    border: 1px solid #ddd;
    padding: 5px;
}

body {
	margin: 0;
	padding: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

#top {
	height: 16%;
	background-color: #70FF9B;
	position: relative;
	z-index: 1;
	font-size: 18px;
}
#top select,
#top option,
#top input {
	font-size: 15px;
}


#bottom {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	font-size: 13px;
}



table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #ddd;
	white-space: nowrap;
	table-layout: fixed;
}

thead {
	background-color: #f2f2f2;

}

th, td {
	padding: 8px;
	border: 1px solid #ddd;
	text-align: left;
}

th {
	background-color: #f2f2f2;
	position: relative;
	z-index: 1;
}

#bottom tbody {
	display: block;
	overflow-y: auto;
	height: 1000px; /* ボディ部分の高さを指定 */
}

tr {
	display: table;
	width: 100%;
	table-layout: fixed;
}

tbody::before {
	content: '';
	height: 0px; /* ヘッダー部分の高さ */
	display: block;
	visibility: hidden;
}



#pagenation {
  text-align: left;
}

#pagenation input[type="button"] {
  background-color: yellow; /* ボタンの背景色 */
  border: none;
  color: black;
  padding: 8px 10px; /* ボタンのパディング */
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 10px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
}


img {
	width:65px;
	height:80px;
}

/*-------------------------------------------------------*/
.edit-column {
	width: 100px;
	text-align: center;
}

.edit-button {
	display: inline-block;
	min-width: 60px;
	padding: 6px 14px;

	background-color: #b9fff4;
	color: #4a0010;

	border: 1px solid #76cfc2;
	border-radius: 4px;

	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;

	cursor: pointer;
	transition:
		background-color 0.2s,
		border-color 0.2s,
		transform 0.1s;
}

.edit-button:hover {
	background-color: #8fe8da;
	border-color: #4fb5a6;
}

.edit-button:active {
	transform: translateY(1px);
}

.edit-button:focus-visible {
	outline: 2px solid #4a0010;
	outline-offset: 2px;
}

/*-------------------------------------------------------*/

/*編集画面部分*/
.edit-page {
	width: min(90%, 1600px);
	margin: 40px auto;
}

.edit-page-header {
	margin-bottom: 20px;
}

.edit-page-title {
	margin: 0 0 8px;
	font-size: 1.6rem;
}

.edit-page-description {
	margin: 0;
	color: #555;
	line-height: 1.6;
}

/* テーブル本体 */
.edit-table {
	width: 100%;
	border-collapse: collapse;
	background-color: #fff;
	border: 1px solid #ccc;
}

/* 入力行 */
.edit-table th,
.edit-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #ddd;
	vertical-align: middle;
}

/* 左側の項目名 */
.edit-table th {
	width: 30%;
	background-color: #b9fff4;
	text-align: right;
	font-weight: normal;
}

/* 入力欄 */
.edit-table input[type="text"],
.edit-table input[type="password"],
.edit-table input[type="number"] {
	width: 100%;
	max-width: 800px;
	padding: 8px 10px;
	box-sizing: border-box;
	border: 1px solid #aaa;
	border-radius: 4px;
	font-size: 1rem;
}

.edit-table input:focus {
	border-color: #168f7e;
	outline: 2px solid rgb(22 143 126 / 20%);
}

/* 読み取り専用 */
.edit-table input[readonly] {
	background-color: #eee;
	color: #555;
	cursor: not-allowed;
}

/* ボタン行 */
.edit-table tfoot td {
	background-color: #f7f7f7;
	border-bottom: 0;
}

.edit-table-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.button {
	min-width: 100px;
	padding: 3px 13px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

.button-primary {
	background-color: #168f7e;
	color: #fff;
}

.button-primary:hover {
	background-color: #117466;
}

.button-secondary {
	background-color: #fff;
	border-color: #999;
	color: #333;
}

.button-secondary:hover {
	background-color: #eee;
}


.button-delete {
	background-color: yellow;
	color: black;
}

.button-delete:hover {
	background-color: red;
	color: white;
}


/* 狭い画面では項目名を上にする */
@media (max-width: 600px) {
	.edit-page {
		width: calc(100% - 24px);
		margin: 20px auto;
	}

	.edit-table,
	.edit-table tbody,
	.edit-table tr,
	.edit-table th,
	.edit-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.edit-table th {
		text-align: left;
		border-bottom: 0;
		padding-bottom: 6px;
	}

	.edit-table td {
		padding-top: 8px;
	}

	.edit-table tfoot td {
		display: block;
	}

	.edit-table input[type="text"],
	.edit-table input[type="number"] {
		max-width: none;
	}
}