/* Google Fontsの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  /* パターン1: モダンで洗練されたブルートーン */
  --color-base: #FFFFFF;
  --color-base-secondary: #F5F7FA;
  --color-main: #3F51B5;
  --color-main-dark: #303F9F;
  --color-main-light: #5C6BC0;
  --color-accent: #FF5722;
  --color-accent-white-text: #FFFFFF;
  --color-accent-dark: #E64A19;
  --color-text: #37474F;
  --color-heading: #263238;
  --color-link: #5C6BC0;
  --color-border: #E0E0E0;
  --color-table-header: #ECEFF1;
  
  /* フォント設定 */
  --font-family: 'Noto Sans JP', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* スペーシング */
  --spacing-unit: 8px;
  
  /* 角丸 */
  --border-radius: 4px;
  --border-radius-lg: 8px;
  
  /* トランジション */
  --transition-speed: 0.2s;

  /* パターン2: 柔らかなパステルカラー */
  --color-base: #FFFFFF;
  --color-base-secondary: #F8F9FA;
  --color-main: #26A69A;
  --color-main-dark: #00796B;
  --color-main-light: #4DB6AC;
  --color-accent: #FF9E80;
  --color-accent-dark: #FF7043;
  --color-text: #455A64;
  --color-heading: #00796B;
  --color-link: #4DB6AC;
  --color-border: #E0F2F1;
  --color-table-header: #E8F5E9;
  
  /* フォント設定 */
  --font-heading: 'M PLUS Rounded 1c', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* サイドバー関連の変数 */
  --color-sidebar-bg: #E0F2F1;  /* パステルカラーパターン2に合わせたライトティール */
  --color-sidebar-text: #00796B; /* メインカラーのダークティール */
  --color-sidebar-text-hover: #26A69A; /* メインカラー */
  --color-sidebar-active: #B2DFDB; /* さらに明るいティール */
  --color-sidebar-icon: #26A69A; /* メインカラー */
  --color-text-heading: #00796B; /* 見出し色用のダークティール（既存の--color-headingと同じ） */
  --color-base-bg: #FFFFFF; /* 白色の背景（既存の--color-baseと同じ） */
}

/* 基本スタイル */
body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* 見出し - 統一されたスタイル */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-heading);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: var(--font-weight-bold); /* 全見出しを統一 */
}

/* ページタイトル（h1） - 統一サイズ */
h1, .page-title {
  font-size: 2rem !important;
  color: var(--color-heading) !important;
  margin-bottom: 1.5rem !important;
  font-weight: var(--font-weight-bold) !important;
  border-bottom: 3px solid var(--color-main);
  padding-bottom: 0.5rem;
  display: inline-block;
  min-width: auto;
}

/* セクションタイトル（h2） */
h2, .section-title {
  font-size: 1.5rem !important;
  color: var(--color-heading) !important;
  margin-bottom: 1rem !important;
  font-weight: var(--font-weight-bold) !important;
}

/* サブセクションタイトル（h3） */
h3, .subsection-title {
  font-size: 1.25rem !important;
  color: var(--color-heading) !important;
  margin-bottom: 0.75rem !important;
  font-weight: var(--font-weight-medium) !important;
}

/* 小見出し（h4） */
h4, .small-title {
  font-size: 1.1rem !important;
  color: var(--color-heading) !important;
  margin-bottom: 0.5rem !important;
  font-weight: var(--font-weight-medium) !important;
}

/* リンク */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-main);
  text-decoration: underline;
}

/* ボタン統一スタイルシステム */
.button, button, input[type="submit"], .btn {
  background-color: var(--color-main);
  color: white !important;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* タッチフレンドリー */
  min-width: 80px;
}

/* プライマリボタン（メイン操作） */
.button:hover, button:hover, input[type="submit"]:hover, .btn:hover,
.btn-primary:hover {
  background-color: var(--color-main-dark) !important;
  color: white !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.button:active, button:active, input[type="submit"]:active, .btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* セカンダリボタン（サブ操作） */
.button.secondary, .btn-secondary {
  background-color: var(--color-base) !important;
  color: var(--color-text) !important;
  border: 2px solid var(--color-main) !important;
}

.button.secondary:hover, .btn-secondary:hover {
  background-color: var(--color-main) !important;
  color: white !important;
  border-color: var(--color-main) !important;
}

/* アクセントボタン（重要なアクション） */
.button.accent, .btn-accent, .btn-success {
  background-color: #27ae60 !important; /* 成功グリーン */
  color: white !important;
  border: none !important;
}

.button.accent:hover, .btn-accent:hover, .btn-success:hover {
  background-color: #2ecc71 !important;
  color: white !important;
}

/* 警告ボタン（注意が必要な操作） */
.btn-warning {
  background-color: #f39c12 !important;
  color: white !important;
  border: none !important;
}

.btn-warning:hover {
  background-color: #e67e22 !important;
  color: white !important;
}

/* 危険ボタン（削除など） */
.btn-danger {
  background-color: #e74c3c !important;
  color: white !important;
  border: none !important;
}

.btn-danger:hover {
  background-color: #c0392b !important;
  color: white !important;
}

/* 情報ボタン（詳細表示など） */
.btn-info {
  background-color: var(--color-main-light) !important;
  color: white !important;
  border: none !important;
}

.btn-info:hover {
  background-color: var(--color-main) !important;
  color: white !important;
}

/* アウトライン系ボタン */
.btn-outline-primary {
  background-color: transparent !important;
  color: var(--color-main) !important;
  border: 2px solid var(--color-main) !important;
}

.btn-outline-primary:hover {
  background-color: var(--color-main) !important;
  color: white !important;
  border-color: var(--color-main) !important;
}

.btn-outline-secondary {
  background-color: transparent !important;
  color: var(--color-text) !important;
  border: 2px solid var(--color-border) !important;
}

.btn-outline-secondary:hover {
  background-color: var(--color-text) !important;
  color: white !important;
  border-color: var(--color-text) !important;
}

/* 小さなボタン */
.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  min-height: 36px !important;
  min-width: 60px !important;
}

/* 大きなボタン */
.btn-lg {
  padding: 1rem 2rem !important;
  font-size: 1.1rem !important;
  min-height: 52px !important;
  min-width: 120px !important;
}

