/* 予約システムのスタイル */
.reservation-system {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.6) 100%);
}

.reservation-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* 検索結果セクション */
.search-results {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  backdrop-filter: blur(20px);
}

.results-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 30px;
  text-align: center;
}

/* カレンダーヘッダー */
.calendar-container {
  max-width: 800px;
  margin: 0 auto;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(46, 139, 87, 0.05);
  border-radius: 15px;
}

.calendar-nav {
  background: var(--gradient-primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.calendar-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.calendar-date {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--neutral-800);
  min-width: 200px;
  text-align: center;
}

/* タイムスロット */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.time-slot {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(233, 236, 239, 0.8);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.time-slot.available {
  border-color: var(--primary-green);
  background: rgba(46, 139, 87, 0.05);
}

.time-slot.available:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: rgba(46, 139, 87, 0.1);
}

.time-slot.selected {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(46, 139, 87, 0.4);
}

.time-slot.unavailable {
  background: rgba(233, 236, 239, 0.5);
  color: var(--neutral-500);
  cursor: not-allowed;
}

.slot-time {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.slot-status {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.slot-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-green);
}

.time-slot.selected .slot-price {
  color: white;
}

/* 予約フォーム */
.reservation-form-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.reservation-form-card {
  max-width: 800px;
  margin: 0 auto;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 30px;
  text-align: center;
}

.form-section {
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 15px;
  border-left: 4px solid var(--primary-green);
}

.reservation-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reservation-section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.required {
  color: #ff6b6b;
  font-weight: 700;
}

.form-input {
  padding: 15px;
  border: 2px solid rgba(233, 236, 239, 0.8);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
  transform: translateY(-1px);
}

.form-input[readonly] {
  background: rgba(248, 249, 250, 0.8);
  color: var(--neutral-600);
}

/* 料金計算 */
.price-breakdown {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(46, 139, 87, 0.2);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(233, 236, 239, 0.6);
}

.price-item:last-child {
  border-bottom: none;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-top: 2px solid var(--primary-green);
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.price-label {
  color: var(--neutral-700);
}

.price-value {
  font-weight: 600;
  color: var(--primary-green);
}

.price-total .price-value {
  font-size: 1.3rem;
}

/* フォームアクション */
.form-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(248, 249, 250, 0.9);
  color: var(--neutral-700);
  border: 2px solid rgba(233, 236, 239, 0.8);
}

.btn-secondary:hover {
  background: rgba(46, 139, 87, 0.1);
  border-color: var(--primary-green);
  transform: translateY(-1px);
}

/* 確認モーダル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.modal-body {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.success-message {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 30px;
}

.reservation-summary {
  background: rgba(248, 249, 250, 0.8);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: left;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(233, 236, 239, 0.6);
}

.summary-item:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.summary-label {
  color: var(--neutral-600);
}

.summary-value {
  font-weight: 600;
  color: var(--neutral-800);
}

.notice-text {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.6;
  margin-bottom: 30px;
}

.modal-actions {
  display: flex;
  justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .reservation-system {
    padding: 40px 0;
  }

  .search-results,
  .reservation-form-container {
    padding: 25px;
    margin: 0 10px;
  }

  .calendar-header {
    flex-direction: column;
    gap: 15px;
  }

  .time-slots {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .modal-content {
    padding: 25px;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .calendar-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .calendar-date {
    font-size: 1.1rem;
    min-width: 150px;
  }

  .time-slot {
    padding: 15px;
  }

  .form-section {
    padding: 20px;
  }

  .price-breakdown {
    padding: 15px;
  }
}
