body {
  font-family: 'Arial', sans-serif;
  margin: 6px;
  background-color: #ffffff;
  color: #113760;
}

.table-container {
  overflow-x: auto;
  border: 1px solid #c8d1d4;
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1200px;
  background-color: #ffffff;
  border-radius: 14px;
}

th, td {
  border: 1px solid #c8d1d4;
  padding: 10px;
  text-align: center;
  min-width: 120px;
  height: 40px;
  background-clip: padding-box;
}

th {
  background-color: #4b93a7;
  color: #ffffff;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

td:first-child, th:first-child {
  position: sticky;
  left: 0;
  background-color: #4b93a7;
  color: #ffffff;
  z-index: 11;
  border-right: 1px solid #c8d1d4;
}

td {
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

td:hover:not(:first-child):not(.break):not(tr:first-child > td):not(.band) {
  background-color: #226986;
  color: #ffffff;
}

tr {
  border-bottom: 1px solid #c8d1d4;
}

tr:first-child > td:not(:first-child) {
  background-color: #113760;
  color: #ffffff;
}

tr:last-child {
  border-bottom: none;
}

.break {
  background-color: #a3b9c4;
  position: relative;
  overflow: hidden;
}

.break::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    315deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 10px,
    rgba(0, 0, 0, 0) 10px,
    rgba(0, 0, 0, 0) 20px
  );
  opacity: 0.5;
  pointer-events: none;
}

.band {
  background-color: #7fbaa7;
  text-align: left;
  font-size: 1em;
  font-weight: 500;
  color: #ffffff;
}

/* モーダルのスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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

/* カートのスタイル */
.cart-container {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background-color: #f4f4f4;
  padding: 10px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  display: none;
}

.cart-container > h3 {
  margin-left: 30px;
}

.cart-toggle-container {
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 1001;
  background-color: #4b93a7;
  border-radius: 5px;
  padding: 10px;
  opacity: 0.6;
}
.cart-toggle-container:hover {
  opacity: 1;
}
.toggle-button {
  position: relative;
  padding: 10px 20px;
  background-color: rgba(75, 147, 167, 0.6);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 0.6;
}

.toggle-button:hover {
  background-color: #226986;
  opacity: 1;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #8874a4;
  color: white;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 14px;
}

/* カートリストのスタイル */
#cartList {
  list-style-type: none;
  padding: 0;
  overflow-y: auto;
  flex-grow: 1;
}

#cartList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #ffffff;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

#cartList li:hover {
  background-color: #226986;
  color: #ffffff;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-time {
  font-size: 14px;
  color: #555;
}

.cart-item-name {
  font-size: 16px;
  font-weight: bold;
  color: #113760;
}

/* アクションボタンのスタイル */
.action-button {
  padding: 10px 20px;
  background-color: #4b93a7;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 30px;
  align-self: center;
}

.action-button:hover {
  background-color: #226986;
}

/* 削除ボタンのスタイル */
.delete-button {
  padding: 5px 10px;
  background-color: #8874a4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.delete-button:hover {
  background-color: #775a93;
}

/* 通知のスタイル */
.notification {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
  z-index: 1001;
}

/* 通知エラーのスタイル */
.notification.error {
  background-color: #f44336;
}

@media (max-width: 768px) {
  .cart-container {
    width: 70%;
  }
  th, td {
    padding: 5px;
  }

  th:first-child, td:first-child {
    min-width: 50px;
  }
}

/* 予約確認モーダルのスタイル */
#confirmModal .modal-content {
  max-width: 500px;
  width: 80%;
  padding: 20px;
  border-radius: 10px;
}

#confirmModal h3 {
  margin-top: 0;
  font-size: 1.5em;
  color: #113760;
}

#confirmModal ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
}

#confirmModal ul li {
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

#confirmModal label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#confirmModal input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

#confirmModal .action-button {
  width: 100%;
  margin-top: 20px;
}