/* ボタンアイコンとの組み合わせ */
.btn i {
  margin-right: 0.5rem;
  font-size: 0.9em;
}

.btn i:last-child {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* フォーム要素 */
input, select, textarea {
  font-family: var(--font-family);
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-base);
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-main);
}

/* テーブル */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

thead {
  background-color: var(--color-main-light);
}

th {
  background-color: var(--color-main-light);
  color: white;
  font-weight: var(--font-weight-bold);
  text-align: left;
  padding: 0.875rem 1rem;
  border: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

tbody tr:nth-child(even) {
  background-color: rgba(77, 182, 172, 0.05);
}

tbody tr:hover {
  background-color: rgba(77, 182, 172, 0.1);
}

/* ヘッダー・ナビゲーション */
header {
  background-color: var(--color-main);
  color: white;
  padding: 1rem 0;
}

header a {
  color: white;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-right: 1.5rem;
}

nav a {
  font-weight: var(--font-weight-medium);
}

nav a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* カード */
.card {
  background-color: var(--color-base);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ユーティリティクラス */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ページ全体 */
body {
    background-color: #F2E4DC; /* ペールベージュ */
    color: #593F55; /* ダークパープル */
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ヘッダー */
header {
    background-color: #A67B7E; /* くすみローズ */
    color: #F2E4DC; /* ペールベージュ */
    padding: 10px 0;
    text-align: center;
}

header h1 {
    color: #F2E4DC; /* ペールベージュ */
    margin: 0;
}

header form, header nav {
    display: flex;
    align-items: center;
}

/* ナビゲーションメニュー */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #F2E4DC; /* ペールベージュ */
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #C9A87B; /* 落ち着いたゴールド */
}

/* フラッシュメッセージ */
.messages {
    margin: 20px;
    padding: 10px;
}

.alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.alert-success {
    background-color: #FFB6C1; /* LightPink */
    color: #880E4F; /* Dark Pink */
    border: 1px solid #F8BBD0; /* Lighter Pink */
}

.alert-error {
    background-color: #F8BBD0; /* Pink */
    color: #C2185B; /* Dark Pink */
    border: 1px solid #F48FB1; /* Lighter Pink */
}

.alert-info {
    background-color: #F3E5F5; /* Lavender Pink */
    color: #6A1B9A; /* Purple */
    border: 1px solid #E1BEE7; /* Lighter Lavender */
}

.alert-warning {
    background-color: #FFCCBC; /* Light Coral */
    color: #D84315; /* Coral */
    border: 1px solid #FFAB91; /* Lighter Coral */
}

/* メインコンテンツ */
main {
    margin: 20px;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background-color: #A67B7E; /* くすみローズ */
    color: #F2E4DC; /* ペールベージュ */
    text-align: left;
}

/* フォーム要素 */
button, input, label {
    margin: 5px 0;
}

button, input[type="submit"] {
    background-color: #C9A87B; /* 落ち着いたゴールド */
    color: #F2E4DC; /* ペールベージュ */
    border: 2px solid #A67B7E; /* くすみローズ */
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

button:hover, input[type="submit"]:hover {
    background-color: #A67B7E; /* くすみローズ */
    color: #F2E4DC; /* ペールベージュ */
}

/* 見出し */
h1, h2 {
    color: #593F55; /* ダークパープル */
}

/* フォーム要素 */
input[type="text"], textarea {
    border: 2px solid #AEB1BF; /* アッシュブルー */
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* 直接的なセレクタで背景色を強制する */
html, body {
  background-color: #FFFFFF !important;
}

main, .content, .container {
  background-color: #FFFFFF !important;
}

/* 特定要素の背景 */
.card, .panel, .box {
  background-color: #F5F7FA !important;
}

/* テーブル関連 */
table thead th {
  background-color: #ECEFF1 !important;
}

/* ヘッダー */
header, .header, nav.main-nav {
  background-color: #3F51B5 !important;
  color: white !important;
}

/* フッター */
footer, .footer {
  background-color: #F5F7FA !important;
}

/* Google Fontsからフォントを読み込む場合は、以下のリンクタグをhead内に追加 */
/* <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap" rel="stylesheet"> */

/* 基本スタイル - 重要度を高くして確実に適用 */
html, body {
  font-family: var(--font-body) !important;
  font-weight: var(--font-weight-normal) !important;
  color: var(--color-text) !important;
  background-color: var(--color-base) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* コンテナ要素の背景色設定 */
main, .content, .container, article, section, .main-content {
  background-color: var(--color-base) !important;
}

/* 見出し */
h1, h2, h3, h4, h5, h6, .heading {
  font-family: var(--font-heading) !important;
  color: var(--color-heading) !important;
  line-height: 1.2 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
}

h1, .h1 {
  font-weight: var(--font-weight-bold) !important;
  font-size: 2.25rem !important;
}

h2, .h2 {
  font-weight: var(--font-weight-bold) !important;
  font-size: 1.875rem !important;
}

h3, .h3 {
  font-weight: var(--font-weight-medium) !important;
  font-size: 1.5rem !important;
}

h4, .h4 {
  font-weight: var(--font-weight-medium) !important;
  font-size: 1.25rem !important;
}

h5, .h5 {
  font-weight: var(--font-weight-medium) !important;
  font-size: 1.125rem !important;
}

h6, .h6 {
  font-weight: var(--font-weight-medium) !important;
  font-size: 1rem !important;
}

/* 段落とテキスト */
p, span, div, li, td, th, label, input, select, textarea {
  color: var(--color-text) !important;
  font-family: var(--font-body) !important;
}

/* リンク */
a, .link {
  color: var(--color-link) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

a:hover, .link:hover {
  color: var(--color-main-dark) !important;
  text-decoration: underline !important;
}

/* ボタン */
.button, button, input[type="submit"], .btn {
  background-color: var(--color-main) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.625rem 1.25rem !important;
  font-family: var(--font-body) !important;
  font-weight: var(--font-weight-medium) !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  font-size: 0.95rem !important;
}

.button:hover, button:hover, input[type="submit"]:hover, .btn:hover {
  background-color: var(--color-main-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.button.secondary, .btn-secondary {
  background-color: var(--color-base-secondary) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border) !important;
}

.button.secondary:hover, .btn-secondary:hover {
  background-color: var(--color-border) !important;
}

.button.accent, .btn-accent, .button.primary, .btn-primary {
  background-color: #f4a460 !important;
  color: white !important;
  border-color: #f4a460 !important;
}

.button.accent:hover, .btn-accent:hover, .button.primary:hover, .btn-primary:hover {
  background-color: #e09450 !important;
  border-color: #d88440 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(244, 164, 96, 0.3);
}

/* フォーム要素 */
input, select, textarea, .form-control {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  padding: 0.625rem !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 6px !important;
  background-color: var(--color-base) !important;
  color: var(--color-text) !important;
  transition: all 0.2s !important;
}

input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none !important;
  border-color: var(--color-main) !important;
  box-shadow: 0 0 0 2px rgba(38, 166, 154, 0.2) !important;
}

/* ラベル */
label, .form-label {
  font-weight: var(--font-weight-medium) !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
}

/* テーブル */
table, .table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 1.5rem !important;
  border: none !important;
}

th, .table th {
  background-color: var(--color-table-header) !important;
  font-weight: var(--font-weight-medium) !important;
  text-align: left !important;
  padding: 0.875rem !important;
  border-bottom: 2px solid var(--color-border) !important;
  color: var(--color-heading) !important;
}

td, .table td {
  padding: 0.875rem !important;
  border-bottom: 1px solid var(--color-border) !important;
  color: var(--color-text) !important;
}

tr:hover td, .table tr:hover td {
  background-color: rgba(38, 166, 154, 0.05) !important;
}

/* ヘッダー・ナビゲーション */
header, .header, nav.main-nav, .navbar {
  background-color: var(--color-main) !important;
  color: white !important;
  padding: 1rem 0 !important;
}

header a, .header a, nav a, .navbar a {
  color: white !important;
}

nav ul, .nav {
  display: flex !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

nav li, .nav-item {
  margin-right: 1.5rem !important;
}

nav a, .nav-link {
  font-weight: var(--font-weight-medium) !important;
  color: white !important;
  text-decoration: none !important;
}

nav a:hover, .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
}

/* カード・パネル */
.card, .panel, .box {
  background-color: var(--color-base) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid var(--color-border) !important;
}

.card-header, .panel-header {
  padding-bottom: 1rem !important;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid var(--color-border) !important;
}

/* アラート・通知 */
.alert, .notification {
  padding: 1rem !important;
  border-radius: 6px !important;
  margin-bottom: 1rem !important;
}

.alert-success {
  background-color: #E8F5E9 !important;
  color: #2E7D32 !important;
  border-left: 4px solid #2E7D32 !important;
}

.alert-info {
  background-color: #E0F7FA !important;
  color: #006064 !important;
  border-left: 4px solid #00ACC1 !important;
}

.alert-warning {
  background-color: #FFF8E1 !important;
  color: #F57F17 !important;
  border-left: 4px solid #FFB300 !important;
}

.alert-danger {
  background-color: #FFEBEE !important;
  color: #C62828 !important;
  border-left: 4px solid #EF5350 !important;
}

/* フッター */
footer, .footer {
  background-color: var(--color-table-header) !important;
  color: var(--color-text) !important;
  padding: 2rem 0 !important;
  margin-top: 3rem !important;
}

/* ユーティリティクラス */
.text-center {
  text-align: center !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

/* フォームグループ */
.form-group {
  margin-bottom: 1.25rem !important;
  display: flex;
  flex-direction: column;
}

/* WordPressライクな管理画面レイアウト - パターン2（柔らかなパステルカラー）ベース */

/* 基本レイアウト構造 */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-base-secondary);
}

/* サイドバー（左側ナビゲーション） */
.admin-sidebar {
    width: 240px;
    background-color: #2A3F54;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0;
    color: white;
    font-weight: var(--font-weight-bold);
}

.sidebar-nav {
    flex-grow: 1;
    padding: 20px 0;
    writing-mode: horizontal-tb; /* 横書きに明示的に設定 */
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* リスト項目を縦に並べる */
    writing-mode: horizontal-tb; /* 横書きに明示的に設定 */
}

.sidebar-nav li {
    margin: 0; /* 余計なマージンをリセット */
    padding: 0; /* 余計なパディングをリセット */
    display: block; /* 各リスト項目をブロック要素として表示 */
    width: 100%; /* 幅を親要素に合わせる */
}

/* セクションラベル */
.nav-section-label {
    display: block;
    padding: 20px 20px 8px 20px;
    margin-top: 15px;
    color: #2a9d8f !important;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-section-label:first-child {
    margin-top: 0;
    border-top: none;
}

.sidebar-nav .nav-item {
    display: flex;
    flex-direction: row; /* アイコンとテキストを横に並べる */
    align-items: center;
    padding: 12px 20px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    writing-mode: horizontal-tb; /* 横書きに明示的に設定 */
    width: 100%; /* 幅を親要素に合わせる */
    box-sizing: border-box; /* パディングを含めた幅の計算 */
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background-color: rgba(38, 166, 154, 0.2);
    color: white;
    border-left-color: var(--color-main);
}

.sidebar-nav .nav-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-nav .nav-text {
    font-family: var(--font-body);
    font-weight: var(--font-weight-medium);
    writing-mode: horizontal-tb; /* 横書きに明示的に設定 */
    color: white !important;
}

.nav-item-bottom {
    margin-top: auto;
}

.sidebar-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* メインコンテンツエリア（右側） */
.admin-content {
    flex-grow: 1;
    margin-left: 240px;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-base-secondary);
}

.content-header {
    background-color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
}

.welcome-message {
    font-size: 0.9rem;
    color: var(--color-text);
}

.content-body {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

/* メッセージ・通知 */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-left-color: #2E7D32;
}

.alert-info {
    background-color: #E0F7FA;
    color: #006064;
    border-left-color: #00ACC1;
}

.alert-warning {
    background-color: #FFF8E1;
    color: #F57F17;
    border-left-color: #FFB300;
}

.alert-danger {
    background-color: #FFEBEE;
    color: #C62828;
    border-left-color: #EF5350;
}

/* コンテンツカード */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 20px;
}

.card-header {
    margin: -20px -20px 20px;
    padding: 15px 20px;
    background-color: #fafafa;
    border-bottom: 1px solid var(--color-border);
    border-radius: 8px 8px 0 0;
}

.card-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    color: var(--color-heading);
    font-size: 1.2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
        overflow: visible;
    }
    
    .admin-sidebar .site-title,
    .admin-sidebar .nav-text,
    .admin-sidebar .sidebar-footer {
        display: none;
    }
    
    .admin-sidebar .nav-icon {
        margin-right: 0;
        font-size: 1.2rem;
    }
    
    .admin-content {
        margin-left: 60px;
    }
}

