        /* グローバルリセットを削除 - style.cssと競合するため */

        /* ストックリスト用スタイル */
        .stock-panel {
            position: fixed;
            right: -400px;
            top: 0;
            width: 400px;
            height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: -5px 0 20px rgba(0,0,0,0.3);
            transition: right 0.3s ease;
            z-index: 1001;
            display: flex;
            flex-direction: column;
        }

        .stock-panel.open {
            right: 0;
        }

        .stock-header {
            padding: 20px;
            background: rgba(102, 126, 234, 0.15);
            border-bottom: 1px solid rgba(102, 126, 234, 0.3);
            color: white;
        }

        .stock-header h3 {
            margin: 0;
            font-size: 1.5rem;
        }

        .stock-count {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-top: 5px;
        }

        .stock-list {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .stock-item {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: relative;
            animation: slideIn 0.3s ease;
        }

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

        .stock-item-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 10px;
        }

        .stock-item-title {
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            flex: 1;
        }

        .stock-item-remove {
            background: #ff4444;
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            cursor: pointer;
            font-size: 12px;
            transition: transform 0.2s;
        }

        .stock-item-remove:hover {
            transform: scale(1.1);
        }

        .stock-item-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            font-size: 0.9rem;
        }

        .stock-detail {
            display: flex;
            flex-direction: column;
        }

        .stock-detail-label {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.8rem;
        }

        .stock-detail-value {
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }

        .stock-actions {
            padding: 20px;
            background: rgba(102, 126, 234, 0.15);
            border-top: 1px solid rgba(102, 126, 234, 0.3);
        }

        .btn-export-stock {
            width: 100%;
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .btn-export-stock:hover {
            transform: translateY(-2px);
        }

        .stock-toggle {
            position: fixed;
            right: 20px;
            bottom: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            transition: transform 0.2s;
            z-index: 1000;
        }

        .stock-toggle:hover {
            transform: scale(1.1);
        }

        .stock-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4444;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }

        .add-to-stock-btn {
            background: linear-gradient(135deg, #00c851 0%, #00ff00 100%);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            margin-left: 10px;
        }

        .add-to-stock-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,200,81,0.4);
        }

        .add-to-stock-btn.added {
            background: #999;
            cursor: not-allowed;
        }

        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

        /* body と body::before の背景設定を削除 - style.css で管理 */

        /* CSV統合モード時のページ全体のスクロールバー */
        body.fusion-mode::-webkit-scrollbar {
            width: 10px;
        }

        body.fusion-mode::-webkit-scrollbar-track {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
            box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        }

        body.fusion-mode::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 50%, #FF6B9D 100%);
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
            transition: all 0.3s ease;
        }

        body.fusion-mode::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #8B5CF6 0%, #FF6B9D 50%, #FEC163 100%);
            box-shadow: 0 2px 15px rgba(139, 92, 246, 0.6);
        }

        /* fusionMode内のスクロールバー */
        #fusionMode *::-webkit-scrollbar {
            width: 10px;
        }

        #fusionMode *::-webkit-scrollbar-track {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
            box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        }

        #fusionMode *::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 50%, #FF6B9D 100%);
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
            transition: all 0.3s ease;
        }

        #fusionMode *::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #8B5CF6 0%, #FF6B9D 50%, #FEC163 100%);
            box-shadow: 0 2px 15px rgba(139, 92, 246, 0.6);
        }

        /* パーティクルエフェクト */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
        }

        .particle {
            position: absolute;
            background: linear-gradient(135deg, #667EEA 0%, #FF6B9D 100%);
            border-radius: 50%;
            animation: float-up 20s infinite linear;
        }

        @keyframes float-up {
            from {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.8;
            }
            90% {
                opacity: 0.8;
            }
            to {
                transform: translateY(-100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* .container スタイルは style.css で管理 */

        .header {
            background: transparent;
            color: white;
            padding: 40px 60px 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        /* ヘッダーの装飾ライン */
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 300%;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                #667EEA 25%, 
                #FF6B9D 50%, 
                #667EEA 75%, 
                transparent 100%);
            animation: scan 8s linear infinite;
        }

        @keyframes scan {
            0% { transform: translateX(0); }
            100% { transform: translateX(33.33%); }
        }

        .header-badge {
            display: inline-block;
            padding: 8px 20px;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(255, 107, 157, 0.2) 100%);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 100px;
            font-size: 0.85em;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 30px;
            animation: glow 2s ease-in-out infinite;
        }

        @keyframes glow {
            0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
            50% { box-shadow: 0 0 30px rgba(255, 107, 157, 0.5); }
        }

        .header h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 3.5em;
            margin-bottom: 15px;
            font-weight: 800;
            letter-spacing: -2px;
            position: relative;
            background: linear-gradient(135deg, #667EEA 0%, #FF6B9D 25%, #FEC163 50%, #667EEA 75%, #FF6B9D 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 300% 300%;
            animation: gradient-shift 8s ease infinite;
        }

        @keyframes gradient-shift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .header p {
            opacity: 0.8;
            font-size: 1.1em;
            font-weight: 300;
            position: relative;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.4;
        }

        .header-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 25px;
        }

        .header-stat {
            text-align: center;
        }

        .header-stat-value {
            font-size: 2em;
            font-weight: 700;
            background: linear-gradient(135deg, #667EEA 0%, #FF6B9D 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .header-stat-label {
            font-size: 0.9em;
            opacity: 0.6;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 5px;
        }

        .content {
            padding: 40px 60px;
            background: transparent;
            position: relative;
        }

        .upload-area {
            border: 2px solid transparent;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
            border-radius: 32px;
            padding: 50px;
            text-align: center;
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            max-width: 1400px;
            margin: 0 auto;
            backdrop-filter: blur(20px);
            box-shadow:
                0 25px 100px rgba(102, 126, 234, 0.2),
                inset 0 0 100px rgba(102, 126, 234, 0.1),
                inset 0 0 0 1px rgba(139, 92, 246, 0.3);
            animation: uploadPulse 4s ease-in-out infinite;
        }

        @keyframes uploadPulse {
            0%, 100% {
                box-shadow:
                    0 25px 100px rgba(102, 126, 234, 0.2),
                    inset 0 0 100px rgba(102, 126, 234, 0.1),
                    inset 0 0 0 1px rgba(139, 92, 246, 0.3);
            }
            50% {
                box-shadow:
                    0 30px 120px rgba(139, 92, 246, 0.3),
                    inset 0 0 120px rgba(102, 126, 234, 0.15),
                    inset 0 0 0 1px rgba(255, 107, 157, 0.4);
            }
        }

        /* アップロードエリアの光るボーダー */
        .upload-area::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 30px;
            padding: 2px;
            background: linear-gradient(135deg, #667EEA, #FF6B9D, #FEC163, #667EEA);
            background-size: 300% 300%;
            -webkit-mask:
                linear-gradient(rgba(255,255,255,1) 0 0) content-box,
                linear-gradient(rgba(255,255,255,1) 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            animation: gradient-border 4s ease infinite;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .upload-area:hover::before {
            opacity: 1;
        }

        @keyframes gradient-border {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* ドラッグオーバー時のエフェクト */
        .upload-area.dragover {
            transform: scale(1.03) translateY(-5px);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
            box-shadow:
                0 40px 150px rgba(102, 126, 234, 0.6),
                inset 0 0 150px rgba(139, 92, 246, 0.2),
                0 0 80px rgba(255, 107, 157, 0.4);
            animation: none;
        }

        .upload-area.dragover::before {
            opacity: 1;
            animation: gradient-border 0.8s ease infinite;
        }

        /* 3Dアイコンエフェクト */
        .upload-icon-container {
            position: relative;
            width: 150px;
            height: 150px;
            margin: 0 auto 40px;
        }

        .upload-icon {
            font-size: 6em;
            background: linear-gradient(135deg, #667EEA 0%, #FF6B9D 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
            z-index: 2;
            animation: float-icon 3s ease-in-out infinite;
            filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.5));
        }

        @keyframes float-icon {
            0%, 100% { transform: translateY(0) rotateY(0deg); }
            50% { transform: translateY(-20px) rotateY(180deg); }
        }

        /* 装飾的な円 */
        .upload-circles {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200px;
            height: 200px;
        }

        .upload-circle {
            position: absolute;
            border: 2px solid;
            border-radius: 50%;
            opacity: 0.3;
        }

        .upload-circle:nth-child(1) {
            width: 100%;
            height: 100%;
            border-color: #667EEA;
            animation: rotate-circle 20s linear infinite;
        }

        .upload-circle:nth-child(2) {
            width: 120%;
            height: 120%;
            top: -10%;
            left: -10%;
            border-color: #FF6B9D;
            animation: rotate-circle 25s linear infinite reverse;
        }

        .upload-circle:nth-child(3) {
            width: 140%;
            height: 140%;
            top: -20%;
            left: -20%;
            border-color: #FEC163;
            animation: rotate-circle 30s linear infinite;
        }

        @keyframes rotate-circle {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .upload-area h2 {
            font-size: 2.5em;
            font-weight: 700;
            color: white;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            z-index: 2;
        }

        .upload-area p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.2em;
            margin-bottom: 30px;
            position: relative;
            z-index: 2;
        }

        /* アニメーションタイプライター効果 */
        .upload-hint {
            display: inline-block;
            color: #667EEA;
            font-weight: 600;
            font-size: 1.1em;
            position: relative;
            z-index: 2;
        }

        .upload-hint::after {
            content: '|';
            animation: blink 1s infinite;
            color: #FF6B9D;
            font-weight: 300;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        /* サポートファイル形式の表示 */
        .supported-formats {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 40px;
            position: relative;
            z-index: 2;
        }

        .format-badge {
            padding: 10px 20px;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
            border: 1px solid rgba(102, 126, 234, 0.4);
            border-radius: 100px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9em;
            font-weight: 600;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .format-badge::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 107, 157, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.4s ease, height 0.4s ease;
        }

        .format-badge:hover::before {
            width: 200%;
            height: 200%;
        }

        .format-badge:hover {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(139, 92, 246, 0.25) 100%);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4), 0 0 25px rgba(255, 107, 157, 0.3);
            border-color: rgba(139, 92, 246, 0.6);
        }

        .format-badge span {
            position: relative;
            z-index: 1;
        }

        /* 波形アニメーション */
        .wave-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100px;
            overflow: hidden;
            border-radius: 0 0 30px 30px;
        }

        .wave {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 100%;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(255, 107, 157, 0.1) 100%);
            animation: wave-animation 10s linear infinite;
        }

        .wave:nth-child(2) {
            animation-delay: -5s;
            opacity: 0.5;
        }

        @keyframes wave-animation {
            0% { transform: translateX(0) translateY(0); }
            50% { transform: translateX(-25%) translateY(-10px); }
            100% { transform: translateX(-50%) translateY(0); }
        }

        .upload-area:hover {
            transform: translateY(-15px) scale(1.01);
            box-shadow:
                0 45px 140px rgba(102, 126, 234, 0.5),
                inset 0 0 140px rgba(139, 92, 246, 0.15),
                inset 0 0 0 1px rgba(255, 107, 157, 0.5),
                0 0 60px rgba(255, 107, 157, 0.3);
            animation: none;
        }

        .upload-area:hover .upload-icon {
            animation-duration: 1.5s;
            filter: drop-shadow(0 15px 50px rgba(255, 107, 157, 0.8)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
        }

        .file-input {
            display: none;
        }

        .file-list {
            margin-top: 40px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 15px;
        }

        .file-item {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 16px;
            padding: 18px 22px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
        }

        /* ファイルアイテムのスライド光エフェクトを削除 - ファイル名が読みにくくなる可能性 */
        .file-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: transparent;
            transition: none;
        }

        .file-item:hover::before {
            left: -100%;
        }

        .file-item:hover {
            transform: translateY(-5px) scale(1.02);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.35), 0 0 30px rgba(255, 107, 157, 0.2);
            border-color: rgba(139, 92, 246, 0.6);
        }

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

        .file-name {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .file-name span {
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
        }

        .file-name small {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9em;
        }

        .file-icon {
            font-size: 1.5em;
            background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .remove-btn {
            background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
            color: white;
            border: none;
            padding: 8px 18px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
            font-size: 0.9em;
        }

        .remove-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
        }

        #fusionMode .fusion-options {
            margin: 40px 0;
            padding: 35px;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
            border-radius: 24px;
            border: 1px solid rgba(102, 126, 234, 0.3);
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
            box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2), inset 0 0 60px rgba(139, 92, 246, 0.05);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        /* 回転グローアニメーションを削除 - 見やすさを優先 */

        #fusionMode .fusion-options:hover {
            border-color: rgba(139, 92, 246, 0.5);
            box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3), inset 0 0 80px rgba(139, 92, 246, 0.08);
        }

        #fusionMode .fusion-option-group {
            margin-bottom: 25px;
            position: relative;
            z-index: 1;
        }

        .action-buttons {
            display: flex;
            gap: 20px;
            margin-top: 40px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .btn {
            flex: 1;
            padding: 18px 35px;
            border: none;
            border-radius: 14px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
            color: white !important;
        }

        .btn::before {
            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:active::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            color: white;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
        }

        .btn-primary:disabled {
            background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-secondary {
            background: rgba(102, 126, 234, 0.1);
            color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .btn-secondary:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
            border-color: rgba(102, 126, 234, 0.5);
        }

        .btn-cleaning {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            color: white;
            padding: 14px 24px;
            font-size: 1em;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .btn-cleaning:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
        }

        .btn-brand {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            color: white;
            padding: 14px 24px;
            font-size: 1em;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .btn-brand:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
        }

        .btn-group {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            color: white;
            padding: 14px 24px;
            font-size: 1em;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .btn-group:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
        }

        /* 集計ボタンのスタイル */
        .btn-summary {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            color: white;
            padding: 14px 24px;
            font-size: 1em;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .btn-summary:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
        }

        /* 集計後のテーブルスタイル */
        .summary-table td:nth-child(3) {
            font-weight: bold;
            color: #BE185D;
            font-size: 1.1em;
        }

        .summary-table td:nth-child(4) {
            background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
            font-weight: 600;
            text-align: center;
            border-radius: 6px;
        }

        /* 集計ボタンのスタイル */
        .btn-summary {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            color: white;
            padding: 14px 24px;
            font-size: 1em;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .btn-summary:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
        }

        /* 集計後のテーブルスタイル */
        .summary-table td:nth-child(3) {
            font-weight: bold;
            color: #BE185D;
            font-size: 1.1em;
        }

        .summary-table td:nth-child(4) {
            background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
            font-weight: 600;
            text-align: center;
            border-radius: 6px;
        }

        .preview-section {
            margin-top: 50px;
            display: none;
            animation: fadeInUp 0.5s ease;
        }

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

        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
            padding: 25px;
            border-radius: 16px;
            border: 1px solid rgba(102, 126, 234, 0.3);
            box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
            position: relative;
            overflow: hidden;
        }

        .preview-header::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667EEA 0%, #8B5CF6 50%, #FF6B9D 100%);
            background-size: 200% 100%;
            animation: headerFlow 3s linear infinite;
        }

        @keyframes headerFlow {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        .preview-header h3 {
            font-size: 2em;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.95);
            margin: 0;
        }

        .preview-header-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .preview-header-buttons .btn {
            padding: 12px 24px;
            font-size: 0.95em;
        }

        .preview-header-buttons .btn-cleaning,
        .preview-header-buttons .btn-brand,
        .preview-header-buttons .btn-group,
        .preview-header-buttons .btn-summary {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .preview-header-buttons .btn-cleaning:hover,
        .preview-header-buttons .btn-brand:hover,
        .preview-header-buttons .btn-group:hover,
        .preview-header-buttons .btn-summary:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
        }

        .preview-table {
            width: 100%;
            overflow-x: auto;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2), inset 0 0 40px rgba(102, 126, 234, 0.05);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
            max-height: 600px;
            overflow-y: auto;
            border: 1px solid rgba(102, 126, 234, 0.2);
            position: relative;
        }

        .preview-table::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, #667EEA 50%, transparent 100%);
            animation: tableScan 2s ease-in-out infinite;
        }

        /* tableScanアニメーションを削除 - テーブル上部のスキャンラインが読みにくさを引き起こす可能性 */
        @keyframes tableScan {
            0%, 100% { opacity: 0; }
            50% { opacity: 0; }
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(102, 126, 234, 0.01);
            font-size: 14px;
        }

        th {
            background: #8B5CF6;
            color: white;
            padding: 14px 16px;
            text-align: center;
            position: sticky;
            top: 0;
            font-weight: 600;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            font-size: 0.85em;
            white-space: nowrap;
            z-index: 10;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            border-right: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* shimmerアニメーションを削除 - テーブルヘッダーのテキストを読みにくくする可能性 */
        th::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: transparent;
            animation: none;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 200%; }
        }

        td {
            padding: 12px 16px;
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
            border-right: 1px solid rgba(102, 126, 234, 0.1);
            color: rgba(255, 255, 255, 0.85);
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: center;
        }

        td:hover {
            max-width: none;
            white-space: normal;
            word-wrap: break-word;
        }

        tr {
            transition: all 0.3s ease;
            position: relative;
        }

        tr::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, rgba(102, 126, 234, 0.2), rgba(139, 92, 246, 0.2));
            transition: width 0.3s ease;
            z-index: 0;
        }

        tr:hover::before {
            width: 100%;
        }

        tr:hover {
            background: rgba(102, 126, 234, 0.12);
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
        }

        tr td {
            position: relative;
            z-index: 1;
        }

        tr.group-header {
            background: rgba(102, 126, 234, 0.15) !important;
            font-weight: bold;
        }

        tr.group-item {
            background: rgba(102, 126, 234, 0.03);
        }

        tr.group-item td:first-child {
            padding-left: 40px;
            position: relative;
        }

        tr.group-item td:first-child::before {
            content: '└';
            position: absolute;
            left: 20px;
            color: #9CA3AF;
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 20px;
            margin-top: 30px;
            margin-bottom: 30px;
            animation: statsAppear 0.6s ease;
        }

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

        /* .stat-card は style.css で管理 */

        .stat-value {
            font-size: 2.5em;
            font-weight: 800;
            background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 5px;
        }

        .stat-label {
            color: #6B7280;
            margin-top: 8px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.85em;
        }

        .error-message {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
            color: #FCA5A5;
            padding: 20px;
            border-radius: 14px;
            margin-top: 25px;
            display: none;
            border-left: 4px solid #EF4444;
            animation: shake 0.5s ease;
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .error-message::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: errorShine 2s infinite;
        }

        @keyframes errorShine {
            0% { left: -100%; }
            100% { left: 200%; }
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
            20%, 40%, 60%, 80% { transform: translateX(8px); }
        }

        .success-message {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
            color: #6EE7B7;
            padding: 20px;
            border-radius: 14px;
            margin-top: 25px;
            display: none;
            border-left: 4px solid #10B981;
            animation: slideInRight 0.5s ease;
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .success-message::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
            animation: successShine 2s infinite;
        }

        @keyframes successShine {
            0% { left: -100%; }
            100% { left: 200%; }
        }

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

        /* モーダルのスタイル */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(15px);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                backdrop-filter: blur(0px);
            }
            to {
                opacity: 1;
                backdrop-filter: blur(15px);
            }
        }

        .modal-content {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
            border: 2px solid rgba(102, 126, 234, 0.4);
            margin: 30px auto;
            padding: 0;
            border-radius: 24px;
            width: 90%;
            max-width: 1200px;
            height: 90vh;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow:
                0 30px 120px rgba(102, 126, 234, 0.5),
                0 0 80px rgba(139, 92, 246, 0.3),
                inset 0 0 100px rgba(102, 126, 234, 0.05);
            backdrop-filter: blur(30px);
            position: relative;
        }

        /* モーダルボーダーのflowアニメーションを静止状態に変更 - 動きを控えめに */
        .modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 24px;
            padding: 2px;
            background: linear-gradient(135deg, #667EEA, #8B5CF6, #FF6B9D, #667EEA);
            background-size: 300% 300%;
            -webkit-mask:
                linear-gradient(rgba(255,255,255,1) 0 0) content-box,
                linear-gradient(rgba(255,255,255,1) 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            animation: none;
            opacity: 0.6;
            pointer-events: none;
            z-index: 0;
        }

        @keyframes modalBorderFlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes slideUp {
            from {
                transform: translateY(100px) scale(0.9);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .modal-header {
            background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
            color: white;
            padding: 25px 35px;
            position: relative;
            z-index: 1;
            flex-shrink: 0;
        }

        .modal-header.group-modal {
            background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
        }

        .modal-header h2 {
            margin: 0;
            font-size: 1.6em;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .close {
            position: absolute;
            right: 25px;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 32px;
            font-weight: 300;
            cursor: pointer;
            transition: all 0.4s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            position: relative;
        }

        .close::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            transform: scale(0);
            transition: transform 0.3s ease;
        }

        .close:hover::before {
            transform: scale(1);
        }

        .close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-50%) rotate(90deg) scale(1.1);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        }

        .modal-body {
            padding: 35px 40px;
            flex: 1;
            overflow-y: auto;
            position: relative;
            z-index: 1;
            min-height: 0;
        }

        .modal-body::-webkit-scrollbar {
            width: 10px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
            box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 50%, #FF6B9D 100%);
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
            transition: all 0.3s ease;
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #8B5CF6 0%, #FF6B9D 50%, #FEC163 100%);
            box-shadow: 0 2px 15px rgba(139, 92, 246, 0.6);
        }

        .cleaning-options {
            margin-bottom: 30px;
        }

        .cleaning-options h3 {
            font-size: 1.3em;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 20px;
        }

        .cleaning-option {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 14px;
            padding: 18px;
            margin-bottom: 12px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .cleaning-option::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 0;
            background: linear-gradient(180deg, #667EEA 0%, #8B5CF6 100%);
            transition: height 0.3s ease;
        }

        .cleaning-option:hover::before {
            height: 100%;
        }

        .cleaning-option:hover {
            transform: translateX(10px);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3), 0 0 30px rgba(255, 107, 157, 0.15);
            border-color: rgba(139, 92, 246, 0.5);
        }

        .cleaning-option label {
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
        }

        .cleaning-option input[type="checkbox"] {
            width: 24px;
            height: 24px;
            cursor: pointer;
            accent-color: #6366F1;
        }

        .cleaning-option small {
            display: block;
            margin-left: 40px;
            margin-top: 8px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9em;
        }

        .custom-patterns {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(102, 126, 234, 0.08) 100%);
            border-radius: 14px;
            padding: 20px;
            margin-top: 30px;
            border: 1px solid rgba(139, 92, 246, 0.4);
            box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
            position: relative;
            overflow: hidden;
        }

        .custom-patterns::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            height: 2px;
            background: linear-gradient(90deg, #8B5CF6, #FF6B9D, #8B5CF6);
            background-size: 200% 100%;
            animation: customPatternBorder 3s linear infinite;
        }

        @keyframes customPatternBorder {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        .custom-patterns h4 {
            margin-bottom: 12px;
            color: #C4B5FD;
            font-weight: 600;
            text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
        }

        .custom-patterns textarea {
            width: 100%;
            height: 120px;
            padding: 15px;
            border: 2px solid rgba(139, 92, 246, 0.4);
            border-radius: 10px;
            resize: vertical;
            font-family: 'Courier New', monospace;
            background: rgba(15, 23, 42, 0.5);
            color: #E9D5FF;
            transition: all 0.3s ease;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .custom-patterns textarea:focus {
            outline: none;
            border-color: #8B5CF6;
            box-shadow:
                0 0 0 3px rgba(139, 92, 246, 0.3),
                inset 0 2px 10px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(139, 92, 246, 0.4);
            background: rgba(15, 23, 42, 0.7);
        }

        .custom-patterns textarea::placeholder {
            color: rgba(233, 213, 255, 0.4);
        }

        .modal-footer {
            padding: 25px 35px;
            background: rgba(30, 30, 50, 0.95);
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            border-top: 2px solid rgba(102, 126, 234, 0.5);
            position: relative;
            z-index: 10;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
            border-bottom-left-radius: 24px;
            border-bottom-right-radius: 24px;
            flex-shrink: 0;
            min-height: 80px;
        }

        .modal-footer .btn {
            position: relative;
            z-index: 101;
            opacity: 1 !important;
            visibility: visible !important;
        }

        .preview-changes {
            background: rgba(102, 126, 234, 0.05);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
            max-height: 200px;
            overflow-y: auto;
        }

        .preview-changes h4 {
            margin-bottom: 10px;
            color: #667EEA;
        }

        .change-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
            padding: 5px;
            background: rgba(102, 126, 234, 0.03);
            border-radius: 5px;
        }

        .change-before {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: line-through;
            flex: 1;
        }

        .change-arrow {
            color: #FF6B9D;
            font-weight: bold;
        }

        .change-after {
            color: #00FFA3;
            font-weight: bold;
            flex: 1;
        }

        .cleaning-stats {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .cleaning-stat {
            flex: 1;
            background: rgba(102, 126, 234, 0.05);
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .cleaning-stat-value {
            font-size: 1.5em;
            font-weight: bold;
            background: linear-gradient(135deg, #FF6B9D 0%, #667EEA 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .cleaning-stat-label {
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 5px;
        }

        .debug-info {
            background: rgba(255, 193, 7, 0.1);
            border: 1px solid rgba(255, 193, 7, 0.3);
            border-radius: 8px;
            padding: 10px;
            margin-top: 10px;
            font-size: 0.9em;
            color: rgba(255, 215, 0, 0.9);
        }

        .group-preview {
            background: rgba(102, 126, 234, 0.05);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
        }

        .group-item-preview {
            margin-bottom: 15px;
            padding: 10px;
            background: rgba(102, 126, 234, 0.03);
            border-radius: 5px;
        }

        .group-name {
            font-weight: bold;
            background: linear-gradient(135deg, #667EEA 0%, #FF6B9D 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 5px;
        }

        .group-count {
            color: rgba(255, 255, 255, 0.6);
            margin-left: 10px;
        }

        .group-members {
            margin-left: 20px;
            margin-top: 5px;
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.7);
        }

        .grouping-options {
            margin-bottom: 20px;
        }

        .grouping-option {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .grouping-option::after {
            content: '';
            position: absolute;
            right: -50px;
            top: -50px;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .grouping-option:hover::after {
            opacity: 1;
        }

        .grouping-option:hover {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
            border-color: rgba(139, 92, 246, 0.5);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.25);
        }

        /* グループ化モーダル用のcheckbox-labelスタイル上書き */
        .grouping-option .checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            width: auto;
            height: auto;
            border: none;
            border-radius: 0;
            background: none;
            cursor: pointer;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9) !important;
        }

        .grouping-option .checkbox-label:hover {
            border: none;
            box-shadow: none;
            background: none;
        }

        .grouping-option label {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            width: 100%;
            height: auto;
            border: none;
            border-radius: 0;
            background: none;
        }

        .slider-container {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-top: 10px;
        }

        .slider {
            flex: 1;
            -webkit-appearance: none;
            appearance: none;
            height: 5px;
            background: rgba(102, 126, 234, 0.2);
            border-radius: 5px;
            outline: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
        }

        .slider-value {
            background: linear-gradient(135deg, #667EEA 0%, #8B5CF6 100%);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            min-width: 40px;
            text-align: center;
            font-weight: 600;
        }

        .grouping-stats {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        /* 価格分布列の特別なスタイリング */
        .preview-table table td:nth-child(7) {
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            font-weight: 500;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 400px;
        }

        /* ホバー時に全体表示 */
        .preview-table table td:nth-child(7):hover {
            white-space: normal;
            word-wrap: break-word;
            max-width: none;
        }

        .grouping-stat {
            flex: 1;
            background: rgba(102, 126, 234, 0.05);
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .grouping-stat-value {
            font-size: 1.5em;
            font-weight: bold;
            background: linear-gradient(135deg, #667EEA 0%, #FF6B9D 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .grouping-stat-label {
            font-size: 0.9em;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 5px;
        }
