/* 雀荘通貫 - 共通スタイル */

/* ========================================
   基本設定・リセット
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #333;
}

/* ========================================
   カラーパレット（CSS変数）
======================================== */
:root {
    --primary-color: #2c5530;
    --primary-dark: #1a3d1f;
    --secondary-color: #4CAF50;
    --accent-color: #2196F3;
    --change-color: #f38721;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f5f7fa;
    
    --border-color: #e1e5e9;
    --border-light: #e9ecef;
    --border-lighter: #f0f0f0;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    --border-radius: 6px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    
    --transition: all 0.3s ease;
}

/* ========================================
   ヘッダー共通スタイル
======================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "🀄";
}

/* ホームボタンスタイル */
.home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.home-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

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

.nav-breadcrumb a:hover {
    color: white;
}

/* ユーザー情報（ヘッダー内） */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.store-name {
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-name {
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   メインコンテナ
======================================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main-container.narrow {
    max-width: 800px;
}

.main-container.wide {
    max-width: 1400px;
}

/* ========================================
   ページタイトル・ヘッダー
======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* ========================================
   カード・コンテナ
======================================== */
.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content {
    padding: 2rem;
}

.card-footer {
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-light);
}

/* ========================================
   ボタン共通スタイル
======================================== */
.btn {
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    font-family: inherit;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: #495057;
    border: 2px solid var(--border-light);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-light);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
}

.btn-info {
    background: var(--accent-color);
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #1976D2;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   スタイリッシュボタン（検索・戻る・更新）
======================================== */
.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-search::before {
    content: "🔍";
    font-size: 1.1rem;
}

.btn-search:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-back::before {
    content: "←";
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-back:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
    background: linear-gradient(135deg, #e081e9 0%, #e3455a 100%);
}

.btn-back:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-update {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-update::before {
    content: "✓";
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-update:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
    background: linear-gradient(135deg, #3d9aec 0%, #00e0ec 100%);
}

.btn-update:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

/* Excelダウンロードボタン */
.btn-excel {
    background: linear-gradient(135deg, #217346 0%, #185c38 100%);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 115, 70, 0.4);
}

.btn-excel::before {
    content: "📥";
    font-size: 1.1rem;
}

.btn-excel:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 115, 70, 0.6);
    background: linear-gradient(135deg, #1a5c38 0%, #114828 100%);
}

.btn-excel:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(33, 115, 70, 0.4);
}

.btn-excel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-excel:active::after {
    width: 300px;
    height: 300px;
}

/* ボタンのローディング状態 */
.btn-search:disabled,
.btn-back:disabled,
.btn-update:disabled,
.btn-excel:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ボタンのリップル効果 */
.btn-search::after,
.btn-back::after,
.btn-update::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-search:active::after,
.btn-back:active::after,
.btn-update:active::after {
    width: 300px;
    height: 300px;
}

/* フォームアクション内のボタン配置 */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .btn-search,
    .btn-back,
    .btn-update {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   フォーム要素
======================================== */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

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

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.required {
    color: var(--danger-color);
    font-size: 0.8rem;
}

/* ========================================
   バッジ・ラベル
======================================== */
.badge {
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.badge-primary {
    background: #e7f3ff;
    color: var(--accent-color);
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* ========================================
   統計・メトリクス
======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   テーブル
======================================== */
.table-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    position: sticky;
    top: 0;
}

.table tr:hover {
    background: var(--bg-secondary);
}

/* ========================================
   グリッドレイアウト
======================================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ========================================
   通知・アラート・メッセージ
======================================== */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* ========================================
   統一メッセージスタイル
======================================== */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: messageSlideIn 0.5s ease forwards;
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: "✅";
    font-size: 1.2rem;
    flex-shrink: 0;
}

.success-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: messageShimmer 2s ease-in-out;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: messageSlideIn 0.5s ease forwards;
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: "❌";
    font-size: 1.2rem;
    flex-shrink: 0;
}

.error-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: messageShimmer 2s ease-in-out;
}

/* フィールドエラーメッセージ（フォーム用） */
.field-error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

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

@keyframes messageShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* メッセージのホバー効果 */
.success-message:hover,
.error-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* フォームグループ内のエラー状態 */
.form-group:has(.field-error-message) .form-control {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-group:has(.field-error-message) .form-control:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

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

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .header {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   印刷対応
======================================== */
@media print {
    .header,
    .back-btn,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #333;
    }
    
    .main-container {
        max-width: none;
        padding: 0;
    }
}

/* ========================================
   検索・ページネーション共通スタイル
======================================== */

/* 検索セクション */
.search-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.search-form {
    margin: 0;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    min-width: 300px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.btn-clear {
    background: var(--bg-secondary);
    color: #495057;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear:hover {
    background: var(--border-light);
}

/* 検索結果情報 */
.search-result-info {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-color);
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-decoration: none;
    background: var(--bg-primary);
    transition: var(--transition);
    font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination-btn.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-number {
    padding: 0.6rem 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-decoration: none;
    background: var(--bg-primary);
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.pagination-number:hover:not(.current) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination-number.current {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.pagination-ellipsis {
    padding: 0.6rem 0.3rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* データなし表示 */
.no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--border-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        margin-bottom: 0.75rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-number,
    .pagination-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .pagination-number,
    .pagination-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 32px;
    }
    
    .search-result-info {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ========================================
   テーブルアクションボタン共通スタイル
======================================== */
.btn-edit {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* ========================================
   役割バッジ共通スタイル
======================================== */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
}

.role-manager {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.role-staff {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.role-part-time {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

/* ========================================
   ヘッダーアクション共通スタイル
======================================== */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 検索結果セクション */
.result-section {
    animation: fadeInUp 0.5s ease-out;
}

/* ========================================
   アニメーション共通
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   データテーブル共通スタイル
======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--bg-secondary);
    transition: background-color 0.2s ease;
}

.data-table tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.data-table tr:nth-child(even):hover {
    background: var(--bg-secondary);
}

/* アクションボタン共通スタイル */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

/* バッジスタイル */
.game-type-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    margin-left: 8px;
    color: white;
    font-weight: 500;
}

.three-game {
    background-color: #28a745;
}

.four-game {
    background-color: #007bff;
}

.rank-badge {
    padding: 3px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 0.85em;
}

.rating-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1em;
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
}

/* 検索結果カウント */
.result-count {
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* 検索結果なし */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--border-color);
    font-size: 1.1rem;
}

/* データテーブルのレスポンシブ対応 */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-outline {
        width: 100%;
        min-width: auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .game-type-badge {
        display: block;
        margin: 0.25rem 0 0 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .result-count {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .no-results {
        padding: 2rem 1rem;
        font-size: 1rem;
    }
}