/* 右向き三角形アイコン付きリンク */
.icon-link-arrow {
  display: inline-flex;     /* インラインフレックスボックスとして表示 */
  align-items: center;      /* 子要素を垂直方向に中央揃え */
  transition: color 0.2s;   /* 色の変化を滑らかにアニメーション */
}

/* 疑似要素を使用してアイコンを追加 */
.icon-link-arrow::before {
  content: "▶";            /* 右向き三角形を表示 */
  margin-right: 0.5rem;    /* アイコンとテキストの間の余白 */
  font-size: 0.8em;        /* アイコンのサイズを少し小さく */
  color: inherit;          /* 親要素の色を継承（デフォルト） */
  transition: transform 0.2s ease; /* 変形アニメーション */
}

/* ホバー時のアニメーション効果 */
.icon-link-arrow:hover::before {
  transform: translateX(2px); /* マウスオーバー時に少し右に移動 */
}

/* サイドバーナビゲーション用の調整 */
.sidebar-nav .nav-item .icon-link-arrow::before {
  margin-right: 0.4rem;
  font-size: 0.7em;
}

/* サイドバーのリスト項目のマージンとパディングをリセット */
.sidebar-nav li {
    margin: 0; /* 余計なマージンをリセット */
    padding: 0; /* 余計なパディングをリセット */
}

