/* ========================================
   和菓子在庫管理システム - グローバルデザインシステム
   モダンブルー系カラーパレット
   ======================================== */

/* カスタムTailwind設定 */
<style type="text/tailwindcss">
  @layer base {
    :root {
      /* Primary Colors - モダンブルー */
      --color-primary: #3B82F6;
      --color-primary-dark: #2563EB;
      --color-primary-light: #60A5FA;
      
      /* Secondary Colors - パープル */
      --color-secondary: #8B5CF6;
      --color-secondary-dark: #7C3AED;
      --color-secondary-light: #A78BFA;
      
      /* Success - グリーン */
      --color-success: #10B981;
      --color-success-dark: #059669;
      --color-success-light: #34D399;
      
      /* Warning - オレンジ */
      --color-warning: #F59E0B;
      --color-warning-dark: #D97706;
      --color-warning-light: #FBBF24;
      
      /* Danger - レッド */
      --color-danger: #EF4444;
      --color-danger-dark: #DC2626;
      --color-danger-light: #F87171;
      
      /* Neutral Colors */
      --color-gray-50: #F9FAFB;
      --color-gray-100: #F3F4F6;
      --color-gray-200: #E5E7EB;
      --color-gray-300: #D1D5DB;
      --color-gray-400: #9CA3AF;
      --color-gray-500: #6B7280;
      --color-gray-600: #4B5563;
      --color-gray-700: #374151;
      --color-gray-800: #1F2937;
      --color-gray-900: #111827;
      
      /* Background */
      --color-bg-primary: #F9FAFB;
      --color-bg-secondary: #FFFFFF;
      
      /* Shadows */
      --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
      --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
      --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
      --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
      
      /* Border Radius */
      --radius-sm: 0.375rem;
      --radius-md: 0.5rem;
      --radius-lg: 0.75rem;
      --radius-xl: 1rem;
      --radius-2xl: 1.5rem;
      
      /* Spacing */
      --spacing-xs: 0.5rem;
      --spacing-sm: 0.75rem;
      --spacing-md: 1rem;
      --spacing-lg: 1.5rem;
      --spacing-xl: 2rem;
      --spacing-2xl: 3rem;
    }
    
    /* Typography */
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    
    h1, h2, h3, h4, h5, h6 {
      font-weight: 600;
      line-height: 1.2;
    }
  }
</style>

/* グローバルスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-gray-800);
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-500);
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* カスタムコンポーネント - 最新トレンドボタン */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  /* ボタンサイズの約10%の内側余白 */
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 3.5rem;
  /* 短く強い影 */
  box-shadow: 0 4px 0 rgba(37, 99, 235, 0.4),
              0 6px 12px rgba(59, 130, 246, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  margin: 0 10px 10px 0;
}

