@media print {
  body { font-size: 12px; }
  .no-print { display: none; }
  .side-nav { display: none; }
  .left-side-nav { display: none; }
  #mobileTotal { display: none; }
}

.item-row {
  transition: all 0.2s ease;
}

.item-row:hover {
  background-color: #f3f4f6;
}

/* グリッドレイアウト（デスクトップ用） */
@media (min-width: 1280px) {
  .parent {
    display: grid !important;
    grid-template-columns: 320px 1fr 320px;
    gap: 24px;
    min-height: 100vh;
    padding: 24px !important;
  }

  .main-content {
    grid-column: 2;
  }

  .side-nav {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 320px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    z-index: 40;
  }

  .left-side-nav {
    grid-column: 1;
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}

/* サイドナビゲーション */
.side-nav .bg-white,
.left-side-nav .bg-white {
  backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

/* モバイル用スティッキーヘッダー */
#mobileTotal {
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #10b981;
}

/* ボタンのアニメーション改善 */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* スクロールバーのスタイリング（Webkit系ブラウザ） */
.side-nav::-webkit-scrollbar,
.left-side-nav::-webkit-scrollbar {
  width: 6px;
}

.side-nav::-webkit-scrollbar-track,
.left-side-nav::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.side-nav::-webkit-scrollbar-thumb,
.left-side-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.side-nav::-webkit-scrollbar-thumb:hover,
.left-side-nav::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* トースト通知システム */
.toast {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 16px 20px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left-color: #10b981;
}

.toast.info {
  border-left-color: #3b82f6;
}

.toast.warning {
  border-left-color: #f59e0b;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.info .toast-icon {
  color: #3b82f6;
}

.toast.warning .toast-icon {
  color: #f59e0b;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #1f2937;
}

.toast-message {
  font-size: 14px;
  color: #6b7280;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #6b7280;
}

/* カスタム確認ダイアログ */
.custom-modal {
  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: 60;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.custom-modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-icon {
  font-size: 24px;
  color: #f59e0b;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.modal-message {
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-button.cancel {
  background: #f3f4f6;
  color: #374151;
}

.modal-button.cancel:hover {
  background: #e5e7eb;
}

.modal-button.confirm {
  background: #ef4444;
  color: white;
}

.modal-button.confirm:hover {
  background: #dc2626;
}

/* 魚の数量入力フィールド */
.quantity-input {
  appearance: textfield;
  -moz-appearance: textfield;
  transition: all 0.2s ease;
  font-size: 14px;
  width: 3.5rem;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.quantity-input:hover {
  border-color: #6b7280;
}

/* 魚カードのスタイル改善 */
.fish-card {
  position: relative;
  overflow: hidden;
}

.fish-card:hover {
  transform: translateY(-2px);
}

.quantity-btn {
  position: relative;
  overflow: hidden;
}

.quantity-btn:active {
  transform: scale(0.95);
}

/* 認証システムのスタイル */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fish-swim {
  0% {
    transform: translateX(-100px) translateY(0px);
  }
  25% {
    transform: translateX(calc(100vw + 100px)) translateY(-20px);
  }
  50% {
    transform: translateX(-100px) translateY(-40px);
  }
  75% {
    transform: translateX(calc(100vw + 100px)) translateY(-10px);
  }
  100% {
    transform: translateX(-100px) translateY(0px);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

.fish-bg-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.8;
}

.fish-bg-animation::before {
  content: '🐟';
  position: absolute;
  font-size: 24px;
  animation: fish-swim 15s linear infinite;
  top: 20%;
  opacity: 0.6;
}

.fish-bg-animation::after {
  content: '🐠';
  position: absolute;
  font-size: 20px;
  animation: fish-swim 12s linear infinite 5s;
  top: 60%;
  opacity: 0.4;
}

/* 認証オーバーレイ */
#fishAuthOverlay {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.85);
  transition: all 0.3s ease;
}

/* 認証フォームのスタイル */
#fishAuthForm input[type="password"],
#fishAuthForm input[type="text"] {
  transition: all 0.2s ease;
}

#fishAuthForm input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

#fishAuthSubmit {
  position: relative;
  overflow: hidden;
}

#fishAuthSubmit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#fishAuthSubmit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ログアウトボタンのスタイル */
button[onclick*="logout"] {
  transition: all 0.2s ease;
}

button[onclick*="logout"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