/* アイコン自体も白色に */
.icon-link-arrow::before {
    content: "▶";            /* 右向き三角形を表示 */
    margin-right: 0.5rem;    /* アイコンとテキストの間の余白 */
    font-size: 0.8em;        /* アイコンのサイズを少し小さく */
    color: white;            /* アイコンを白色に */
    transition: transform 0.2s ease; /* 変形アニメーション */
}

/* サイドバー内のアイコンリンクを白色に */
.sidebar-nav .nav-item.icon-link-arrow::before {
    color: white;
}

/* サイドバーのメニューテキストを白色に設定（重要度を最大に） */
.sidebar-nav .nav-item {
    color: white !important;
}

.sidebar-nav .nav-text {
    color: white !important;
}

.sidebar-nav a.nav-item {
    color: white !important;
}

.sidebar-nav a {
    color: white !important;
}

.sidebar-nav span.nav-text {
    color: white !important;
}

/* アイコンも白色に */
.sidebar-nav .icon-link-arrow::before {
    color: white !important;
}

/* メインコンテンツ内のリンクアイコンの色を設定 */
.content-body .icon-link-arrow::before {
  color: var(--color-link) !important; /* リンク色を使用 */
}

/* メインコンテンツ内のリンクアイコンのホバー時の色 */
.content-body .icon-link-arrow:hover::before {
  color: var(--color-main-dark) !important; /* ホバー時の色 */
}

/* 顧客詳細ページのサブナビゲーション内のアイコン */
.customer-subnav .icon-link-arrow::before {
  color: #593F55 !important; /* ダークパープル（テーマカラー） */
}

.customer-subnav .icon-link-arrow:hover::before,
.customer-subnav .icon-link-arrow.active::before {
  color: #F2E4DC !important; /* ペールベージュ（テーマカラー） - ホバー時 */
}

/* グローバルなアイコン設定をサイドバー専用に変更 */
.icon-link-arrow::before {
  content: "▶";
  margin-right: 0.5rem;
  font-size: 0.8em;
  color: inherit; /* 親要素の色を継承（デフォルト） */
  transition: transform 0.2s ease;
}

/* サイドバー内のアイコンだけ白色に */
.admin-sidebar .icon-link-arrow::before {
  color: white !important;
}

/* フローティングサブナビゲーション - 修正版 */
.sticky-submenu {
    position: sticky;
    top: 20px;
    background-color: var(--color-main-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 100;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--color-main);
    max-width: 100%;
    box-sizing: border-box;
}

.sticky-submenu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sticky-submenu li {
    margin: 0;
}

.sticky-submenu a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: var(--font-weight-medium);
}

.sticky-submenu a:hover,
.sticky-submenu a.active {
    background-color: var(--color-main-dark);
    color: white;
    font-weight: var(--font-weight-bold);
}

/* セクション間の余白 */
section {
    margin-bottom: 40px;
    padding-top: 10px; /* スクロール時のオフセット */
}

