/* エディタモーダル共通スタイル（リンク・メール・画像） */
.editor-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:9999}
.editor-modal{background:#fff;border-radius:14px;padding:28px;width:420px;max-width:90%;box-shadow:0 8px 40px rgba(0,0,0,0.12);animation:editorModalIn .2s ease-out}
@keyframes editorModalIn{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
.editor-modal-title{font-size:1.05rem;font-weight:700;color:#1e293b;margin-bottom:20px}
.editor-modal .em-group{margin-bottom:16px}
.editor-modal .em-label{display:block;font-size:0.85rem;font-weight:600;color:#475569;margin-bottom:6px}
.editor-modal .em-input{width:100%;padding:10px 14px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:0.9rem;color:#334155;outline:none;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}
.editor-modal .em-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,0.1)}
.editor-modal .em-input::placeholder{color:#94a3b8}
.editor-modal textarea.em-input{min-height:70px;resize:vertical}
.editor-modal .em-hint{font-size:0.75rem;color:#94a3b8;margin-top:4px}
.editor-modal .em-preview{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px;font-size:0.85rem;color:#334155;margin-bottom:16px}
.editor-modal .em-preview-label{font-size:0.85rem;font-weight:600;color:#475569;margin-bottom:8px}
.editor-modal .em-preview a{color:#3b82f6;text-decoration:underline}
.editor-modal .em-btn-row{display:flex;gap:10px;justify-content:flex-end}
.editor-modal .em-btn{padding:10px 22px;border-radius:8px;font-size:0.9rem;font-weight:600;cursor:pointer;transition:all .15s}
.editor-modal .em-btn-cancel{background:#fff;border:1.5px solid #e2e8f0;color:#64748b}
.editor-modal .em-btn-cancel:hover{background:#f8fafc}
.editor-modal .em-btn-primary{background:#3b82f6;border:none;color:#fff}
.editor-modal .em-btn-primary:hover{background:#2563eb}
.editor-modal .em-btn-danger{background:#fff;border:1.5px solid #fca5a5;color:#ef4444;margin-right:auto}
.editor-modal .em-btn-danger:hover{background:#fef2f2}
/* ドロップゾーン */
.editor-modal .em-dropzone{border:2px dashed #cbd5e1;border-radius:10px;padding:28px;text-align:center;cursor:pointer;transition:border-color .2s,background .2s}
.editor-modal .em-dropzone:hover{border-color:#3b82f6;background:#f8faff}
.editor-modal .em-dropzone.dragover{border-color:#3b82f6;background:#eff6ff}
.editor-modal .em-dropzone-icon{margin-bottom:8px;color:#94a3b8}
.editor-modal .em-dropzone-text{font-size:0.85rem;color:#64748b}
.editor-modal .em-preview-img{max-width:100%;border-radius:6px;border:1px solid #e2e8f0}
/* サイズ選択 */
.editor-modal .em-size-row{display:flex;align-items:center;gap:6px;margin-bottom:16px}
.editor-modal .em-size-btn{padding:6px 14px;border:1.5px solid #e2e8f0;border-radius:6px;background:#fff;font-size:0.8rem;color:#475569;cursor:pointer;transition:all .15s}
.editor-modal .em-size-btn:hover{border-color:#3b82f6;color:#3b82f6}
.editor-modal .em-size-btn.active{background:#3b82f6;color:#fff;border-color:#3b82f6}
.editor-modal .em-size-value{font-size:0.8rem;color:#94a3b8;margin-left:4px}
/* アコーディオン */
.editor-modal .em-accordion{font-size:0.85rem;color:#64748b;cursor:pointer;display:flex;align-items:center;gap:4px;margin-bottom:16px;user-select:none}
.editor-modal .em-accordion:hover{color:#3b82f6}
