body {
  font-family: sans-serif;
  padding: 20px;
  background: #fdf6e3;
}
h1, h2 {
  color: #333;
  text-align: center;
}
button { /* 一般的なボタンのスタイル、数量ボタンは別途専用スタイルで上書き */
  margin: 10px 5px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ccc;
}
button:hover {
  background-color: #f0f0f0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th, td {
  border: 1px solid #aaa;
  padding: 10px;
  text-align: center;
}
th {
  background-color: #e9e9e9;
}
tr.completed td:not(:last-child) {
  text-decoration: line-through;
  background-color: #ddd;
}
tr.completed button {
  background-color: #ccc;
  color: #555;
  cursor: default;
}

#order-form-container {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* index.html の注文入力テーブルの数量ボタン用スタイル START */
#order-input-table .quantity-button-cell {
  padding: 5px; /* セル内の余白を少し調整 */
}
#order-input-table .quantity-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
#order-input-table .quantity-button {
  /* ボタンサイズを大きく */
  min-width: 40px;  /* 変更: 30px -> 40px */
  height: 40px;     /* 追加: 高さを指定 */
  padding: 8px 10px;/* 変更: 6px 8px -> 8px 10px */
  margin: 4px;      /* 変更: 3px -> 4px */
  font-size: 16px;  /* 変更: 14px -> 16px */
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 5px; /* 変更: 4px -> 5px */
  line-height: 1;
  display: flex;      /* 追加: テキストを中央揃えにしやすくするため */
  justify-content: center; /* 追加: テキスト水平中央 */
  align-items: center;    /* 追加: テキスト垂直中央 */
}
#order-input-table .quantity-button.selected {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 選択時に少し影を追加 */
}
/* index.html の注文入力テーブルの数量ボタン用スタイル END */

#order-input-table .item-price-cell {
  min-width: 90px;
  font-weight: bold;
}
#current-order-total-price {
  font-weight: bold;
}

#finalize-order-button, #reset-all-orders-button, #sales-summary + button {
  display: block;
  width: auto;
  min-width: 200px;
  margin: 20px auto 0;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 20px; /* 少し大きく */
  font-size: 18px;   /* 少し大きく */
}
#finalize-order-button:hover, #reset-all-orders-button:hover, #sales-summary + button:hover {
  background-color: #218838;
}
#reset-all-orders-button, #sales-summary + button {
  background-color: #dc3545;
}
#reset-all-orders-button:hover, #sales-summary + button:hover {
  background-color: #c82333;
}

#sales-summary {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  line-height: 1.8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#sales-summary h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
#sales-summary strong {
  color: #333;
}

#order-table th:nth-child(1),
#order-table td:nth-child(1) {
  width: 15%;
  min-width: 80px;
  text-align: left;
  padding-left: 15px;
}
#order-table th:nth-child(2),
#order-table th:nth-child(3) {
  width: 20%;
  min-width: 100px;
  text-align: center;
}
#order-table td:nth-child(2),
#order-table td:nth-child(3) {
  text-align: right;
  padding-right: 15px;
}
#order-table th:nth-child(4),
#order-table td:nth-child(4) {
  width: 25%;
  min-width: 120px;
  text-align: right;
  padding-right: 15px;
}
#order-table td:nth-child(4) {
  font-weight: bold;
}
#order-table th:nth-child(5),
#order-table td:nth-child(5) {
  width: 20%;
  min-width: 110px;
  text-align: center;
}