/* セクション見出し */
section h2 {
    border-bottom: 2px solid #26A69A; /* メインカラー */
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* JavaScript フォールバック用のスタイル */
.fixed-menu {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 削除された行のスタイル */
.deleted-row {
    background-color: #FFEBEE;
    opacity: 0.7;
}

/* 削除された行のフィールドに取り消し線を表示 */
.deleted-field {
    text-decoration: line-through;
    color: #999;
}

/* 削除ボタンのスタイル */
.delete-row-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* 復元ボタンのスタイル */
.restore-row-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* ボタンホバー時のスタイル */
.delete-row-btn:hover, .restore-row-btn:hover {
    opacity: 0.8;
}

/* 顧客一覧画面のカード形式改善 */
.customer-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
}

.customer-card {
  background-color: var(--color-base);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: all 0.2s;
  border-top: 4px solid var(--color-main-light);
}

.customer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.customer-card h3 {
  margin-top: 0;
  color: var(--color-heading);
}

.customer-card-info {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.customer-card-links {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* 顧客詳細画面 - セクション区切りを明確に */
.customer-section {
  margin-bottom: 2.5rem;
  background-color: var(--color-base);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  position: relative;
  border-left: 4px solid var(--color-main);
}

.customer-section h2 {
  margin-top: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-heading);
}

/* 来店履歴フォーム改善 */
.visit-history-form .formset-table {
  margin-bottom: 2rem;
}

.visit-history-form .add-row-btn {
  background-color: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.visit-history-form .add-row-btn::before {
  content: "+";
  margin-right: 0.5rem;
  font-weight: bold;
}

.visit-history-form .delete-row-btn {
  background-color: #f44336; /* 赤色 */
  color: white;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.visit-history-form .restore-row-btn {
  background-color: #4CAF50; /* 緑色 */
  color: white;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.visit-history-form .total-amount {
  text-align: right;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin: 1rem 0;
  padding: 1rem;
  background-color: var(--color-base-secondary);
  border-radius: 4px;
}

.visit-history-form .subtotal-display {
  font-weight: var(--font-weight-medium);
}

/* ダッシュボード画面 - カードレイアウト */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background-color: var(--color-base);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  border-top: 3px solid var(--color-main);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-label {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.metric-card:nth-child(2) {
  border-top-color: var(--color-accent);
}

.metric-card:nth-child(3) {
  border-top-color: #9C27B0; /* 紫色 */
}

.metric-card:nth-child(4) {
  border-top-color: #FFC107; /* 黄色 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .dashboard-metrics,
  .customer-list {
    grid-template-columns: 1fr;
  }
  
  .sticky-submenu ul {
    flex-direction: column;
  }
  
  .sticky-submenu li {
    margin-bottom: 0.5rem;
  }
}

/* ログアウトボタンのスタイル */
.logout-btn {
  background: none !important;
  border: none !important;
  color: inherit !important;
  font: inherit !important;
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  padding: 12px 15px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  transform: none !important;
}

.logout-btn:hover {
  background-color: var(--color-sidebar-active) !important;
  color: var(--color-sidebar-text-hover) !important;
  box-shadow: none !important;
  transform: none !important;
}

.logout-btn:active {
  transform: none !important;
  box-shadow: none !important;
}

/* オレンジ色ボタンの統一スタイル */
.btn-warning,
button.btn-warning,
a.btn-warning,
input.btn-warning {
  background-color: #FF5722 !important;
  border-color: #FF5722 !important;
  color: #FFFFFF !important;
  border: 1px solid #FF5722 !important;
}

.btn-warning:hover,
button.btn-warning:hover,
a.btn-warning:hover,
input.btn-warning:hover {
  background-color: #E64A19 !important;
  border-color: #E64A19 !important;
  color: #FFFFFF !important;
  border: 1px solid #E64A19 !important;
}

.btn-warning:focus, 
.btn-warning.focus,
button.btn-warning:focus,
a.btn-warning:focus {
  background-color: #E64A19 !important;
  border-color: #E64A19 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.5) !important;
}

.btn-warning:active, 
.btn-warning.active,
button.btn-warning:active,
a.btn-warning:active {
  background-color: #D84315 !important;
  border-color: #D84315 !important;
  color: #FFFFFF !important;
}

.btn-warning:visited,
a.btn-warning:visited {
  color: #FFFFFF !important;
}

/* ボタンの色統一 - 予約管理の新規予約ボタンと同じ色に */
.btn-task.primary {
    background-color: #FF9E80 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.btn-task.primary:hover {
    background-color: #FF7043 !important;
    color: white !important;
    text-decoration: none !important;
}

/* 顧客一覧の詳細ボタンの文字色を白に */
.btn-info {
    color: white !important;
}

.btn-info:hover {
    color: white !important;
}

/* 各種設定画面のタイトルを左寄せに */
.content-header {
    background-color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 各種設定画面専用の左寄せ */
body:has([data-page="settings"]) .content-header,
.settings-page .content-header {
    justify-content: flex-start !important;
}

/* レスポンシブ対応の強化 */
@media (max-width: 768px) {
  .dashboard-metrics,
  .customer-list {
    grid-template-columns: 1fr;
  }
  
  .sticky-submenu ul {
    flex-direction: column;
  }
  
  .sticky-submenu li {
    margin-bottom: 0.5rem;
  }
}

/* タッチデバイス対応とアクセシビリティ向上 */
@media (hover: none) and (pointer: coarse) {
  /* タッチデバイス専用のスタイル */
  .hamburger-menu {
    min-height: 44px;
    min-width: 44px;
  }
  
  .sidebar-nav .nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .btn, button, input[type="submit"] {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  .customer-card-links a {
    min-height: 44px;
  }
  
  .sticky-submenu a {
    min-height: 44px;
  }
}

/* スクロールバーの見た目を改善 */
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* フォーカス表示の改善 */
.hamburger-menu:focus,
.sidebar-nav .nav-item:focus,
.btn:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
}

/* アニメーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar,
  .hamburger-line,
  .hamburger-menu,
  .mobile-overlay {
    transition: none !important;
  }
  
  .metric-card {
    transition: none !important;
  }
  
  .metric-card:hover {
    transform: none !important;
  }
}

/* プリント用スタイル */
@media print {
  .hamburger-menu,
  .admin-sidebar,
  .mobile-overlay {
    display: none !important;
  }
  
  .admin-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  
  .content-header {
    border-bottom: 1px solid #ccc;
  }
  
  .btn {
    display: none !important;
  }
  
  .table-responsive {
    overflow: visible !important;
  }
  
  table {
    font-size: 12px !important;
  }
}

/* 新しいモバイル用レスポンシブ対応 */
@media (max-width: 991px) {
  .hamburger-menu {
    display: flex;
  }
  
  .admin-layout {
    position: relative;
  }
  
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .admin-sidebar.active {
    left: 0;
  }
  
  .admin-content {
    margin-left: 0;
    padding: 10px;
    padding-top: 70px; /* ハンバーガーメニューボタンの高さ分のスペース */
  }
  
  .content-header {
    padding: 0.5rem 1rem;
    margin-top: 0;
  }
  
  .content-body {
    padding: 1rem;
  }
  
  /* モバイル用オーバーレイ */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }
  
  .mobile-overlay.active {
    display: block;
  }
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 45px;
  height: 35px;
  background: var(--color-main);
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  background: var(--color-main-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* テーブルのレスポンシブ対応強化 */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.table-responsive table {
  margin-bottom: 0;
}

/* カードのレスポンシブ対応強化 */
.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
}

.card-header {
  background-color: var(--color-main-light);
  color: white;
  padding: 1rem;
  font-weight: var(--font-weight-medium);
}

.card-body {
  padding: 1rem;
}

/* メトリクスカードのレスポンシブ対応 */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .metric-card {
    padding: 1rem;
  }
  
  .admin-sidebar {
    left: -260px;
    width: 260px;
  }
  
  .admin-content {
    padding: 5px;
    padding-top: 60px; /* ハンバーガーメニューボタンの高さ分のスペース */
  }
  
  .content-header {
    padding: 0.5rem;
  }
  
  .content-body {
    padding: 0.5rem;
  }
  
  .content-body .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* テーブルのモバイル対応 */
  .table-responsive {
    border-radius: 4px;
  }
  
  table {
    min-width: 600px;
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.5rem 0.25rem;
    white-space: nowrap;
  }
  
  th {
    font-size: 0.8rem;
  }
  
  /* カードのモバイル対応 */
  .card {
    margin-bottom: 0.5rem;
  }
  
  .card-header {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  /* 顧客カードのモバイル対応 */
  .customer-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .customer-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .customer-card-info {
    font-size: 0.9rem;
  }
  
  .customer-card-links {
    margin-top: 1rem;
  }
  
  .customer-card-links a {
    display: block;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-main);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
  }
  
  .customer-card-links a:hover {
    background-color: var(--color-main-dark);
  }
  
  /* フォームのレスポンシブ対応 */
  .form-group {
    margin-bottom: 1rem;
  }
  
  input, select, textarea {
    width: 100%;
    box-sizing: border-box;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-group {
    display: flex;
    flex-direction: column;
  }
  
  .btn-group .btn {
    margin-bottom: 0.5rem;
  }
  
  /* ページタイトルとボタンのレスポンシブ対応 */
  .d-sm-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .d-sm-flex .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
  
  .metric-card {
    padding: 1rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
  }
  
  .admin-sidebar {
    left: -100%;
    width: 100%;
  }
  
  .admin-content {
    padding: 5px;
    padding-top: 55px; /* ハンバーガーメニューボタンの高さ分のスペース */
  }
  
  .site-title {
    font-size: 1.2rem;
  }
  
  .customer-card {
    padding: 1rem;
  }
  
  sticky-submenu {
    position: static;
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
  }
  
  .sticky-submenu ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .sticky-submenu a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: var(--color-main);
    color: white;
    text-align: center;
  }
  
  .sticky-submenu a:hover {
    background-color: var(--color-main-dark);
  }
  
  /* フォントサイズの調整 */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  /* テーブルのスクロール対応 */
  .table-responsive {
    margin-bottom: 1rem;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.5rem;
  }
  
  /* カードの小画面対応 */
  .card-header {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  .card-body {
    padding: 0.5rem;
  }
  
  .customer-card {
    padding: 0.75rem;
  }
  
  .customer-card h3 {
    font-size: 1rem;
  }
  
  .customer-card-info {
    font-size: 0.8rem;
  }
}

/* ===== ページネーション（改善版） ===== */

/* Bootstrap pagination のカスタマイズ */
.pagination {
  margin: 1.5rem 0;
  justify-content: center;
}

.pagination .page-link {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  padding: 0.75rem 1rem !important;
  margin: 0 2px;
  border: 2px solid var(--color-border) !important;
  border-radius: 8px !important;
  background-color: var(--color-base) !important;
  color: var(--color-text) !important;
  transition: all 0.3s ease !important;
  min-width: 44px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination .page-link:hover {
  background-color: var(--color-main-light) !important;
  color: white !important;
  border-color: var(--color-main-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.pagination .page-item.active .page-link {
  background-color: var(--color-main) !important;
  border-color: var(--color-main) !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.disabled .page-link {
  background-color: var(--color-base-secondary) !important;
  border-color: var(--color-border) !important;
  color: #999 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* カスタム pagination のスタイリング */
.pagination-container {
  margin: 2rem 0;
  text-align: center;
}

.pagination-container .pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-base);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
}

.pagination-container .page-link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  margin: 0 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-main);
  background-color: var(--color-base);
  border: 2px solid var(--color-main);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
}

.pagination-container .page-link:hover {
  background-color: var(--color-main);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.pagination-container .page-info {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-main);
  background-color: var(--color-base-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--color-main);
  margin: 0 1rem;
  white-space: nowrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .pagination .page-link {
    font-size: 1rem !important;
    padding: 0.5rem 0.75rem !important;
    min-width: 36px;
  }
  
  .pagination-container .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 36px;
  }
  
  .pagination-container .page-info {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
  }
  
  .pagination-container .pagination {
    padding: 0.75rem;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .pagination .page-link {
    font-size: 0.9rem !important;
    padding: 0.5rem !important;
    min-width: 32px;
  }
  
  .pagination-container .page-link {
    padding: 0.5rem;
    font-size: 0.8rem;
    min-width: 32px;
  }
  
  .pagination-container .page-info {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
  }
}

/* データ管理画面 - CSVインポート機能 */
.csv-format-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.format-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.25rem;
}

.format-required {
    color: #dc3545;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.format-optional {
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.format-export-note {
    color: #0d6efd;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.format-important {
    color: #fd7e14;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.format-details {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #856404;
    border-radius: 0 4px 4px 0;
}

.format-details br {
    margin-bottom: 0.25rem;
}

/* インポートボタンとファイル入力のスタイル */
.file-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.file-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

.file-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ボトムナビゲーション関連のスタイル - モバイル対応強化 */
.bottom-nav-item {
    /* タッチイベント最適化 */
    touch-action: manipulation !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    
    /* タッチターゲットサイズ確保 */
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    
    /* ボタンスタイル */
    background: none;
    border: none;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
    /* タッチフィードバック */
    transition: background-color var(--transition-speed) ease, transform 0.1s ease;
    border-radius: var(--border-radius);
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
    background-color: rgba(63, 81, 181, 0.1);
    outline: none;
}

.bottom-nav-item:active {
    transform: scale(0.95);
    background-color: rgba(63, 81, 181, 0.2);
}

/* ===== タブレット表示の対応（新規追加）===== */
/* タブレット専用のレイアウト調整 (768px〜1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* タブレットでは少しコンパクト化されたサイドバーを表示 */
    .admin-sidebar {
        display: block !important; /* 確実にサイドバーを表示 */
        width: 200px !important; /* デスクトップの250pxから縮小 */
        font-size: 0.9rem;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1); /* 影を追加 */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
    }
    
    .admin-content {
        margin-left: 200px !important;
        padding: 0.75rem;
        transition: margin-left 0.3s ease; /* スムーズな遷移 */
        width: calc(100% - 200px) !important;
    }
    
    /* ボトムナビゲーションは非表示 */
    .bottom-navigation {
        display: none !important;
    }
    
    /* ハンバーガーメニューも非表示 */
    .hamburger-menu {
        display: none !important;
    }
    
    /* サイドバーナビゲーション項目のコンパクト化 */
    .sidebar-nav .nav-item {
        padding: 10px 12px !important;
        margin: 2px 8px !important;
        font-size: 0.9rem;
    }
    
    .nav-icon {
        margin-right: 10px !important;
        width: 18px;
    }
    
    /* サイドバーヘッダーのサイズ調整 */
    .site-title {
        font-size: 1.1rem !important;
        padding: 1rem 0.75rem !important;
    }
    
    /* ドロップダウンメニューの調整 */
    .nav-dropdown-item {
        padding: 14px 18px 14px 50px !important;
        font-size: 0.85rem !important;
    }
    
    /* コンテンツエリアの調整 */
    .content-body .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* ボタンやフォーム要素のタッチフレンドリー化 */
    .btn, button, input[type="submit"] {
        min-height: 44px;
        padding: 0.75rem 1rem !important;
        touch-action: manipulation;
    }
    
    /* テーブルの横スクロール対応 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* カードの余白調整 */
    .card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    /* フォントサイズの微調整 */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
}

/* タブレット縦向き時の特別対応 (768px〜1024px の縦向き) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* 縦向きタブレットでは通常サイズでサイドバー表示 */
    .admin-sidebar {
        display: block !important;
        width: 200px !important; /* 縦向きでも200px維持 */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
    }
    
    .admin-content {
        margin-left: 200px !important;
        width: calc(100% - 200px) !important;
    }
    
    .sidebar-nav .nav-item {
        padding: 10px 12px !important;
        margin: 2px 8px !important;
        font-size: 0.9rem !important;
    }
    
    .nav-icon {
        margin-right: 10px !important;
        width: 18px !important;
    }
    
    /* ボトムナビゲーションは非表示 */
    .bottom-navigation {
        display: none !important;
    }
    
    /* ハンバーガーメニューも非表示 */
    .hamburger-menu {
        display: none !important;
    }
}

/* ===== スマートフォン表示最適化 ===== */
@media (max-width: 767px) {
    /* 基本レイアウト調整 */
    body {
        font-size: 16px !important; /* iOSのズーム防止 */
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* タイトル・見出しの最適化 */
    h1, .page-title {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.3 !important;
    }
    
    h2, .section-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    h3, .subsection-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* ボタンのモバイル最適化 */
    .btn, .button, button, input[type="submit"] {
        min-height: 48px !important; /* タッチフレンドリー */
        min-width: 48px !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* フォーム要素の最適化 */
    input, select, textarea, .form-control {
        min-height: 44px !important;
        font-size: 16px !important; /* iOSのズーム防止 */
        padding: 0.75rem !important;
        border-radius: 8px !important;
        border: 2px solid var(--color-border) !important;
        -webkit-appearance: none;
    }
    
    input:focus, select:focus, textarea:focus, .form-control:focus {
        border-color: var(--color-main) !important;
        box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1) !important;
        outline: none;
    }
    
    /* テーブルの横スクロール改善 */
    .table-responsive {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--color-main);
        border-radius: 2px;
    }
    
    /* カードコンテンツの最適化 */
    .card {
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* ナビゲーション項目の改善 */
    .bottom-nav-item {
        /* モバイルでのタッチ領域拡大 */
        min-height: 56px !important; /* 増量 */
        min-width: 56px !important;
        padding: 12px 16px !important;
        
        /* タッチ最適化 */
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        touch-action: manipulation;
        
        /* より確実なタッチイベント処理 */
        pointer-events: auto !important;
        position: relative;
        z-index: 10;
        
        /* 視認性向上 */
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin: 4px;
    }
    
    .bottom-nav-item::before {
        /* タッチ領域を視覚的に拡張 */
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        pointer-events: auto;
    }
    
    .bottom-nav-item:hover,
    .bottom-nav-item:focus,
    .bottom-nav-item.active {
        background-color: var(--color-main) !important;
        color: white !important;
        transform: scale(1.05);
    }
    
    .bottom-nav-item:hover .bottom-nav-icon,
    .bottom-nav-item:focus .bottom-nav-icon,
    .bottom-nav-item.active .bottom-nav-icon {
        color: white !important;
    }
    
    .bottom-nav-icon {
        font-size: 1.4rem !important;
        margin-bottom: 6px !important;
    }
    
    .bottom-nav-text {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
    }

    /* 追加：モバイル専用の「その他」ボタン最適化 */
    #moreMenuButton {
        /* 最優先でタッチイベントを受け取る */
        z-index: 9999 !important;
        position: relative !important;
        
        /* タッチ反応性を最大化 */
        touch-action: manipulation !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        
        /* 他の要素との重なりを防ぐ */
        isolation: isolate;
        
        /* ハードウェアアクセラレーション */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    /* 「その他」ボタンのタッチ領域を拡大 */
    #moreMenuButton::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }
    
    /* その他メニューモーダルの改善 */
    .more-menu-overlay {
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(5px);
        z-index: 10000 !important;
    }
    
    .more-menu-modal {
        max-height: 85vh !important;
        border-radius: 20px 20px 0 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 20px);
        background: white !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    .more-menu-header {
        padding: 20px 24px 16px 24px !important;
        border-bottom: 2px solid #f0f0f0 !important;
        background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .more-menu-title {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: var(--color-heading) !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .more-menu-close {
        position: absolute !important;
        right: 20px !important;
        top: 20px !important;
        background: rgba(0, 0, 0, 0.1) !important;
        border: none !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.5rem !important;
        color: #666 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
    }
    
    .more-menu-close:hover {
        background: rgba(0, 0, 0, 0.2) !important;
        color: #333 !important;
    }
    
    .more-menu-items {
        padding: 16px 0 32px 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* レポートグループの改善 */
    .more-menu-group {
        margin-bottom: 24px !important;
        padding: 0 16px !important;
    }
    
    .more-menu-group-title {
        display: flex !important;
        align-items: center !important;
        padding: 12px 16px 8px 16px !important;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
        color: var(--color-heading) !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        border: 1px solid #e9ecef !important;
    }
    
    .more-menu-group-title i {
        margin-right: 12px !important;
        color: var(--color-main) !important;
        font-size: 1rem !important;
    }
    
    .more-menu-sub-items {
        margin-left: 8px !important;
        padding-left: 8px !important;
        border-left: 2px solid #e9ecef !important;
    }
    
    .more-menu-sub-item {
        display: flex !important;
        align-items: center !important;
        padding: 12px 16px !important;
        color: var(--color-text) !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
        border-radius: 6px !important;
        margin-bottom: 4px !important;
        transition: all 0.2s ease !important;
        border: 1px solid transparent !important;
    }
    
    .more-menu-sub-item:hover,
    .more-menu-sub-item:active {
        background: var(--color-main) !important;
        color: white !important;
        border-color: var(--color-main) !important;
        text-decoration: none !important;
        transform: translateX(4px) !important;
    }
    
    .more-menu-sub-item i {
        margin-right: 12px !important;
        font-size: 0.9rem !important;
        width: 18px !important;
        text-align: center !important;
        color: var(--color-main) !important;
    }
    
    .more-menu-sub-item:hover i,
    .more-menu-sub-item:active i {
        color: white !important;
    }
    
    /* 基本メニューアイテムの改善 */
    .more-menu-item {
        display: flex !important;
        align-items: center !important;
        padding: 16px 24px !important;
        font-size: 1rem !important;
        min-height: 56px !important;
        border-radius: 8px !important;
        margin: 0 16px 6px 16px !important;
        transition: all 0.2s ease !important;
        color: var(--color-text) !important;
        text-decoration: none !important;
        border: 2px solid transparent !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* ホバー・アクティブ効果 */
    .more-menu-item::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
        transition: left 0.3s ease !important;
        z-index: 1 !important;
    }
    
    .more-menu-item:hover::before,
    .more-menu-item:active::before {
        left: 100% !important;
    }
    
    .more-menu-item:hover,
    .more-menu-item:active {
        background-color: var(--color-main) !important;
        color: white !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        transform: scale(0.98) translateX(4px) !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(var(--color-main), 0.3) !important;
    }
    
    .more-menu-item .nav-icon {
        margin-right: 16px !important;
        font-size: 1.1rem !important;
        width: 20px !important;
        text-align: center !important;
        color: var(--color-main) !important;
        transition: color 0.2s ease !important;
        z-index: 2 !important;
        position: relative !important;
    }
    
    .more-menu-item:hover .nav-icon,
    .more-menu-item:active .nav-icon {
        color: white !important;
    }
    
    .more-menu-item span {
        z-index: 2 !important;
        position: relative !important;
        font-weight: 500 !important;
    }
    
    /* セクション区切り線 */
    .more-menu-divider {
        height: 2px !important;
        background: linear-gradient(90deg, transparent, #e9ecef, transparent) !important;
        margin: 20px 24px !important;
        position: relative !important;
    }
    
    .more-menu-divider::before {
        content: '' !important;
        position: absolute !important;
        top: -1px !important;
        left: 0 !important;
        right: 0 !important;
        height: 1px !important;
        background: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* スペーシングの調整 */
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .content-body {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* 安全エリア対応（iPhone X以降） */
    .bottom-navigation {
        padding-bottom: env(safe-area-inset-bottom, 8px) !important;
        padding-left: env(safe-area-inset-left, 0px) !important;
        padding-right: env(safe-area-inset-right, 0px) !important;
    }
    
    /* テキストの可読性向上 */
    p, li, span, div {
        line-height: 1.6 !important;
    }
    
    /* アクションボタングループの最適化 */
    .btn-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }
    
    .btn-group .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ===== 最終レスポンシブ調整 ===== */

/* デスクトップでのサイドバー改善 */
@media (min-width: 1025px) {
    .admin-sidebar {
        background: linear-gradient(135deg, #2c3e50, #34495e); /* グラデーション背景 */
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15); /* 深い影 */
    }
    
    /* ドロップダウンメニューの改善 */
    .nav-dropdown-menu {
        background: linear-gradient(135deg, rgba(52, 73, 94, 0.95), rgba(44, 62, 80, 0.95));
        backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        margin-top: 5px;
    }
}

/* 超ワイドスクリーンでの調整 */
@media (min-width: 1600px) {
    .admin-sidebar {
        width: 280px !important;
    }
    
    .admin-content {
        margin-left: 280px !important;
    }
    
    .sidebar-nav .nav-item {
        padding: 16px 20px !important;
        font-size: 1rem !important;
    }
}

/* プリント時の調整 */
@media print {
    .admin-sidebar,
    .bottom-navigation,
    .hamburger-menu,
    .more-menu-overlay {
        display: none !important;
    }
    
    .admin-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    .table {
        border-collapse: collapse !important;
    }
    
    .table th, .table td {
        border: 1px solid #000 !important;
    }
}

.bottom-nav-icon {
    font-size: 1.2em;
    margin-bottom: 4px;
}

.bottom-nav-text {
    font-size: 0.75em;
    line-height: 1;
}

/* ===== パフォーマンス最適化 ===== */
/* GPU アクセラレーション */
.sidebar-nav .nav-item,
.btn,
.button,
.bottom-nav-item {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* スクロールの最適化 */
.admin-sidebar,
.more-menu-modal {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* フォント読み込みの最適化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* アクセシビリティ向上 */

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .sidebar-nav .nav-item {
        border: 2px solid currentColor !important;
    }
    
    .btn {
        border: 2px solid currentColor !important;
    }
}



/* ===== Navigation Dropdown System ===== */
/* TODO: Migrate to BEM naming convention in future refactoring */

/* Base dropdown menu state - 優先度強化 */
.nav-dropdown-menu {
    display: none !important;
}

/* Active dropdown menu state - 優先度強化 */
.nav-dropdown.active .nav-dropdown-menu {
    display: block !important;
}

/* Dropdown item styling with proper hierarchy indication */
.nav-dropdown-item {
    padding: 12px 18px 12px 50px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dropdown item hover state */
.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Navigation Control ===== */
/* PC display: hide mobile navigation elements */
@media (min-width: 768px) {
    .bottom-navigation,
    .more-menu-overlay,
    .hamburger-menu {
        display: none;
    }
}

/* Mobile display: hide sidebar, show bottom navigation */
@media (max-width: 767px) {
    .admin-sidebar {
        display: none;
    }
    
    .bottom-navigation {
        display: block;
    }
}
