
        /* ベーススタイル */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
            background-color: #f0ebe3; 
            height: 100vh;
            overflow: hidden;
            color: #333;
        }

        /* メインレイアウト */
        .main-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto 1fr;
            grid-template-areas: 
            /*    "title title" */
                "agenda agenda" 
                "reference messages";
            height: 100vh;
            gap: 10px;
            padding: 10px;
            position:sticky;
        }

        /* タイトルエリア */
        .title-area {
            margin: 0px;
            width:100%;
            height:44px;
/*            grid-area: title;*/
            background-color: #1f2937;
            backdrop-filter: blur(10px);
            border-radius: 0px;
            padding: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .app-title {
            font-size: 16px;
            color: white;
            font-weight: bold;
        }

        .candidate-name {
            font-size: 1.3rem;
            color: #999;
            font-weight: 600;
        }

        /* アジェンダエリア */
        .agenda-area {
            grid-area: agenda;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            display: grid;
            grid-template-columns: 2fr 1fr 2fr;
            gap: 20px;
            align-items: center;
        }

        .agenda-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .agenda-item {
            padding: 8px 12px;
            border-radius: 8px;
            /*background: rgba(102, 126, 234, 0.1);*/
            background: #f0ebe3;
            border-left: 4px solid #333;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .agenda-item.active {
            /*border-left-color: rgb(125, 110, 90);*/
            /*background: rgba(102, 126, 234, 0.2);*/
            border-left-color: #001964;
            background: #88bbff;
            font-weight: 600;
        }

        .agenda-item.completed {
            border-left-color: #777;
            /*background: rgba(76, 175, 80, 0.1);*/
            background: #aaa;
            opacity: 0.7;
        }

        .timer-display {
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #current-phase {
            font-weight: bold;
            font-size: 1.1rem;
            color: #333;
        }

        #timer {
            font-size: 2.5rem;
            font-weight: bold;
            font-family: 'Courier New', monospace;
            color: #333;
            padding: 15px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 10px;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            padding: 0px;
        }


        #timer.warning {
            color: #ff9800;
            border-color: #ff9800;
            animation: pulse 1s infinite;
        }

        #timer.danger {
            color: #f44336;
            border-color: #f44336;
            animation: pulse 0.5s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .progress-container {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(45deg, #4caf50, #81c784);
            border-radius: 4px;
            transition: all 0.3s ease;
            width: 0%;
        }

        .progress-bar.warning {
            background: linear-gradient(45deg, #ff9800, #ffb74d);
        }

        .progress-bar.danger {
            background: linear-gradient(45deg, #f44336, #ef5350);
        }

        /* コントロールボタンエリア */

        .control-panel{
            width: 300px;
        }
        .control-buttons {
            display: flex;
            padding:10px;
            gap:10px;
            font-size:30px;
        }

        .control{
            display: flex;
            font-size:30px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            cursor: pointer;
            border:none;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        /* ボタンスタイル */
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 999px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
            width: 100%;
        }

        .btn:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover:before {
            left: 100%;
        }

        .btn-primary {
            background-color: #001964;
            color: white;
        }

        .btn-success {
            background-color: #001964;
            color: white;
        }

        .btn-warning {
            background-color: #001964;
            color: white;
        }

        .btn-danger {
            background-color: #001964;
            color: white;
        }

        .btn-secondary {
            background-color: #001964;
            color: white;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        /* 参照情報エリア */
        .reference-area {
            grid-area: reference;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .reference-header {
            padding: 10px 20px 15px 20px;
            height:44px;
            background-color: black;
        }

        .reference-header h2 {
            font-size: 16px;
            color: #ccc;
            margin: 0;
        }

        .reference-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .upload-section {
            margin-bottom: 20px;
        }

        .upload-area {
            border: 2px dashed #4c3e29;
            border-radius: 10px;
            padding: 30px 20px;
            text-align: center;
            background: rgba(102, 126, 234, 0.05);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .upload-area:hover {
            border-color: #333;
            background: rgba(102, 126, 234, 0.1);
        }

        .upload-area.dragover {
            border-color: #4caf50;
            background: rgba(76, 175, 80, 0.1);
        }

        .upload-message p {
            margin: 8px 0;
            font-size: 1rem;
        }

        .file-list {
            margin-top: 15px;
        }

        .file-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 6px;
            margin: 4px 0;
            font-size: 0.9rem;
        }

        .file-remove {
            color: #333;
            border: none;
            cursor: pointer;
            font-size: 24px;
        }

        .candidate-info {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 10px;
            padding: 20px;
            margin: 15px 0;
        }

        .candidate-section {
            margin: 12px 0;
        }

        .candidate-section h4 {
            color: #333;
            margin-bottom: 6px;
            font-size: 1rem;
        }

        .candidate-section ul {
            list-style: none;
            padding-left: 0;
        }

        .candidate-section li {
            background: rgba(255, 255, 255, 0.7);
            padding: 6px 10px;
            margin: 3px 0;
            border-radius: 4px;
            border-left: 3px solid #667eea;
            font-size: 0.9rem;
        }

        /* メッセージエリア */
        .messages-area {
            grid-area: messages;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .messages-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px 15px 20px;
            height:44px;
            background-color: black;
        }

        .messages-header h2 {
            font-size: 16px;
            color: #ccc;
            margin: 0;
        }

        .generate-questions-btn {
            padding: 8px 16px;
            font-size: 0.9rem;
        }

        .messages-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .question-item {
            background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 12px;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .question-text {
            font-size: 1rem;
            font-weight: 600;
            color: #333;
            line-height: 1.4;
            margin-bottom: 10px;
        }

        .question-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: #666;
        }

        .priority-badge {
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: bold;
        }

        .priority-1 {
            background: #f44336;
            color: white;
        }

        .priority-2 {
            background: #ff9800;
            color: white;
        }

        .priority-3 {
            background: #4caf50;
            color: white;
        }

        .memo-input {
            width: 100%;
            min-height: 60px;
            padding: 8px;
            border: 1px solid rgba(102, 126, 234, 0.2);
            border-radius: 6px;
            font-family: inherit;
            font-size: 0.9rem;
            resize: vertical;
            margin-top: 8px;
        }

        .memo-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
        }

        /* ローディング */
        #loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .loading-spinner {
            text-align: center;
            color: white;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* スクロールバーのスタイリング */
        .reference-content::-webkit-scrollbar,
        .messages-content::-webkit-scrollbar {
            width: 8px;
        }

        .reference-content::-webkit-scrollbar-track,
        .messages-content::-webkit-scrollbar-track {
            background: rgba(102, 126, 234, 0.1);
            border-radius: 4px;
        }

        .reference-content::-webkit-scrollbar-thumb,
        .messages-content::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.3);
            border-radius: 4px;
        }

        .reference-content::-webkit-scrollbar-thumb:hover,
        .messages-content::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.5);
        }
