* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  min-height: 100vh;
}

.loading {
  text-align: center;
  padding: 50px 20px;
  font-size: 18px;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #06c755;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error {
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  color: #c00;
}

.success {
  text-align: center;
  padding: 50px 20px;
}

.success h2 {
  color: #06c755;
  font-size: 28px;
  margin-bottom: 20px;
}

.success p {
  font-size: 16px;
  margin: 10px 0;
  color: #666;
}

.hidden {
  display: none;
}

h1 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #06c755;
  text-align: center;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.required {
  color: #e74c3c;
  font-weight: bold;
}

input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;
  border-color: #06c755;
}

input[type="text"]:disabled,
input[type="date"]:disabled,
select:disabled {
  background-color: #f0f0f0;
  color: #999;
  cursor: not-allowed;
  border-color: #ddd;
}

.date-select-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-select-group select {
  flex: 1;
  min-width: 0;
}

.date-select-group select:first-child {
  flex: 1.5; /* 年は少し広く */
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.submit-btn,
.close-btn,
.edit-btn {
  width: 100%;
  padding: 15px;
  background-color: #06c755;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.edit-btn {
  background-color: #0084ff;
  margin-top: 10px;
}

.submit-btn:hover,
.close-btn:hover {
  background-color: #05b04a;
}

.edit-btn:hover {
  background-color: #0073e6;
}

.submit-btn:active,
.close-btn:active {
  background-color: #049e42;
}

.edit-btn:active {
  background-color: #0062cc;
}

.submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.info-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.info-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-item label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}

.info-item p {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.service-item {
  font-size: 16px;
  color: #333;
  margin: 5px 0;
}

.no-service {
  font-size: 16px;
  color: #999;
  margin: 0;
}

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 20px;
  }

  input[type="text"],
  input[type="date"],
  select {
    font-size: 16px;
  }
}
