* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif; background: linear-gradient(135deg, #072402 0%, #065c18 50%, #11882f 100%); color: #1e293b; line-height: 1.5; } .app-container { display: flex; flex-direction: column; min-height: 100vh; } .control-panel { background: linear-gradient(135deg, #212ddb 0%, #547be6 50%, #acb1f5 100%); padding: 16px 20px; border-bottom: 1px solid #0a1a64; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } .control-panel h1 { font-size: 1.2rem; margin-bottom: 12px; color: #c7d9ff; white-space: nowrap; } .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; } .setting-group { background: linear-gradient(135deg, #e6f371 0%, #cfe747 50%, #ccc01d 100%); padding: 12px; border-radius: 8px; border: 1px solid #645b04; display: flex; flex-direction: column; gap: 8px; min-width: 0; } .setting-group h3 { font-size: 0.9rem; color: #334155; border-bottom: 1px solid #443b04; padding-bottom: 4px; white-space: nowrap; } .field-row { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; } .field-row label, .pair-item label { font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; color: #334155; } .inline-pair { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; } .pair-item { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 4px; min-width: 0; } .pair-item span { font-size: 0.8rem; white-space: nowrap; } input[type="text"], input[type="number"] { padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background-color: #d0d4ff; color: #1e293b; font-size: 0.82rem; min-width: 0; transition: border-color 0.2s, box-shadow 0.2s; } input[type="text"]:focus, input[type="number"]:focus { outline: none; border-color: #64748b; box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.16); } select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding: 5px 26px 5px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background-color: #c9f1f7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 12px 12px; color: #1e293b; font-size: 0.82rem; font-weight: 500; cursor: pointer; min-width: 0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; } select:hover { border-color: #94a3b8; background-color: #f8fafc; } select:focus { outline: none; border-color: #475569; box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.16); } input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 80px; height: 6px; border-radius: 999px; background: #cbd5e1; outline: none; cursor: pointer; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #475569; border: 2px solid #ffffff; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28); cursor: pointer; transition: transform 0.15s, background-color 0.15s; } input[type="range"]::-webkit-slider-thumb:hover { background: #334155; transform: scale(1.1); } input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #cbd5e1; } input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #475569; border: 2px solid #ffffff; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28); cursor: pointer; transition: transform 0.15s, background-color 0.15s; } input[type="range"]::-moz-range-thumb:hover { background: #334155; transform: scale(1.1); } .field-row > input[type="text"], .field-row > select { flex: 1; max-width: 68%; } .field-row > input[type="file"] { flex: 1; font-size: 0.78rem; min-width: 0; } input[type="number"] { width: 62px; } input[type="color"] { width: 32px; height: 26px; padding: 1px; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; flex-shrink: 0; } #imageControls { display: flex; flex-direction: column; gap: 8px; } .hidden { display: none !important; } .notice { font-size: 0.75rem; color: #ef4444; min-height: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .action-bar { margin-top: 14px; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-end; gap: 10px; overflow-x: auto; } .btn { padding: 8px 14px; border: none; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: opacity 0.2s, transform 0.1s; } .btn:hover { opacity: 0.9; } .btn:active { transform: scale(0.98); } .btn-primary { background: #2563eb; color: #ffffff; } .btn-info { background: #0d9488; color: #ffffff; } .btn-secondary { background: #64748b; color: #ffffff; } .saved-list-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid #0b0d5e; } .saved-list-header { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: #c9d9f0; margin-bottom: 8px; } .saved-list-header span, .saved-count { white-space: nowrap; } .saved-count { background: #e2e8f0; color: #334155; padding: 1px 7px; border-radius: 999px; font-size: 0.75rem; } .saved-list { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 4px; } .empty-saved { font-size: 0.8rem; color: #d0f8fd; white-space: nowrap; } .saved-item { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 10px; flex-shrink: 0; } .saved-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.15); flex-shrink: 0; } .saved-meta { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; font-size: 0.78rem; color: #1e293b; white-space: nowrap; } .saved-time { color: #64748b; font-size: 0.72rem; } .btn-load { padding: 3px 8px; font-size: 0.75rem; border: none; border-radius: 4px; background: #2563eb; color: #ffffff; font-weight: 600; cursor: pointer; white-space: nowrap; } .btn-delete { padding: 3px 8px; font-size: 0.75rem; border: none; border-radius: 4px; background: #e2e8f0; color: #334155; font-weight: 600; cursor: pointer; white-space: nowrap; } .btn-delete:hover { background: #fecaca; color: #b91c1c; } .preview-area { flex: 1; display: flex; flex-direction: column; padding: 16px 20px; } .preview-header { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.85rem; color: #defde8; overflow-x: auto; } .preview-header span, .bg-toggle { white-space: nowrap; display: flex; align-items: center; gap: 6px; } .canvas-wrapper { flex: 1; min-height: 360px; border-radius: 12px; border: 2px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; overflow: auto; background-color: #ffffff; background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e8f0 75%), linear-gradient(-45deg, transparent 75%, #e2e8f0 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; transition: background-color 0.3s, border-color 0.2s; } .canvas-wrapper.drag-over { border-color: #475569; background-color: #f8fafc; } .canvas-wrapper.dark-mode { background-color: #1e293b; background-image: linear-gradient(45deg, #334155 25%, transparent 25%), linear-gradient(-45deg, #334155 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #334155 75%), linear-gradient(-45deg, transparent 75%, #334155 75%); } canvas { max-width: 100%; height: auto; } .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .file-picker-group { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; max-width: 68%; } .btn-file-select { padding: 4px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background-color: #ffffff; color: #1e293b; font-size: 0.8rem; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: border-color 0.2s, background-color 0.2s; } .btn-file-select:hover { border-color: #94a3b8; background-color: #f8fafc; } .file-name-display { font-size: 0.78rem; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 画面内メッセージ（alertの代替） */ .status-message { min-height: 0; margin-top: 0; padding: 0; border: 0 solid transparent; border-radius: 6px; background: transparent; color: #064e3b; font-size: 0.85rem; font-weight: 600; opacity: 0; transform: translateY(-4px); transition: opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease, margin 0.2s ease; pointer-events: none; } .status-message.is-visible { min-height: 38px; margin-top: 10px; padding: 9px 12px; border-width: 1px; border-color: #6ee7b7; background: #ecfdf5; opacity: 1; transform: translateY(0); } 