/* 編集モード関連のスタイル */
.edit-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.edit-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.edit-btn:hover {
    background-color: #1d4ed8;
}

.edit-btn.active {
    background-color: #ef4444; /* プレビューモード時の色 */
}

.edit-btn.active:hover {
    background-color: #dc2626;
}

.editable {
    border: 1px dashed transparent;
    padding: 2px;
}

.editable[contenteditable="true"] {
    border: 1px dashed #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
}

.image-edit {
    display: flex;
    gap: 5px;
    align-items: center;
}

.image-edit input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

/* 保存メッセージ */
.save-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.save-message.show {
    opacity: 1;
}

.save-message.success {
    background-color: #10b981;
}

.save-message.error {
    background-color: #ef4444;
}
