* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; background-image: linear-gradient(to bottom, #214897, #010213); color: #333; height: 100vh; overflow: hidden; } .app-container { display: flex; height: 100vh; } .tool-description { font-size: 0.8rem; font-weight: bold; color: #6730ad; } .sidebar { width: 380px; min-width: 340px; background: #ecfaf0; border-right: 1px solid #dcdfe6; overflow-y: auto; padding: 20px; box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05); } .app-title { font-size: 1.3rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #4a90e2; color: #250558; } .sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #105707; } .sidebar-header .app-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; } .btn-reset { padding: 6px 12px; font-size: 0.8rem; font-weight: bold; color: #e74c3c; background-color: #fff5f5; border: 1px solid #f5c6cb; border-radius: 5px; cursor: pointer; transition: all 0.2s; } .btn-reset:hover { background-color: #e74c3c; color: #fff; } .control-group { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; } .control-group h2 { font-size: 0.95rem; color: #043613; margin-bottom: 10px; } .radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.9rem; } .radio-grid label { background: #bed3f3; padding: 8px 10px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 6px; border: 1px solid #447df0; } .radio-grid label:hover { background: #ecf5ff; } .control-row { margin-bottom: 10px; } .control-row label { display: block; font-size: 0.85rem; margin-bottom: 4px; color: #555; } input[type="range"] { width: 100%; cursor: pointer; } textarea, select { width: 100%; padding: 8px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 0.9rem; } .color-grid { display: flex; gap: 12px; margin-bottom: 10px; } .color-item { flex: 1; } .color-item label { display: block; font-size: 0.8rem; margin-bottom: 4px; } input[type="color"] { width: 100%; height: 36px; border: 1px solid #dcdfe6; border-radius: 4px; cursor: pointer; background: none; } .sub-control { margin-top: 10px; padding: 10px; background: #cde7d8; border-radius: 6px; border: 1px dashed #cbd5e1; } .hidden { display: none !important; } .preview-area { flex: 1; display: flex; flex-direction: column; padding: 20px; position: relative; } .preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; background: #fff; padding: 12px 20px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); } .preview-header span { font-size: 0.9rem; color: #666; font-weight: bold; } .action-buttons { display: flex; gap: 10px; } .btn { padding: 10px 18px; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: bold; cursor: pointer; transition: opacity 0.2s; } .btn:hover { opacity: 0.85; } .btn.primary { background-color: #164274; color: #fff; } .btn.secondary { background-color: #0e7238; color: #fff; } .btn-small { padding: 4px 10px; font-size: 0.8rem; background: #e2e8f0; border: none; border-radius: 4px; cursor: pointer; margin-top: 4px; } .canvas-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #ccc; overflow: auto; background-color: #fff; background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%), linear-gradient(-45deg, #e6e6e6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e6e6e6 75%), linear-gradient(-45deg, transparent 75%, #e6e6e6 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; } canvas { max-width: 100%; max-height: 100%; } .modal { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 100; } .modal-content { background: #fff; width: 90%; max-width: 650px; padding: 20px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .modal-desc { font-size: 0.85rem; color: #666; margin-bottom: 10px; } #generatedCode { width: 100%; height: 260px; font-family: monospace; font-size: 0.85rem; background: #1e293b; color: #f8fafc; padding: 12px; border-radius: 6px; margin-bottom: 12px; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; } .warning-msg { color: #e74c3c; font-size: 0.78rem; margin-top: 4px; font-weight: bold; } .reset-confirm-bar { background-color: #fff5f5; border: 1px solid #f5c6cb; border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; } .reset-confirm-text { font-size: 0.82rem; color: #b71c1c; font-weight: bold; margin-bottom: 8px; } .reset-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; } .btn-confirm-yes { padding: 5px 10px; font-size: 0.78rem; font-weight: bold; color: #fff; background-color: #e74c3c; border: none; border-radius: 4px; cursor: pointer; } .btn-confirm-no { padding: 5px 10px; font-size: 0.78rem; font-weight: bold; color: #555; background-color: #e2e8f0; border: none; border-radius: 4px; cursor: pointer; } .notice-msg { background-color: #eef6ff; border: 1px solid #b6d4fe; color: #1d4ed8; font-size: 0.8rem; font-weight: bold; padding: 8px 10px; border-radius: 6px; margin-bottom: 14px; } html { scrollbar-width: thin; scrollbar-color: linear-gradient(180deg, #6366f1, #8b5cf6); scrollbar-gutter: } ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: linear-gradient(0deg, #f8a8ff, #8ad3fa); border-radius: 9999px; } ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6366f1, #8b5cf6); border-radius: 9999px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #4f46e5, #7c3aed); } input[type="range"] { -webkit-appearance: none; appearance: none; --range-progress: 0%; width: 100%; height: 8px; border-radius: 9999px; background: linear-gradient( to right, #111827 0%, #111827 var(--range-progress), rgba(17, 24, 39, 0.1) var(--range-progress), rgba(17, 24, 39, 0.1) 100% ); border: 1px solid rgba(76, 21, 226, 0.7); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08); outline: none; cursor: pointer; margin: 6px 0; transition: box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); } input[type="range"]:hover { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(17, 24, 39, 0.06); } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #16e294; border: 2px solid rgba(10, 88, 30, 0.9); box-shadow: 0 4px 10px rgba(70, 243, 122, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12); cursor: pointer; transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease; } input[type="range"]::-webkit-slider-thumb:hover { transform: translateY(-1px) scale(1.08); box-shadow: 0 6px 14px rgba(4, 70, 214, 0.28); } input[type="range"]::-webkit-slider-thumb:active { transform: scale(0.95); background: #374151; } input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #111827; border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 10px rgba(17, 24, 39, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12); cursor: pointer; transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s ease; } input[type="range"]::-moz-range-thumb:hover { transform: translateY(-1px) scale(1.08); box-shadow: 0 6px 14px rgba(17, 24, 39, 0.28); } input[type="range"]::-moz-range-thumb:active { transform: scale(0.95); background: #374151; }