
.body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.button {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 0;
}
.main-container {
  width: 80%;
  margin: auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 10px 20px;
  border: 1px solid #888;
  width: 400px;
  max-width: 600px;
  min-width: 300px;
}

.modal-content-row{
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-row label {
  display: inline;
  width: 70%;
  text-align: left;
  padding-right: 10px;
  padding-left: 10px;
  margin-top: 7px;  
}

.modal-content-row input {
  width: 30%;
  margin-top: 7px;
  margin-right: 10px;
  text-align: right;
}

.hide-spin::-webkit-inner-spin-button,
.hide-spin::-webkit-outer-spin-button {
 -webkit-appearance: none;
}

.modal-content-row select {
  width: 32%;
  margin-top: 7px;
  margin-right: 10px;
  text-align: right;
}

.modal-content button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.button-container {
  display: flex;
}

.popup-cancel-button,
.cancel-button{
  margin: 10px 5px 0px 5px;
  padding: 10px 20px;
  background-color: Gray;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.popup-button {
  margin: 10px 5px 0px 5px;
  padding: 10px 20px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.register-button:hover,
.popup-button:hover {
  background-color: #4cae4c;
}


/* 選択・検索セクション */
.select-section-sub, .search-section-sub {
  display: flex;
  margin-left : 5px;
  margin-bottom: 20px;
}

.select-input, .search-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-input {
  margin-right: 10px;
}

.search-button {
  padding: 10px 20px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.register-button,
.bulk-change-button,
.bulk-trade-button {
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.register-button{
  margin: 10px 0px 0px 5px;
  padding: 10px 20px;
  background-color: #5cb85c;
}

.bulk-change-button {
  margin: 10px 0px 0px 0px;
  padding: 10px 20px;
  background-color: #b8af5c;
}

.bulk-trade-button {
  margin: 10px 0px 0px 0px;
  padding: 10px 20px;
  background-color: #5c93b8;
}

.search-button:hover {
  background-color: #4cae4c;
}
.bulk-change-button:hover {
  background-color: #ae9c4c;
}
.bulk-trade-button:hover {
  background-color: #4c82ae;
}

.buy-button {
  background-color: #5e99cc;
  color: white;
}
.buy-button:hover {
  background-color: #548ec0;
  color: white;
} 
.sell-button {
  background-color: #ce5d5d;
  color: white;
}
.sell-button:hover {
  background-color: #c05050;
}
/* 機能ボタンセクションのスタイリング */
.button-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.function-button {
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.function-button:hover {
  background-color: #e7e7e7;
}

/* フッターセクションのスタイリング */
.footer-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #ccc;
}

.page-button {
  padding: 5px 15px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.page-button:hover {
  background-color: #4cae4c;
}
  /* テーブルの枠線を設定 */
table {
  border-collapse: collapse;
  width: 100%;
  margin-left: 5px;
}

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

th {
  background-color: #f2f2f2;
}
#item-count {
  text-align: right;
}

/* オーバーレイのスタイル */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}
/* モーダルウィンドウのスタイル */
.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.popup-close-button,
.close-button {
  color: #aaa;
  width: 100%;
  display: block;
  text-align: right;
  font-size: 28px;
  font-weight: bold;
}

.popup-close-button:hover {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.close-button:hover {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
