:root { --bg-main: #0f172a; --bg-panel: #1e293b; --bg-input: #0f172a; --border-color: #334155; --text-primary: #f1f5f9; --text-secondary: #94a3b8; --accent-color: #3b82f6; --accent-hover: #2563eb; --danger-color: #ef4444; --danger-hover: #dc2626; } * { box-sizing: border-box; margin: 0; padding: 0; } html, body { font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif; background-color: var(--bg-main); color: var(--text-primary); line-height: 1.45; min-height: 100vh; height: 100dvh; overflow: hidden; } .app-container { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; } .app-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 16px; background-color: var(--bg-panel); border-bottom: 1px solid var(--border-color); flex-shrink: 0; } .header-left { display: flex; align-items: center; gap: 12px; min-width: 0; } .header-left h1 { font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; } .status-badge { font-size: 0.76rem; padding: 2px 10px; border-radius: 999px; background-color: rgba(59, 246, 153, 0.15); color: #a0cbff; border: 1px solid rgba(59, 130, 246, 0.3); white-space: nowrap; } .header-actions { display: flex; flex-wrap: wrap; gap: 8px; } .btn { padding: 6px 12px; border: none; border-radius: 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, transform 0.1s; } .btn:active { transform: translateY(1px); } .btn-primary { background-color: var(--accent-color); color: #fff; } .btn-primary:hover { background-color: var(--accent-hover); } .btn-secondary { background-color: #334155; color: var(--text-primary); } .btn-secondary:hover { background-color: #475569; } .btn-danger { background-color: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); } .btn-danger:hover { background-color: var(--danger-color); color: #fff; } .btn-small { padding: 4px 10px; font-size: 0.78rem; background-color: var(--accent-color); color: #fff; } .main-workspace { display: flex; flex: 1; width: 100%; min-height: 0; overflow: hidden; } .left-panel { width: clamp(320px, 28vw, 430px); flex: 0 0 clamp(320px, 28vw, 430px); height: 100%; min-height: 0; background-color: var(--bg-panel); border-right: 1px solid var(--border-color); padding: 10px 12px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; -ms-overflow-style: none; } .left-panel::-webkit-scrollbar { display: none; } .control-group { background-color: rgba(10, 39, 2, 0.45); border: 1px solid var(--border-color); border-radius: 7px; padding: 8px 10px; flex-shrink: 0; } .control-group h2 { font-size: 0.84rem; color: #b9c50f; margin-bottom: 6px; border-left: 3px solid var(--accent-color); padding-left: 7px; } .section-header-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; } .section-header-row h2 { margin-bottom: 0; } .sub-hint { font-size: 0.7rem; color: var(--text-secondary); } .unit-selector, .chart-type-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 5px; } .unit-btn, .chart-type-btn { width: 100%; min-width: 0; padding: 5px 4px; background-color: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: 5px; font-size: 0.76rem; white-space: nowrap; cursor: pointer; transition: all 0.15s; } .unit-btn:hover, .chart-type-btn:hover { border-color: #64748b; color: var(--text-primary); } .unit-btn.active, .chart-type-btn.active { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); font-weight: 600; } .year-range-box { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 7px; padding: 6px 8px; background-color: var(--bg-input); border-radius: 5px; font-size: 0.76rem; } .hidden { display: none !important; } .year-range-box input[type="number"] { width: 64px; padding: 3px 5px; background-color: var(--bg-panel); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 4px; } .help-text { font-size: 0.7rem; color: var(--text-secondary); margin-top: 5px; } textarea#dataInput { width: 100%; height: 220px; min-height: 140px; max-height: 260px; background-color: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 6px; padding: 7px 9px; font-family: 'Courier New', Consolas, monospace; font-size: 0.84rem; resize: vertical; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; line-height: 1.35; } textarea#dataInput::-webkit-scrollbar { display: none; } textarea#dataInput:focus { outline: none; border-color: var(--accent-color); } .display-mode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; font-size: 0.75rem; } .row-label { color: var(--text-secondary); font-weight: 600; } .radio-label, .checkbox-label { display: flex; align-items: center; gap: 4px; cursor: pointer; } .design-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; } .field-item { display: flex; flex-direction: column; gap: 3px; font-size: 0.74rem; color: var(--text-secondary); min-width: 0; } .field-item.full-width { grid-column: 1 / -1; } .field-item input[type="text"], .field-item select { width: 100%; padding: 4px 7px; background-color: var(--bg-input); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-primary); font-size: 0.78rem; } .field-item input[type="color"] { width: 100%; height: 26px; border: 1px solid var(--border-color); border-radius: 4px; background-color: var(--bg-input); cursor: pointer; } .style-toggles { flex-direction: row; flex-wrap: wrap; gap: 10px; padding-top: 2px; color: var(--text-primary); } .color-palette-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 110px; overflow-y: auto; scrollbar-width: none; } .color-palette-list::-webkit-scrollbar { display: none; } .color-item-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; background-color: var(--bg-input); padding: 4px 7px; border-radius: 4px; border: 1px solid var(--border-color); font-size: 0.76rem; min-width: 0; } .color-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .color-item-row input[type="color"] { width: 24px; height: 20px; border: none; background: none; cursor: pointer; flex-shrink: 0; } .right-panel { flex: 1; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: clamp(10px, 1.5vw, 18px); overflow-y: auto; overflow-x: hidden; background-color: var(--bg-main); display: flex; flex-direction: column; } .charts-wrapper { display: grid; gap: clamp(14px, 1.8vw, 22px); width: 100%; flex: 1; min-height: 0; } .charts-wrapper.single-mode { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(320px, 1fr); } .charts-wrapper.multi-mode { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-content: start; } .chart-card { background-color: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 10px; padding: clamp(12px, 1.4vw, 18px); display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 320px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); } .charts-wrapper.multi-mode .chart-card { height: clamp(390px, 52dvh, 560px); min-height: 390px; } .chart-card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; flex-shrink: 0; } .chart-header-left, .chart-header-right { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; } .chart-unit-badge { font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background-color: rgba(148, 163, 184, 0.16); border: 1px solid rgba(148, 163, 184, 0.35); white-space: nowrap; } .chart-min-badge { font-size: 0.74rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background-color: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.38); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chart-stats-badge { font-size: 0.74rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background-color: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.38); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chart-action-btn { padding: 2px 8px; border-radius: 5px; border: 1px solid rgba(148, 163, 184, 0.4); background-color: rgba(15, 23, 42, 0.55); color: inherit; font-size: 0.72rem; font-weight: 600; line-height: 1.35; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, transform 0.1s; } .chart-action-btn:hover { background-color: rgba(59, 130, 246, 0.28); border-color: #60a5fa; } .chart-action-btn:active { transform: translateY(1px); } .min-label-word { color: #38bdf8; } .canvas-scroll-area { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; } .canvas-container { position: relative; width: 100%; height: 100%; min-height: 0; } .legend-inline-note { font-size: 0.72rem; color: var(--text-secondary, #94a3b8); line-height: 1.4; } @media (max-width: 1100px) { .left-panel { width: clamp(280px, 33vw, 350px); flex: 0 0 clamp(280px, 33vw, 350px); } .charts-wrapper.multi-mode { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 768px) { html, body { height: auto; min-height: 100dvh; overflow: auto; } .app-container { height: auto; min-height: 100dvh; } .main-workspace { flex-direction: column; overflow: visible; } .left-panel { width: 100%; max-width: none; flex: none; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); overflow: visible; } .right-panel { width: 100%; height: auto; flex: none; overflow: visible; } .charts-wrapper.single-mode { grid-template-rows: none; } .charts-wrapper.single-mode .chart-card, .charts-wrapper.multi-mode .chart-card { height: clamp(340px, 55dvh, 480px); } } @media print { html, body { background-color: #fff; color: #000; height: auto; overflow: visible; } .app-header, .left-panel { display: none !important; } .right-panel { padding: 0; background-color: #fff; overflow: visible; } .chart-card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; page-break-inside: avoid; margin-bottom: 20px; height: auto !important; min-height: 360px; } }