.cell-available {
  background-color: #d6ffdf;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  vertical-align: middle;
}

.cell-limited {
  background-color: #fff3cd;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  vertical-align: middle;
}

.cell-full {
  background-color: #fffafa;
  color: #ff0019;
  font-size: 2em;
  text-align: center;
  vertical-align: middle;
}

.sunday-col, .holiday-col {
  background-color: #fee2e2;
}

.saturday-col {
  background-color: #dbeafe;
}

.time-col {
  font-weight: bold;
}

.header-info {
  max-width: 1000px;
  margin: 0 auto 12px;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.event-info {
  background-color: var(--color-surface);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.summary {
  background-color: var(--color-surface);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.message {
  background: var(--color-surface);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.button-container {
  display: flex;
  justify-content: space-between;
  max-width: 400px;
  margin-bottom: 10px;
  gap: 8px;
}

.button-container form {
  flex: 1;
  text-align: center;
  margin: 0;
  display: inline;
}

.button-container button {
  background-color: var(--color-primary);
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.button-container button:hover {
  background-color: var(--color-primary-600);
}

.button-container button:disabled {
  background-color: #CCCCCC;
  color: #666666;
  cursor: not-allowed;
}

.button-container form.hidden {
  visibility: hidden;
}

.buttons {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.required {
  color: var(--color-danger);
  margin-left: 5px;
}

.row {
  margin: 8px 0;
}

.row-gap > * + * {
  margin-top: 10px;
}

.link-button {
  background: none;
  border: none;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.link-button:hover {
  color: var(--color-primary-600);
}

.reservation-table {
  width: 100%;
  table-layout: fixed;
  margin-bottom: 20px;
}

.reservation-table th:nth-child(1), 
.reservation-table td:nth-child(1) { 
  width: 20%; 
}

.reservation-table th:nth-child(2), 
.reservation-table td:nth-child(2) { 
  width: 20%; 
}

.reservation-table th:nth-child(3), 
.reservation-table td:nth-child(3) { 
  width: 20%; 
}

.reservation-table th:nth-child(4), 
.reservation-table td:nth-child(4) { 
  width: 40%; 
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.calendar {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

@media (max-width: 640px) {
  .header-info {
    padding: 14px 18px;
    font-size: 16px;
    line-height: 1.6;
  }
  
  .button-container button {
    padding: 14px 20px;
    font-size: 18px;
    min-height: 48px;
  }
  
  .button-container {
    gap: 6px;
  }
  
  .container {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .time-col {
    font-size: 16px;
    font-weight: bold;
    width: 15%;
  }
  
  th:not(.time-col) {
    font-size: 14px;
    line-height: 1.3;
  }
  
  th:not(.time-col), td:not(.time-col) {
    width: calc((100% - 15%) / 7);
  }

  .cell-available, .cell-limited, .cell-full {
    font-size: 2.2em;
    line-height: 1.2;
  }
  
  .card {
    padding: 18px;
    font-size: 16px;
  }
  
  .calendar th, .calendar td {
    min-width: 0;
  }

  .calendar th, .calendar td {
    min-width: 0;
  }
  
  .time-col {
    font-size: 13px !important;
    padding: 4px 2px;
  }
  
  .calendar td {
    padding: 4px 2px;
  }
  
  th:not(.time-col) {
    font-size: 12px !important;
    padding: 6px 2px;
  }
}