.btn-primary i {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.btn-primary span {
  padding: 0 0.75rem;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  box-shadow: 0 5px 0 rgba(37, 99, 235, 0.5),
              0 8px 16px rgba(59, 130, 246, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  border-color: var(--color-primary-light);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(37, 99, 235, 0.4),
              0 3px 6px rgba(59, 130, 246, 0.25),
              inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 3.5rem;
  box-shadow: 0 4px 0 rgba(124, 58, 237, 0.4),
              0 6px 12px rgba(139, 92, 246, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin: 0 10px 10px 0;
}

.btn-secondary i {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.btn-secondary span {
  padding: 0 0.75rem;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
  box-shadow: 0 5px 0 rgba(124, 58, 237, 0.5),
              0 8px 16px rgba(139, 92, 246, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  border-color: var(--color-secondary-light);
}

.btn-outline {
  background-color: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 3.5rem;
  box-shadow: 0 3px 0 rgba(59, 130, 246, 0.2),
              0 5px 10px rgba(59, 130, 246, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin: 0 10px 10px 0;
}

.btn-outline i {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.btn-outline span {
  padding: 0 0.75rem;
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(37, 99, 235, 0.3),
              0 7px 14px rgba(59, 130, 246, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* カードスタイル - ネオモーフィズム + 境界明確化 */
.card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  /* 明確な境界線 */
  border: 2px solid var(--color-gray-200);
  /* 短く強い影 */
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05),
              0 6px 12px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 5px 0 rgba(59, 130, 246, 0.15),
              0 8px 16px rgba(59, 130, 246, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
}

.card-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* 統計カード - 強調された境界 */
.stat-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  /* 強調された境界線 */
  border: 2px solid var(--color-gray-200);
  /* 短く強い影 */
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06),
              0 6px 14px rgba(0, 0, 0, 0.14),
              inset 1px 1px 2px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 5px 0 rgba(59, 130, 246, 0.2),
              0 8px 18px rgba(59, 130, 246, 0.25),
              inset 1px 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-6px);
}

/* バッジ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-success {
  background-color: #D1FAE5;
  color: var(--color-success-dark);
}

.badge-warning {
  background-color: #FEF3C7;
  color: var(--color-warning-dark);
}

.badge-danger {
  background-color: #FEE2E2;
  color: var(--color-danger-dark);
}

.badge-primary {
  background-color: #DBEAFE;
  color: var(--color-primary-dark);
}

/* テーブルスタイル */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: var(--color-gray-50);
}

tbody td {
  padding: 1rem;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
}

/* フォームスタイル */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-gray-700);
  font-size: 0.9375rem;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: white;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========================================
   メインナビゲーションバー - モダンデザイン
   ======================================== */

.main-navbar {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  max-width: 100%;
  padding: 0 1.5rem;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ロゴエリア */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.navbar-title {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.navbar-title-main {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.navbar-title-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* デスクトップメニュー */
.navbar-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
}

.nav-menu-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  color: #4B5563;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.nav-menu-link i {
  font-size: 0.9375rem;
  width: 1.125rem;
  text-align: center;
  opacity: 0.8;
}

.nav-menu-link:hover {
  background-color: #F3F4F6;
  color: #3B82F6;
}

.nav-menu-link:hover i {
  opacity: 1;
}

.nav-menu-link.nav-menu-active {
  color: #3B82F6;
  font-weight: 600;
  background-color: #EFF6FF;
}

.nav-menu-link.nav-menu-active i {
  opacity: 1;
}

/* モバイルメニューボタン */
.navbar-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #4B5563;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navbar-mobile-btn:hover {
  background-color: #F3F4F6;
  color: #3B82F6;
}

@media (min-width: 768px) {
  .navbar-mobile-btn {
    display: none;
  }
}

/* モバイルメニュー */
.navbar-mobile-menu {
  background: white;
  border-top: 1px solid #E5E7EB;
  padding: 0.75rem;
}

.navbar-mobile-menu.hidden {
  display: none;
}

.navbar-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.navbar-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #4B5563;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.navbar-mobile-link i {
  width: 1.25rem;
  text-align: center;
  opacity: 0.7;
}

.navbar-mobile-link:hover {
  background-color: #F3F4F6;
  color: #3B82F6;
}

.navbar-mobile-link.active {
  background-color: #EFF6FF;
  color: #3B82F6;
  font-weight: 600;
}

.navbar-mobile-link.active i {
  opacity: 1;
}

/* ========================================
   ページヘッダー - モダンデザイン
   ======================================== */

.page-header {
  background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.page-header-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.page-header-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-header-icon i {
  font-size: 1.5rem;
  color: white;
}

.page-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-header-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
}

.page-header-decoration {
  display: none;
}

@media (min-width: 768px) {
  .page-header {
    padding: 2.5rem 2rem;
  }
  
  .page-header-icon {
    width: 64px;
    height: 64px;
  }
  
  .page-header-icon i {
    font-size: 1.75rem;
  }
  
  .page-header-title {
    font-size: 2rem;
  }
  
  .page-header-decoration {
    display: block;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
  }
}

/* ========================================
   共通ページコンテンツエリア
   ======================================== */

.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .page-content {
    padding: 2.5rem 2rem;
  }
}

/* 共通セクションカード */
.section-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .section-card {
    padding: 2rem;
  }
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1F2937;
  margin: 0;
}

.section-card-title i {
  color: #3B82F6;
  font-size: 1rem;
}

/* 共通ボタンスタイル - モダン版 */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-modern i {
  font-size: 0.875rem;
}

