レコードをメール: Flexible Control of Safety Margins for Action Based on Environmental Variability