/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 24px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.header-left p {
  color: #666;
  font-size: 0.9rem;
}

.header-right {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
}

.header-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ボタン */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: #000;
  color: white;
}

.btn-primary:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ddd;
  color: #333;
}

.btn-outline:hover {
  background: #f5f5f5;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.btn-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  background: #dc3545;
  color: white;
}

/* メインコンテンツ */
.main {
  padding: 32px 0;
}

/* ダッシュボードカード */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin:32px 0;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dashboard-card {
  cursor: pointer;
  border: 2px solid transparent;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-card[data-modal="reservations"] {
  border-color: #e3f2fd;
  background: #e3f2fd;
}

.dashboard-card[data-modal="hearing"] {
  border-color: #e8f5e8;
  background: #e8f5e8;
}

.dashboard-card[data-modal="receipt"] {
  border-color: #f3e5f5;
  background: #f3e5f5;
}

.dashboard-card[data-modal="account"] {
  border-color: #fff3e0;
  background: #fff3e0;
}

.card-content {
  padding: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-icon {
  font-size: 2rem;
}

.card-icon.blue {
  color: #2196f3;
}
.card-icon.green {
  color: #4caf50;
}
.card-icon.purple {
  color: #9c27b0;
}
.card-icon.orange {
  color: #ff9800;
}

.badge {
  background: #ff9800;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff9800;
  font-weight: 500;
  font-size: 0.9rem;
}

/* 最近の活動 */
.activity-card {
  margin-top: 32px;
}

.card-header-section {
  padding: 0 24px;
}

.card-header-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: #1a1a1a;
}

.card-header-section i {
  color: #ff9800;
}

.activity-list {
  padding: 16px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 12px;
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot.green {
  background: #4caf50;
}
.activity-dot.blue {
  background: #2196f3;
}
.activity-dot.purple {
  background: #9c27b0;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.activity-time, .store_name {
  font-size: 0.85rem;
  color: #666;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.modal-overlay.active {
  display: block;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-content.large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: #1a1a1a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f5f5f5;
}

.modal-body {
  padding: 24px;
}

/* 予約カード */
.reservation-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reservation-card {
  border: 1px solid #eee;
}

.reservation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.reservation-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reservation-id {
  font-size: 0.85rem;
  color: #666;
}

.reservation-actions {
  display: flex;
  gap: 8px;
}

.reservation-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.detail-item i {
  width: 16px;
  color: #ff9800;
}

.reservation-amount {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ff9800;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* ステータスバッジ */
.status-confirmed {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-waitlist {
  background: #f8d7da; /* 薄い赤 */
  color: #721c24;     /* 濃い赤 */
}

.status-cancelled {
background: #e2e3e5;
  color: #383d41;
}

.status-processing {
  background: #cfe2ff;
  color: #084298;
}

/* フォーム */
.form-group {
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

/* 領収書セクション */
.receipt-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.receipt-form-section h3,
.receipt-history-section h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.receipt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f8f9fa;
}

.receipt-date {
  font-weight: 500;
  color: #1a1a1a;
}

.receipt-details {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .header-right {
    flex-direction: column;
    width: 100%;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

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

  .receipt-content {
    grid-template-columns: 1fr;
  }

  .reservation-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .reservation-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .modal-content {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card-content {
    padding: 20px;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .btn {
    padding: 10px 20px;
  }
}

.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー */
.login-header {
  padding: 20px 0;
  text-align: center;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
}

.logo-section i {
  font-size: 2rem;
  color: #ff9800;
}

.logo-section h1 {
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* メインコンテンツ */
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 40px;
}

/* ログインカード */
.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 620px;
  position: relative;
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-card-header h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.login-card-header p {
  color: #666;
  font-size: 0.9rem;
}

/* フォーム */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.form-group label i {
  color: #ff9800;
  width: 16px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.form-control.error {
  border-color: #dc3545;
  background: #fff5f5;
}

.form-control.success {
  border-color: #28a745;
  background: #f8fff9;
}

/* パスワード入力 */
.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #ff9800;
}

/* エラーメッセージ */
.error-message,
.success-message {
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.field-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* フォームオプション */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
  background: #ff9800;
  border-color: #ff9800;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: #ff9800;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #e68900;
  text-decoration: underline;
}

/* ログインボタン */
.login-btn {
  width: 100%;
  padding: 16px;
  background: #000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ログインフッター */
.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.login-footer p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.register-link {
  color: #ff9800;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.register-link:hover {
  color: #e68900;
  text-decoration: underline;
}

/* デモ情報 */
.demo-info {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  max-width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.6s ease-out 0.3s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.demo-info h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.demo-info h3 i {
  color: #17a2b8;
}

.demo-credentials {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.demo-item {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.demo-item:last-child {
  margin-bottom: 0;
}

.demo-fill-btn {
  width: 100%;
  padding: 12px;
  background: #17a2b8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.demo-fill-btn:hover {
  background: #138496;
}

/* フッター */
.login-footer-section {
  background: rgba(0, 0, 0, 0.1);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .login-main {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
  }

  .login-card {
    padding: 32px 24px;
  }

  .demo-info {
    max-width: 100%;
    order: -1;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 20px;
  }

  .login-card-header h2 {
    font-size: 1.6rem;
  }

  .logo-section h1 {
    font-size: 1.4rem;
  }

  .demo-info {
    padding: 20px;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ページタイトル */
.page-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

/* 予約一覧ページ */
.reservation-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reservation-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-content {
  padding: 1.5rem;
}

.reservation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-provisional {
  background-color: #fef3c7;
  color: #92400e;
}

.status-confirmed {
  background-color: #d1fae5;
  color: #065f46;
}

.reservation-id,
.venue-name {
  font-size: 0.875rem;
  color: #6b7280;
}

.reservation-date {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.reservation-purpose {
  color: #374151;
  margin-bottom: 1rem;
}

.reservation-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f59e0b;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

/* ボタンスタイル */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-outline {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-outline:hover {
  background: #f9fafb;
}

.btn-cancel {
  background: transparent;
  color: #dc2626;
  border: 1px solid #d1d5db;
}

.btn-cancel:hover {
  color: #b91c1c;
  background: #fef2f2;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  border: 1px solid #3b82f6;
}

.btn-primary:hover {
  background: #2563eb;
}

/* 詳細ページ */
.detail-header {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.back-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.info-card,
.room-card,
.documents-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

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

.label {
  font-weight: 500;
  color: #6b7280;
  min-width: 100px;
}

.value {
  color: #1f2937;
}

.value.price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f59e0b;
}

/* 部屋カード */
.room-card {
  margin-bottom: 1rem;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.room-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.room-price {
  font-size: 1.125rem;
  font-weight: bold;
  color: #f59e0b;
}

.room-details {
  display: grid;
  gap: 1rem;
}

.room-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.info-item {
  display: flex;
  gap: 0.5rem;
}

.facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.facility-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

/* 帳票セクション */
.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.document-item:last-child {
  margin-bottom: 0;
}

/* グレーアウト（非公開）の帳票 */
.document-item.document-disabled {
  opacity: 0.5;
  background-color: #f9fafb;
  pointer-events: none;
}

.document-item.document-disabled .document-info {
  color: #9ca3af;
}

.document-item.document-disabled .document-details h4 {
  color: #9ca3af;
}

.document-item.document-disabled .btn {
  background-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.document-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.document-icon {
  font-size: 1.5rem;
}

.document-details h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.document-details p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* アクションセクション */
.action-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.close {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #6b7280;
}

.close:hover {
  color: #1f2937;
}

.modal-body {
  padding: 1rem;
}

/* ===== Navigation ===== */
.mp-nav { 
  display: block; 
  transition: all 0.3s ease;
}

.mp-nav-list { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

.mp-nav-link { 
  display: inline-block; 
  padding: 8px 4px; 
  text-decoration: none; 
  color: #111827; 
  font-weight: 600; 
  border-bottom: 2px solid transparent; 
  transition: all 0.2s ease;
}

.mp-nav-link:hover, 
.mp-nav-link:focus, 
.mp-nav-link.is-active { 
  border-bottom-color: #111827; 
  color: #000;
}

/* ===== Hamburger (hidden on desktop) ===== */
.mp-nav-toggle { 
  display: none; 
  position: relative; 
  width: 40px; 
  height: 40px; 
  border: 1px solid #e5e7eb; 
  border-radius: 8px; 
  background: #fff; 
  cursor: pointer; 
  transition: all 0.2s ease;
}

.mp-nav-toggle:hover {
  border-color: #111827;
  background: #f9f9f9;
}

.mp-nav-bar { 
  position: absolute; 
  left: 8px; 
  right: 8px; 
  height: 2px; 
  background: #111827; 
  transition: transform 0.3s ease, opacity 0.3s ease; 
}

.mp-nav-bar:nth-child(1) { top: 12px; }
.mp-nav-bar:nth-child(2) { top: 19px; }
.mp-nav-bar:nth-child(3) { top: 26px; }

.mp-nav-toggle[aria-expanded="true"] .mp-nav-bar:nth-child(1) { 
  transform: translateY(7px) rotate(45deg); 
}

.mp-nav-toggle[aria-expanded="true"] .mp-nav-bar:nth-child(2) { 
  opacity: 0; 
}

.mp-nav-toggle[aria-expanded="true"] .mp-nav-bar:nth-child(3) { 
  transform: translateY(-7px) rotate(-45deg); 
}

/* ベース */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem;
}

/* ページタイトル・戻るリンク・セクション */
.page-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.detail-header {
  margin-bottom: 2rem;
}

.back-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.back-link:hover {
  text-decoration: underline;
}

.detail-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

/* 情報カード */
.info-card,
.notice-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.info-row:last-child {
  margin-bottom: 0;
}

.label {
  font-weight: 500;
  color: #6b7280;
  min-width: 100px;
}

.value {
  color: #1f2937;
}
.value.price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f59e0b;
}

/* ステータス */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.status-provisional,
.status-changing {
  background-color: #fef3c7;
  color: #92400e;
}
.status-confirmed {
  background-color: #d1fae5;
  color: #065f46;
}
.status-cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}

.reservation-id {
  font-size: 0.875rem;
  color: #6b7280;
}

/* フォーム */
.change-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.required {
  color: #dc2626;
  margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 400px;
}

.form-help {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* ラジオボタングループ */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.2s ease;
  position: relative;
}

.radio-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* ラジオボタンのスタイル */
.radio-item input[type="radio"] {
  display: none;
}

.radio-item::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: white;
  transition: all 0.2s ease;
}

.radio-item .radio-text {
  margin-left: 2.5rem;
  font-weight: 500;
}

.radio-item:has(input[type="radio"]:checked) {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.radio-item:has(input[type="radio"]:checked)::before {
  border-color: #3b82f6;
  background: #3b82f6;
}

.radio-item:has(input[type="radio"]:checked)::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

/* チェックボックスグループ（従来のスタイル） */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

/* 従来のチェックボックススタイル（必要に応じて使用） */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .container {
    padding: 0.5rem;
  }

  /* ヘッダーのレスポンシブ対応 */
  .header-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .header-right {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .header-buttons {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  /* ハンバーガーメニューの表示 */
  .mp-nav-toggle { 
    display: inline-block; 
    order: -1;
    align-self: flex-start;
  }
  
  .mp-nav { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    display: none; 
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .mp-nav.is-open { 
    display: block; 
  }
  
  .mp-nav-list { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 0; 
    background: #fff; 
    border-top: 1px solid #e5e7eb; 
    border-bottom: 1px solid #e5e7eb; 
  }
  
  .mp-nav-item + .mp-nav-item { 
    border-top: 1px solid #f3f4f6; 
  }
  
  .mp-nav-link { 
    padding: 16px 20px; 
    border-bottom: none;
    text-align: center;
    font-size: 16px;
  }

  .mp-nav-link:hover,
  .mp-nav-link:focus,
  .mp-nav-link.is-active {
    background: #f9f9f9;
    border-bottom: none;
  }

  /* ボタンのレスポンシブ対応 */
  .btn {
    width: 100%;
    justify-content: center;
  }

  .reservation-header {
    flex-direction: column;
    gap: 1rem;
  }

  .action-buttons {
    align-self: stretch;
  }

  .room-info {
    grid-template-columns: 1fr;
  }

  .action-section {
    flex-direction: column;
  }

  .document-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* ラジオボタンのレスポンシブ */
  .radio-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .radio-item {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .radio-item .radio-text {
    margin-left: 2rem;
  }

  .radio-item::before {
    left: 0.5rem;
    width: 16px;
    height: 16px;
  }

  .radio-item:has(input[type="radio"]:checked)::after {
    left: 0.5rem;
    width: 5px;
    height: 5px;
  }

  /* チェックボックスグループのレスポンシブ */
  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-left h1 {
    font-size: 1.5rem;
  }

  .header-left p {
    font-size: 0.8rem;
  }

  .mp-nav-link {
    padding: 14px 16px;
    font-size: 15px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* 変更依頼カード */
.change-request-card {
  margin-bottom: 12px;
}

.change-request-card .card-content {
  padding: 12px 16px;
}

.reservation-info-header {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reservation-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.change-details-preview-row {
  margin-top: 8px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #ff9800;
}

.change-details-preview-text,
.change-details-full-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  color: #555;
  font-size: 14px;
}

.btn-toggle-details-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-details-inline:hover {
  background: #f0f0f0;
  border-color: #999;
}

.btn-toggle-details-inline i {
  font-size: 10px;
}

.change-category {
  font-size: 13px;
  color: #666;
}

.request-date {
  font-size: 12px;
  color: #888;
  margin-left: auto;
}

.reservation-id {
  font-size: 13px;
}

.btn-show-details {
  font-size: 11px;
  padding: 4px 10px;
  margin-left: auto;
}

.change-details-content {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #ff9800;
}

.change-details-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  color: #555;
  font-size: 14px;
}

.btn-show-details {
  font-size: 12px;
  padding: 6px 12px;
}

.change-requests-loader {
  text-align: center;
  padding: 30px 20px;
  color: #666;
}

.loader-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff9800;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

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

.change-requests-loader p {
  margin: 0;
  font-size: 14px;
}

.change-requests-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 15px 0;
}

.pagination-info {
  font-size: 14px;
  color: #666;
  min-width: 100px;
  text-align: center;
}

.change-requests-pagination .btn {
  min-width: 80px;
}

.change-requests-pagination .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.no-data-message {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.no-data-message p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .reservation-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .reservation-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .request-date {
    margin-left: 0;
  }
  
  .change-details-preview-text,
  .change-details-full-text {
    font-size: 13px;
  }
  
  .change-details-text {
    font-size: 13px;
  }
}