.btn-modern-primary {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-modern-success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-modern-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-modern-warning {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-modern-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-modern-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-modern-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-modern-purple {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-modern-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.btn-modern-outline {
  background: white;
  color: #4B5563;
  border: 1px solid #D1D5DB;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-modern-outline:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

/* 小さいボタン */
.btn-modern-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* 共通フォームコントロール - モダン版 */
.form-control-modern {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.625rem;
  background: white;
  transition: all 0.2s ease;
  color: #1F2937;
}

.form-control-modern:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control-modern::placeholder {
  color: #9CA3AF;
}

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

/* 共通テーブルスタイル - モダン版 */
.table-modern {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-modern thead {
  background: #F9FAFB;
}

.table-modern thead th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E5E7EB;
}

.table-modern tbody tr {
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.15s ease;
}

.table-modern tbody tr:hover {
  background: #F9FAFB;
}

.table-modern tbody td {
  padding: 1rem;
  color: #374151;
  vertical-align: middle;
}

/* 統計サマリーカード - 各ページ用 */
.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-stat-card {
  background: white;
  border-radius: 0.875rem;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-stat-icon i {
  font-size: 1.25rem;
  color: white;
}

.summary-stat-content {
  flex: 1;
  min-width: 0;
}

.summary-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 0.25rem;
}

.summary-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.2;
}

/* モーダル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: fadeIn 0.2s ease-out;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .card {
    padding: var(--spacing-md);
  }
  
  .stat-card {
    padding: var(--spacing-md);
  }
  
  thead th,
  tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  /* モバイルナビゲーションは別のメニューを使用するため、.nav-linkスタイルはそのまま維持 */
  
  .modal-content {
    max-width: 95%;
    padding: var(--spacing-lg);
  }
}

/* ユーティリティクラス */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.hover-scale {
  transition: transform 0.2s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ローディングスピナー */
.spinner {
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* トースト通知 */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out;
  z-index: 1001;
}

.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-error {
  border-left: 4px solid var(--color-danger);
}

.toast-warning {
  border-left: 4px solid var(--color-warning);
}

/* プログレスバー */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-gray-200);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  transition: width 0.3s ease;
}

/* ========================================
   ダッシュボード統計カード - モダンデザイン
   余白を十分に確保したゆとりあるレイアウト
   ======================================== */

.dashboard-stat-card {
  background: white;
  border-radius: 1.25rem;
  /* 十分な内側余白でゆとりを持たせる */
  padding: 1.75rem 1.5rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 180px;
}

/* カードの上部にカラーアクセントライン */
.dashboard-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent-from), var(--card-accent-to));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-stat-card:hover::before {
  opacity: 1;
}

/* カラーバリエーション */
.dashboard-stat-card-green {
  --card-accent-from: #10B981;
  --card-accent-to: #059669;
}

.dashboard-stat-card-orange {
  --card-accent-from: #F59E0B;
  --card-accent-to: #EA580C;
}

.dashboard-stat-card-blue {
  --card-accent-from: #3B82F6;
  --card-accent-to: #2563EB;
}

.dashboard-stat-card-purple {
  --card-accent-from: #8B5CF6;
  --card-accent-to: #7C3AED;
}

.dashboard-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

/* アイコンラッパー */
.dashboard-stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.dashboard-stat-card:hover .dashboard-stat-icon-wrapper {
  transform: scale(1.1) rotate(3deg);
}

/* コンテンツエリア */
.dashboard-stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

/* ラベル */
.dashboard-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6B7280;
  letter-spacing: 0.025em;
  margin: 0;
}

/* 数値 */
.dashboard-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.025em;
}

/* フッター */
.dashboard-stat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.dashboard-stat-footer i {
  font-size: 0.6875rem;
}

/* クイックアクションカード - モダンデザイン */
.dashboard-action-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
}

.dashboard-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.08);
}

.dashboard-action-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.dashboard-action-card:hover .dashboard-action-icon {
  transform: scale(1.1);
}

.dashboard-action-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1F2937;
  margin: 0 0 0.375rem 0;
}

.dashboard-action-content p {
  font-size: 0.8125rem;
  color: #6B7280;
  margin: 0;
}

/* 店舗カード - モダンデザイン */
.dashboard-store-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  text-align: center;
}

.dashboard-store-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.dashboard-store-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

.dashboard-store-card:hover .dashboard-store-icon {
  transform: scale(1.1);
}

.dashboard-store-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1F2937;
  margin: 0 0 0.25rem 0;
}

.dashboard-store-location {
  font-size: 0.8125rem;
  color: #6B7280;
  margin: 0 0 0.75rem 0;
}

.dashboard-store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9CA3AF;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
  .dashboard-stat-card {
    padding: 1.25rem;
    min-height: 160px;
    gap: 1rem;
  }
  
  .dashboard-stat-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .dashboard-stat-value {
    font-size: 1.5rem;
  }
  
  .dashboard-action-card {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .dashboard-action-icon {
    width: 48px;
    height: 48px;
  }
}
